diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2024-02-04 07:46:35 -0800 |
---|---|---|
committer | H.J. Lu <(no_default)> | 2024-02-23 06:00:20 -0800 |
commit | 7f2cf0c45f4ba7df4277cde4b1b7493cfc49a89d (patch) | |
tree | faeb706e7f45004131339e8fe42c1d669fd9f880 /gcc/fixed-value.h | |
parent | 9266d9fce2ca8ec704b932e8af7ab04432772c44 (diff) | |
download | gcc-7f2cf0c45f4ba7df4277cde4b1b7493cfc49a89d.zip gcc-7f2cf0c45f4ba7df4277cde4b1b7493cfc49a89d.tar.gz gcc-7f2cf0c45f4ba7df4277cde4b1b7493cfc49a89d.tar.bz2 |
x86-64: Check R_X86_64_CODE_6_GOTTPOFF support
If assembler and linker supports
add %reg1, name@gottpoff(%rip), %reg2
with R_X86_64_CODE_6_GOTTPOFF, we can generate it instead of
mov name@gottpoff(%rip), %reg2
add %reg1, %reg2
gcc/
* configure.ac (HAVE_AS_R_X86_64_CODE_6_GOTTPOFF): Defined as 1
if R_X86_64_CODE_6_GOTTPOFF is supported.
* config.in: Regenerated.
* configure: Likewise.
* config/i386/predicates.md (apx_ndd_add_memory_operand): Allow
UNSPEC_GOTNTPOFF if R_X86_64_CODE_6_GOTTPOFF is supported.
gcc/testsuite/
* gcc.target/i386/apx-ndd-tls-1b.c: New test.
* lib/target-supports.exp
(check_effective_target_code_6_gottpoff_reloc): New.
Diffstat (limited to 'gcc/fixed-value.h')
0 files changed, 0 insertions, 0 deletions