aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2010-05-15 08:01:20 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2010-05-15 08:01:20 +0200
commit22bf7d174a7667f07a4e467d86ad7facd331e77a (patch)
treecc5f39cfb9846a3137739cfd05f02c0a37377ab9
parentb33a0480d7191ed505ce76bc629ed41dc0bad033 (diff)
downloadgcc-22bf7d174a7667f07a4e467d86ad7facd331e77a.zip
gcc-22bf7d174a7667f07a4e467d86ad7facd331e77a.tar.gz
gcc-22bf7d174a7667f07a4e467d86ad7facd331e77a.tar.bz2
re PR debug/44112 (Revision 159354 causes Fortran test failures)
PR debug/44112 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN for all SYMBOL_REF_DECLs. * gcc.dg/debug/dwarf2/const-1.c: Remove. * g++.dg/debug/dwarf2/const1.C: Remove. From-SVN: r159429
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/dwarf2out.c1
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/g++.dg/debug/dwarf2/const1.C7
-rw-r--r--gcc/testsuite/gcc.dg/debug/dwarf2/const-1.c7
5 files changed, 12 insertions, 15 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 651b67d..06ed4b5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2010-05-14 Jakub Jelinek <jakub@redhat.com>
+
+ PR debug/44112
+ * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
+ for all SYMBOL_REF_DECLs.
+
2010-05-14 Jan Hubicka <jh@suse.cz>
* cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 70dbd8e..e68065b 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -21611,7 +21611,6 @@ resolve_one_addr (rtx *addr, void *data ATTRIBUTE_UNUSED)
if (GET_CODE (rtl) == SYMBOL_REF
&& SYMBOL_REF_DECL (rtl)
- && TREE_CODE (SYMBOL_REF_DECL (rtl)) == VAR_DECL
&& !TREE_ASM_WRITTEN (SYMBOL_REF_DECL (rtl)))
return 1;
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 7c14d8c..a813121 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2010-05-14 Jakub Jelinek <jakub@redhat.com>
+
+ PR debug/44112
+ * gcc.dg/debug/dwarf2/const-1.c: Remove.
+ * g++.dg/debug/dwarf2/const1.C: Remove.
+
2010-05-14 Jason Merrill <jason@redhat.com>
* g++.dg/eh/cond4.C: New.
diff --git a/gcc/testsuite/g++.dg/debug/dwarf2/const1.C b/gcc/testsuite/g++.dg/debug/dwarf2/const1.C
deleted file mode 100644
index 7b18fa0..0000000
--- a/gcc/testsuite/g++.dg/debug/dwarf2/const1.C
+++ /dev/null
@@ -1,7 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-O -gdwarf-2 -dA -gno-strict-dwarf -fno-merge-debug-strings" } */
-/* { dg-require-visibility "" } */
-/* { dg-final { scan-assembler "DW_AT_location\[^\\r\\n\]*\[\\r\\n\]*\[^\\r\\n\]*DW_OP_addr\[^\\r\\n\]*\[\\r\\n\]*\[^\\r\\n\]*fnx\[^\\r\\n\]*\[\\r\\n\]*\[^\\r\\n\]*DW_OP_stack_value" } } */
-
-extern void fnx () __attribute__((visibility ("hidden")));
-void (* const f) () = fnx;
diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/const-1.c b/gcc/testsuite/gcc.dg/debug/dwarf2/const-1.c
deleted file mode 100644
index bc5c7d61..0000000
--- a/gcc/testsuite/gcc.dg/debug/dwarf2/const-1.c
+++ /dev/null
@@ -1,7 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-O -gdwarf-2 -dA -gno-strict-dwarf -fno-merge-debug-strings" } */
-/* { dg-require-visibility "" } */
-/* { dg-final { scan-assembler "DW_AT_location\[^\\r\\n\]*\[\\r\\n\]*\[^\\r\\n\]*DW_OP_addr\[^\\r\\n\]*\[\\r\\n\]*\[^\\r\\n\]*fnx\[^\\r\\n\]*\[\\r\\n\]*\[^\\r\\n\]*DW_OP_stack_value" } } */
-
-extern void fnx() __attribute__((visibility("hidden")));
-static void (*f)() = fnx;