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


 > From: Richard Henderson <rth@redhat.com>
 > 
 > > Something like this?  (Suitably polished and propagated.)
 > > If so, what GCC_VERSION should it be activated on?  (3.0?)
 > 
 > Something like that.  I don't know what version.  In theory, we could
 > use _Bool for any proper C99 compiler, though the HP experience makes
 > me wonder how we can identify such a beast.
 > r~

Well, in system.h we already have this:

#ifndef HAVE__BOOL
# define HAVE__BOOL \
   ((GCC_VERSION >= 3000) || (__STDC_VERSION__ >= 199901L))
#endif


It wasn't clear to me from this thread whether the HP compiler was a
C99 compiler or not and if it matches this test.  So I can try using
HAVE__BOOL or simply check for GCC > 3.0.

I'll start with HAVE__BOOL and punt if it still breaks HP.  Patch
forthcoming.

		--Kaveh
--
Kaveh R. Ghazi			ghazi@caip.rutgers.edu


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