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, jakub at redhat dot com
- Subject: Re: c_std/ and throw()
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Fri, 20 Apr 2001 15:57:43 -0700
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.
-benjamin