This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/6964: Internal compiler error using -O2 but ok using -O0
- From: Reichelt <reichelt at igpm dot rwth-aachen dot de>
- To: gcc-gnats at gcc dot gnu dot org, jari at thep dot lu dot se, nobody at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org
- Date: Wed, 12 Jun 2002 17:14:48 +0200
- Subject: Re: c/6964: Internal compiler error using -O2 but ok using -O0
Hi,
the testcase can be reduced to the following code snippet
(which even fails with "gcc -O -c"):
------------------------------snip here--------------------------
float foo (void)
{
float x[2];
return x[1];
}
------------------------------snip here--------------------------
The bug is a regression from 3.0.x and is present in 3.1 and the main
trunk (gcc 3.2 20020609) - checked on a i686-pc-linux-gnu.
Greetings,
Volker Reichelt
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6964