c++/6891: G++ generates incorrect code when -Os is used
av1474@comtv.ru
av1474@comtv.ru
Fri May 31 18:46:00 GMT 2002
>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:
More information about the Gcc-bugs
mailing list