diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2023-01-16 10:45:41 -0800 |
---|---|---|
committer | H.J. Lu <(no_default)> | 2023-01-16 14:11:12 -0800 |
commit | a396a123596d82d4a2f14dc43a382cb17826411c (patch) | |
tree | e26fc34f529a7ee5bdde5cd499ea2f501dee4a3e /gcc/fortran | |
parent | 2bf9bbfe5b377003a29d6560d69baa605382b895 (diff) | |
download | gcc-a396a123596d82d4a2f14dc43a382cb17826411c.zip gcc-a396a123596d82d4a2f14dc43a382cb17826411c.tar.gz gcc-a396a123596d82d4a2f14dc43a382cb17826411c.tar.bz2 |
x86: Disable -mforce-indirect-call for PIC in 32-bit mode
-mforce-indirect-call generates invalid instruction in 32-bit MI thunk
since there are no available scratch registers in 32-bit PIC mode.
Disable -mforce-indirect-call for PIC in 32-bit mode when generating
MI thunk.
gcc/
PR target/105980
* config/i386/i386.cc (x86_output_mi_thunk): Disable
-mforce-indirect-call for PIC in 32-bit mode.
gcc/testsuite/
PR target/105980
* g++.target/i386/pr105980.C: New test.
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions