https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119386
--- Comment #62 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Uros Bizjak <u...@gcc.gnu.org>: https://gcc.gnu.org/g:203bce172aba0f09cea8a7853403c99956674b6a commit r14-11648-g203bce172aba0f09cea8a7853403c99956674b6a Author: Ard Biesheuvel <a...@kernel.org> Date: Thu Apr 10 14:26:41 2025 +0200 i386: Enable -mnop-mcount for -fpic with PLTs [PR119386] -mnop-mcount can be trivially enabled for -fPIC codegen as long as PLTs are being used, given that the instruction encodings are identical, only the target may resolve differently depending on how the linker decides to incorporate the object file. So relax the option check, and add a test to ensure that 5-byte NOPs are emitted when -mnop-mcount is being used. Signed-off-by: Ard Biesheuvel <a...@kernel.org> gcc/ChangeLog: PR target/119386 * config/i386/i386-options.cc: Permit -mnop-mcount when using -fpic with PLTs. gcc/testsuite/ChangeLog: PR target/119386 * gcc.target/i386/pr119386-3.c: New test. (cherry picked from commit 6b4569a3ebdd0df44d87d67a18272ec0b878f2ee)