This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Something about std::list<> member functions.
On Sat, Aug 09, 2003 at 08:55:16PM +0200, Gabriel Dos Reis wrote:
> Dhruv Matani <dhruvbird@gmx.net> writes:
>
> [...]
>
> | form At&T syntax, but I thought (and still do think) that compiler
> | technology should have evolved by now so as to optimize such stuff into
> | nothingness...... And, looking at g++ optimizations, I definitely
> | thought that it could (at least now) optimize away the layer.
>
> See recent discussions on gcc@gcc.gnu.org about inlining.
Without consulting those, I recall Jason Merrill mentioning that
you can get enormous optimization improvements just from declaring
the inline functions' arguments "const", unnecessarily. Is that
advice still current? Since it doesn't affect the ABI or standard
conformance, that seems worth doing where it makes a difference.
Nathan Myers
ncm-nospam@cantrip.org