diff options
author | amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-03-31 03:11:34 +0000 |
---|---|---|
committer | amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-03-31 03:11:34 +0000 |
commit | d46ea8788345afc238324a5129b615ac5193d84c (patch) | |
tree | e40cb055451edf78dd0f574e269ceae291ee73bf /gcc/configure | |
parent | e32f6d2b6b3ff674b19ed18c244ca3db3784e2e5 (diff) | |
download | gcc-d46ea8788345afc238324a5129b615ac5193d84c.tar.gz |
* doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
* configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
* configure: Regenerate.
* config.in: Regenerate.
* config/rs6000/rs6000.opt (mtls-markers): Add.
* config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
* config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
(tls_ld_aix, tls_ld_sysv): Likewise.
(tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
(tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145330 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure')
-rwxr-xr-x | gcc/configure | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/gcc/configure b/gcc/configure index e74fdf822ba..914919717ea 100755 --- a/gcc/configure +++ b/gcc/configure @@ -23329,6 +23329,43 @@ cat >>confdefs.h <<\_ACEOF _ACEOF fi + + echo "$as_me:$LINENO: checking assembler for tls marker support" >&5 +echo $ECHO_N "checking assembler for tls marker support... $ECHO_C" >&6 +if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + gcc_cv_as_powerpc_tls_markers=no + if test $in_tree_gas = yes; then + if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0` + then gcc_cv_as_powerpc_tls_markers=yes +fi + elif test x$gcc_cv_as != x; then + echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } + then + gcc_cv_as_powerpc_tls_markers=yes + else + echo "configure: failed program was" >&5 + cat conftest.s >&5 + fi + rm -f conftest.o conftest.s + fi +fi +echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_tls_markers" >&5 +echo "${ECHO_T}$gcc_cv_as_powerpc_tls_markers" >&6 +if test $gcc_cv_as_powerpc_tls_markers = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_AS_TLS_MARKERS 1 +_ACEOF + +fi ;; mips*-*-*) |