From: Jim Wilson Date: Mon, 8 Jul 1996 22:11:03 +0000 (-0700) Subject: (aggregate_value_p): If hard_function_value returns X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e71f7aa5b5c703e5a152c1a6c10ef81e83387a03;p=gcc.git (aggregate_value_p): If hard_function_value returns a non-REG, then return 0. From-SVN: r12413 --- diff --git a/gcc/function.c b/gcc/function.c index beaca62f60a..275685e6ab2 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -3222,6 +3222,12 @@ aggregate_value_p (exp) /* Make sure we have suitable call-clobbered regs to return the value in; if not, we must return it in memory. */ 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); nregs = HARD_REGNO_NREGS (regno, TYPE_MODE (type)); for (i = 0; i < nregs; i++)