From: Jason Merrill Date: Tue, 7 May 2002 17:27:30 +0000 (-0400) Subject: dwarf2out.c (rtl_for_decl_location): Don't try to extract a constant value from DECL_... X-Git-Tag: releases/gcc-3.1.0~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c62299eda0bb60860f29429f201c9eefbd345c3;p=thirdparty%2Fgcc.git dwarf2out.c (rtl_for_decl_location): Don't try to extract a constant value from DECL_INITIAL. * dwarf2out.c (rtl_for_decl_location): Don't try to extract a constant value from DECL_INITIAL. From-SVN: r53261 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fab79af7ed24..880fbeed5492 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-05-07 Jason Merrill + + * dwarf2out.c (rtl_for_decl_location): Don't try to extract a + constant value from DECL_INITIAL. + 2002-05-07 Richard Henderson PR c++/6212 diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 24a272021daa..afd9737e035b 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -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