------- Comment #15 from manu at gcc dot gnu dot org 2010-04-15 22:42 ------- (In reply to comment #14) > > But for the -Werror=foo issue I'd have thought that making it send the > -Wfoo option through the existing option processing machinery - as if both > were specified consecutively on the command line - should suffice. That > seems largely independent of my proposal, and avoids any issues with > needing functions to be present for all front ends.
That is not how it works. Not sure whether such approach would work at all. But that still doesn't solve the PR I mentioned because sending -Wfoo through the option machinery does not turn options enabled by Wfoo into errors. Even worse, what do you suggest for -Wno-error=foo? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43687