+2010-08-23 Eric Blake <eblake@redhat.com>
+
+ AC_HEADER_STDBOOL: avoid spurious clang failure
+ * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Drop gcc (and by
+ extension clang) check in favor of a gnulib test. Force failure,
+ rather than merely testing for a compiler extension.
+ * THANKS: Update.
+ Reported by Anders Kaseorg.
+
2010-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
doc: AIX sed dislikes indented comments.
Alfred M. Szmidt ams@gnu.org
Allan Caffee allan.caffee@gmail.com
Allan Clark allanc@chickenandporn.com
+Anders Kaseorg andersk@MIT.EDU
Andreas Buening andreas.buening@nexgo.de
Andreas Jaeger aj@suse.de
Andreas Schott schott@rzg.mpg.de
_Bool n[m];
char o[sizeof n == m * sizeof n[0] ? 1 : -1];
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
-# if defined __xlc__ || defined __GNUC__
+# if defined __xlc__
/* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
reported by James Lemley on 2005-10-05; see
http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
Let us hope that IBM fixes the xlc bug, and also adds
support for this kind of constant expression. In the
meantime, this test will reject xlc, which is OK, since
- our stdbool.h substitute should suffice. We also test
- this with GCC, where it should work, to detect more
+ the gnulib stdbool.h substitute should suffice. Gnulib
+ also tests this case in test-stdbool.c, to detect more
quickly whether someone messes up the test in the
future. */
char digs[] = "0123456789";
- int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
+ int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : 0);
# endif
/* Catch a bug in an HP-UX C compiler. See
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html