]> Savannah Git Hosting - gnulib.git/commitdiff
Fix distinction of 32-bit/64-bit mode with xlc 13.1.3 on AIX.
authorBruno Haible <bruno@clisp.org>
Mon, 15 Feb 2021 02:41:12 +0000 (03:41 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 15 Feb 2021 02:41:12 +0000 (03:41 +0100)
* m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI, gl_HOST_CPU_C_ABI_32BIT):
Test __LP64__ instead of _ARCH_PPC64.
* m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
* lib/stddef.in.h: Likewise.

ChangeLog
lib/stddef.in.h
m4/host-cpu-c-abi.m4
m4/lib-ld.m4

index 5df08e2ab1e10363f5244cc104ccf5f2fc5e90eb..9b357957c4123feb6a178ea51da020cd39452bde 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2021-02-14  Bruno Haible  <bruno@clisp.org>
+
+       Fix distinction of 32-bit/64-bit mode with xlc 13.1.3 on AIX.
+       * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI, gl_HOST_CPU_C_ABI_32BIT):
+       Test __LP64__ instead of _ARCH_PPC64.
+       * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
+       * lib/stddef.in.h: Likewise.
+
 2021-02-13  Ozkan Sezer  <sezeroz@gmail.com>
 
        lib-symbol-visibility: Make it work with -Wmissing-prototypes.
index 638589274fbc12c294ebef6abd5d577b5c09c202..ba6f90360ab9f1b83d1e4f088a9ea201faca63c5 100644 (file)
@@ -51,7 +51,7 @@
 
 /* On AIX 7.2, with xlc in 64-bit mode, <stddef.h> defines max_align_t to a
    type with alignment 4, but 'long' has alignment 8.  */
-#  if defined _AIX && defined _ARCH_PPC64
+#  if defined _AIX && defined __LP64__
 #   if !GNULIB_defined_max_align_t
 #    ifdef _MAX_ALIGN_T
 /* /usr/include/stddef.h has already defined max_align_t.  Override it.  */
index 7dc830eff6f4100101a3aeb8a63b0323dc7352b8..64e28b1d34ae5bcfd64f24ed6495eae7519e7462 100644 (file)
@@ -1,4 +1,4 @@
-# host-cpu-c-abi.m4 serial 13
+# host-cpu-c-abi.m4 serial 14
 dnl Copyright (C) 2002-2021 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -211,7 +211,7 @@ changequote([,])dnl
          # be generating 64-bit code.
          AC_COMPILE_IFELSE(
            [AC_LANG_SOURCE(
-              [[#if defined __powerpc64__ || defined _ARCH_PPC64
+              [[#if defined __powerpc64__ || defined __LP64__
                  int ok;
                 #else
                  error fail
@@ -605,7 +605,7 @@ changequote([,])dnl
            # be generating 64-bit code.
            AC_COMPILE_IFELSE(
              [AC_LANG_SOURCE(
-                [[#if defined __powerpc64__ || defined _ARCH_PPC64
+                [[#if defined __powerpc64__ || defined __LP64__
                    int ok;
                   #else
                    error fail
index aa07cb4bc61deb2b60fcc15467ec25653abbc06f..076358d5d5c1a8e034e1c893259dc38286e55b27 100644 (file)
@@ -1,4 +1,4 @@
-# lib-ld.m4 serial 9
+# lib-ld.m4 serial 10
 dnl Copyright (C) 1996-2003, 2009-2021 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -122,7 +122,7 @@ else
       *-*-aix*)
         AC_COMPILE_IFELSE(
           [AC_LANG_SOURCE(
-             [[#if defined __powerpc64__ || defined _ARCH_PPC64
+             [[#if defined __powerpc64__ || defined __LP64__
                 int ok;
                #else
                 error fail