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

--- Comment #23 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Michael Matz <m...@gcc.gnu.org>:

https://gcc.gnu.org/g:96698551b8e19fc33637908190f121e039301993

commit r15-8236-g96698551b8e19fc33637908190f121e039301993
Author: Michael Matz <m...@suse.de>
Date:   Wed Nov 13 16:04:06 2024 +0100

    rs6000: Add -msplit-patch-nops (PR112980)

    as the bug report details some uses of -fpatchable-function-entry
    aren't happy with the "before" NOPs being inserted between global and
    local entry point on powerpc.  We want the before NOPs be in front
    of the global entry point.  That means that the patching NOPs aren't
    consecutive for dual entry point functions, but for these usecases
    that's not the problem.  But let us support both under the control
    of a new target option: -msplit-patch-nops.

            gcc/

            PR target/112980
            * config/rs6000/rs6000.opt (msplit-patch-nops): New option.
            * doc/invoke.texi (RS/6000 and PowerPC Options): Document it.
            * config/rs6000/rs6000.h (machine_function.stop_patch_area_print):
            New member.
            * config/rs6000/rs6000.cc (rs6000_print_patchable_function_entry):
            Emit split nops under control of that one.
            * config/rs6000/rs6000-logue.cc (rs6000_output_function_prologue):
            Add handling of split patch nops.

Reply via email to