[PATCH] Workaround more _Bool problems on HP-UX

John David Anglin dave@hiauly1.hia.nrc.ca
Fri Jan 23 18:12:00 GMT 2004


> 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)



More information about the Gcc-patches mailing list