This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc-3.0 bool type
- To: gcc at gcc dot gnu dot org
- Subject: Re: gcc-3.0 bool type
- From: Falk Hueffner <falk dot hueffner at student dot uni-tuebingen dot de>
- Date: 27 Jul 2001 01:18:34 +0200
- References: <996163719.20864.72.camel@yardath.jxn.wcom.com>
David Durham <david.durham@wcom.com> writes:
> Hi, I've just upgraded from 2.95.3 to 3.0 on solaris 2.5.1
>
> versions <=2.95.2 had their bool type as 32 bits on this platform.
> 3.0 has changed it to a single byte. Well some libraries we're
> interfacing with need it to be 32 bits because it uses bool
> pointers. Now, I could change the header files to say int * instead
> of bool *, but I'd rather know if there's a way to define the bool
> type as 32 bit again. Hopefully there's a command line option to do
> this (which I haven't seen mention of in the docs), but I'm willing
> to change something in gcc's code and recompile it if need be.
This seems pretty pointless, since the whole C++ ABI has changed, so
you'll need to recompile your library anyway. Or did you mean the
library takes int* and you were passing bool*? If so, it makes a lot
more sense to fix your code instead of fiddling with the compiler,
since there is no reason why this should work.
Falk