[Bug tree-optimization/43023] New: missing SSA_NAME def for -ftree-loop-distribution in 459.GemsFDTD
janis at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Feb 10 17:54:00 GMT 2010
GCC trunk gets an internal compiler error when building SPEC CPU2006 test
459.GemsFDTD on powerpc64-linux with "-O2 -ftree-loop-distribution" for either
-m32 or -m64, as demonstrated by this minimized testcase:
-----------------------------------------------------------------
MODULE NFT_mod
implicit none
integer :: Nangle
real:: Z0
real, dimension(:,:), allocatable :: Angle
real, dimension(:), allocatable :: exth, ezth, hxth, hyth, hyphi
CONTAINS
SUBROUTINE NFT_Init()
real :: th, fi
integer :: n
do n = 1,Nangle
th = Angle(n,1)
fi = Angle(n,2)
exth(n) = cos(fi)*cos(th)
ezth(n) = -sin(th)
hxth(n) = -sin(fi)
hyth(n) = cos(fi)
hyphi(n) = -sin(fi)
end do
END SUBROUTINE NFT_Init
END MODULE NFT_mod
-----------------------------------------------------------------
elm3b149% /home/janis/tools/gcc-trunk-anonsvn/bin/gfortran -c -O2
-ftree-loop-distribution bug.f90
bug.f90: In function Ânft_initÂ:
bug.f90:11:0: error: missing definition
for SSA_NAME: D.772_61 in statement:
# .MEM_98 = VDEF <.MEM_83>
(*pretmp.25_71)[D.772_61] = D.775_97;
bug.f90:11:0: internal compiler error: verify_ssa failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
The testcase and GemsFTDT compile correctly with GCC 4.4.2. The failure starts
with this patch:
http://gcc.gnu.org/viewcvs?view=rev&rev=151761
r151761 | matz | 2009-09-16 16:12:18 +0000 (Wed, 16 Sep 2009)
--
Summary: missing SSA_NAME def for -ftree-loop-distribution in
459.GemsFDTD
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: janis at gcc dot gnu dot org
GCC target triplet: powerpc64-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43023
More information about the Gcc-bugs
mailing list