summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr33007.c
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2007-11-19 06:27:31 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2007-11-19 06:27:31 +0000
commit4a2a1c11f1f128b6f641f326d09d05b25ab89e98 (patch)
tree1e272b2a1434330c1d37940c486411e9cb30b2a8 /gcc/testsuite/gcc.dg/pr33007.c
parent0582fc632a4f4d9fd301842078df56f110b0baf8 (diff)
downloadgcc-4a2a1c11f1f128b6f641f326d09d05b25ab89e98.tar.gz
PR tree-optimization/34036
* opts.c (set_fast_math_flags): Do not set flags in common with set_unsafe_math_optimizations_flags, invoke it directly. (set_unsafe_math_optimizations_flags): Unset flag_trapping_math and flag_signed_zeros. * toplev.c (process_options): Force flag_associative_math to 0 and warn, if it is set and either flag_trapping_math or flag_signed_zeros is set too. * doc/invoke.texi (Optimize Options): Document the new behavior of -funsafe-math-optimizations, that -fassociative-math requires both -fno-signed-zeros and -fno-trapping-math and make it clear that -fno-trapping-math requires -fno-signaling-nans. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130286 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr33007.c')
-rw-r--r--gcc/testsuite/gcc.dg/pr33007.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr33007.c b/gcc/testsuite/gcc.dg/pr33007.c
index b1fc4289be5..26b22fdd3e1 100644
--- a/gcc/testsuite/gcc.dg/pr33007.c
+++ b/gcc/testsuite/gcc.dg/pr33007.c
@@ -1,5 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O -ffast-math -ftrapping-math" } */
+/* { dg-warning "-fassociative-math disabled" "" { target *-*-* } 1 } */
long
foo (int i)