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

--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>:

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

commit r16-188-ge543eaa671d40868575385360d13ef37d87fb2a0
Author: Richard Biener <rguent...@suse.de>
Date:   Tue Feb 18 12:52:34 2025 +0100

    middle-end/60779 - LTO vs. -fcx-fortran-rules and -fcx-limited-range

    The following changes how flag_complex_method is managed towards
    being able to record that in the optimization set so we can stream
    and restore it per function.  Currently -fcx-fortran-rules and
    -fcx-limited-range are separate recorded options but saving/restoring
    does not restore flag_complex_method which is later used in the
    middle-end.

    The solution is to make -fcx-fortran-rules and -fcx-limited-range
    aliases of a new -fcx-method= switch that represents flag_complex_method
    directly so we can save and restore it.

            PR middle-end/60779
            * common.opt (fcx-method=): New, map to flag_complex_method.
            (Enum complex_method): New.
            (fcx-limited-range): Alias to -fcx-method=limited-range.
            (fcx-fortran-rules): Alias to -fcx-medhot=fortran.
            * ipa-inline-transform.cc (inline_call): Check flag_complex_method.
            * ipa-inline.cc (can_inline_edge_by_limits_p): Likewise.
            * opts.cc (finish_options): Adjust.
            (set_fast_math_flags): Likewise.
            * doc/invoke.texi (fcx-method=): Document.

            * gcc.dg/lto/pr60779_0.c: New testcase.
            * gcc.dg/lto/pr60779_1.c: Likewise.
  • [Bug lto/60779] -fcx-fortran-ru... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to