This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: c_std/ and throw()
- To: <libstdc++ at gcc dot gnu dot org>
- Subject: Re: c_std/ and throw()
- From: "Artem Khodush" <artem at duma dot gov dot ru>
- Date: Wed, 11 Apr 2001 18:17:28 +0400
- >Received: from artem by mailsrv.duma.gov.ru (SMI-8.6/SMI-SVR4)id SAA24173; Wed, 11 Apr 2001 18:19:39 +0400
- Cc: <gcc-patches at gcc dot gnu dot org>
- References: <20010411144946.K870@sunsite.ms.mff.cuni.cz>
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.