From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14709 invoked by alias); 1 Aug 2011 10:05:45 -0000 Received: (qmail 14691 invoked by uid 22791); 1 Aug 2011 10:05:41 -0000 X-SWARE-Spam-Status: No, hits=-6.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail1-relais-roc.national.inria.fr (HELO mail1-relais-roc.national.inria.fr) (192.134.164.82) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 01 Aug 2011 10:05:27 +0000 Received: from afontenayssb-151-1-40-125.w83-114.abo.wanadoo.fr (HELO laptop-mg.local) ([83.114.90.125]) by mail1-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 01 Aug 2011 12:05:25 +0200 Date: Mon, 01 Aug 2011 10:05:00 -0000 From: Marc Glisse Reply-To: gcc@gcc.gnu.org To: "Joseph S. Myers" cc: Richard Guenther , gcc@gcc.gnu.org, Ian Lance Taylor Subject: Re: PATCH RFA: Build stages 2 and 3 with C++ In-Reply-To: Message-ID: References: User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2011-08/txt/msg00009.txt.bz2 On Mon, 1 Aug 2011, Joseph S. Myers wrote: > On Mon, 1 Aug 2011, Richard Guenther wrote: > >> I think it's the only viable solution (use the full enum for a non-GCC stage1 >> C++ compiler). We could help it somewhat by at least placing >> enum bitfields first/last in our bitfield groups. > > Are GCC and other compilers declaring that they support the GNU C and C++ > languages by defining __GNUC__ really the only compilers with this > extension? Feature tests for particular features are generally better > than testing for whether the compiler in use is GCC. (Using configure > tests for things in ansidecl.h does require checking where in the gcc and > src repositories those things are used, to make sure that the relevant > configure tests are used everywhere necessary.) I just checked, and indeed sunpro supports this extension as well in C. > (Actually, C++03 appears to support enum bit-fields - it's only for C that > they are a GNU extension - so can't we just enable them unconditionally > when building as C++?) Great, I didn't know that. That's a much better solution. -- Marc Glisse