aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2007-01-19 19:35:22 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2007-01-19 19:35:22 +0000
commitdb02da79174dea480aa4217dbe7afd3d3b8364d1 (patch)
treee158e5c13ab326a2c00f9dd76f5137fb2f592973 /gcc/opts.c
parentd88c64564e9c9c57bea4c6ce15fd400f589f9de3 (diff)
downloadgcc-db02da79174dea480aa4217dbe7afd3d3b8364d1.zip
gcc-db02da79174dea480aa4217dbe7afd3d3b8364d1.tar.gz
gcc-db02da79174dea480aa4217dbe7afd3d3b8364d1.tar.bz2
common.opt (fsigned-zeros): New command line option.
* common.opt (fsigned-zeros): New command line option. * flags.h (HONOR_SIGNED_ZEROS): Control via flag_signed_zeros instead of flag_unsafe_math_optimizations. * opts.c (set_fast_math_flags): The -ffast-math command line option implies -fno-signed-zeros. (fast_math_flags_set_p): Likewise. * doc/invoke.texi: Document new -fno-signed-zeros option, and update the documentation of -ffast-math appropriately. Wrap long lines. * gcc.dg/pr30172-1.c: Specify the -fno-signed-zeros command line option instead of -funsafe-math-optimizations. From-SVN: r120978
Diffstat (limited to 'gcc/opts.c')
-rw-r--r--gcc/opts.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/opts.c b/gcc/opts.c
index 788c2ce..6720af1 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -1076,6 +1076,7 @@ set_fast_math_flags (int set)
flag_trapping_math = !set;
flag_unsafe_math_optimizations = set;
flag_finite_math_only = set;
+ flag_signed_zeros = !set;
flag_errno_math = !set;
if (set)
{
@@ -1092,6 +1093,7 @@ fast_math_flags_set_p (void)
return (!flag_trapping_math
&& flag_unsafe_math_optimizations
&& flag_finite_math_only
+ && !flag_signed_zeros
&& !flag_errno_math);
}