From 8c62299eda0bb60860f29429f201c9eefbd345c3 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Tue, 7 May 2002 13:27:30 -0400 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/dwarf2out.c | 5 +++++ 2 files changed, 10 insertions(+) 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 -- 2.47.2