diff options
author | Martin Jambor <mjambor@suse.cz> | 2010-07-23 18:35:52 +0200 |
---|---|---|
committer | Martin Jambor <jamborm@gcc.gnu.org> | 2010-07-23 18:35:52 +0200 |
commit | 556ede6501233a0ee21184625a6efd04bb6f0b90 (patch) | |
tree | 88e655d4e903cda4241d197623f3122679e67aa8 /gcc/ipa-cp.c | |
parent | 8cbeddcc33cb842176b2ba6b8ffd5e8766efe6cc (diff) | |
download | gcc-556ede6501233a0ee21184625a6efd04bb6f0b90.zip gcc-556ede6501233a0ee21184625a6efd04bb6f0b90.tar.gz gcc-556ede6501233a0ee21184625a6efd04bb6f0b90.tar.bz2 |
re PR tree-optimization/44915 (ICE: SIGSEGV in walk_aliased_vdefs_1.constprop.42 (tree-ssa-alias.c:1707) with -findirect-inlining)
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.
* testsuite/g++.dg/torture/pr44915.C: New test.
From-SVN: r162469
Diffstat (limited to 'gcc/ipa-cp.c')
-rw-r--r-- | gcc/ipa-cp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c index be19569..6918273 100644 --- a/gcc/ipa-cp.c +++ b/gcc/ipa-cp.c @@ -1278,7 +1278,9 @@ ipcp_read_summary (void) 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 = |