[Bug target/113689] [11/12/13/14 Regression] wrong code with -fprofile -mcmodel=large when needing drap register since r11-6548

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Feb 6 19:03:01 GMT 2024


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

--- Comment #12 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <hjl@gcc.gnu.org>:

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

commit r14-8831-gf2a060820c24724bb48ee006d257c449e4d94b72
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Feb 6 10:57:24 2024 -0800

    x86-64: Return 10_REG if there is no scratch register

    If we can't find a scratch register for large model profiling, return
    R10_REG.

            PR target/113689
            * config/i386/i386.cc (x86_64_select_profile_regnum): Return
            R10_REG after sorry.


More information about the Gcc-bugs mailing list