diff options
author | Roger Sayle <roger@eyesopen.com> | 2003-09-03 20:57:31 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2003-09-03 20:57:31 +0000 |
commit | 039c3d42d54967fab2bf452db7133388882a4204 (patch) | |
tree | da5fba2f01a46c7f97234721542e808b855bd505 /gcc/opts.c | |
parent | b689848ffd7859ae06f14fe75ef770d1dc12d737 (diff) | |
download | gcc-039c3d42d54967fab2bf452db7133388882a4204.zip gcc-039c3d42d54967fab2bf452db7133388882a4204.tar.gz gcc-039c3d42d54967fab2bf452db7133388882a4204.tar.bz2 |
toplev.c (flag_rounding_math): New global variable.
* toplev.c (flag_rounding_math): New global variable.
(f_options): Add to the list of language independent options.
* flags.h (flag_rounding_math): Prototype here.
(HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
* common.opt (frounding-math): New common command line option.
* opts.c (common_handle_option): Handle OPT_frounding_math.
(set_fast_math_flags): -ffast-math clears flag_rounding_math.
* doc/invoke.texi: Document this new command line option.
From-SVN: r71032
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -1220,8 +1220,12 @@ common_handle_option (size_t scode, const char *arg, flag_rerun_loop_opt = value; break; + case OPT_frounding_math: + flag_rounding_math = value; + break; + case OPT_fsched_interblock: - flag_schedule_interblock= value; + flag_schedule_interblock = value; break; case OPT_fsched_spec: @@ -1547,7 +1551,10 @@ set_fast_math_flags (int set) flag_finite_math_only = set; flag_errno_math = !set; if (set) - flag_signaling_nans = 0; + { + flag_signaling_nans = 0; + flag_rounding_math = 0; + } } /* Return true iff flags are set as if -ffast-math. */ |