From: H.J. Lu Date: Wed, 12 Feb 2014 16:43:47 +0000 (+0000) Subject: Pass --32 to GNU assembler for .long foo@GOTOFF check X-Git-Tag: releases/gcc-4.7.4~254 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f661aa437d23e4e7f910ac6ab295ea9aa23d58f;p=thirdparty%2Fgcc.git Pass --32 to GNU assembler for .long foo@GOTOFF check Backport from mainline PR target/60151 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler. From-SVN: r207734 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index afff7fb66455..c727dafebd87 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2014-02-12 H.J. Lu + + Backport from mainline + 2014-02-12 H.J. Lu + Uros Bizjak + + PR target/60151 + * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU + assembler. + 2014-02-05 James Greenhalgh * doc/invoke.texi: Fix thinko introduced by previous revision. diff --git a/gcc/configure b/gcc/configure index 896e677ba180..0d8c5e71d1f6 100755 --- a/gcc/configure +++ b/gcc/configure @@ -24878,6 +24878,10 @@ fi # These two are used unconditionally by i386.[ch]; it is to be defined # to 1 if the feature is present, 0 otherwise. + as_ix86_gotoff_in_data_opt= + if test x$gas = xyes; then + as_ix86_gotoff_in_data_opt="--32" + fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5 $as_echo_n "checking assembler for GOTOFF in data... " >&6; } if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then : @@ -24894,7 +24898,7 @@ fi nop .data .long .L0@GOTOFF' > conftest.s - if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' + if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? diff --git a/gcc/configure.ac b/gcc/configure.ac index 13cb1a758bab..a78a1d76d2f7 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -3740,8 +3740,13 @@ foo: nop # These two are used unconditionally by i386.[ch]; it is to be defined # to 1 if the feature is present, 0 otherwise. + as_ix86_gotoff_in_data_opt= + if test x$gas = xyes; then + as_ix86_gotoff_in_data_opt="--32" + fi gcc_GAS_CHECK_FEATURE([GOTOFF in data], - gcc_cv_as_ix86_gotoff_in_data, [2,11,0],, + gcc_cv_as_ix86_gotoff_in_data, [2,11,0], + [$as_ix86_gotoff_in_data_opt], [ .text .L0: nop