gcc/
authortschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 Oct 2013 10:41:22 +0000 (10:41 +0000)
committertschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 Oct 2013 10:41:22 +0000 (10:41 +0000)
* acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags
overrides.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203410 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/acinclude.m4
gcc/configure

index 07f8daf..18dc504 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 e68be77..6798d6f 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 2ac0347..4d12a21 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"