Fix gcc.target/i386/sse-10.c for Solaris
Joseph S. Myers
joseph@codesourcery.com
Tue Jan 13 15:32:00 GMT 2009
This patch fixes
FAIL: gcc.target/i386/sse-10.c (test for excess errors)
for i686-solaris2.10 -m64, the excess error being:
sse-10.c:1: warning: unwind tables currently require either a frame pointer or -maccumulate-outgoing-args for correctness
The problem is that Solaris 10 defaults to -momit-leaf-frame-pointer
when optimizing, even with -fno-omit-frame-pointer, and the fix is to
pass -mno-omit-leaf-frame-pointer.
Tested with cross to i686-solaris2.10. OK to commit?
2009-01-13 Mark Mitchell <mark@codesourcery.com>
* gcc.target/i386/sse-10.c: Pass -mno-omit-leaf-frame-pointer.
Index: gcc/testsuite/gcc.target/i386/sse-10.c
===================================================================
--- gcc/testsuite/gcc.target/i386/sse-10.c (revision 143161)
+++ gcc/testsuite/gcc.target/i386/sse-10.c (working copy)
@@ -1,6 +1,6 @@
/* PR 17930 */
/* { dg-do run } */
-/* { dg-options "-O1 -msse2 -mfpmath=sse -mno-accumulate-outgoing-args -fno-omit-frame-pointer" } */
+/* { dg-options "-O1 -msse2 -mfpmath=sse -mno-accumulate-outgoing-args -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer" } */
/* { dg-options "-O1 -msse2 -mfpmath=sse -fno-omit-frame-pointer" { target *-*-mingw* *-*-cygwin* } } */
#include "sse2-check.h"
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Gcc-patches
mailing list