This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]