This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcc codegen bug


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]