This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: c_std/ and throw()
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Subject: Re: c_std/ and throw()
- From: Jakub Jelinek <jakub at redhat dot com>
- Date: Sat, 21 Apr 2001 02:29:13 -0400
- Cc: libstdc++ at gcc dot gnu dot org
- References: <200104202257.f3KMvhX01391@fillmore.constant.com>
- Reply-To: Jakub Jelinek <jakub at redhat dot com>
On Fri, Apr 20, 2001 at 03:57:43PM -0700, Benjamin Kosnik wrote:
>
> Sorry it took me so long to get back to this Jakub.
>
> > It won't have any effect for strcpy, as the compiler already knows
> > that can't throw (see nothrow_libfn_p). Adding throw() is only useful
> > for C library functions that aren't in the C standard, and thus in
> > cfns.gperf.
>
> There are around 208 functions in cfns.gperf. That's a lot of
> functions that effectively already have this optimization.
>
> I don't really see any significant binary size reduction in the
> library itself with this patch.
Yeah, that's why I've been quiet after Jason pointed me at cfns.gperf.
The only thing I wonder is whether we should add some C99 functions into
cfns.gperf (like snprintf, some long long functions).
Jakub