mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-13 14:51:18 +08:00
(dbxout_parms): Handle invisible ref where decl is a REG
From-SVN: r38720
This commit is contained in:
parent
3b4e6a1644
commit
ebb0cdf335
@ -1,3 +1,7 @@
|
||||
2001-01-05 Catherine Moore <clm@redhat.com>
|
||||
|
||||
* dbxout.c ((dbxout_parms): Handle invisible ref where decl is a REG.
|
||||
|
||||
2001-01-05 Phil Edwards <pme@sources.redhat.com>
|
||||
|
||||
* cp/lang-options.h: Bring comment in line with reality.
|
||||
|
10
gcc/dbxout.c
10
gcc/dbxout.c
@ -2474,12 +2474,16 @@ dbxout_parms (parms)
|
||||
{
|
||||
/* Parm was passed via invisible reference, with the reference
|
||||
living on the stack. DECL_RTL looks like
|
||||
(MEM (MEM (PLUS (REG ...) (CONST_INT ...)))). */
|
||||
(MEM (MEM (PLUS (REG ...) (CONST_INT ...)))) or it
|
||||
could look like (MEM (MEM (REG))). */
|
||||
const char *decl_name = (DECL_NAME (parms)
|
||||
? IDENTIFIER_POINTER (DECL_NAME (parms))
|
||||
: "(anon)");
|
||||
current_sym_value
|
||||
= INTVAL (XEXP (XEXP (XEXP (DECL_RTL (parms), 0), 0), 1));
|
||||
if (GET_CODE (XEXP (XEXP (DECL_RTL (parms), 0), 0)) == REG)
|
||||
current_sym_value = 0;
|
||||
else
|
||||
current_sym_value
|
||||
= INTVAL (XEXP (XEXP (XEXP (DECL_RTL (parms), 0), 0), 1));
|
||||
current_sym_addr = 0;
|
||||
|
||||
FORCE_TEXT;
|
||||
|
Loading…
x
Reference in New Issue
Block a user