This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ PATCH: PR 11326

Mark Mitchell <> 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 <>

	PR c++/11326
	* config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL

--- gcc/config/ia64/ia64.c.~	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 Schwab, SuSE Labs,
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."

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]