diff options
author | Richard Henderson <rth@redhat.com> | 2005-02-24 01:24:17 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2005-02-24 01:24:17 -0800 |
commit | c74636694956af8e2fe74bbeddf72891b9b5cfb1 (patch) | |
tree | 42cf31816d33415d61bb35885b0514d50dcdc5b0 /gcc/c-opts.c | |
parent | d962e37d43ae054bc723d1940f77118eeb168ac3 (diff) | |
download | gcc-c74636694956af8e2fe74bbeddf72891b9b5cfb1.zip gcc-c74636694956af8e2fe74bbeddf72891b9b5cfb1.tar.gz gcc-c74636694956af8e2fe74bbeddf72891b9b5cfb1.tar.bz2 |
re PR middle-end/18902 (Naive (default) complex division algorithm)
PR middle-end/18902
* c-opts.c (c_common_post_options): Set flag_complex_method to 2
for c99.
* common.opt (fcx-limited-range): New.
* opts.c (set_fast_math_flags): Set flag_cx_limited_range.
* toplev.c (flag_complex_method): Initialize to 1.
(process_options): Set flag_complex_method to 0 if
flag_cx_limited_range.
* doc/invoke.texi (-fcx-limited-range): New.
From-SVN: r95493
Diffstat (limited to 'gcc/c-opts.c')
-rw-r--r-- | gcc/c-opts.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/c-opts.c b/gcc/c-opts.c index 36c3f5b..575ff4d 100644 --- a/gcc/c-opts.c +++ b/gcc/c-opts.c @@ -978,6 +978,11 @@ c_common_post_options (const char **pfilename) if (warn_missing_format_attribute && !warn_format) warning ("-Wmissing-format-attribute ignored without -Wformat"); + /* C99 requires special handling of complex multiplication and division; + -ffast-math and -fcx-limited-range are handled in process_options. */ + if (flag_isoc99) + flag_complex_method = 2; + if (flag_preprocess_only) { /* Open the output now. We must do so even if flag_no_output is |