From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7804 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH v2] configure: work around compilers that merely warn for unknown options Date: Thu, 28 May 2015 01:11:19 -0400 Message-ID: <20150528051119.GR17573@brightrain.aerifal.cx> References: <1432785142-8309-1-git-send-email-hi@shiz.me> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1432789898 27991 80.91.229.3 (28 May 2015 05:11:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 May 2015 05:11:38 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7816-gllmg-musl=m.gmane.org@lists.openwall.com Thu May 28 07:11:34 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Yxq6P-0002uh-TP for gllmg-musl@m.gmane.org; Thu, 28 May 2015 07:11:34 +0200 Original-Received: (qmail 6045 invoked by uid 550); 28 May 2015 05:11:32 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 6027 invoked from network); 28 May 2015 05:11:31 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:7804 Archived-At: On Thu, May 28, 2015 at 01:53:44PM +0900, Rob Landley wrote: > On Thu, May 28, 2015 at 12:52 PM, Shiz wrote: > > some compilers (such as clang) accept unknown options without error, > > but then print warnings on each invocation, cluttering the build > > output and burying meaningful warnings. > > You saw this already, right? > > https://github.com/landley/toybox/commit/a913d92bad65 I hadn't seen it yet. > Specifically the bit about gcc 4.6 warning about the unknown > -Wno-be-stupid _only_ if it was already producing another warning... musl makes a lot less assumptions about compiler command-line though; since we have a configure script, we just test every option we want to use that's not completely standard. The problem this patch addressed (BTW, it's now committed) is that some compilers broke these tests by failing to report an error for unsupported options. Rich