From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2856 invoked by alias); 5 Apr 2012 20:36:00 -0000 Received: (qmail 2779 invoked by uid 22791); 5 Apr 2012 20:35:59 -0000 X-SWARE-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_CX,TW_XL X-Spam-Check-By: sourceware.org Received: from mail-yw0-f47.google.com (HELO mail-yw0-f47.google.com) (209.85.213.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 05 Apr 2012 20:35:45 +0000 Received: by yhjj56 with SMTP id j56so1057106yhj.20 for ; Thu, 05 Apr 2012 13:35:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.60.18.137 with SMTP id w9mr5985075oed.7.1333658144427; Thu, 05 Apr 2012 13:35:44 -0700 (PDT) Received: by 10.182.92.168 with HTTP; Thu, 5 Apr 2012 13:35:44 -0700 (PDT) In-Reply-To: References: <4F7B356E.9080003@google.com> <4F7C2E74.6010501@google.com> Date: Thu, 05 Apr 2012 20:36:00 -0000 Message-ID: Subject: Re: Switching to C++ by default in 4.8 From: Gabriel Dos Reis To: David Edelsohn Cc: Diego Novillo , Richard Guenther , =?ISO-8859-1?Q?Pedro_Lamar=E3o?= , gcc@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 2012-04/txt/msg00206.txt.bz2 On Thu, Apr 5, 2012 at 3:16 PM, David Edelsohn wrote: > On Thu, Apr 5, 2012 at 10:36 AM, Diego Novillo wrot= e: >> On Thu, Apr 5, 2012 at 10:24, Richard Guenther >> wrote: >> >>> Which means never, because I think it's a prerequesite for switching? >> >> No. =A0I was not clear. =A0By "done", I meant that GCC builds with C++ in >> all the platforms we can test. >> >> I'm sending a testing plan later today with the list of targets I >> think should be tested. =A0I am expecting to do some adjusting patches >> to get all the targets working. > > I tried bootstrapping on AIX using C++. > > I am able to bootstrap using G++, but not with IBM xlC. =A0xlC is able > to compile the GCC source code (with a lot of warning messages), but > the build fails when the build passes GCC-specific no exception flags > to xlC. > > NOEXCEPTION_FLAGS =3D -fno-exceptions -fno-rtti > > xlc -c -fno-exceptions -fno-rtti conftest.c > > does succeed, but > > xlc -fno-exceptions -fno-rtti conftest.c > > fails. =A0I don't think -fno-rtti -fno-exceptions does what GCC expects. Thanks for these data. I think -fno-rtti and -fno-exceptions don't make much sense at the linker level so we should leave them out, and use them only when "compiling", e.g. with "-c". > > Also, I noticed that although GCC is configured with > --enable-build-with-cxx , the configure tests use $CC, which might not > be accurate. that is correct. I suspect a patch for the switch will switch to $CXX. -- Gaby