aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-opts.c
diff options
context:
space:
mode:
authorPaolo Carlini <pcarlini@suse.de>2007-07-11 10:23:56 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2007-07-11 10:23:56 +0000
commit4ac1edaf7f28306a77649f5c6d5bed917b05b57e (patch)
treef35c5227cdb3592c88f12bcd0a72603215d9a3f6 /gcc/c-opts.c
parentc2979eaf57aab3dc4c9ee3481b7de1933c9a8633 (diff)
downloadgcc-4ac1edaf7f28306a77649f5c6d5bed917b05b57e.zip
gcc-4ac1edaf7f28306a77649f5c6d5bed917b05b57e.tar.gz
gcc-4ac1edaf7f28306a77649f5c6d5bed917b05b57e.tar.bz2
re PR middle-end/30482 (<complex> division by 0)
2007-07-11 Paolo Carlini <pcarlini@suse.de> PR middle-end/30482 * c-opts.c (c_common_post_options): Do not change flag_complex_method conditional to flag_isoc99. (c_common_init_options): Do it here, unconditionally. From-SVN: r126546
Diffstat (limited to 'gcc/c-opts.c')
-rw-r--r--gcc/c-opts.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/c-opts.c b/gcc/c-opts.c
index d0fafc6..3a958c6 100644
--- a/gcc/c-opts.c
+++ b/gcc/c-opts.c
@@ -232,6 +232,9 @@ c_common_init_options (unsigned int argc, const char **argv)
warn_pointer_arith = c_dialect_cxx ();
warn_write_strings = c_dialect_cxx();
+ /* By default, C99-like requirements for complex multiply and divide. */
+ flag_complex_method = 2;
+
deferred_opts = XNEWVEC (struct deferred_opt, argc);
result = lang_flags[c_language];
@@ -1138,11 +1141,6 @@ c_common_post_options (const char **pfilename)
if (warn_implicit_function_declaration == -1)
warn_implicit_function_declaration = flag_isoc99;
- /* 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 we're allowing C++0x constructs, don't warn about C++0x
compatibility problems. */
if (cxx_dialect == cxx0x)