[rfa:ppc] Fix PPC/NBSD struct return; Was: userdef.exp regression for ppc?

Zack Weinberg zack@codesourcery.com
Sun Jun 2 16:21:00 GMT 2002


On Sun, Jun 02, 2002 at 04:06:41PM -0700, Jason R Thorpe wrote:
> 
>  > But I see how you got confused.  There is a nasty gotcha in this area
>  > of target configuration.  If you have any kind of nontrivial
>  > RETURN_IN_MEMORY macro, you *have* to define DEFAULT_PCC_STRUCT_RETURN
>  > to 0, because the effect of flag_pcc_struct_return is to override
>  > RETURN_IN_MEMORY and force all aggregates to be returned in memory.
> 
> Ah, ok, I see.

By the way, since you're doing ns32k work: it is one of the last few
targets to define PCC_STATIC_STRUCT_RETURN.  You almost certainly
don't want that (it makes all functions that return structures
nonreentrant).

zw



More information about the Gcc mailing list