On Sun, Apr 22, 2012 at 10:50 AM, Manuel López-Ibáñez <lopeziba...@gmail.com> wrote: > This patch makes Wpedantic the canonical form of -pedantic. This makes > -Wno-pedantic, -Werror=pedantic, #pragma diagnostics and other parts > of the diagnostic machinery that expect warning options to start with > -W, work with -Wpedantic. > > I did not touch -pedantic-errors, because it is not exactly equivalent > to -Werror=pedantic. The fix there may be to have a new -Wpedantic-all > that controls -Wpedantic + all the uncontrollable pedwarns, then > -Werror=pedantic-all would be exactly equivalent to -pedantic-errors. > But apart from consistency, I don't see much benefit, so I am not > going to work on that. > > Bootstrapped + tested with enable-languages=all,objc++,ada. > > OK?
OK. The longer-term fix is to eliminate the distinction between -pedantic-errors and -Werror=pedantic. Also, eventually calls to pedwarns should be unconditional and finer-grained instead of the current catchall OPT_Wpedantic.