aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRevital Eres <eres@il.ibm.com>2008-01-17 10:19:58 +0000
committerRevital Eres <revitale@gcc.gnu.org>2008-01-17 10:19:58 +0000
commit57c8cf5d5b14a02a44e6c896c7677e38027f2937 (patch)
tree683c581e7991ea6e2da4d8d4f972f5b7dda49514
parent1c8bcdf715b0475effdd0cc2c27d461c3ce5540f (diff)
downloadgcc-57c8cf5d5b14a02a44e6c896c7677e38027f2937.zip
gcc-57c8cf5d5b14a02a44e6c896c7677e38027f2937.tar.gz
gcc-57c8cf5d5b14a02a44e6c896c7677e38027f2937.tar.bz2
Fix pr30957-1.c testcase
From-SVN: r131593
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/pr30957-1.c10
2 files changed, 12 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index c86bb45..e379da0 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-17 Revital Eres <eres@il.ibm.com>
+
+ PR30957
+ * gcc.dg/pr30957-1.c: Always xfail and add noinline attribute.
+
2008-01-17 Paul Thomas <pault@gcc.gnu.org>
PR fortran/34429
diff --git a/gcc/testsuite/gcc.dg/pr30957-1.c b/gcc/testsuite/gcc.dg/pr30957-1.c
index 5600ee9..44cdf9d 100644
--- a/gcc/testsuite/gcc.dg/pr30957-1.c
+++ b/gcc/testsuite/gcc.dg/pr30957-1.c
@@ -1,13 +1,17 @@
-/* { dg-do run { xfail vax-*-* powerpc-*-*spe } } */
+/* { dg-do run { xfail *-*-* } } */
/* We don't (and don't want to) perform this optimisation on soft-float
- targets, where each addition is a library call. */
+ targets, where each addition is a library call. This test requires
+ -fassociative-math for enabling the variable-expansion as well as
+ -fsigned-zeros for honoring the sign of zero; but
+ they can not co-exist; also under -funsafe-math-optimizations, so we
+ expect it to fail. */
/* { dg-require-effective-target hard_float } */
/* { dg-options "-O2 -funroll-loops -funsafe-math-optimizations -fvariable-expansion-in-unroller -dL" } */
extern void abort (void);
extern void exit (int);
-float
+float __attribute__((noinline))
foo (float d, int n)
{
unsigned i;