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


Hi Dave,
> 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?

No, I don't have a stdbool.h in /usr/include on my PA system here:

adder% uname -a
HP-UX adder B.11.00 U 9000/785 2011244722 unlimited-user license
adder% what /usr/bin/cc
/usr/bin/cc:
        LINT B.11.11.06 CXREF B.11.11.06
        HP92453-01 B.11.11.06 HP C Compiler
         $   Sep  8 2000 23:13:51 $

I'm guessing this why were seeing different failures, you're using
the bool in <stdbool.h> and I'm tripping over the bugs in HP's _Bool.
Does the following test case also trigger the failure in your cc?

void foo(_Bool *ptr, _Bool val)
{
  *ptr |= ! val;
}

Roger
--


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