This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PR 28322 unknown -Wno-* options should cause warnings, not errors


Hello, and apologies for chiming in at what doesn't seem like a good
time for this,

* Peter Maydell wrote on Tue, Jun 03, 2008 at 11:17:05PM CEST:
> 
> This patch fixes a problem with the initial fix for PR 28322 (which
> suppresses messages about unknown -Wno-* options unless some other
> diagnostic is being emitted). The aim was that an unsupported -Wno-*
> option should never change whether the compilation succeeds or fails
> (whether with or without -Werror);

So there is actually no clean way to write an Autoconf macro to find out
if a -Wno-* option is supported or not?  IOW, a configure test must try
to parse the warning output from GCC in order to avoid that users
complain about lots of warnings during a build?

What a mess!

Did GCC at least standardize on a warning message easily and
unmistakenly detectable using a glob or so; or is there also a
-Wdo-not-warn-about-unknown-Wno-warning-flags?  (Even if there
were, how would I be able to test for it without ugliness...)

Thanks,
Ralf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]