This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gcc codegen bug
- To: pavel at eazel dot com
- Subject: Re: gcc codegen bug
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Thu, 4 May 2000 08:51:01 +0200
- CC: gcc-bugs at gcc dot gnu dot org
- References: <390F34EC.6E1B52D7@eazel.com>
> 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