summaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-03 20:57:31 +0000
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-03 20:57:31 +0000
commit5466f589d34436774d3c0e07a0c2345286b1770d (patch)
treeda5fba2f01a46c7f97234721542e808b855bd505 /gcc/opts.c
parent390c9ebb553a4998e656fbfee4d2d530c7e0692e (diff)
downloadgcc-5466f589d34436774d3c0e07a0c2345286b1770d.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71032 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/opts.c')
-rw-r--r--gcc/opts.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/gcc/opts.c b/gcc/opts.c
index 24741da5588..fe8d28f5604 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -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. */