From 4a2a1c11f1f128b6f641f326d09d05b25ab89e98 Mon Sep 17 00:00:00 2001 From: ebotcazou Date: Mon, 19 Nov 2007 06:27:31 +0000 Subject: 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 --- gcc/testsuite/gcc.dg/pr33007.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/testsuite/gcc.dg/pr33007.c') 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) -- cgit v1.2.1