(dbxout_parms): For parameter living in psuedo-reg that
authorJim Wilson <wilson@gcc.gnu.org>
Wed, 23 Mar 1994 23:56:41 +0000 (15:56 -0800)
committerJim Wilson <wilson@gcc.gnu.org>
Wed, 23 Mar 1994 23:56:41 +0000 (15:56 -0800)
was optimized away, use declared type instead of passed type.

From-SVN: r6861

gcc/dbxout.c

index b5b5836..78a7df9 100644 (file)
@@ -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));