throw(), pure and const flags on functions

Paolo Carlini paolo.carlini@oracle.com
Tue Apr 14 14:27:00 GMT 2009


Hi Honza,
> For shared library we won't be able to derive this ourselves even with
> LTO since these are in fact part of ABI too.  So we IMO should decorate
> the functions implemented in libstdc++ library itself (not the headers).
>   
Let's make sure I understand your point. You are saying: for the
headers, there are hopes that the compiler can do a good work on its
own. On the other hand, for the library itself, the *.so in particular,
there are no hopes, even with LTO. Thus, I would say, adding a few
decorations in the *.cc files, in such cases when either performance or
code size is demonstrably improved, makes sense to me. Are there any
chances you can suggest something yourself with some numbers attached?

Thanks,
Paolo.



More information about the Libstdc++ mailing list