From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32390 invoked by alias); 11 Jul 2011 19:00:49 -0000 Received: (qmail 32378 invoked by uid 22791); 11 Jul 2011 19:00:48 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,TW_CX X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 11 Jul 2011 19:00:34 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id D924FCB02AA; Mon, 11 Jul 2011 21:00:33 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nJYl347LEc7R; Mon, 11 Jul 2011 21:00:22 +0200 (CEST) Received: from [192.168.1.2] (bon31-9-83-155-120-49.fbx.proxad.net [83.155.120.49]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 270C9CB02D5; Mon, 11 Jul 2011 21:00:09 +0200 (CEST) From: Eric Botcazou To: Ian Lance Taylor Subject: Re: C++ bootstrap of GCC - still useful ? Date: Mon, 11 Jul 2011 19:00:00 -0000 User-Agent: KMail/1.9.9 Cc: gcc@gcc.gnu.org, Toon Moene References: <4E18B50E.2050402@moene.org> <201107100930.54388.ebotcazou@adacore.com> In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201107112100.00586.ebotcazou@adacore.com> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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-07/txt/msg00160.txt.bz2 > When I configure with > --enable-build-with-cxx --enable-languages=c,c++,ada > I get the appended. The problem is that the Ada code is looking for C > symbol names but the names in the .o files are mangled for C++. OK, this is known: a couple of tweaks to the Makefile (to use g++ instead of gcc to link) are needed and extern "C" must be added all over the place, see: http://gcc.gnu.org/ml/gcc/2009-06/msg00635.html I can post an updated patch if you want, but saying that the Ada front-end blocks the use of C++ in gcc is unfair; it is (and has always been) neutral. -- Eric Botcazou