This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] SPARC psABI fix, callee returns struct checking.
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: Carlos O'Donell <carlos at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org, "David S. Miller" <davem at davemloft dot net>, rth at redhat dot com, davem at redhat dot com, jakub at redhat dot com
- Date: Thu, 9 Mar 2006 08:00:06 +0100
- Subject: Re: [PATCH] SPARC psABI fix, callee returns struct checking.
- References: <20060308223803.GA11591@lios> <20060308.150646.78381392.davem@davemloft.net> <20060308235859.GA12758@lios>
> 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