On Mon, Oct 27, 2025 at 01:35:12PM +0100, Richard Biener wrote:
> On Mon, 20 Oct 2025, Richard Biener wrote:
>
> > PR122325 reports that -ffast-math no longer enables -fcx-limited-range.
> > This is due to the weird handling of flag_default_complex_method which
> > the following simply removes. Frontends that wish to impose a default
> > evaluation method that is not -fcx-fortran-rules (the current default
> > of flag_default_complex_method) need to imposed that in ther
> > init_options_struct langhook which those requesting C std rules already
> > do and I'm adding that for the fortran frontend, explicitly requesting
> > fortran rules.
> >
> > Bootstrapped and tested on x86_64-unknown-linux-gnu. OK for trunk?
>
> Ping.
LGTM.
> > PR middle-end/122325
> > gcc/
> > * common.opt (flag_default_complex_method): Remove.
> > * opts.cc (init_options_struct): Default to fortran rules
> > for complex evaluations.
> > (finish_options): Remove (re-)instantiating of the frontend
> > default of the complex evaluation method.
> >
> > gcc/c-family/
> > * c-opts.cc (c_common_init_options_struct): Remove set of
> > flag_default_complex_method.
> >
> > gcc/go/
> > * go-lang.cc (go_langhook_init_options_struct): Remove set of
> > flag_default_complex_method.
> >
> > gcc/lto/
> > * lto-lang.cc (lto_init_options_struct): Remove set of
> > flag_default_complex_method.
> >
> > gcc/fortran/
> > * options.cc (gfc_init_options_struct): Set flag_complex_method
> > to fortran rules.
> >
> > gcc/testsuite/
> > * gcc.dg/complex-8.c: New testcase.
> > * gcc.dg/complex-9.c: Likewise.
Jakub