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]
Other format: [Raw text]

c++/6891: G++ generates incorrect code when -Os is used



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


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