(dbxout_parms): Handle invisible ref where decl is a REG

From-SVN: r38720
This commit is contained in:
Catherine Moore 2001-01-05 20:15:24 +00:00 committed by Catherine Moore
parent 3b4e6a1644
commit ebb0cdf335
2 changed files with 11 additions and 3 deletions

View File

@ -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.

View File

@ -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;