From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 127147 invoked by alias); 25 Aug 2015 12:52:33 -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 127137 invoked by uid 89); 25 Aug 2015 12:52:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS,URIBL_BLACK autolearn=no version=3.3.2 X-HELO: ausxippc101.us.dell.com Received: from ausxippc101.us.dell.com (HELO ausxippc101.us.dell.com) (143.166.85.207) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Tue, 25 Aug 2015 12:52:30 +0000 X-LoopCount0: from 10.175.216.250 From: To: CC: Subject: Re: Why pedantic? Date: Tue, 25 Aug 2015 12:52:00 -0000 Message-ID: <075A8681-8112-4F94-A6D2-765DC677B37C@dell.com> References: <55DC3DE1.5000605@redhat.com> In-Reply-To: <55DC3DE1.5000605@redhat.com> Content-Type: text/plain; charset="Windows-1252" Content-ID: <1087F33AF841C446817EC2EB52BDB973@dell.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes X-SW-Source: 2015-08/txt/msg00040.txt.bz2 > On Aug 25, 2015, at 6:05 AM, Pedro Alves wrote: >=20 > On 08/24/2015 07:13 PM, Paul_Koning@Dell.com wrote: >> I'm trying to understand why --pedantic is specified in several of the s= ubdirectories used with building gdb -- and in particular, why there isn't = any obvious way to turn that off. I've run into this in "libiberty" and po= ssibly also "libdecnumber". While this may be ok for Linux, it breaks some= cross-builds. At the very least I end up having to work around a pile of = "C90 doesn't support blah blah" messages that now need to go into the "igno= re this warning during builds" list in my build procedures. >>=20 >> "pedantic" generally defines warnings that are suggested by the standard= but are judged to be not particularly useful -- so why use them unconditio= nally? >>=20 >=20 > I don't know the history behind this, but libiberty's and opcodes's confi= gure.ac > call ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, defined in src/config/warnings.= m4, > and that seems to be to be what adds the -pedantic. Yes, I found that and removed it from our local copy. But it seems to me t= hat this change is misguided and should be undone, preferably as the defaul= t, or at the very least it needs to be an option. The problem is that the libiberty build, as is typical, uses header files f= rom the host, and there is no reason to assume that all those headers on ev= ery supported host OS are pedantic-safe. paul