From 1af11d046b923cd4daeb16bc2390f2b499d5e73c Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 29 Aug 2008 16:55:52 +0000 Subject: [PATCH] 4.3.2-1 --- gcc43-fortran-debug10.patch | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gcc43-fortran-debug10.patch b/gcc43-fortran-debug10.patch index d446519..7f93659 100644 --- a/gcc43-fortran-debug10.patch +++ b/gcc43-fortran-debug10.patch @@ -371,12 +371,13 @@ /* If we don't have a copy of this variable in memory for some reason (such as a C++ member constant that doesn't have an out-of-line definition), we should tell the debugger about the constant value. */ -@@ -11781,6 +11940,18 @@ tree_add_const_value_attribute (dw_die_r +@@ -11781,6 +11940,19 @@ tree_add_const_value_attribute (dw_die_r rtl = rtl_for_decl_init (init, type); if (rtl) add_const_value_attribute (var_die, rtl); + /* If the host and target are sane, try harder. */ -+ else if (CHAR_BIT == 8 && BITS_PER_UNIT == 8) ++ else if (CHAR_BIT == 8 && BITS_PER_UNIT == 8 ++ && initializer_constant_valid_p (init, type)) + { + HOST_WIDE_INT size = int_size_in_bytes (TREE_TYPE (init)); + if (size > 0 && (int) size == size)