This is the mail archive of the gcc@gcc.gnu.org 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: [rfa:ppc] Fix PPC/NBSD struct return; Was: userdef.exp regression for ppc?


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


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