public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/36922] New: ICE in tree-data-ref.c with -ftree-loop-linear
@ 2008-07-24 20:44 pthaugen at gcc dot gnu dot org
2008-08-02 3:50 ` [Bug tree-optimization/36922] " paolo dot carlini at oracle dot com
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: pthaugen at gcc dot gnu dot org @ 2008-07-24 20:44 UTC (permalink / raw)
To: gcc-bugs
Current trunk is ICE'ing when trying to build CPU2006 benchmark 416.gamess with
-ftree-loop-linear.
run/build_base_gcc_64.0001> cat junk.f
SUBROUTINE GETCOF2(NP,FLM,ZLL,COEFF)
C
IMPLICIT DOUBLE PRECISION(A-H,O-Z)
PARAMETER (MAXCOF=23821)
DIMENSION COEFF(MAXCOF),
* ZLL(0:2*NP+1),FLM(0:2*NP)
C
LENG=0
DO L=0,NP
DO M=0,L
DO LK=M,L
LENG=LENG+1
COEFF(LENG)=FLM(L+M)*FLM(L-M)*ZLL(L-LK)/(FLM(LK+M)*
* FLM(LK-M)*FLM(L-LK)*FLM(L-LK))
ENDDO
ENDDO
ENDDO
C
RETURN
END
run/build_base_gcc_64.0001> /home/pthaugen/install/gcc/trunk/bin/gfortran -c
-O2 -ftree-loop-linear junk.f
junk.f: In function 'getcof2':
junk.f:1: internal compiler error: in initialize_matrix_A, at
tree-data-ref.c:1885
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
--
Summary: ICE in tree-data-ref.c with -ftree-loop-linear
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pthaugen at gcc dot gnu dot org
GCC build triplet: powerpc64-linux
GCC host triplet: powerpc64-linux
GCC target triplet: powerpc64-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36922
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug tree-optimization/36922] ICE in tree-data-ref.c with -ftree-loop-linear
2008-07-24 20:44 [Bug tree-optimization/36922] New: ICE in tree-data-ref.c with -ftree-loop-linear pthaugen at gcc dot gnu dot org
@ 2008-08-02 3:50 ` paolo dot carlini at oracle dot com
2008-08-02 11:51 ` [Bug tree-optimization/36922] [4.4 Regression] " rguenth at gcc dot gnu dot org
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: paolo dot carlini at oracle dot com @ 2008-08-02 3:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from paolo dot carlini at oracle dot com 2008-08-02 03:49 -------
*** Bug 37007 has been marked as a duplicate of this bug. ***
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |janis at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36922
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug tree-optimization/36922] [4.4 Regression] ICE in tree-data-ref.c with -ftree-loop-linear
2008-07-24 20:44 [Bug tree-optimization/36922] New: ICE in tree-data-ref.c with -ftree-loop-linear pthaugen at gcc dot gnu dot org
2008-08-02 3:50 ` [Bug tree-optimization/36922] " paolo dot carlini at oracle dot com
@ 2008-08-02 11:51 ` rguenth at gcc dot gnu dot org
2008-08-04 21:59 ` dje at gcc dot gnu dot org
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-08-02 11:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2008-08-02 11:50 -------
Confirmed by the dup.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |ice-on-valid-code
Priority|P3 |P2
Last reconfirmed|0000-00-00 00:00:00 |2008-08-02 11:50:13
date| |
Summary|ICE in tree-data-ref.c with |[4.4 Regression] ICE in
|-ftree-loop-linear |tree-data-ref.c with -ftree-
| |loop-linear
Target Milestone|--- |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36922
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug tree-optimization/36922] [4.4 Regression] ICE in tree-data-ref.c with -ftree-loop-linear
2008-07-24 20:44 [Bug tree-optimization/36922] New: ICE in tree-data-ref.c with -ftree-loop-linear pthaugen at gcc dot gnu dot org
2008-08-02 3:50 ` [Bug tree-optimization/36922] " paolo dot carlini at oracle dot com
2008-08-02 11:51 ` [Bug tree-optimization/36922] [4.4 Regression] " rguenth at gcc dot gnu dot org
@ 2008-08-04 21:59 ` dje at gcc dot gnu dot org
2008-09-15 16:50 ` jakub at gcc dot gnu dot org
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: dje at gcc dot gnu dot org @ 2008-08-04 21:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from dje at gcc dot gnu dot org 2008-08-04 21:57 -------
Copying from the duplicate PR...
The failure starts with this patch:
http://gcc.gnu.org/viewcvs?view=rev&rev=135116
r135116 | spop | 2008-05-09 16:17:47 +0000 (Fri, 09 May 2008)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36922
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug tree-optimization/36922] [4.4 Regression] ICE in tree-data-ref.c with -ftree-loop-linear
2008-07-24 20:44 [Bug tree-optimization/36922] New: ICE in tree-data-ref.c with -ftree-loop-linear pthaugen at gcc dot gnu dot org
` (2 preceding siblings ...)
2008-08-04 21:59 ` dje at gcc dot gnu dot org
@ 2008-09-15 16:50 ` jakub at gcc dot gnu dot org
2008-11-03 17:24 ` jakub at gcc dot gnu dot org
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-09-15 16:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jakub at gcc dot gnu dot org 2008-09-15 16:49 -------
The ICE is because initialize_matrix_A doesn't expect to see BIT_NOT_EXPR,
which is created by fold:
"Convert -1 - A to ~A." and "Convert -A - 1 to ~A." cases.
I've tried to handle that:
@@ -1896,6 +1896,15 @@ initialize_matrix_A (lambda_matrix A, tr
case INTEGER_CST:
return chrec;
+ /* -1 - A is folded into ~A. */
+ case BIT_NOT_EXPR:
+ {
+ tree op1 = initialize_matrix_A (A, TREE_OPERAND (chrec, 0), index,
mult);
+
+ return chrec_fold_op (MINUS_EXPR, chrec_type (chrec),
+ build_int_cst (TREE_TYPE (chrec), -1), op1);
+ }
+
default:
gcc_unreachable ();
return NULL_TREE;
but unfortunately that doesn't get us very far.
analyze_subscript_affine_affine is called with:
chrec_a: {0, +, 1}_3
chrec_b: {{(integer(kind=8)) ~{0, +, 1}_2, +, 1}_1, +, -1}_3
where nb_vars_a is (probably correctly) 1, but nb_vars_b is just 2, so it tries
to write to *A[3], which is uninitialized. Guess more places would need to
handle BIT_NOT_EXPR, or alternatively scev needs to ensure fold doesn't fold -1
- A into ~A (or undo that folding).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36922
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug tree-optimization/36922] [4.4 Regression] ICE in tree-data-ref.c with -ftree-loop-linear
2008-07-24 20:44 [Bug tree-optimization/36922] New: ICE in tree-data-ref.c with -ftree-loop-linear pthaugen at gcc dot gnu dot org
` (3 preceding siblings ...)
2008-09-15 16:50 ` jakub at gcc dot gnu dot org
@ 2008-11-03 17:24 ` jakub at gcc dot gnu dot org
2008-11-04 1:04 ` spop at gcc dot gnu dot org
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-11-03 17:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jakub at gcc dot gnu dot org 2008-11-03 17:22 -------
Sebastian, any ideas how to fix this one?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36922
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug tree-optimization/36922] [4.4 Regression] ICE in tree-data-ref.c with -ftree-loop-linear
2008-07-24 20:44 [Bug tree-optimization/36922] New: ICE in tree-data-ref.c with -ftree-loop-linear pthaugen at gcc dot gnu dot org
` (5 preceding siblings ...)
2008-11-04 1:04 ` spop at gcc dot gnu dot org
@ 2008-11-04 1:04 ` spop at gcc dot gnu dot org
2008-12-08 14:02 ` jakub at gcc dot gnu dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: spop at gcc dot gnu dot org @ 2008-11-04 1:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from spop at gcc dot gnu dot org 2008-11-04 01:03 -------
Mine.
--
spop at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |spop at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2008-08-02 11:50:13 |2008-11-04 01:03:25
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36922
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug tree-optimization/36922] [4.4 Regression] ICE in tree-data-ref.c with -ftree-loop-linear
2008-07-24 20:44 [Bug tree-optimization/36922] New: ICE in tree-data-ref.c with -ftree-loop-linear pthaugen at gcc dot gnu dot org
` (4 preceding siblings ...)
2008-11-03 17:24 ` jakub at gcc dot gnu dot org
@ 2008-11-04 1:04 ` spop at gcc dot gnu dot org
2008-11-04 1:04 ` spop at gcc dot gnu dot org
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: spop at gcc dot gnu dot org @ 2008-11-04 1:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from spop at gcc dot gnu dot org 2008-11-04 01:03 -------
Subject: Re: [4.4 Regression] ICE in tree-data-ref.c with -ftree-loop-linear
> Sebastian, any ideas how to fix this one?
I will look at this bug.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36922
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug tree-optimization/36922] [4.4 Regression] ICE in tree-data-ref.c with -ftree-loop-linear
2008-07-24 20:44 [Bug tree-optimization/36922] New: ICE in tree-data-ref.c with -ftree-loop-linear pthaugen at gcc dot gnu dot org
` (6 preceding siblings ...)
2008-11-04 1:04 ` spop at gcc dot gnu dot org
@ 2008-12-08 14:02 ` jakub at gcc dot gnu dot org
2009-01-08 18:08 ` janis at gcc dot gnu dot org
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-12-08 14:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from jakub at gcc dot gnu dot org 2008-12-08 14:00 -------
Any news on this?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36922
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug tree-optimization/36922] [4.4 Regression] ICE in tree-data-ref.c with -ftree-loop-linear
2008-07-24 20:44 [Bug tree-optimization/36922] New: ICE in tree-data-ref.c with -ftree-loop-linear pthaugen at gcc dot gnu dot org
` (7 preceding siblings ...)
2008-12-08 14:02 ` jakub at gcc dot gnu dot org
@ 2009-01-08 18:08 ` janis at gcc dot gnu dot org
2009-02-17 17:39 ` jakub at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: janis at gcc dot gnu dot org @ 2009-01-08 18:08 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 618 bytes --]
------- Comment #9 from janis at gcc dot gnu dot org 2009-01-08 18:08 -------
I tried the submitter's testcase on i686-pc-linux-gnu using trunk revision
143188 (today) and got the same ICE:
laptop% /home/janis/tools/gcc-trunk-bid/bin/gfortran -c -O2 -ftree-loop-linear
36922.f
36922.f: In function getcof2:
36922.f:1: internal compiler error: in initialize_matrix_A, at
tree-data-ref.c:1903
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
This isn't specific to powerpc.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36922
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug tree-optimization/36922] [4.4 Regression] ICE in tree-data-ref.c with -ftree-loop-linear
2008-07-24 20:44 [Bug tree-optimization/36922] New: ICE in tree-data-ref.c with -ftree-loop-linear pthaugen at gcc dot gnu dot org
` (8 preceding siblings ...)
2009-01-08 18:08 ` janis at gcc dot gnu dot org
@ 2009-02-17 17:39 ` jakub at gcc dot gnu dot org
2009-02-17 23:21 ` jakub at gcc dot gnu dot org
2009-02-17 23:38 ` jakub at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-02-17 17:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from jakub at gcc dot gnu dot org 2009-02-17 17:38 -------
Created an attachment (id=17312)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17312&action=view)
gcc44-pr36922.patch
Patch that fixes this for me. I'm going to bootstrap/regtest it now.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36922
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug tree-optimization/36922] [4.4 Regression] ICE in tree-data-ref.c with -ftree-loop-linear
2008-07-24 20:44 [Bug tree-optimization/36922] New: ICE in tree-data-ref.c with -ftree-loop-linear pthaugen at gcc dot gnu dot org
` (9 preceding siblings ...)
2009-02-17 17:39 ` jakub at gcc dot gnu dot org
@ 2009-02-17 23:21 ` jakub at gcc dot gnu dot org
2009-02-17 23:38 ` jakub at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-02-17 23:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from jakub at gcc dot gnu dot org 2009-02-17 23:21 -------
Subject: Bug 36922
Author: jakub
Date: Tue Feb 17 23:21:23 2009
New Revision: 144250
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144250
Log:
PR tree-optimization/36922
* tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
* tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
Likewise.
* gfortran.dg/pr36922.f: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/pr36922.f
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-data-ref.c
trunk/gcc/tree-scalar-evolution.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36922
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug tree-optimization/36922] [4.4 Regression] ICE in tree-data-ref.c with -ftree-loop-linear
2008-07-24 20:44 [Bug tree-optimization/36922] New: ICE in tree-data-ref.c with -ftree-loop-linear pthaugen at gcc dot gnu dot org
` (10 preceding siblings ...)
2009-02-17 23:21 ` jakub at gcc dot gnu dot org
@ 2009-02-17 23:38 ` jakub at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-02-17 23:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from jakub at gcc dot gnu dot org 2009-02-17 23:37 -------
Fixed.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36922
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2009-02-17 23:38 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-24 20:44 [Bug tree-optimization/36922] New: ICE in tree-data-ref.c with -ftree-loop-linear pthaugen at gcc dot gnu dot org
2008-08-02 3:50 ` [Bug tree-optimization/36922] " paolo dot carlini at oracle dot com
2008-08-02 11:51 ` [Bug tree-optimization/36922] [4.4 Regression] " rguenth at gcc dot gnu dot org
2008-08-04 21:59 ` dje at gcc dot gnu dot org
2008-09-15 16:50 ` jakub at gcc dot gnu dot org
2008-11-03 17:24 ` jakub at gcc dot gnu dot org
2008-11-04 1:04 ` spop at gcc dot gnu dot org
2008-11-04 1:04 ` spop at gcc dot gnu dot org
2008-12-08 14:02 ` jakub at gcc dot gnu dot org
2009-01-08 18:08 ` janis at gcc dot gnu dot org
2009-02-17 17:39 ` jakub at gcc dot gnu dot org
2009-02-17 23:21 ` jakub at gcc dot gnu dot org
2009-02-17 23:38 ` jakub 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).