diff options
author | Richard Sandiford <r.sandiford@uk.ibm.com> | 2010-01-16 12:14:09 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2010-01-16 12:14:09 +0000 |
commit | 636cf8b1f93f6e2fe66e9b25ebe9555ed93d538e (patch) | |
tree | f346fc01f4a2485fda22909adcf915a88470d975 /gcc/configure | |
parent | 7647c8412acec7c838ad4e5a813e331e099451d7 (diff) | |
download | gcc-636cf8b1f93f6e2fe66e9b25ebe9555ed93d538e.zip gcc-636cf8b1f93f6e2fe66e9b25ebe9555ed93d538e.tar.gz gcc-636cf8b1f93f6e2fe66e9b25ebe9555ed93d538e.tar.bz2 |
configure.ac (HAVE_AS_REF): New C macro.
gcc/
* configure.ac (HAVE_AS_REF): New C macro.
* configure: Regenerate.
* config.in: Likewise.
* collect2.c (main): Only postpone SCAN_DWEH to the second pass
if HAVE_AS_REF.
* config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
if HAVE_AS_REF.
From-SVN: r155961
Diffstat (limited to 'gcc/configure')
-rwxr-xr-x | gcc/configure | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/gcc/configure b/gcc/configure index c150ee0..d6c8dc4 100755 --- a/gcc/configure +++ b/gcc/configure @@ -23630,6 +23630,50 @@ if test $gcc_cv_as_powerpc_tls_markers = yes; then $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h fi + + case $target in + *-*-aix*) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5 +$as_echo_n "checking assembler for .ref support... " >&6; } +if test "${gcc_cv_as_aix_ref+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + gcc_cv_as_aix_ref=no + if test $in_tree_gas = yes; then + if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + ` + then : +fi + elif test x$gcc_cv_as != x; then + echo ' .csect stuff[rw] + stuff: + .long 1 + .extern sym + .ref sym + ' > 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_aix_ref=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_aix_ref" >&5 +$as_echo "$gcc_cv_as_aix_ref" >&6; } +if test $gcc_cv_as_aix_ref = yes; then + +$as_echo "#define HAVE_AS_REF 1" >>confdefs.h + +fi + ;; + esac ;; mips*-*-*) |