Commit 88ccb72a by Jakub Jelinek Committed by Jakub Jelinek

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
parent a583a67e
2009-03-23 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/39516
* lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
2009-03-23 Bingfeng Mei <bmei@broadcom.com> 2009-03-23 Bingfeng Mei <bmei@broadcom.com>
* config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
......
...@@ -2472,7 +2472,8 @@ perfect_nestify (struct loop *loop, ...@@ -2472,7 +2472,8 @@ perfect_nestify (struct loop *loop,
it to one just in case. */ it to one just in case. */
exit_condition = get_loop_exit_condition (newloop); 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); add_referenced_var (uboundvar);
stmt = gimple_build_assign (uboundvar, VEC_index (tree, ubounds, 0)); stmt = gimple_build_assign (uboundvar, VEC_index (tree, ubounds, 0));
uboundvar = make_ssa_name (uboundvar, stmt); uboundvar = make_ssa_name (uboundvar, stmt);
......
2009-03-23 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/39516
* gfortran.dg/pr39516.f: New test.
2009-03-22 Hans-Peter Nilsson <hp@axis.com> 2009-03-22 Hans-Peter Nilsson <hp@axis.com>
* lib/target-libpath.exp (set_ld_library_path_env_vars): * lib/target-libpath.exp (set_ld_library_path_env_vars):
......
C PR tree-optimization/39516
C { dg-do compile }
C { dg-options "-O2 -ftree-loop-linear" }
SUBROUTINE SUB(A, B, M)
IMPLICIT NONE
DOUBLE PRECISION A(20,20), B(20)
INTEGER*8 I, J, K, M
DO I=1,M
DO J=1,M
A(I,J)=A(I,J)+1
END DO
END DO
DO K=1,20
DO I=1,M
DO J=1,M
B(I)=B(I)+A(I,J)
END DO
END DO
END DO
END SUBROUTINE
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment