public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/6891: G++ generates incorrect code when -Os is used
@ 2002-05-31 19:06 av1474
  0 siblings, 0 replies; only message in thread
From: av1474 @ 2002-05-31 19:06 UTC (permalink / raw)
  To: gcc-gnats


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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-06-01  1:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-31 19:06 c++/6891: G++ generates incorrect code when -Os is used av1474

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).