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]

optimization/3289: Illegal code generated with -O



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


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