This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Unable to use bool type in i386.h
- From: Terry Guo <flameroc at gmail dot com>
- To: Jędrzej Dudkiewicz <jedrzej dot dudkiewicz at gmail dot com>, gcc <gcc-help at gcc dot gnu dot org>
- Date: Fri, 22 Nov 2013 22:09:01 +0800
- Subject: Re: Unable to use bool type in i386.h
- Authentication-results: sourceware.org; auth=none
- References: <CAGbRaL49voK6s0XDaTLfPxhPT12evu=i8dMrJ1g7DyHS9wovqw at mail dot gmail dot com> <CAPQ98VUtsfFupqML864+5d_90ZvOEacB5fiuA2pRgjX_5AffSw at mail dot gmail dot com> <CAGbRaL4h-WY3HytuZWxWdANXzkDqJS8XiWn53GsA2aO=Of0-tQ at mail dot gmail dot com> <CABJqhQOf-uMVq71_dVQ1pxZyX0Pd9yYW3PdYNHP5vk3hYFJPUw at mail dot gmail dot com>
On Fri, Nov 22, 2013 at 10:02 PM, JÄdrzej Dudkiewicz
<jedrzej.dudkiewicz@gmail.com> wrote:
> On Fri, Nov 22, 2013 at 2:59 PM, Terry Guo <flameroc@gmail.com> wrote:
>> On Fri, Nov 22, 2013 at 8:53 PM, Rob <robpilling@gmail.com> wrote:
>>> It seems that C files include this, so you'll want _Bool, or just use an int.
>>>
>>
>> Thanks for your reply. I know I can use the int. But the bool type is
>> more precise. And now GCC is in C++, the bool type should be
>> supported. I am curious whether this is a missing part of GCC. Can
>> someone please help to confirm?
>
> I'm not an expert, but it seems that you are compiling *.c files. GCC
> being written in C++ does not change C language in any way, so bool
> won't work.
> --
> JÄdrzej Dudkiewicz
>
But if you search i386.c, you will find many bool type variables. Why
it works for i386.c but not for i386.h?
BR,
Terry