This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/5706: Internal error and SEGFAULT for "-O2 -funroll-all-loops"
- From: Reichelt <reichelt at igpm dot rwth-aachen dot de>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 18 Feb 2002 09:26:01 -0000
- Subject: Re: optimization/5706: Internal error and SEGFAULT for "-O2 -funroll-all-loops"
- Reply-to: Reichelt <reichelt at igpm dot rwth-aachen dot de>
The following reply was made to PR optimization/5706; it has been noted by GNATS.
From: Reichelt <reichelt@igpm.rwth-aachen.de>
To: gcc-gnats@gcc.gnu.org, valtri@atlas.cz, nobody@gcc.gnu.org,
rodrigc@gcc.gnu.org
Cc:
Subject: Re: optimization/5706: Internal error and SEGFAULT for "-O2 -funroll-all-loops"
Date: Mon, 18 Feb 2002 10:47:05 +0100
Hi,
I was able to reconstruct the attachment to the bug report and reduce it
quite a bit. The problem boils down to the following lines of code:
---------------------snip here-------------------------
int i;
void foo(void)
{
while (i) __extension__ ({ if (0) ; else i--; });
}
---------------------snip here-------------------------
Compiled with "gcc -c -O2 -funroll-all-loops" using gcc 3.0.x on an
i686-pc-linux-gnu the code snipped causes an ICE:
bug.c: In function `foo':
bug.c:6: Internal error: Segmentation fault
Please submit a full bug report, [etc.]
The bug does not seem to affect gcc 3.1, however.
Greetings,
Volker Reichelt