This is the mail archive of the gcc-bugs@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]

[Bug middle-end/48087] [4.5/4.6/4.7 Regression] -Wall -Werror adds warnings over and above those generated by -Wall


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.


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