]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Pass --32 to GNU assembler for .long foo@GOTOFF check
authorH.J. Lu <hongjiu.lu@intel.com>
Wed, 12 Feb 2014 16:38:50 +0000 (16:38 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Wed, 12 Feb 2014 16:38:50 +0000 (08:38 -0800)
Backport from mainline
PR target/60151
* configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU
assembler.

From-SVN: r207733

gcc/ChangeLog
gcc/configure
gcc/configure.ac

index 495d1ccc232eaadb6c9bfe57dda0111762fd8cb6..b0e7d8907d7cd74dea06aeed3731a09fc5981c88 100644 (file)
@@ -1,3 +1,13 @@
+2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+       Backport from mainline
+       2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
+                   Uros Bizjak  <ubizjak@gmail.com>
+
+       PR target/60151
+       * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU
+       assembler.
+
 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
 
        PR rtl-optimization/60116
index fdfe5aa7a762ed61c9e99c793996d0c2a7cdff0e..ee47cab357529e0168265517dd4e00bed75b0dd5 100755 (executable)
 
     # 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 :
@@ -24797,7 +24801,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=$?
index 6bbfa389bb8f674537758259ae517c3e899b2fae..e7332d349e086adbb705ad6140e5646754a9d144 100644 (file)
@@ -3761,8 +3761,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