From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25748 invoked by alias); 4 Mar 2003 09:53:50 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 25675 invoked from network); 4 Mar 2003 09:52:38 -0000 Received: from unknown (HELO ms-smtp-01.nyroc.rr.com) (24.92.226.148) by 172.16.49.205 with SMTP; 4 Mar 2003 09:52:38 -0000 Received: from doctormoo (syr-24-24-17-145.twcny.rr.com [24.24.17.145]) by ms-smtp-01.nyroc.rr.com (8.12.5/8.12.2) with ESMTP id h249qbb1029471 for ; Tue, 4 Mar 2003 04:52:37 -0500 (EST) Received: from neroden by doctormoo with local (Exim 3.36 #1 (Debian)) id 18q965-0000Im-00 for ; Tue, 04 Mar 2003 04:52:29 -0500 Date: Tue, 04 Mar 2003 10:19:00 -0000 To: gcc@gcc.gnu.org Subject: Re: Putting C++ code into gcc front end Message-ID: <20030304095229.GA1161@doctormoo> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i From: Nathanael Nerode X-SW-Source: 2003-03/txt/msg00173.txt.bz2 >No, that does not follow: We never actually bootstrap for the C++ >compiler. Currently, we only bootstrap the C compiler and and diff the >objets. That does not act as a test that the C++ compiler works. It >just does test the C compiler. This is correct but irrelevant. >To correct your scheme, here is how it could proceed: > > * Use stage1 to build G++: > + build g++ (which becomes a stage2 compiler) > + use stage2 g++ to build the C++ runtime system. > This step is part of using stage2 xgcc to build the full > compiler. > >No trouble. Big trouble. You used stage1 to build G++, which is a stage2 compiler. Because stage1 is a C/Ada compiler only, *and the Java front end has C++ code*, there can be no stage2 GCJ. You want to build GCJ, so you have to put it into stage3. This means that stage2 and stage3 are compiled with different options, so they can't be compared. In order to do a bootstrap comparison, you need to go to stage 4. Got it? --Nathanael