This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: backport fix for PR 82063 to GCC 7 and 8
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Martin Sebor <msebor at gmail dot com>
- Cc: Jakub Jelinek <jakub at redhat dot com>, Richard Biener <rguenther at suse dot de>, Jeff Law <law at redhat dot com>, Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 7 Jun 2018 22:23:10 +0000
- Subject: Re: backport fix for PR 82063 to GCC 7 and 8
- References: <6689d7af-dc8e-c765-0664-3cfbb71e8e0e@gmail.com> <20180607211756.GL7166@tucnak> <8f4c042e-7a60-5d57-d020-5240c42d48a3@gmail.com>
On Thu, 7 Jun 2018, Martin Sebor wrote:
> Though accepting -Wno-no- seems to a general bug in the driver
> for all options that don't specify RejectNegative. It accepts
> -Wno-no-all as well. In fact, it seems to accept anything that
> starts with -Wno-, even if it's completely bogus.
No, it's deliberate, so that software can freely use new -Wno- options to
disable warnings added in new GCC versions without needing autoconf or
similar tests for whether those options are supported. *If* there are any
warnings emitted, that might have been disabled by the -Wno- option, GCC
warns, but if there are no warnings emitted anyway, the required semantics
of the -Wno- option have trivially been met.
--
Joseph S. Myers
joseph@codesourcery.com