diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2006-01-25 18:31:56 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2006-01-25 18:31:56 +0000 |
commit | f3c2752caa931a25ffe68f7de801ea5454091da7 (patch) | |
tree | 74a2100c375ba5def4487bb8240d2f9391981578 /m4 | |
parent | 3423599809f4587ddae77531ec47c450f6da89ca (diff) | |
download | coreutils-f3c2752caa931a25ffe68f7de801ea5454091da7.tar.xz |
(AC_HEADER_STDBOOL): Add some comments.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/stdbool.m4 | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/m4/stdbool.m4 b/m4/stdbool.m4 index 162f1dfc8..9d423d9d1 100644 --- a/m4/stdbool.m4 +++ b/m4/stdbool.m4 @@ -1,6 +1,6 @@ # Check for stdbool.h that conforms to C99. -dnl Copyright (C) 2002-2005 Free Software Foundation, Inc. +dnl Copyright (C) 2002-2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -77,7 +77,7 @@ AC_DEFUN([AC_HEADER_STDBOOL], #if defined __xlc__ || __GNUC__ /* 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>. + http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html This test is not quite right, since xlc is allowed to reject this program, as the initializer for xlcbug is not one of the forms that C requires support for. @@ -86,10 +86,17 @@ AC_DEFUN([AC_HEADER_STDBOOL], 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. */ + our stdbool.h substitute should suffice. We also test + this with GCC, where it should work, 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); #endif + /* Catch a bug in an HP-UX C compiler. See + http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html + http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html + */ _Bool q = true; _Bool *pq = &q; ], |