This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Workaround more _Bool problems on HP-UX
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: roger at eyesopen dot com (Roger Sayle)
- Cc: gcc-patches at gcc dot gnu dot org, zack at codesourcery dot com
- Date: Fri, 23 Jan 2004 13:01:02 -0500 (EST)
- Subject: Re: [PATCH] Workaround more _Bool problems on HP-UX
> The problem is our old friend the poorly implemented support for
> _Bool in HP's native compilers for HPUX.
Hmmm, I seem to have stdbool.h on HP-UX 11. I think that these were
provided by PHSS_24204 and PHSS_24205. I don't have it under HP-UX 10.20.
Thus, I believe that that HAVE_STDBOOL_H should be defined when bootstrapping
with a compiler that defines __STDC__. I'm wondering why your changes
to system.h come into play?
> *************** extern int snprintf (char *, size_t, con
> *** 528,537 ****
> #ifdef HAVE_STDBOOL_H
> # include <stdbool.h>
> #else
> ! # if !HAVE__BOOL
> ! typedef char _Bool;
> ! # endif
> ! # define bool _Bool
> # define true 1
> # define false 0
> #endif
> --- 528,534 ----
> #ifdef HAVE_STDBOOL_H
> # include <stdbool.h>
> #else
> ! # define bool unsigned char
> # define true 1
> # define false 0
> #endif
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)