(dbxout_parms): For parameter living in psuedo-reg that

was optimized away, use declared type instead of passed type.

From-SVN: r6861
This commit is contained in:
Jim Wilson 1994-03-23 15:56:41 -08:00
parent 71ef37f694
commit ec7a1dd2f8

View File

@ -2157,12 +2157,12 @@ dbxout_parms (parms)
best_rtl = DECL_RTL (parms); best_rtl = DECL_RTL (parms);
parm_type = TREE_TYPE (parms); parm_type = TREE_TYPE (parms);
} }
/* If the parm lives nowhere, /* If the parm lives nowhere, use the register where it was
use the register where it was passed. */ passed. It is also better to use the declared type here. */
else else
{ {
best_rtl = DECL_INCOMING_RTL (parms); best_rtl = DECL_INCOMING_RTL (parms);
parm_type = DECL_ARG_TYPE (parms); parm_type = TREE_TYPE (parms);
} }
current_sym_value = DBX_REGISTER_NUMBER (REGNO (best_rtl)); current_sym_value = DBX_REGISTER_NUMBER (REGNO (best_rtl));