aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/lib/java
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2025-04-10 14:26:41 +0200
committerUros Bizjak <ubizjak@gmail.com>2025-04-16 20:38:20 +0200
commit6b4569a3ebdd0df44d87d67a18272ec0b878f2ee (patch)
treec3f6dc1c6b8ba84063d3edd6b72a999262c5ca2a /libjava/classpath/lib/java
parent9b0ae0a8d70603960f3c578d261efd18c02b803f (diff)
downloadgcc-6b4569a3ebdd0df44d87d67a18272ec0b878f2ee.zip
gcc-6b4569a3ebdd0df44d87d67a18272ec0b878f2ee.tar.gz
gcc-6b4569a3ebdd0df44d87d67a18272ec0b878f2ee.tar.bz2
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 <ardb@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.
Diffstat (limited to 'libjava/classpath/lib/java')
0 files changed, 0 insertions, 0 deletions