aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-parloops.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2013-05-06 15:06:41 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2013-05-06 15:06:41 +0000
commitaa06a9782f22abcf96b98e92e5b081ef872ec941 (patch)
tree4ba41d4852bb4031c786c3e67f53692bba49366b /gcc/tree-parloops.c
parent27ea9e0635cd6267f9f1b517a6538001c4766be8 (diff)
downloadgcc-aa06a9782f22abcf96b98e92e5b081ef872ec941.zip
gcc-aa06a9782f22abcf96b98e92e5b081ef872ec941.tar.gz
gcc-aa06a9782f22abcf96b98e92e5b081ef872ec941.tar.bz2
re PR tree-optimization/57185 (ICE: Segmentation fault in add_field_for_reduction with -ftree-parallelize-loops=2 -fipa-pta)
2013-05-06 Richard Biener <rguenther@suse.de> PR tree-optimization/57185 * tree-parloops.c (add_field_for_reduction): Handle anonymous SSA names properly. * gcc.dg/autopar/pr57185.c: New testcase. From-SVN: r198630
Diffstat (limited to 'gcc/tree-parloops.c')
-rw-r--r--gcc/tree-parloops.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-parloops.c b/gcc/tree-parloops.c
index 4a4b02b..cea6f03 100644
--- a/gcc/tree-parloops.c
+++ b/gcc/tree-parloops.c
@@ -964,9 +964,9 @@ add_field_for_reduction (reduction_info **slot, tree type)
{
struct reduction_info *const red = *slot;
- tree var = SSA_NAME_VAR (gimple_assign_lhs (red->reduc_stmt));
- tree field = build_decl (gimple_location (red->reduc_stmt),
- FIELD_DECL, DECL_NAME (var), TREE_TYPE (var));
+ tree var = gimple_assign_lhs (red->reduc_stmt);
+ tree field = build_decl (gimple_location (red->reduc_stmt), FIELD_DECL,
+ SSA_NAME_IDENTIFIER (var), TREE_TYPE (var));
insert_field_into_struct (type, field);