This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: i386 PATCH for target/13685
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Richard Henderson <rth at redhat dot com>
- Date: Thu, 7 Sep 2006 18:46:07 -0700
- Subject: Re: i386 PATCH for target/13685
- References: <4500B8C5.8070003@redhat.com>
On Thu, Sep 07, 2006 at 08:26:45PM -0400, Jason Merrill wrote:
> The testcase in 13685 breaks because -Os implies a smaller
> PREFERRED_STACK_BOUNDARY than SSE requires. This patch causes us to use
> the 128-bit boundary if SSE is enabled, which fixes the bug.
>
> Tested i686-pc-linux-gnu, applied to trunk.
>
I think it is a bad idea for -Os to change ABI. There are several bugs
open because of it. You can have a program compiled with -Os calling
a library compiled with -msee. The program will crash since -Os
uses a different ABI. The easiest way to fix is for -Os not to change
the ABI automatically.
H.J.