Commit ec7a1dd2 by Jim Wilson

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

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

From-SVN: r6861
parent 71ef37f6
...@@ -2157,12 +2157,12 @@ dbxout_parms (parms) ...@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment