public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/23817] New: ICE in check_loop_closed_ssa_use, at tree-ssa-loop-manip.c:398
@ 2005-09-11 7:20 belyshev at depni dot sinp dot msu dot ru
2005-09-11 10:39 ` [Bug tree-optimization/23817] " belyshev at depni dot sinp dot msu dot ru
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: belyshev at depni dot sinp dot msu dot ru @ 2005-09-11 7:20 UTC (permalink / raw)
To: gcc-bugs
// test case, compile with -O3
int foo1 (void);
void foo2 (int);
static int foo9 (int k)
{
return ((k == 0x00) || (k == 0x10) || (k == 0x14));
}
static int foo8 (int *p)
{
return *p;
}
void foo6 (int *p)
{
int a, b, c, d, e = 0;
foo8 (p);
b = 0;
do
{
b++;
a = foo1();
}
while (b < 3 && (!foo9 (a)));
repeat:
d = 3;
do
{
c = foo1 ();
if (c)
foo1 ();
d--;
}
while (c && d);
if (c && !e)
{
foo2 (c);
return;
}
if (!e)
{
e = 1;
goto repeat;
}
}
// compiler output:
sd.i: In function 'foo6':
sd.i:15: internal compiler error: in check_loop_closed_ssa_use, at
tree-ssa-loop-manip.c:398
--
Summary: ICE in check_loop_closed_ssa_use, at tree-ssa-loop-
manip.c:398
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P2
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: belyshev at depni dot sinp dot msu dot ru
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23817
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/23817] ICE in check_loop_closed_ssa_use, at tree-ssa-loop-manip.c:398
2005-09-11 7:20 [Bug tree-optimization/23817] New: ICE in check_loop_closed_ssa_use, at tree-ssa-loop-manip.c:398 belyshev at depni dot sinp dot msu dot ru
@ 2005-09-11 10:39 ` belyshev at depni dot sinp dot msu dot ru
2005-09-11 14:32 ` [Bug tree-optimization/23817] [4.1 Regression] " pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: belyshev at depni dot sinp dot msu dot ru @ 2005-09-11 10:39 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From belyshev at depni dot sinp dot msu dot ru 2005-09-11 10:39 -------
// another testcase, compile with -O3
int b;
void foo1 (int);
void foo (void)
{
int i, j, k, l;
short v;
for (i = 0; i < 10; i ++)
{
for (l = 0; l < 10; l++)
{
asm volatile ("\n" : "=a" (v));
j = v;
if (j)
{
k = 1;
goto out;
}
}
if (b)
foo1 (j);
k = 0;
out:
if (!k)
return;
}
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23817
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/23817] [4.1 Regression] ICE in check_loop_closed_ssa_use, at tree-ssa-loop-manip.c:398
2005-09-11 7:20 [Bug tree-optimization/23817] New: ICE in check_loop_closed_ssa_use, at tree-ssa-loop-manip.c:398 belyshev at depni dot sinp dot msu dot ru
2005-09-11 10:39 ` [Bug tree-optimization/23817] " belyshev at depni dot sinp dot msu dot ru
@ 2005-09-11 14:32 ` pinskia at gcc dot gnu dot org
2005-09-11 15:23 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-11 14:32 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-11 14:31 -------
Confirmed a regression.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-09-11 14:31:58
date| |
Summary|ICE in |[4.1 Regression] ICE in
|check_loop_closed_ssa_use, |check_loop_closed_ssa_use,
|at tree-ssa-loop-manip.c:398|at tree-ssa-loop-manip.c:398
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23817
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/23817] [4.1 Regression] ICE in check_loop_closed_ssa_use, at tree-ssa-loop-manip.c:398
2005-09-11 7:20 [Bug tree-optimization/23817] New: ICE in check_loop_closed_ssa_use, at tree-ssa-loop-manip.c:398 belyshev at depni dot sinp dot msu dot ru
2005-09-11 10:39 ` [Bug tree-optimization/23817] " belyshev at depni dot sinp dot msu dot ru
2005-09-11 14:32 ` [Bug tree-optimization/23817] [4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-09-11 15:23 ` pinskia at gcc dot gnu dot org
2005-09-11 15:35 ` rakdver at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-11 15:23 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-11 15:23 -------
This is after complete unrolling.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23817
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/23817] [4.1 Regression] ICE in check_loop_closed_ssa_use, at tree-ssa-loop-manip.c:398
2005-09-11 7:20 [Bug tree-optimization/23817] New: ICE in check_loop_closed_ssa_use, at tree-ssa-loop-manip.c:398 belyshev at depni dot sinp dot msu dot ru
` (2 preceding siblings ...)
2005-09-11 15:23 ` pinskia at gcc dot gnu dot org
@ 2005-09-11 15:35 ` rakdver at gcc dot gnu dot org
2005-09-12 9:32 ` rakdver at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2005-09-11 15:35 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rakdver at gcc dot gnu dot org 2005-09-11 15:35 -------
Smaller testcase:
int b;
void foo1 (int);
void foo (void)
{
int i, j, k, l;
short v;
for (i = 0; i < 10; i ++)
{
for (l = 0; l < 10; l++)
{
asm volatile ("\n" : "=a" (v));
j = v;
if (j)
goto out;
}
if (b)
foo1 (j);
return;
out: ;
}
}
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rakdver at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23817
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/23817] [4.1 Regression] ICE in check_loop_closed_ssa_use, at tree-ssa-loop-manip.c:398
2005-09-11 7:20 [Bug tree-optimization/23817] New: ICE in check_loop_closed_ssa_use, at tree-ssa-loop-manip.c:398 belyshev at depni dot sinp dot msu dot ru
` (3 preceding siblings ...)
2005-09-11 15:35 ` rakdver at gcc dot gnu dot org
@ 2005-09-12 9:32 ` rakdver at gcc dot gnu dot org
2005-09-13 7:34 ` cvs-commit at gcc dot gnu dot org
2005-09-13 13:47 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2005-09-12 9:32 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rakdver at gcc dot gnu dot org 2005-09-12 09:32 -------
Patch.
--
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2005-
| |09/msg00706.html
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23817
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/23817] [4.1 Regression] ICE in check_loop_closed_ssa_use, at tree-ssa-loop-manip.c:398
2005-09-11 7:20 [Bug tree-optimization/23817] New: ICE in check_loop_closed_ssa_use, at tree-ssa-loop-manip.c:398 belyshev at depni dot sinp dot msu dot ru
` (4 preceding siblings ...)
2005-09-12 9:32 ` rakdver at gcc dot gnu dot org
@ 2005-09-13 7:34 ` cvs-commit at gcc dot gnu dot org
2005-09-13 13:47 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-09-13 7:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-09-13 07:33 -------
Subject: Bug 23817
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: rakdver@gcc.gnu.org 2005-09-13 07:33:50
Modified files:
gcc : ChangeLog tree-cfg.c
Log message:
PR tree-optimize/23817
* tree-cfg.c (tree_merge_blocks): Preserve loop closed ssa.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9943&r2=2.9944
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-cfg.c.diff?cvsroot=gcc&r1=2.220&r2=2.221
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23817
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/23817] [4.1 Regression] ICE in check_loop_closed_ssa_use, at tree-ssa-loop-manip.c:398
2005-09-11 7:20 [Bug tree-optimization/23817] New: ICE in check_loop_closed_ssa_use, at tree-ssa-loop-manip.c:398 belyshev at depni dot sinp dot msu dot ru
` (5 preceding siblings ...)
2005-09-13 7:34 ` cvs-commit at gcc dot gnu dot org
@ 2005-09-13 13:47 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-13 13:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-13 13:46 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23817
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-09-13 13:47 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-11 7:20 [Bug tree-optimization/23817] New: ICE in check_loop_closed_ssa_use, at tree-ssa-loop-manip.c:398 belyshev at depni dot sinp dot msu dot ru
2005-09-11 10:39 ` [Bug tree-optimization/23817] " belyshev at depni dot sinp dot msu dot ru
2005-09-11 14:32 ` [Bug tree-optimization/23817] [4.1 Regression] " pinskia at gcc dot gnu dot org
2005-09-11 15:23 ` pinskia at gcc dot gnu dot org
2005-09-11 15:35 ` rakdver at gcc dot gnu dot org
2005-09-12 9:32 ` rakdver at gcc dot gnu dot org
2005-09-13 7:34 ` cvs-commit at gcc dot gnu dot org
2005-09-13 13:47 ` pinskia 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).