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 tree-optimization/49772] [4.7 Regression] ICE: in ipa_pta_execute, at tree-ssa-structalias.c:6790 with -fipa-pta


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);


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