Hi, This patch removes the default initializing of flag_complex_method in the D front-end. D doesn't need C99-like requirements for complex multiply and divide, the default set by common.opt is sufficient enough.
Bootstrapped and regression tested on x86_64-linux-gnu/-m32/-mx32, and committed to mainline. Regards, Iain. --- gcc/d/ChangeLog: * d-lang.cc (d_init_options_struct): Don't set default flag_complex_method. --- gcc/d/d-lang.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/gcc/d/d-lang.cc b/gcc/d/d-lang.cc index 1a51c5e4b7c..0720cba1340 100644 --- a/gcc/d/d-lang.cc +++ b/gcc/d/d-lang.cc @@ -342,9 +342,6 @@ d_init_options_struct (gcc_options *opts) /* GCC options. */ opts->x_flag_exceptions = 1; - /* Avoid range issues for complex multiply and divide. */ - opts->x_flag_complex_method = 2; - /* Unlike C, there is no global `errno' variable. */ opts->x_flag_errno_math = 0; opts->frontend_set_flag_errno_math = true; -- 2.27.0