diff options
author | Michael Matz <matz@suse.de> | 2011-09-02 18:31:47 +0000 |
---|---|---|
committer | Michael Matz <matz@gcc.gnu.org> | 2011-09-02 18:31:47 +0000 |
commit | dde460d482fcf150d17b0baa2bc0b97714ec6365 (patch) | |
tree | da6f6fbaadc0e51a49a926d72b946f5ff6ad2d7e /gcc/tree-ssa-phiopt.c | |
parent | 6bd9bf425438065b5a1daf0b19a0f8cdd0ed985e (diff) | |
download | gcc-dde460d482fcf150d17b0baa2bc0b97714ec6365.zip gcc-dde460d482fcf150d17b0baa2bc0b97714ec6365.tar.gz gcc-dde460d482fcf150d17b0baa2bc0b97714ec6365.tar.bz2 |
re PR middle-end/50260 (internal compiler error: Segmentation fault at ../../gcc/gcc/tree-ssa-live.c:88)
PR middle-end/50260
* ipa-split.c (split_function): Call add_referenced_var.
* tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
(cond_if_else_store_replacement_1): Ditto.
* tree-ssa-pre.c (get_representative_for): Ditto.
(create_expression_by_pieces): Ditto.
(insert_into_preds_of_block): Ditto.
* tree-sra.c (create_access_replacement): Ditto.
(get_replaced_param_substitute): Ditto.
From-SVN: r178489
Diffstat (limited to 'gcc/tree-ssa-phiopt.c')
-rw-r--r-- | gcc/tree-ssa-phiopt.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/gcc/tree-ssa-phiopt.c b/gcc/tree-ssa-phiopt.c index 30eea31..4275344 100644 --- a/gcc/tree-ssa-phiopt.c +++ b/gcc/tree-ssa-phiopt.c @@ -1269,10 +1269,7 @@ cond_store_replacement (basic_block middle_bb, basic_block join_bb, /* 2) Create a temporary where we can store the old content of the memory touched by the store, if we need to. */ if (!condstoretemp || TREE_TYPE (lhs) != TREE_TYPE (condstoretemp)) - { - condstoretemp = create_tmp_reg (TREE_TYPE (lhs), "cstore"); - get_var_ann (condstoretemp); - } + condstoretemp = create_tmp_reg (TREE_TYPE (lhs), "cstore"); add_referenced_var (condstoretemp); /* 3) Insert a load from the memory of the store to the temporary @@ -1355,10 +1352,7 @@ cond_if_else_store_replacement_1 (basic_block then_bb, basic_block else_bb, /* 2) Create a temporary where we can store the old content of the memory touched by the store, if we need to. */ if (!condstoretemp || TREE_TYPE (lhs) != TREE_TYPE (condstoretemp)) - { - condstoretemp = create_tmp_reg (TREE_TYPE (lhs), "cstore"); - get_var_ann (condstoretemp); - } + condstoretemp = create_tmp_reg (TREE_TYPE (lhs), "cstore"); add_referenced_var (condstoretemp); /* 3) Create a PHI node at the join block, with one argument |