From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26828 invoked by alias); 26 Jun 2009 17:32:40 -0000 Received: (qmail 26815 invoked by uid 22791); 26 Jun 2009 17:32:38 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_73 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (212.99.106.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 26 Jun 2009 17:32:31 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id C729E290004; Fri, 26 Jun 2009 19:32:28 +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 KGTHje5FXp6k; Fri, 26 Jun 2009 19:32:28 +0200 (CEST) Received: from province.act-europe.fr (province.act-europe.fr [10.10.0.214]) by mel.act-europe.fr (Postfix) with ESMTP id 28D5B29000E; Fri, 26 Jun 2009 19:32:28 +0200 (CEST) Received: by province.act-europe.fr (Postfix, from userid 525) id 1FC99166494; Fri, 26 Jun 2009 19:32:28 +0200 (CEST) Date: Fri, 26 Jun 2009 17:36:00 -0000 From: Arnaud Charlet To: Ian Lance Taylor Cc: laurent@guerby.net, Eric Botcazou , Richard Guenther , gcc@gcc.gnu.org Subject: Re: Phase 1 of gcc-in-cxx now complete (Ada) Message-ID: <20090626173228.GA5262@adacore.com> References: <1245966606.4922.217.camel@localhost> <84fc9c000906251516n3a74abe2hcf888f940fccce79@mail.gmail.com> <1246015098.4922.307.camel@localhost> <1246031952.4922.318.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) 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: 2009-06/txt/msg00618.txt.bz2 > I don't really know how the Ada compiler works, but it looks like this > code is generated by the gnatbind program. I bet it would work if > gnatbind -C emitted this at the start of the output: > > #ifdef __cplusplus > extern "C" { > #endif > > and emitted this at the end: > > #ifdef __cplusplus > } > #endif > > I think the function to change is Gen_Output_File_C in bindgen.adb. Looks like a good track indeed and a reasonable change to make IMO. Arno