Hi,

I checked in this patch as an obvious fix to handle -mx32 like -m64.
Tested on Linux/ia32 with

--enable-targets=all --with-multilib-list=m32,m64,mx32

Thanks.

H.J.
--
Index: libgomp/configure.tgt
===================================================================
--- libgomp/configure.tgt       (revision 186048)
+++ libgomp/configure.tgt       (working copy)
@@ -59,7 +59,7 @@ if test $enable_linux_futex = yes; then
     i[456]86-*-linux*)
        config_path="linux/x86 linux posix"
        case " ${CC} ${CFLAGS} " in
-         *" -m64 "*)
+         *" -m64 "*|*" -mx32 "*)
            ;;
          *)
            if test -z "$with_arch"; then
Index: libgomp/ChangeLog
===================================================================
--- libgomp/ChangeLog   (revision 186048)
+++ libgomp/ChangeLog   (working copy)
@@ -1,3 +1,8 @@
+2012-03-31  H.J. Lu  <hongjiu...@intel.com>
+
+       PR bootstrap/52812
+       * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
+
 2012-03-22  Jakub Jelinek  <ja...@redhat.com>
 
        PR middle-end/52547
Index: libitm/configure.tgt
===================================================================
--- libitm/configure.tgt        (revision 186048)
+++ libitm/configure.tgt        (working copy)
@@ -53,7 +53,7 @@ case "${target_cpu}" in
 
   i[3456]86)
        case " ${CC} ${CFLAGS} " in
-         *" -m64 "*)
+         *" -m64 "*|*" -mx32 "*)
            ;;
          *)
            if test -z "$with_arch"; then
Index: libitm/ChangeLog
===================================================================
--- libitm/ChangeLog    (revision 186048)
+++ libitm/ChangeLog    (working copy)
@@ -1,3 +1,8 @@
+2012-03-31  H.J. Lu  <hongjiu...@intel.com>
+
+       PR bootstrap/52812
+       * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
+
 2012-03-16  Bernhard Reutner-Fischer  <al...@gcc.gnu.org>
 
        * testsuite/lib/libitm.exp: load fortran-modules.exp

Reply via email to