This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
optimization/3289: Illegal code generated with -O
- To: gcc-gnats at gcc dot gnu dot org
- Subject: optimization/3289: Illegal code generated with -O
- From: jef dot alpha dot soft at wanadoo dot fr
- Date: 20 Jun 2001 12:50:05 -0000
- Reply-To: jef dot alpha dot soft at wanadoo dot fr
>Number: 3289
>Category: optimization
>Synopsis: Illegal code generated with -O
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: wrong-code
>Submitter-Id: net
>Arrival-Date: Wed Jun 20 05:56:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: jef.alpha.soft@wanadoo.fr
>Release: gcc-3.0
>Organization:
>Environment:
Linux 2.4.0 under double Pentium PRO
>Description:
When compiling this short module, result is false :-(, seem that in ASM, the inc of %ebx at line 16 of ASM file is not a right place. "aa.c" is just my strlower() function.
>How-To-Repeat:
gcc -O -o aa aa.c
or just have a look at the asm generated by :
gcc -O -S aa.c
>Fix:
don't use -O option
>Release-Note:
>Audit-Trail:
>Unformatted: