From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8295 invoked by alias); 10 Aug 2014 19:55:20 -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 8282 invoked by uid 89); 10 Aug 2014 19:55:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: da.nameserverus2.com Received: from da.nameserverus2.com (HELO da.nameserverus2.com) (86.111.247.88) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sun, 10 Aug 2014 19:55:18 +0000 Received: from sir10000 by da.nameserverus2.com with local (Exim 4.83) (envelope-from ) id 1XGZD0-0008Lo-IW for gcc-help@gcc.gnu.org; Sun, 10 Aug 2014 21:55:14 +0200 Received: from 89.75.51.68 ([89.75.51.68]) by sirzooro.prohost.pl (Horde Framework) with HTTP; Sun, 10 Aug 2014 21:55:14 +0200 Date: Sun, 10 Aug 2014 19:55:00 -0000 Message-ID: <20140810215514.Horde.4cJmUEtNwCy1YcH5ioNT9g1@sirzooro.prohost.pl> From: daniel@poradnik-webmastera.com To: gcc-help Subject: Re: C++ name mangling in C References: <20140809215057.Horde.vyEDuGF06pHW1H_WOtKpyw1@sirzooro.prohost.pl> In-Reply-To: User-Agent: Internet Messaging Program (IMP) H5 (6.2.1) Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline X-SW-Source: 2014-08/txt/msg00083.txt.bz2 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. -- Regards, Daniel