mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: [PATCH v2] configure: work around compilers that merely warn for unknown options
Date: Thu, 28 May 2015 01:11:19 -0400	[thread overview]
Message-ID: <20150528051119.GR17573@brightrain.aerifal.cx> (raw)
In-Reply-To: <CAOS_Y6RBoK3m331Cq28Uvy1z0ptoJVE2_GMXx_cvhHGcvrd==A@mail.gmail.com>

On Thu, May 28, 2015 at 01:53:44PM +0900, Rob Landley wrote:
> On Thu, May 28, 2015 at 12:52 PM, Shiz <hi@shiz.me> 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


  reply	other threads:[~2015-05-28  5:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-28  3:52 Shiz
2015-05-28  4:53 ` Rob Landley
2015-05-28  5:11   ` Rich Felker [this message]
2015-05-28  9:24   ` Shiz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150528051119.GR17573@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).