From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20099 invoked by alias); 20 Jan 2016 11:10:26 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 20052 invoked by uid 89); 20 Jan 2016 11:10:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Meanwhile, he's, noticing X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 20 Jan 2016 11:10:23 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id B5E0AC0AD1CD; Wed, 20 Jan 2016 11:10:22 +0000 (UTC) Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u0KBALft011453; Wed, 20 Jan 2016 06:10:22 -0500 Message-ID: <569F6B1D.60406@redhat.com> Date: Wed, 20 Jan 2016 11:10:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: John Baldwin , gdb@sourceware.org Subject: Re: C++ conversion status update References: <565460FB.6070103@redhat.com> <86zixdnlfg.fsf@gmail.com> <566F13D4.9000900@redhat.com> <290689073.6kaHW0HruR@ralph.baldwin.cx> In-Reply-To: <290689073.6kaHW0HruR@ralph.baldwin.cx> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2016-01/txt/msg00043.txt.bz2 On 01/19/2016 07:00 PM, John Baldwin wrote: > On Monday, December 14, 2015 07:09:08 PM Pedro Alves wrote: >> On 12/14/2015 02:40 PM, Yao Qi wrote: >> Meanwhile, I tried a few BSD hosts on the compile farm and >> wrote a few patches: >> >> https://github.com/palves/gdb/commits/palves/cxx-conversion-netbsd >> >> but haven't had a moment yet to drive them to completion. I probably should sync >> up with Simon though, as I think I may be duplicating work he's done already. > > I started doing some test builds on FreeBSD with C++ today and ran into one > unexpected thing that I'm not sure how to fix. Thanks! > > I build gdb from git on my own for testing, but the gdb package for FreeBSD > users is built from FreeBSD's ports framework. The framework sets default > CFLAGS / CXXFLAGS values for the ports it builds (and each port can > override or adjust those as needed). However, gdb uses CFLAGS instead of > CXXFLAGS when building with C++. The default flags in FreeBSD's ports > infrastructure include "-std=gnu89" in the default CFLAGS (but not in > CXXFLAGS since it is a C-only flag). The CXXFLAGS set in the environment > when ./configure was run do not appear to be honored in the generated > gdb/Makefile and also don't appear to be used during the build of gdb > itself. Indeed, thanks for noticing this. I've sent a patch now: https://sourceware.org/ml/gdb-patches/2016-01/msg00469.html I've also pushed it to: git@github.com:palves/gdb.git palves/cxx-conversion-attempt-part-2-no-fpermissive (note there are a few more wip/pending C++ patches on that branch) Could you give it a try? Thanks, Pedro Alves