aboutsummaryrefslogtreecommitdiff
path: root/gcc/lambda-code.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2009-03-23 15:00:34 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2009-03-23 15:00:34 +0100
commit88ccb72ad199fe41a52bd85e9adad1ae17544db1 (patch)
treebc17ab24c133ad5763626a00b16f332280e62164 /gcc/lambda-code.c
parenta583a67ee399853863e79f9eefcc3d05eea3e23e (diff)
downloadgcc-88ccb72ad199fe41a52bd85e9adad1ae17544db1.zip
gcc-88ccb72ad199fe41a52bd85e9adad1ae17544db1.tar.gz
gcc-88ccb72ad199fe41a52bd85e9adad1ae17544db1.tar.bz2
re PR tree-optimization/39516 (internal compiler error: in copy_to_mode_reg, at explow.c:623)
PR tree-optimization/39516 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable. * gfortran.dg/pr39516.f: New test. From-SVN: r145008
Diffstat (limited to 'gcc/lambda-code.c')
-rw-r--r--gcc/lambda-code.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/lambda-code.c b/gcc/lambda-code.c
index 794d4e8..07b9469 100644
--- a/gcc/lambda-code.c
+++ b/gcc/lambda-code.c
@@ -2472,7 +2472,8 @@ perfect_nestify (struct loop *loop,
it to one just in case. */
exit_condition = get_loop_exit_condition (newloop);
- uboundvar = create_tmp_var (integer_type_node, "uboundvar");
+ uboundvar = create_tmp_var (TREE_TYPE (VEC_index (tree, ubounds, 0)),
+ "uboundvar");
add_referenced_var (uboundvar);
stmt = gimple_build_assign (uboundvar, VEC_index (tree, ubounds, 0));
uboundvar = make_ssa_name (uboundvar, stmt);