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()


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


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