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: Mark Mitchell <mark at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Carlos O'Donell <carlos at codesourcery dot com>, "David S. Miller" <davem at davemloft dot net>, rth at redhat dot com, jakub at redhat dot com
- Date: Thu, 9 Mar 2006 08:16:29 +0100
- Subject: Re: [PATCH] SPARC psABI fix, callee returns struct checking.
- References: <20060308223803.GA11591@lios> <200603090750.34815.ebotcazou@libertysurf.fr> <440FD0A7.2020908@codesourcery.com>
> Actually, not quite; this fix is for a bug report we received directly
> from Sun, mixing code between the Sun compiler and the GCC compiler.
> The bug report is the example Carlos gave in his patch.
The code that Carlos posted is pathological.
> We don't see any choice. Obviously, we can have a switch, but in the
> fully conforming mode, this is how the ABI works, according to Sun's ABI
> experts, and they ought to know.
I'm not discussing that, the ABI is the ABI. Let's say that GCC "optimizes"
the ABI and this works 99.9999999% of the time. This has worked well from
the very beginning on Solaris so I'd be very reluctant to reverse the defaut
mode now for a 0.00000001% frequency.
--
Eric Botcazou