This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/6891: G++ generates incorrect code when -Os is used
- From: av1474 at comtv dot ru
- To: gcc-gnats at gcc dot gnu dot org
- Date: 1 Jun 2002 01:41:00 -0000
- Subject: c++/6891: G++ generates incorrect code when -Os is used
- Reply-to: av1474 at comtv dot ru
>Number: 6891
>Category: c++
>Synopsis: G++ generates incorrect code when -Os is used
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: wrong-code
>Submitter-Id: net
>Arrival-Date: Fri May 31 18:46:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Vassili Kaprov
>Release: gcc version 3.1
>Organization:
>Environment:
Linux 2.4.16 i686 unknown
>Description:
G++ emits wrong code for following fragment:
char * p = name; while (*p) *p++ = (char)tolower (*p);
when invoked like this:
gcc -Os moo.cpp
>How-To-Repeat:
Get http://algol.prosalg.no/~malc/okasankaar-pl1.zip and observe (make CC=g++ is needed for 3.1)
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: