diff options
author | Roger Sayle <roger@eyesopen.com> | 2007-01-19 19:35:22 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2007-01-19 19:35:22 +0000 |
commit | db02da79174dea480aa4217dbe7afd3d3b8364d1 (patch) | |
tree | e158e5c13ab326a2c00f9dd76f5137fb2f592973 /gcc/opts.c | |
parent | d88c64564e9c9c57bea4c6ce15fd400f589f9de3 (diff) | |
download | gcc-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); } |