This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH: PR 11326
Mark Mitchell <mark@codesourcery.com> writes:
> However, would you also try making the following change?
>
> In ia64_struct_value_rtx, do this:
>
> if (fntype && ia64_struct_retval_addr ...)
>
> In other words, check that fntype is non-NULL before calling the new
> predicate.
>
> If that patch works, please go ahead and check it in.
Thanks, it works. This is what I'll check into 3.4 and 3.5:
2004-02-18 Mark Mitchell <mark@codesourcery.com>
PR c++/11326
* config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL
fntype.
--- gcc/config/ia64/ia64.c.~1.265.2.3.~ 2004-02-18 14:16:31.000000000 +0100
+++ gcc/config/ia64/ia64.c 2004-02-18 14:16:39.000000000 +0100
@@ -8933,7 +8933,7 @@ static rtx
ia64_struct_value_rtx (tree fntype,
int incoming ATTRIBUTE_UNUSED)
{
- if (ia64_struct_retval_addr_is_first_parm_p (fntype))
+ if (fntype && ia64_struct_retval_addr_is_first_parm_p (fntype))
return NULL_RTX;
return gen_rtx_REG (Pmode, GR_REG (8));
}
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."