Commit 8d291181 by Richard Stallman

(dbxout_parms): Don't output a parm if it's a mem that has a constant address.

From-SVN: r4440
parent 68363ba9
...@@ -2076,7 +2076,11 @@ dbxout_parms (parms) ...@@ -2076,7 +2076,11 @@ dbxout_parms (parms)
dbxout_finish_symbol (parms); dbxout_finish_symbol (parms);
} }
else if (GET_CODE (DECL_RTL (parms)) == MEM 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. */ /* Parm was passed in registers but lives on the stack. */
......
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