https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122325

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <[email protected]>:

https://gcc.gnu.org/g:f35ddc7e38e375bcdf9b753b0021fad99ae6e991

commit r16-4655-gf35ddc7e38e375bcdf9b753b0021fad99ae6e991
Author: Richard Biener <[email protected]>
Date:   Mon Oct 20 10:20:18 2025 +0200

    Cleanup flag_complex_method further

    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.

            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.

Reply via email to