]> Savannah Git Hosting - gnulib.git/commitdiff
host-cpu-c-abi: Improve detection of MIPS ABI.
authorBruno Haible <bruno@clisp.org>
Sat, 19 Aug 2017 23:19:50 +0000 (01:19 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 19 Aug 2017 23:19:50 +0000 (01:19 +0200)
* m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
_MIPS_SIM.

ChangeLog
m4/host-cpu-c-abi.m4

index 916d63b481f080acb07f060d6668b9e71f56d323..eb71b1ad6f165dc3b9482ce264d4749728d188bf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-08-19  Bruno Haible  <bruno@clisp.org>
+
+       host-cpu-c-abi: Improve detection of MIPS ABI.
+       * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
+       _MIPS_SIM.
+
 2017-08-17  Bruno Haible  <bruno@clisp.org>
 
        hypot tests: Fix test failure on FreeBSD 11.0/x86.
index 01c5a666da542bfe4c952a75a18c3fbf81e551af..02f7b8a7d475eb9876d2f0e20c5de4308b78417f 100644 (file)
@@ -1,4 +1,4 @@
-# host-cpu-c-abi.m4 serial 6
+# host-cpu-c-abi.m4 serial 7
 dnl Copyright (C) 2002-2017 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -157,12 +157,12 @@ changequote([,])dnl
             yes
             #endif],
            [gl_cv_host_cpu_c_abi=mips64],
-           [# In the n32 ABI, _ABIN32 is defined, _ABIO32 is not defined, and
-            # _MIPS_SIM == _ABIN32.
-            # In the 32 ABI, _ABIO32 is defined, _ABIN32 is not defined, and
-            # _MIPS_SIM == _ABIO32.
+           [# In the n32 ABI, _ABIN32 is defined, _ABIO32 is not defined (but
+            # may later get defined by <sgidefs.h>), and _MIPS_SIM == _ABIN32.
+            # In the 32 ABI, _ABIO32 is defined, _ABIN32 is not defined (but
+            # may later get defined by <sgidefs.h>), and _MIPS_SIM == _ABIO32.
             AC_EGREP_CPP([yes],
-              [#if defined _ABIN32
+              [#if (_MIPS_SIM == _ABIN32)
                yes
                #endif],
               [gl_cv_host_cpu_c_abi=mipsn32],