optimization/3289: Illegal code generated with -O

jef.alpha.soft@wanadoo.fr jef.alpha.soft@wanadoo.fr
Wed Jun 20 05:56:00 GMT 2001


>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:



More information about the Gcc-bugs mailing list