Commit e71f7aa5 by Jim Wilson

(aggregate_value_p): If hard_function_value returns

a non-REG, then return 0.

From-SVN: r12413
parent 320aba9c
...@@ -3222,6 +3222,12 @@ aggregate_value_p (exp) ...@@ -3222,6 +3222,12 @@ aggregate_value_p (exp)
/* Make sure we have suitable call-clobbered regs to return /* Make sure we have suitable call-clobbered regs to return
the value in; if not, we must return it in memory. */ the value in; if not, we must return it in memory. */
reg = hard_function_value (type, 0); reg = hard_function_value (type, 0);
/* If we have something other than a REG (e.g. a PARALLEL), then assume
it is OK. */
if (GET_CODE (reg) != REG)
return 0;
regno = REGNO (reg); regno = REGNO (reg);
nregs = HARD_REGNO_NREGS (regno, TYPE_MODE (type)); nregs = HARD_REGNO_NREGS (regno, TYPE_MODE (type));
for (i = 0; i < nregs; i++) for (i = 0; i < nregs; i++)
......
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