This is the mail archive of the gcc-patches@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: [PATCH] SPARC psABI fix, callee returns struct checking.


> Machine Dependant Options
>
>     SPARC Options ... -mpsabi32
>
> -mpsabi32
>     When the flag is present gcc is in strict adherence
>     to the 32-bit SPARC psABI. When the flag is not present
>     gcc takes certain psABI liberties, including the removal
>     of the unimp load in callee returns struct cases.
>
> The flag would effect the code emitted in sparc.md (struct_prologue).

I'd rather have a more explicit flag, since GCC is supposed to adhere to the 
32-bit ABI except in this very specific case.

What about -mstd-struct-return or something along these lines?

-- 
Eric Botcazou


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