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]

[Bug libstdc++/14078] Manipulators are slow


------- Additional Comments From peturr02 at ru dot is  2004-02-09 17:09 -------
> IMHO, we should only do that if it does not increase code size;

If the compiler where really smart,
os << uppercase;
should be inlined to
os._M_flags |= ios_base::uppercase;

Which should result in both smaller code and faster execution than what
happens currently.

(Currently, the compiler is unable to inline calls through function pointers,
even if the pointee is known at compile time. There is already a report about
this, it's PR3713.)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14078


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