From 234c071be0fe675afced8c8f30b363fee206a06c Mon Sep 17 00:00:00 2001 From: Kevin Buettner Date: Tue, 4 Mar 2003 05:58:54 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/dwarf2out.c | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fe99d98e986..c80364005d1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-03-04 Kevin Buettner + + * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for + global register variables. + 2003-03-04 Alexandre Oliva * reload.c (reload_adjust_reg_for_mode): New function. diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index a1a06cbf926..b75481c2411 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -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; -- 2.30.2