This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/17560] [4.0 Regression] Segmentation fault compiling prdtoa.c with -Os
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Sep 2004 02:00:54 -0000
- Subject: [Bug tree-optimization/17560] [4.0 Regression] Segmentation fault compiling prdtoa.c with -Os
- References: <20040919165202.17560.kherron+gcc@fmailbox.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-09-20 02:00 -------
Here's a reduced testcase:
================================
void foo()
{
int i, j;
if (i)
{
i++;
goto L;
}
for (; i-1; )
{
L:
for (j=0; j<i; j++) ;
}
}
================================
Just compile with "gcc -Os" to see the crash.
We seem to run into an infinite loop. The compiler runs out of memory
rather quickly.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |monitored
Last reconfirmed|0000-00-00 00:00:00 |2004-09-20 02:00:53
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17560