diff options
author | Richard Guenther <rguenther@suse.de> | 2009-04-29 10:39:26 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2009-04-29 10:39:26 +0000 |
commit | de0b4ad5451aa82edae1d13c6424194e101e437b (patch) | |
tree | 76da54c7352e0b986776bba609efd66082fbd4e6 /gcc/tree-ssa-pre.c | |
parent | 3a19701a09db9a65dd41b6085e4a445d350b2a87 (diff) | |
download | gcc-de0b4ad5451aa82edae1d13c6424194e101e437b.zip gcc-de0b4ad5451aa82edae1d13c6424194e101e437b.tar.gz gcc-de0b4ad5451aa82edae1d13c6424194e101e437b.tar.bz2 |
re PR middle-end/39941 (ice in passes.c:execute_todo())
2009-04-29 Richard Guenther <rguenther@suse.de>
PR tree-optimization/39941
* tree-ssa-pre.c (eliminate): Schedule update-ssa after
eliminating an indirect call.
* gcc.c-torture/compile/pr39941.c: New testcase.
From-SVN: r146948
Diffstat (limited to 'gcc/tree-ssa-pre.c')
-rw-r--r-- | gcc/tree-ssa-pre.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c index 61207b2..11b88ed 100644 --- a/gcc/tree-ssa-pre.c +++ b/gcc/tree-ssa-pre.c @@ -4131,6 +4131,11 @@ eliminate (void) update_stmt (stmt); if (maybe_clean_or_replace_eh_stmt (stmt, stmt)) gimple_purge_dead_eh_edges (b); + + /* Changing an indirect call to a direct call may + have exposed different semantics. This may + require an SSA update. */ + todo |= TODO_update_ssa; } } } |