From mboxrd@z Thu Jan 1 00:00:00 1970 From: jef.alpha.soft@wanadoo.fr To: gcc-gnats@gcc.gnu.org Subject: optimization/3289: Illegal code generated with -O Date: Wed, 20 Jun 2001 05:56:00 -0000 Message-id: <20010620125005.17010.qmail@sourceware.cygnus.com> X-SW-Source: 2001-06/msg00822.html List-Id: >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: