From: Jim Wilson Date: Wed, 23 Mar 1994 23:56:41 +0000 (-0800) Subject: (dbxout_parms): For parameter living in psuedo-reg that X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ec7a1dd2f8bf033e0224298cab212e5ce5037d45;p=platform%2Fupstream%2Fgcc.git (dbxout_parms): For parameter living in psuedo-reg that was optimized away, use declared type instead of passed type. From-SVN: r6861 --- diff --git a/gcc/dbxout.c b/gcc/dbxout.c index b5b5836..78a7df9 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -2157,12 +2157,12 @@ dbxout_parms (parms) best_rtl = DECL_RTL (parms); parm_type = TREE_TYPE (parms); } - /* If the parm lives nowhere, - use the register where it was passed. */ + /* If the parm lives nowhere, use the register where it was + passed. It is also better to use the declared type here. */ else { 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));