public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/43023]  New: missing SSA_NAME def for -ftree-loop-distribution in 459.GemsFDTD
@ 2010-02-10 17:54 janis at gcc dot gnu dot org
  2010-02-10 18:25 ` [Bug tree-optimization/43023] " rguenth at gcc dot gnu dot org
  0 siblings, 1 reply; 7+ messages in thread
From: janis at gcc dot gnu dot org @ 2010-02-10 17:54 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1981 bytes --]

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-12-23 18:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-43023-4@http.gcc.gnu.org/bugzilla/>
2010-12-08 20:44 ` [Bug tree-optimization/43023] missing SSA_NAME def for -ftree-loop-distribution in 459.GemsFDTD spop at gcc dot gnu.org
2010-12-09 23:54 ` spop at gcc dot gnu.org
2010-12-10 19:17 ` spop at gcc dot gnu.org
2010-12-10 19:49 ` spop at gcc dot gnu.org
2010-12-23 18:52 ` spop at gcc dot gnu.org
2010-12-23 18:53 ` spop at gcc dot gnu.org
2010-02-10 17:54 [Bug tree-optimization/43023] New: " janis at gcc dot gnu dot org
2010-02-10 18:25 ` [Bug tree-optimization/43023] " rguenth at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).