optimization/4130: gcc 3.0 -O2 and printf optimization

rth@gcc.gnu.org rth@gcc.gnu.org
Wed Apr 3 00:23:00 GMT 2002


Synopsis: gcc 3.0 -O2 and printf optimization

State-Changed-From-To: open->closed
State-Changed-By: rth
State-Changed-When: Wed Apr  3 00:20:49 2002
State-Changed-Why:
    According to Uli Drepper, whom I consider an authority in this area:
    
       The handling of byte sequences which are not valid in the current locale
       is unspecified.  Either result is valid.  There is the different result
       but people writing incorrect code should not get into to way of
       optimizing code.  And there always is the opportunity to compile with -O0.
    
    Although -fno-builtin-printf is certainly more palletable
    than -O0.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4130



More information about the Gcc-bugs mailing list