re PR target/28621 (SIGSEGV in set_fast_math () at -Os)
authorJan Hubicka <jh@suse.cz>
Fri, 25 Aug 2006 20:39:48 +0000 (22:39 +0200)
committerPaul Brook <pbrook@gcc.gnu.org>
Fri, 25 Aug 2006 20:39:48 +0000 (20:39 +0000)
2006-08-25  Jan Hubicka  <jh@suse.cz>

PR target/28621
* config/i386/crtfastmath.c (set_fast_math): Force stack alignment.

From-SVN: r116431

gcc/ChangeLog
gcc/config/i386/crtfastmath.c

index 81bc0d7ed9e95a1a6bf6eb84ed3600ebba8c469e..865d0156f9ff6e1d6be6942fe11ac37424bec690 100644 (file)
@@ -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
index fad1d574816d7e516119b170f36454353f8d1cc6..08ddaffd64a41baf71488945dfdf5bfa806d87cf 100644 (file)
 #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__