From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21455 invoked by alias); 10 Aug 2014 23:36:17 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 21444 invoked by uid 89); 10 Aug 2014 23:36:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-la0-f54.google.com Received: from mail-la0-f54.google.com (HELO mail-la0-f54.google.com) (209.85.215.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sun, 10 Aug 2014 23:36:15 +0000 Received: by mail-la0-f54.google.com with SMTP id hz20so6236862lab.27 for ; Sun, 10 Aug 2014 16:36:12 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.152.45.8 with SMTP id i8mr9536987lam.3.1407713771916; Sun, 10 Aug 2014 16:36:11 -0700 (PDT) Received: by 10.112.94.70 with HTTP; Sun, 10 Aug 2014 16:36:11 -0700 (PDT) In-Reply-To: <20140810215514.Horde.4cJmUEtNwCy1YcH5ioNT9g1@sirzooro.prohost.pl> References: <20140809215057.Horde.vyEDuGF06pHW1H_WOtKpyw1@sirzooro.prohost.pl> <20140810215514.Horde.4cJmUEtNwCy1YcH5ioNT9g1@sirzooro.prohost.pl> Date: Sun, 10 Aug 2014 23:36:00 -0000 Message-ID: Subject: Re: C++ name mangling in C From: Jonathan Wakely To: =?UTF-8?B?RGFuaWVsIEZydcW8ecWEc2tp?= Cc: gcc-help Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-08/txt/msg00084.txt.bz2 On 10 August 2014 20:55, wrote: > Cytowanie Jonathan Wakely : > >> On 9 August 2014 20:50, wrote: >>> >>> If there is no such option, I would like to open an enhancement to add >>> it. I >>> thought about it for some time and looks that this new option should do 3 >>> things: enable C++ name mangling, enable extern "C" directive and define >>> the >>> __cplusplus macro. Any comments on this proposal is also welcome. >> >> >> So you want GCC to behave like a C++ compiler. It can already do that. >> >> Just use C++. >> >> If you get errors, fix them. > > > Easier said than done. I think it will take about month of work to change > our code base in order to compile it using g++. We are planning to do this > eventually, but not now. Because of this I am looking for some temporary > solution to use now. It will be a lot easier to fix your code than to modify GCC to do what you're requesting.