-
- Downloads
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.
Showing
- gcc/config.in 7 additions, 0 deletionsgcc/config.in
- gcc/config/i386/predicates.md 5 additions, 1 deletiongcc/config/i386/predicates.md
- gcc/configure 68 additions, 0 deletionsgcc/configure
- gcc/configure.ac 44 additions, 0 deletionsgcc/configure.ac
- gcc/testsuite/gcc.target/i386/apx-ndd-tls-1b.c 9 additions, 0 deletionsgcc/testsuite/gcc.target/i386/apx-ndd-tls-1b.c
- gcc/testsuite/lib/target-supports.exp 48 additions, 0 deletionsgcc/testsuite/lib/target-supports.exp
Loading
Please register or sign in to comment