re PR debug/41229 (VTA: internal compiler error: verify_ssa failed)

gcc/ChangeLog:
PR debug/41229
PR debug/41291
PR debug/41300
* tree-ssa.c (execute_update_addresses_taken): Update debug insns.
gcc/testsuite/ChangeLog:
PR debug/41229
PR debug/41291
PR debug/41300
* gfortran.dg/pr41229.f90: New.

From-SVN: r151521
This commit is contained in:
Alexandre Oliva 2009-09-08 17:42:11 +00:00 committed by Alexandre Oliva
parent ae0a44495f
commit 91642126f3
4 changed files with 26 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2009-09-08 Alexandre Oliva <aoliva@redhat.com>
PR debug/41229
PR debug/41291
PR debug/41300
* tree-ssa.c (execute_update_addresses_taken): Update debug insns.
2009-09-08 Alexandre Oliva <aoliva@redhat.com>
* tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.

View file

@ -1,3 +1,10 @@
2009-09-08 Alexandre Oliva <aoliva@redhat.com>
PR debug/41229
PR debug/41291
PR debug/41300
* gfortran.dg/pr41229.f90: New.
2009-09-08 Alexandre Oliva <aoliva@redhat.com>
PR debug/41232

View file

@ -0,0 +1,10 @@
! { dg-do compile }
! { dg-options "-O2 -g" }
SUBROUTINE cp_fm_triangular_multiply()
INTEGER, PARAMETER :: dp=KIND(0.0D0)
REAL(dp), ALLOCATABLE, DIMENSION(:) :: tau, work
REAL(KIND=dp), DIMENSION(:, :), POINTER :: a
ndim = SIZE(a,2)
ALLOCATE(tau(ndim),STAT=istat)
ALLOCATE(work(2*ndim),STAT=istat)
END SUBROUTINE

View file

@ -1963,7 +1963,8 @@ execute_update_addresses_taken (bool do_optimize)
{
gimple stmt = gsi_stmt (gsi);
if (gimple_references_memory_p (stmt))
if (gimple_references_memory_p (stmt)
|| is_gimple_debug (stmt))
update_stmt (stmt);
}