diff options
author | Richard Biener <rguenther@suse.de> | 2014-04-04 11:52:35 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2014-04-04 11:52:35 +0000 |
commit | 45b6259486e4a1201c630186338e0845ffeab2f5 (patch) | |
tree | 5d195f2c96f8f418bd1d795709474cd7c6d0007d /gcc/tree-ssanames.c | |
parent | bb609c35be50a8b8a89005d1f5f4896a29c4ffae (diff) | |
download | gcc-45b6259486e4a1201c630186338e0845ffeab2f5.zip gcc-45b6259486e4a1201c630186338e0845ffeab2f5.tar.gz gcc-45b6259486e4a1201c630186338e0845ffeab2f5.tar.bz2 |
re PR middle-end/60746 (ICE segfault in gimple-expr.c:314)
2014-04-04 Richard Biener <rguenther@suse.de>
PR ipa/60746
* tree-ssanames.c (make_ssa_name_fn): Fix assert.
* gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
non-GIMPLE_LABELs.
* gimplify.h (gimple_add_tmp_var_fn): Declare.
* gimplify.c (gimple_add_tmp_var_fn): New function.
* gimple-expr.h (create_tmp_reg_fn): Declare.
* gimple-expr.c (create_tmp_reg_fn): New function.
* gimple-low.c (record_vars_into): Don't change cfun.
* cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
code generation without cfun.
* g++.dg/torture/pr60746.C: New testcase.
From-SVN: r209079
Diffstat (limited to 'gcc/tree-ssanames.c')
-rw-r--r-- | gcc/tree-ssanames.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssanames.c b/gcc/tree-ssanames.c index 2fc8220..2b535a1 100644 --- a/gcc/tree-ssanames.c +++ b/gcc/tree-ssanames.c @@ -144,7 +144,7 @@ make_ssa_name_fn (struct function *fn, tree var, gimple stmt) /* The node was cleared out when we put it on the free list, so there is no need to do so again here. */ - gcc_assert (ssa_name (SSA_NAME_VERSION (t)) == NULL); + gcc_assert ((*SSANAMES (fn))[SSA_NAME_VERSION (t)] == NULL); (*SSANAMES (fn))[SSA_NAME_VERSION (t)] = t; } else |