2010-07-23 Martin Jambor <mjambor@suse.cz>
+ PR tree-optimization/44915
+ * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
+ * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
+ (analyze_function): Likewise.
+
+2010-07-23 Martin Jambor <mjambor@suse.cz>
+
PR tree-optimization/44914
* tree-sra.c (sra_modify_function_body): Return true if CFG was
changed, add purging dead eh edges.
static bool
cgraph_gate_cp (void)
{
- return flag_ipa_cp;
+ /* FIXME: We should remove the optimize check after we ensure we never run
+ IPA passes when not optimizng. */
+ return flag_ipa_cp && optimize;
}
struct ipa_opt_pass_d pass_ipa_cp =
overall_size += new_size - old_size;
ncalls_inlined++;
- if (flag_indirect_inlining)
+ /* FIXME: We should remove the optimize check after we ensure we never run
+ IPA passes when not optimizng. */
+ if (flag_indirect_inlining && optimize)
return ipa_propagate_indirect_call_infos (curr, new_edges);
else
return false;
current_function_decl = node->decl;
compute_inline_parameters (node);
- if (flag_indirect_inlining)
+ /* FIXME: We should remove the optimize check after we ensure we never run
+ IPA passes when not optimizng. */
+ if (flag_indirect_inlining && optimize)
inline_indirect_intraprocedural_analysis (node);
current_function_decl = NULL;
2010-07-23 Martin Jambor <mjambor@suse.cz>
+ PR tree-optimization/44915
+ * g++.dg/torture/pr44915.C: New test.
+
+2010-07-23 Martin Jambor <mjambor@suse.cz>
+
PR tree-optimization/44914
* g++.dg/tree-ssa/pr44914.C: New test.
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-findirect-inlining" } */
+
+struct A;
+
+typedef void (A::*f_ptr) ();
+
+void dummy (f_ptr) { }
+
+void call_dummy (f_ptr cb)
+{
+ dummy (cb);
+}