From d6b38d3cfe8dae30376fd3ea48ca2ab81853c56f Mon Sep 17 00:00:00 2001 From: pbrook Date: Fri, 25 Aug 2006 20:39:48 +0000 Subject: 2006-08-25 Jan Hubicka PR target/28621 * config/i386/crtfastmath.c (set_fast_math): Force stack alignment. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@116431 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/crtfastmath.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 81bc0d7ed9e..865d0156f9f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2006-08-25 Jan Hubicka + + PR target/28621 + * config/i386/crtfastmath.c (set_fast_math): Force stack alignment. + 2006-08-25 Alan Modra PR target/27075 diff --git a/gcc/config/i386/crtfastmath.c b/gcc/config/i386/crtfastmath.c index fad1d574816..08ddaffd64a 100644 --- a/gcc/config/i386/crtfastmath.c +++ b/gcc/config/i386/crtfastmath.c @@ -38,6 +38,12 @@ #define SSE (1 << 25) static void __attribute__((constructor)) +#ifndef __x86_64__ +/* The i386 ABI only requires 4-byte stack alignment, so this is neccessary + to make sure the fxsave struct gets correct alignment. + See PR27537 and PR28621. */ +__attribute__ ((force_align_arg_pointer)) +#endif set_fast_math (void) { #ifndef __x86_64__ -- cgit v1.2.3