http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48087
--- Comment #20 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-12-06 10:09:20 UTC --- Looking again, I think that for warnings promoted to errors we should _not_ increase errorcount, but we should instead have a new global flag that tells us whether there were any "real" errors, and check that in the place that terminates compilation without producing assembler output.