* dwarf2out.c (rtl_for_decl_location): Use DECL_RTL_IF_SET.
authorMark Mitchell <mark@codesourcery.com>
Fri, 16 Mar 2001 06:34:17 +0000 (06:34 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 16 Mar 2001 06:34:17 +0000 (06:34 +0000)
From-SVN: r40544

gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/g++.old-deja/g++.other/debug7.C [new file with mode: 0644]

index bbb6c585de94f7386a5ee92a3b701b21b7186709..dc25aaddf61935dffd130cf480c08b57ab78818c 100644 (file)
@@ -1,3 +1,7 @@
+2001-03-15  Mark Mitchell  <mark@codesourcery.com>
+
+       * dwarf2out.c (rtl_for_decl_location): Use DECL_RTL_IF_SET.
+
 2001-03-15  Richard Henderson  <rth@redhat.com>
 
        * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): New.
index 6f0ae8add4b7a9a6574361eed9f02664462a881e..c5dbcd306a1a025dab84884bc8839e0572a0a960 100644 (file)
@@ -7983,7 +7983,7 @@ rtl_for_decl_location (decl)
      gets fixed).  */
 
   /* Use DECL_RTL as the "location" unless we find something better.  */
-  rtl = DECL_RTL (decl);
+  rtl = DECL_RTL_IF_SET (decl);
 
   if (TREE_CODE (decl) == PARM_DECL)
     {
diff --git a/gcc/testsuite/g++.old-deja/g++.other/debug7.C b/gcc/testsuite/g++.old-deja/g++.other/debug7.C
new file mode 100644 (file)
index 0000000..f79b00a
--- /dev/null
@@ -0,0 +1,11 @@
+// Build don't run:
+// Origin: Loren James Rittle <rittle@latour.rsch.comm.mot.com>
+// Special g++ Options: -g -O2
+
+namespace std {
+  const int __stl_chunk_size = 7;
+};
+
+int main ()
+{
+}