public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Ian Lance Taylor <iant@google.com>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: gcc-help@gcc.gnu.org
Subject: Re: detecting when an option is not available
Date: Tue, 12 Jun 2012 20:44:00 -0000	[thread overview]
Message-ID: <mcrpq94dzw8.fsf@dhcp-172-18-216-180.mtv.corp.google.com> (raw)
In-Reply-To: <m2txyhf1x6.fsf@igel.home> (Andreas Schwab's message of "Tue, 12	Jun 2012 09:02:29 +0200")

Andreas Schwab <schwab@linux-m68k.org> writes:

> Ian Lance Taylor <iant@google.com> writes:
>
>> The trick to find out if a -Wno- option is supported is to force a
>> compiler error.  E.g.,
>
> The trick to find out if a -Wno- option is supported is to check if the
> positive form is accepted.  See ACX_PROG_CC_WARNING_OPTS.

That does seems simpler.  Thanks.

Ian

  reply	other threads:[~2012-06-12 20:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.4.64.1206120015560.16674@grozny.maths.univ-evry.fr>
     [not found] ` <mcrfwa1gk4c.fsf@dhcp-172-18-216-180.mtv.corp.google.com>
2012-06-12  7:02   ` Andreas Schwab
2012-06-12 20:44     ` Ian Lance Taylor [this message]
2012-06-12  5:49 Vincent Torri

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=mcrpq94dzw8.fsf@dhcp-172-18-216-180.mtv.corp.google.com \
    --to=iant@google.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=schwab@linux-m68k.org \
    /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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).