diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2011-05-27 15:45:56 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2011-05-27 15:45:56 +0000 |
commit | 8950516e0b1ef0bd63acffda8e81ec85f982d0d7 (patch) | |
tree | 6959c1008e95bad5b7bbf23e9a75513970e5d619 /gcc/configure | |
parent | fd5dbe4f5ecf6c92b3db9f323c479ad1015497e9 (diff) | |
download | gcc-8950516e0b1ef0bd63acffda8e81ec85f982d0d7.zip gcc-8950516e0b1ef0bd63acffda8e81ec85f982d0d7.tar.gz gcc-8950516e0b1ef0bd63acffda8e81ec85f982d0d7.tar.bz2 |
configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Uros Bizjak <ubizjak@gmail.com>
* configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
(HAVE_AS_IX86_TLSGDPTL): Define.
(gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
(HAVE_AS_IX86_TLSLDMPLT): Define.
* configure: Regenerate.
* config.in: Regenerate.
* config/i386/i386.c (ix86_print_operand): Handle code 'p'.
* config/i386/i386.md (*tls_global_dynamic_32_gnu): If
TARGET_SUN_TLS, use @tlsgdplt or @plt.
(*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
(*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
@tlsldmplt or @plt.
(*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
Co-Authored-By: Uros Bizjak <ubizjak@gmail.com>
From-SVN: r174340
Diffstat (limited to 'gcc/configure')
-rwxr-xr-x | gcc/configure | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/gcc/configure b/gcc/configure index 274af3e..0873e98 100755 --- a/gcc/configure +++ b/gcc/configure @@ -24086,6 +24086,68 @@ $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5 +$as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; } +if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + gcc_cv_as_ix86_tlsgdplt=no + if test x$gcc_cv_as != x; then + echo 'call tls_gd@tlsgdplt' > conftest.s + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 + (eval $ac_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; } + then + gcc_cv_as_ix86_tlsgdplt=yes + else + echo "configure: failed program was" >&5 + cat conftest.s >&5 + fi + rm -f conftest.o conftest.s + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5 +$as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; } +if test $gcc_cv_as_ix86_tlsgdplt = yes; then + +$as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5 +$as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; } +if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + gcc_cv_as_ix86_tlsldmplt=no + if test x$gcc_cv_as != x; then + echo 'call tls_ld@tlsldmplt' > conftest.s + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 + (eval $ac_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; } + then + gcc_cv_as_ix86_tlsldmplt=yes + else + echo "configure: failed program was" >&5 + cat conftest.s >&5 + fi + rm -f conftest.o conftest.s + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5 +$as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; } +if test $gcc_cv_as_ix86_tlsldmplt = yes; then + +$as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h + +fi + ;; ia64*-*-*) |