[Bug target/98482] -mfentry creates invalid call for -mcmodel=large

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jan 8 14:48:04 GMT 2021


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

--- Comment #12 from CVS 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:76be18f442948d1a4bc49a7d670b07097f9e5983

commit r11-6552-g76be18f442948d1a4bc49a7d670b07097f9e5983
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Fri Jan 8 05:20:19 2021 -0800

    x86-64: Use R10 and R11 for profiling large model with PIC

    For NO_PROFILE_COUNTERS targets, R11 is a scratch register.  We can use
    R10 and R11 to call mcount in large model with PIC.

    gcc/

            PR target/98482
            * config/i386/i386.c (x86_function_profiler): Use R10 and R11
            to call mcount in large model with PIC for NO_PROFILE_COUNTERS
            targets.

    gcc/testsuite/

            PR target/98482
            * gcc.target/i386/pr98482-2.c: Updated.


More information about the Gcc-bugs mailing list