This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


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

Re: c_std/ and throw()


Jakub Jelinek <jakub@redhat.com> wrote:

> The c_std/ headers throw away the carefully maintained throw()
> lists glibc maintains in its installed headers for functions which cannot
> throw.
> IMHO this is bad and results in worse code generation.

May be I'm missing something, but for all compilers I know adding 
throw() lists to function declaration actually makes code _worse_, 
because any call to such function should be wrapped in a code 
that checks for violations of throw specifications at run time. 

Best regards,
Artem.







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