From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23390 invoked by alias); 11 Jul 2011 16:59:57 -0000 Received: (qmail 23379 invoked by uid 22791); 11 Jul 2011 16:59:56 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,TW_CX,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from ausxippc101.us.dell.com (HELO ausxippc101.us.dell.com) (143.166.85.207) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 11 Jul 2011 16:59:42 +0000 X-Loopcount0: from 10.152.240.141 Subject: Re: C++ bootstrap of GCC - still useful ? Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Paul Koning In-Reply-To: <20110711165302.GB64043@adacore.com> Date: Mon, 11 Jul 2011 16:59:00 -0000 Cc: "gcc@gcc.gnu.org List" Content-Transfer-Encoding: 7bit Message-Id: <937CA7D3-8350-468E-875F-6133F3B2227B@dell.com> References: <4E18B50E.2050402@moene.org> <201107100930.54388.ebotcazou@adacore.com> <20110711165302.GB64043@adacore.com> To: Arnaud Charlet X-IsSubscribed: yes 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/msg00153.txt.bz2 On Jul 11, 2011, at 12:53 PM, Arnaud Charlet wrote: >> 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++. > > Right, or rather than we want to use the C compiler to compile all those > files (e.g. init.c, argv.c), not the C++ compiler. Isn't 'extern "C" ' the standard way to handle this sort of thing? paul