This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/19910] New: ICE with -ftree-loop-linear
- From: "dalej at apple dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Feb 2005 19:08:27 -0000
- Subject: [Bug tree-optimization/19910] New: ICE with -ftree-loop-linear
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following gets an ICE with -O3 -ftree-loop-linear:
int x[6][5][4];
int y[6][5][4];
void initx(void)
{
int a,b,c;
int index = 0;
for(a = 5; a >=2; a--)
for (b = (a - 1); b >=1; b--)
for (c = (b - 1); c >=0; c--)
x[a][b][c] = index++;
}
void inity(void)
{
int d,e,f;
int index = 0;
for(d = 5; d >=2; d--)
for (e = (d - 1); e >=1; e--)
for (f = (e - 1); f >=0; f--)
y[d][e][f] = index++;
}
void foo() {
initx();
inity();
}
--
Summary: ICE with -ftree-loop-linear
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dalej at apple dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: powerpc-apple-darwin8.0.0
GCC host triplet: powerpc-apple-darwin8.0.0
GCC target triplet: powerpc-apple-darwin8.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19910