diff options
author | Jan Hubicka <jh@suse.cz> | 2006-08-25 22:39:48 +0200 |
---|---|---|
committer | Paul Brook <pbrook@gcc.gnu.org> | 2006-08-25 20:39:48 +0000 |
commit | 02709c7f68600ee88d126671b06012f8e90769b5 (patch) | |
tree | b3b575a9ef86e73fef06c40c68fe64f9711ea03e | |
parent | 90d3ff1c724fa47fb5d348f9f9eb0d12c1fda06b (diff) | |
download | gcc-02709c7f68600ee88d126671b06012f8e90769b5.zip gcc-02709c7f68600ee88d126671b06012f8e90769b5.tar.gz gcc-02709c7f68600ee88d126671b06012f8e90769b5.tar.bz2 |
re PR target/28621 (SIGSEGV in set_fast_math () at -Os)
2006-08-25 Jan Hubicka <jh@suse.cz>
PR target/28621
* config/i386/crtfastmath.c (set_fast_math): Force stack alignment.
From-SVN: r116431
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/i386/crtfastmath.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 81bc0d7..865d015 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2006-08-25 Jan Hubicka <jh@suse.cz> + + PR target/28621 + * config/i386/crtfastmath.c (set_fast_math): Force stack alignment. + 2006-08-25 Alan Modra <amodra@bigpond.net.au> PR target/27075 diff --git a/gcc/config/i386/crtfastmath.c b/gcc/config/i386/crtfastmath.c index fad1d57..08ddaff 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__ |