[PATCH] Pure and const attributes for builtins
Roger Sayle
roger@eyesopen.com
Fri Nov 16 17:15:00 GMT 2001
Hi Jason,
> I've meant for a while to extend the nothrow_libfn_p functionality in the
> C++ frontend to cover the other builtin attributes in order to get the lazy
> handling Joseph talks about, but haven't gotten around to it. I would
> think that doing so would be straightforward.
That sounds like an excellent idea. I think I'm about to embark upon
a major overhaul of the way builtin attributes are implemented, based
on my recent discussions with Joseph. Looking at cp/cfns.gperf and
associated code, it would seem this section of the compiler could also
be modernized during the process, by adding the C++ function attribute
"nothrow" that can be applied by default to the appropriate standard C
library functions.
Is there any other related functionality that I shoud be aware of?
Roger
--
Roger Sayle, E-mail: roger@eyesopen.com
OpenEye Scientific Software, WWW: http://www.eyesopen.com/
Suite 1107, 3600 Cerrillos Road, Tel: (+1) 505-473-7385
Santa Fe, New Mexico, 87507. Fax: (+1) 505-438-3470
More information about the Gcc-patches
mailing list