From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4777 invoked by alias); 1 Aug 2011 09:53:57 -0000 Received: (qmail 4765 invoked by uid 22791); 1 Aug 2011 09:53:56 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 01 Aug 2011 09:53:43 +0000 Received: (qmail 31898 invoked from network); 1 Aug 2011 09:53:41 -0000 Received: from unknown (HELO digraph.polyomino.org.uk) (joseph@127.0.0.2) by mail.codesourcery.com with ESMTPA; 1 Aug 2011 09:53:41 -0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.72) (envelope-from ) id 1QnpBs-0006aL-6Y; Mon, 01 Aug 2011 09:53:40 +0000 Date: Mon, 01 Aug 2011 09:53:00 -0000 From: "Joseph S. Myers" To: Richard Guenther cc: gcc@gcc.gnu.org, Ian Lance Taylor Subject: Re: PATCH RFA: Build stages 2 and 3 with C++ In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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/msg00006.txt.bz2 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.) (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++?) -- Joseph S. Myers joseph@codesourcery.com