dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for global register variables.
* dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for global register variables. From-SVN: r63768
This commit is contained in:
parent
01952d37e3
commit
234c071be0
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2003-03-04 Kevin Buettner <kevinb@redhat.com>
|
||||
|
||||
* dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
|
||||
global register variables.
|
||||
|
||||
2003-03-04 Alexandre Oliva <aoliva@redhat.com>
|
||||
|
||||
* reload.c (reload_adjust_reg_for_mode): New function.
|
||||
|
|
|
@ -9370,13 +9370,17 @@ rtl_for_decl_location (decl)
|
|||
rtl = DECL_RTL_IF_SET (decl);
|
||||
|
||||
/* When generating abstract instances, ignore everything except
|
||||
constants and symbols living in memory. */
|
||||
constants, symbols living in memory, and symbols living in
|
||||
fixed registers. */
|
||||
if (! reload_completed)
|
||||
{
|
||||
if (rtl
|
||||
&& (CONSTANT_P (rtl)
|
||||
|| (GET_CODE (rtl) == MEM
|
||||
&& CONSTANT_P (XEXP (rtl, 0)))))
|
||||
&& CONSTANT_P (XEXP (rtl, 0)))
|
||||
|| (GET_CODE (rtl) == REG
|
||||
&& TREE_CODE (decl) == VAR_DECL
|
||||
&& TREE_STATIC (decl))))
|
||||
{
|
||||
rtl = (*targetm.delegitimize_address) (rtl);
|
||||
return rtl;
|
||||
|
|
Loading…
Add table
Reference in a new issue