[Bug middle-end/48087] [4.5/4.6/4.7 Regression] -Wall -Werror adds warnings over and above those generated by -Wall
rguenther at suse dot de
gcc-bugzilla@gcc.gnu.org
Wed Oct 19 07:49:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48087
--- Comment #13 from rguenther at suse dot de <rguenther at suse dot de> 2011-10-19 07:48:30 UTC ---
On Wed, 19 Oct 2011, manu at gcc dot gnu.org wrote:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48087
>
> --- Comment #12 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2011-10-19 01:44:12 UTC ---
> I think the problem is the seen_error() test in gimple_push_cleanup. I am
> guessing that it does some kind of "folding" that is skipped when an error has
> been issued. There are two issues here:
>
> 1) Warnings converted to errors are not real errors, that is, the program is
> still valid and we could in principle do whatever stuff we would do for a valid
> program. We could do s/seen_error/seen_any_error/, and then add seen_real_error
> (program_is_invalid). I bet most of the cases using seen_any_error, actually
> mean program_is_invalid.
I suppose that's reasonable.
More information about the Gcc-bugs
mailing list