re PR middle-end/48836 (internal compiler error: in execute_todo, at passes.c:1261)
authorJan Hubicka <jh@suse.cz>
Sun, 12 Jun 2011 18:08:52 +0000 (20:08 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 12 Jun 2011 18:08:52 +0000 (18:08 +0000)
PR middle-end/48836
* ipa-inline-transform.c: Include tree-pass.h
(inline_transform): Set TODO_update_ssa_only_virtuals.
* Makefile.in (ipa-inline-transform.o): Add tree-pass.h.

From-SVN: r174970

gcc/ChangeLog
gcc/Makefile.in
gcc/ipa-inline-transform.c

index 2bcc01b0e3c2bf2eeb449f3201afde14f8dccbd5..2721e8ee3e53bab9849d260dc07bcd5c3bd8fafb 100644 (file)
@@ -1,3 +1,10 @@
+2011-06-11  Jan Hubicka  <jh@suse.cz>
+
+       PR middle-end/48836
+       * ipa-inline-transform.c: Include tree-pass.h
+       (inline_transform): Set TODO_update_ssa_only_virtuals.
+       * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
+
 2011-06-11  Jan Hubicka  <jh@suse.cz>
 
        PR middle-end/49378
index 0d297c3e913ed3f5d97976d12999a9b888c05dcc..24d1615bc844cce3a3916f46aaf1124848feae8d 100644 (file)
@@ -3087,7 +3087,7 @@ ipa-inline-transform.o : ipa-inline-transform.c $(CONFIG_H) $(SYSTEM_H) coretype
    $(TREE_H) langhooks.h $(TREE_INLINE_H) $(FLAGS_H) $(CGRAPH_H) intl.h \
    $(DIAGNOSTIC_H) $(PARAMS_H) $(TIMEVAR_H) $(TREE_PASS_H) \
    $(HASHTAB_H) $(COVERAGE_H) $(GGC_H) $(TREE_FLOW_H) $(IPA_PROP_H) \
-   gimple-pretty-print.h ipa-inline.h $(LTO_STREAMER_H)
+   gimple-pretty-print.h ipa-inline.h $(LTO_STREAMER_H) tree-pass.h
 ipa-utils.o : ipa-utils.c $(IPA_UTILS_H) $(CONFIG_H) $(SYSTEM_H) \
    coretypes.h $(TM_H) $(TREE_H) $(TREE_FLOW_H) $(TREE_INLINE_H) langhooks.h \
    pointer-set.h $(GGC_H) $(GIMPLE_H) $(SPLAY_TREE_H) \
index b62e50b93f0c7f9da926307229d035fa4e91fbf7..e10e28e1753e78a00666ddd20786b0105fbee06d 100644 (file)
@@ -45,6 +45,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "ipa-prop.h"
 #include "ipa-inline.h"
 #include "tree-inline.h"
+#include "tree-pass.h"
 
 int ncalls_inlined;
 int nfunctions_inlined;
@@ -338,6 +339,8 @@ inline_transform (struct cgraph_node *node)
       cgraph_redirect_edge_call_stmt_to_callee (e);
       if (!e->inline_failed || warn_inline)
         inline_p = true;
+      /* Redirecting edges might lead to a need for vops to be recomputed.  */
+      todo |= TODO_update_ssa_only_virtuals;
     }
 
   if (inline_p)