From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16852 invoked by alias); 22 Nov 2013 14:09:12 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 16842 invoked by uid 89); 22 Nov 2013 14:09:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.2 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RDNS_NONE,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-bk0-f51.google.com Received: from Unknown (HELO mail-bk0-f51.google.com) (209.85.214.51) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 22 Nov 2013 14:09:10 +0000 Received: by mail-bk0-f51.google.com with SMTP id 6so833227bkj.10 for ; Fri, 22 Nov 2013 06:09:01 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.205.78.131 with SMTP id zm3mr90243bkb.63.1385129341410; Fri, 22 Nov 2013 06:09:01 -0800 (PST) Received: by 10.205.68.134 with HTTP; Fri, 22 Nov 2013 06:09:01 -0800 (PST) In-Reply-To: References: Date: Fri, 22 Nov 2013 14:34:00 -0000 Message-ID: Subject: Re: Unable to use bool type in i386.h From: Terry Guo To: =?ISO-8859-2?Q?J=EAdrzej_Dudkiewicz?= , gcc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2013-11/txt/msg00179.txt.bz2 On Fri, Nov 22, 2013 at 10:02 PM, J=C4=99drzej Dudkiewicz wrote: > On Fri, Nov 22, 2013 at 2:59 PM, Terry Guo wrote: >> On Fri, Nov 22, 2013 at 8:53 PM, Rob wrote: >>> It seems that C files include this, so you'll want _Bool, or just use a= n 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=C4=99drzej 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