Commit 8063ddcf by Richard Henderson Committed by Richard Henderson

dwarf2out.c (rtl_for_decl_location): If no DECL_RTL, look for a DECL_INITIAL.

        * dwarf2out.c (rtl_for_decl_location): If no DECL_RTL, look
        for a DECL_INITIAL.

From-SVN: r46193
parent 0faae2f5
2001-10-11 Richard Henderson <rth@redhat.com>
* dwarf2out.c (rtl_for_decl_location): If no DECL_RTL, look
for a DECL_INITIAL.
2001-10-11 David Edelsohn <edelsohn@gnu.org>
* config/rs6000/xcoff.h (UNALIGNED_DOUBLE_INT_ASM_OP): Only
......
......@@ -8567,6 +8567,16 @@ rtl_for_decl_location (decl)
#endif
}
/* A variable with no DECL_RTL but a DECL_INITIAL is a compile-time
constant, and will have been substituted directly into all
expressions that use it. C does not have such a concept, but
C++ and other languages do. */
else if (DECL_INITIAL (decl))
{
rtl = expand_expr (DECL_INITIAL (decl), NULL_RTX, VOIDmode,
EXPAND_INITIALIZER);
}
return rtl;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment