OSDN Git Service

PR debug/44112
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 May 2010 06:01:20 +0000 (06:01 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 May 2010 06:01:20 +0000 (06:01 +0000)
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159429 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/dwarf2/const1.C [deleted file]
gcc/testsuite/gcc.dg/debug/dwarf2/const-1.c [deleted file]

index 651b67d..06ed4b5 100644 (file)
@@ -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.
index 70dbd8e..e68065b 100644 (file)
@@ -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;
 
index 7c14d8c..a813121 100644 (file)
@@ -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 (file)
index 7b18fa0..0000000
+++ /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 (file)
index bc5c7d6..0000000
+++ /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;