]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
authorThomas Schwinge <thomas@codesourcery.com>
Fri, 11 Oct 2013 10:41:22 +0000 (12:41 +0200)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Fri, 11 Oct 2013 10:41:22 +0000 (12:41 +0200)
gcc/
* acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags
overrides.

From-SVN: r203410

gcc/ChangeLog
gcc/acinclude.m4
gcc/configure

index 07f8daf312354923fcfb2fbb54edd26231ffffa4..18dc5048a2e1ec398db0856216b7041bf14f9e98 100644 (file)
@@ -1,3 +1,9 @@
+2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags
+       overrides.
+       * configure: Regenerate.
+
 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
 
        * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
index e68be77f5108953009bc7647c159ae123395fc27..6798d6fbc6a7bbff34677b56a0db947ab6233977 100644 (file)
@@ -444,8 +444,16 @@ AC_DEFUN([gcc_GAS_FLAGS],
 [AC_CACHE_CHECK([assembler flags], gcc_cv_as_flags,
 [ case "$target" in
   i[[34567]]86-*-linux*)
-    dnl Always pass --32 to ia32 Linux assembler.
-    gcc_cv_as_flags="--32"
+    dnl Override the default, which may be incompatible.
+    gcc_cv_as_flags=--32
+    ;;
+  x86_64-*-linux-gnux32)
+    dnl Override the default, which may be incompatible.
+    gcc_cv_as_flags=--x32
+    ;;
+  x86_64-*-linux*)
+    dnl Override the default, which may be incompatible.
+    gcc_cv_as_flags=--64
     ;;
   powerpc*-*-darwin*)
     dnl Always pass -arch ppc to assembler.
index 2ac03470bda00a928c501733c82ce215e395a6c8..4d12a2142d5bec2eea122fefa3baa54b17cb2d11 100755 (executable)
@@ -21760,7 +21760,13 @@ if test "${gcc_cv_as_flags+set}" = set; then :
 else
    case "$target" in
   i[34567]86-*-linux*)
-        gcc_cv_as_flags="--32"
+        gcc_cv_as_flags=--32
+    ;;
+  x86_64-*-linux-gnux32)
+        gcc_cv_as_flags=--x32
+    ;;
+  x86_64-*-linux*)
+        gcc_cv_as_flags=--64
     ;;
   powerpc*-*-darwin*)
         gcc_cv_as_flags="-arch ppc"