intprops: port to older XL C
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 4 Nov 2016 04:34:58 +0000 (21:34 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 4 Nov 2016 04:35:26 +0000 (21:35 -0700)
Problem reported by Alexander Samoilov in:
http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00166.html
http://savannah.nongnu.org/bugs/?49448
* lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
Define to 1 only for XL C 12.1 or later, since this bug
occurs in XL C for AIX 6.0 but not in 12.1.

ChangeLog
lib/intprops.h

index fecb478060cbad8ada1f3083d06ba364b5d9b993..79495a59a09d017b39529983180bebd7113b7c11 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
+
+       intprops: port to older XL C
+       Problem reported by Alexander Samoilov in:
+       http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00166.html
+       http://savannah.nongnu.org/bugs/?49448
+       * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
+       Define to 1 only for XL C 12.1 or later, since this bug
+       occurs in XL C for AIX 6.0 but not in 12.1.
+
 2016-11-02  Pádraig Brady  <P@draigBrady.com>
 
        backupfile: initialize default suffix within the implementation
index 9734d0742b503e1e949e2b8abcaf122c3afdd839..716741adc548aee5002f07eeea62483a01ee21bd 100644 (file)
@@ -105,7 +105,8 @@ verify (TYPE_WIDTH (unsigned int) == UINT_WIDTH);
 
 /* Does the __typeof__ keyword work?  This could be done by
    'configure', but for now it's easier to do it by hand.  */
-#if (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
+#if (2 <= __GNUC__ \
+     || (1210 <= __IBMC__ && defined __IBM__TYPEOF__) \
      || (0x5110 <= __SUNPRO_C && !__STDC__))
 # define _GL_HAVE___TYPEOF__ 1
 #else