From: Richard Stallman Date: Thu, 13 May 1993 22:29:26 +0000 (+0000) Subject: (dbxout_parms): Don't output a parm if it's a mem that has a constant address. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8d2911811aafa93c4ae7fc5b1f32a9462d4a2c10;p=gcc.git (dbxout_parms): Don't output a parm if it's a mem that has a constant address. From-SVN: r4440 --- diff --git a/gcc/dbxout.c b/gcc/dbxout.c index dc1f8920b15..a2c78c4f0af 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -2076,7 +2076,11 @@ dbxout_parms (parms) dbxout_finish_symbol (parms); } else if (GET_CODE (DECL_RTL (parms)) == MEM - && XEXP (DECL_RTL (parms), 0) != const0_rtx) + && XEXP (DECL_RTL (parms), 0) != const0_rtx + /* ??? A constant address for a parm can happen + when the reg it lives in is equiv to a constant in memory. + Should make this not happen, after 2.4. */ + && ! CONSTANT_P (XEXP (DECL_RTL (parms), 0))) { /* Parm was passed in registers but lives on the stack. */