http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49772
--- Comment #11 from rguenther at suse dot de <rguenther at suse dot de> 2011-12-08 08:57:22 UTC --- On Thu, 8 Dec 2011, pinskia at gcc dot gnu.org wrote: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49772 > > --- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-12-08 > 04:54:41 UTC --- > A better non specific to tree-ssa-structaliasing patch: > Index: cgraphunit.c > =================================================================== > --- cgraphunit.c (revision 182098) > +++ cgraphunit.c (working copy) > @@ -1817,6 +1817,9 @@ cgraph_expand_function (struct cgraph_no > /* Generate RTL for the body of DECL. */ > tree_rest_of_compilation (decl); > > + if (seen_error ()) > + return; > + > /* Make sure that BE didn't give up on compiling. */ > gcc_assert (TREE_ASM_WRITTEN (decl)); > current_function_decl = NULL; > Index: passes.c > =================================================================== > --- passes.c (revision 182098) > +++ passes.c (working copy) > @@ -2074,7 +2074,7 @@ execute_one_pass (struct opt_pass *pass) > timevar_push (pass->tv_id); > > /* Do it! */ > - if (pass->execute) > + if (pass->execute && !seen_error ()) > { > todo_after = pass->execute (); > do_per_function (clear_last_verified, NULL); We don't want late warnings in random functions to be suppressed by earlier errors.