gcc codegen bug
Martin v. Loewis
martin@loewis.home.cs.tu-berlin.de
Wed May 3 23:56:00 GMT 2000
> I ran into what seems to be a codegen problem in egcs-2.91.66 in my code
> and I'm sending you a small code snippet with the same symptoms. The
> resulting binary will crash, according to gdb on line 22.
>
> The incorrect crashing code is generated only when building at -O2, at
> -O0, -O1 the code does not crash.
>
> gcc version:
> GNU CPP version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) (i386
> Linux/ELF)
>
> compile line:
> gcc -g -O2 bug.c -o bug
Thanks for your bug report. Unfortunately, I cannot reproduce this
with egcs 1.1.2, on i586-pc-linux-gnu, with glibc 2.1.3. Please have a
look at the section "Reporting Bugs" of the gcc manual. At the
minimum, you should include the assembler output for this file. Even
better, provide as much analysis as you can. For example, telling us
exactly which assembler instruction is wrong would greatly help.
Regards,
Martin
More information about the Gcc-bugs
mailing list