From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3114 invoked by alias); 8 Jan 2010 18:58:13 -0000 Received: (qmail 3056 invoked by uid 48); 8 Jan 2010 18:58:02 -0000 Date: Fri, 08 Jan 2010 18:58:00 -0000 Message-ID: <20100108185802.3055.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/42393] [4.5 Regression] [graphite] internal compiler error: in check_loop_closed_ssa_use In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "spop at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-01/txt/msg00977.txt.bz2 ------- Comment #11 from spop at gcc dot gnu dot org 2010-01-08 18:58 ------- On the graphite branch this fails with the following options: gfortran -O2 -fno-loop-block -fno-loop-interchange -fno-loop-strip-mine -fgraphite-identity pr42393.f90 Here is a further reduced testcase. MODULE beta_gamma_psi INTEGER, PARAMETER :: dp=KIND(0.0D0) CONTAINS FUNCTION basym () RESULT(fn_val) REAL(dp) :: b0(21), bsum, d(21) DO n = 2, num, 2 DO i = n, np1 b0(1) = 1 DO m = 2, i mm1 = m - 1 DO j = 1, mm1 bsum = bsum + b0(j) END DO b0(m) = bsum END DO d(i) = -b0(i) END DO sum = sum + d(n) END DO fn_val = sum END FUNCTION basym END MODULE beta_gamma_psi The problem seems to be in the code generation when replacing the end value from a loop. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42393