gcc 3.1 hangs forever on Red Hat 7.2 system
Jakub Jelinek
jakub@redhat.com
Wed Jun 5 00:06:00 GMT 2002
On Tue, Jun 04, 2002 at 09:39:51PM -0700, Andy Tai wrote:
> Hi, I think this is a possible bug in gcc 3.1 but I
> send to this list to be sure first. On a Red Hat
> GNU/Linux 7.2 system (x86), with gcc 3.1, when
> compiling the following source file with optimization
> turned on (-O1 or above), gcc 3.1 hangs forever. With
> optimization off (or use -O0), gcc 3.1 finishes
> compiling with no problems.
>
> test.c:
> -----
> void f(void)
> {
> char *c;
> do
> {
> if (c)
> break;
> } while (1);
> if (!c)
> while (1)
> f();
> }
> -----
> The following command will hang forever (same with
> -O2, -O3, etc.):
>
> % gcc -O1 -c test.c
This should be reported into http://gcc.gnu.org/gnats.html, not here.
Anyway, I'll work on this.
Jakub
More information about the Gcc
mailing list