* [Bug middle-end/18005] ICE in fold-const.c/fold
2004-10-15 5:26 [Bug middle-end/18005] New: ICE in fold-const.c/fold aj at gcc dot gnu dot org
@ 2004-10-15 5:27 ` aj at gcc dot gnu dot org
2004-10-15 12:55 ` [Bug middle-end/18005] [4.0 Regression] " pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: aj at gcc dot gnu dot org @ 2004-10-15 5:27 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From aj at gcc dot gnu dot org 2004-10-15 05:27 -------
Created an attachment (id=7355)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7355&action=view)
Preprocessed source file
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18005
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/18005] [4.0 Regression] ICE in fold-const.c/fold
2004-10-15 5:26 [Bug middle-end/18005] New: ICE in fold-const.c/fold aj at gcc dot gnu dot org
2004-10-15 5:27 ` [Bug middle-end/18005] " aj at gcc dot gnu dot org
@ 2004-10-15 12:55 ` pinskia at gcc dot gnu dot org
2004-10-15 13:26 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-15 12:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-15 12:55 -------
The SSA_NAME lost its type (again).
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Summary|ICE in fold-const.c/fold |[4.0 Regression] ICE in
| |fold-const.c/fold
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18005
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/18005] [4.0 Regression] ICE in fold-const.c/fold
2004-10-15 5:26 [Bug middle-end/18005] New: ICE in fold-const.c/fold aj at gcc dot gnu dot org
2004-10-15 5:27 ` [Bug middle-end/18005] " aj at gcc dot gnu dot org
2004-10-15 12:55 ` [Bug middle-end/18005] [4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2004-10-15 13:26 ` pinskia at gcc dot gnu dot org
2004-10-16 15:37 ` [Bug middle-end/18005] [4.0 Regression] ICE with simple loop reichelt at gcc dot gnu dot org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-15 13:26 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-15 13:25 -------
Confirmed, reduced to:
extern int printf (__const char *__restrict __format, ...);
const int nseq = 3;
const int nrnd = 50;
void fail () __attribute__ ((__noreturn__));
long random();
int
main (void)
{
long int rnd[3][nrnd];
char* state[nseq];
int s;
int i;
for (i = 0; i < nrnd; ++i)
for (s = 0; s < nseq; ++s)
if (rnd[s][i] != random ())
fail ();
return 0;
}
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |dberlin at gcc dot gnu dot
| |org, spop at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-10-15 13:26:01
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18005
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/18005] [4.0 Regression] ICE with simple loop
2004-10-15 5:26 [Bug middle-end/18005] New: ICE in fold-const.c/fold aj at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-10-15 13:26 ` pinskia at gcc dot gnu dot org
@ 2004-10-16 15:37 ` reichelt at gcc dot gnu dot org
2004-10-18 22:55 ` [Bug middle-end/18005] [4.0 Regression] ICE with simple loop with VLA pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-10-16 15:37 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-10-16 15:37 -------
Here's an even shorter example. Just compile with "-O".
============================================
const int n = 2;
void foo()
{
int a[1][n], i;
for (i=0; i<2; ++i)
if (a[0][i]) return;
}
============================================
Sebastian, the problem appeared with your patch
http://gcc.gnu.org/ml/gcc-cvs/2004-10/msg00852.html
Could you please have a look?
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
GCC build triplet|x86_64-linux-gnu |
GCC host triplet|x86_64-linux-gnu |
GCC target triplet|x86_64-linux-gnu |
Keywords| |monitored
Summary|[4.0 Regression] ICE in |[4.0 Regression] ICE with
|fold-const.c/fold |simple loop
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18005
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/18005] [4.0 Regression] ICE with simple loop with VLA
2004-10-15 5:26 [Bug middle-end/18005] New: ICE in fold-const.c/fold aj at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-10-16 15:37 ` [Bug middle-end/18005] [4.0 Regression] ICE with simple loop reichelt at gcc dot gnu dot org
@ 2004-10-18 22:55 ` pinskia at gcc dot gnu dot org
2004-10-19 4:14 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-18 22:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-18 22:55 -------
It really has nothing to do with that patch we are losing the TYPE_SIZE of the VLA, why?
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |rth at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18005
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/18005] [4.0 Regression] ICE with simple loop with VLA
2004-10-15 5:26 [Bug middle-end/18005] New: ICE in fold-const.c/fold aj at gcc dot gnu dot org
` (4 preceding siblings ...)
2004-10-18 22:55 ` [Bug middle-end/18005] [4.0 Regression] ICE with simple loop with VLA pinskia at gcc dot gnu dot org
@ 2004-10-19 4:14 ` pinskia at gcc dot gnu dot org
2004-10-19 10:03 ` sebastian dot pop at cri dot ensmp dot fr
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-19 4:14 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-19 04:14 -------
*** Bug 18052 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |phython at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18005
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/18005] [4.0 Regression] ICE with simple loop with VLA
2004-10-15 5:26 [Bug middle-end/18005] New: ICE in fold-const.c/fold aj at gcc dot gnu dot org
` (5 preceding siblings ...)
2004-10-19 4:14 ` pinskia at gcc dot gnu dot org
@ 2004-10-19 10:03 ` sebastian dot pop at cri dot ensmp dot fr
2004-10-31 17:37 ` phython at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: sebastian dot pop at cri dot ensmp dot fr @ 2004-10-19 10:03 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From sebastian dot pop at cri dot ensmp dot fr 2004-10-19 10:03 -------
Subject: Re: [4.0 Regression] ICE with simple loop with VLA
Patch is here:
http://gcc.gnu.org/ml/gcc-patches/2004-10/msg01592.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18005
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/18005] [4.0 Regression] ICE with simple loop with VLA
2004-10-15 5:26 [Bug middle-end/18005] New: ICE in fold-const.c/fold aj at gcc dot gnu dot org
` (6 preceding siblings ...)
2004-10-19 10:03 ` sebastian dot pop at cri dot ensmp dot fr
@ 2004-10-31 17:37 ` phython at gcc dot gnu dot org
2004-11-12 0:13 ` cvs-commit at gcc dot gnu dot org
2004-11-12 1:08 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: phython at gcc dot gnu dot org @ 2004-10-31 17:37 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From phython at gcc dot gnu dot org 2004-10-31 17:37 -------
*** Bug 18253 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |atmosfear at users dot
| |sourceforge dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18005
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/18005] [4.0 Regression] ICE with simple loop with VLA
2004-10-15 5:26 [Bug middle-end/18005] New: ICE in fold-const.c/fold aj at gcc dot gnu dot org
` (7 preceding siblings ...)
2004-10-31 17:37 ` phython at gcc dot gnu dot org
@ 2004-11-12 0:13 ` cvs-commit at gcc dot gnu dot org
2004-11-12 1:08 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-11-12 0:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-11-12 00:13 -------
Subject: Bug 18005
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: spop@gcc.gnu.org 2004-11-12 00:13:07
Modified files:
gcc : ChangeLog tree-data-ref.c
Log message:
* tree-data-ref.c (analyze_subscript_affine_affine): Correctly
compute the first overlapping iterations.
PR middle-end/18005
* tree-data-ref.c (estimate_niter_from_size_of_data): Ensure
that arguments of EXACT_DIV_EXPR are INTEGER_CST.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.6291&r2=2.6292
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-data-ref.c.diff?cvsroot=gcc&r1=2.16&r2=2.17
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18005
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/18005] [4.0 Regression] ICE with simple loop with VLA
2004-10-15 5:26 [Bug middle-end/18005] New: ICE in fold-const.c/fold aj at gcc dot gnu dot org
` (8 preceding siblings ...)
2004-11-12 0:13 ` cvs-commit at gcc dot gnu dot org
@ 2004-11-12 1:08 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-12 1:08 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-12 01:08 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18005
^ permalink raw reply [flat|nested] 11+ messages in thread