]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
dwarf2out.c (rtl_for_decl_location): Don't try to extract a constant value from DECL_...
authorJason Merrill <jason@redhat.com>
Tue, 7 May 2002 17:27:30 +0000 (13:27 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 7 May 2002 17:27:30 +0000 (13:27 -0400)
        * dwarf2out.c (rtl_for_decl_location): Don't try to extract a
        constant value from DECL_INITIAL.

From-SVN: r53261

gcc/ChangeLog
gcc/dwarf2out.c

index fab79af7ed249c38076d967cb079a97feacf5c74..880fbeed549211aee24434a29166ef11f66c685c 100644 (file)
@@ -1,3 +1,8 @@
+2002-05-07  Jason Merrill  <jason@redhat.com>
+
+       * dwarf2out.c (rtl_for_decl_location): Don't try to extract a
+       constant value from DECL_INITIAL.
+
 2002-05-07  Richard Henderson  <rth@redhat.com>
 
        PR c++/6212
index 24a272021daa53837f3f36418da320c7c61b0c0c..afd9737e035b1b131c5c9589781b7c5fc2c5a677 100644 (file)
@@ -8942,6 +8942,10 @@ rtl_for_decl_location (decl)
            rtl = gen_rtx_CONST_STRING (VOIDmode, TREE_STRING_POINTER (init));
        }
 
+#if 0
+      /* We mustn't actually emit anything here, as we might not get a
+         chance to emit any symbols we refer to.  For the release, don't
+         try to get this right.  */
       if (rtl == NULL)
        {
          rtl = expand_expr (DECL_INITIAL (decl), NULL_RTX, VOIDmode,
@@ -8951,6 +8955,7 @@ rtl_for_decl_location (decl)
          if (rtl && GET_CODE (rtl) == MEM)
            rtl = NULL;
        }
+#endif
     }
 
 #ifdef ASM_SIMPLIFY_DWARF_ADDR