From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15382 invoked by alias); 22 Nov 2013 14:36:48 -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 15354 invoked by uid 89); 22 Nov 2013 14:36:47 -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-f52.google.com Received: from Unknown (HELO mail-bk0-f52.google.com) (209.85.214.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 22 Nov 2013 14:36:47 +0000 Received: by mail-bk0-f52.google.com with SMTP id u14so832869bkz.11 for ; Fri, 22 Nov 2013 06:36:37 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.204.127.135 with SMTP id g7mr1765559bks.42.1385130997747; Fri, 22 Nov 2013 06:36:37 -0800 (PST) Received: by 10.205.68.134 with HTTP; Fri, 22 Nov 2013 06:36:37 -0800 (PST) In-Reply-To: References: Date: Fri, 22 Nov 2013 14:38:00 -0000 Message-ID: Subject: Re: Unable to use bool type in i386.h From: Terry Guo To: Jonathan Wakely Cc: =?ISO-8859-2?Q?J=EAdrzej_Dudkiewicz?= , gcc Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2013-11/txt/msg00182.txt.bz2 On Fri, Nov 22, 2013 at 10:34 PM, Jonathan Wakely wrote: > On 22 November 2013 14:09, Terry Guo wrote: >> But if you search i386.c, you will find many bool type variables. Why >> it works for i386.c but not for i386.h? > > i386.h is a header, it's not only used in one place. > > I assume your error is because i386.c is compiled as a C++ file, but > i386.h is included in a file that is compiled as a C file, e.g. > libgcc.c Yes. I have same understanding. Is it possible to compile libgcc.c as a C++ file? BR, Terry