OSDN Git Service

PR debug/44112
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 May 2010 06:01:20 +0000 (06:01 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:08:53 +0000 (14:08 +0900)
* 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

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.