Patch to add declarations for many (most?) math builtins

Roger Sayle roger@eyesopen.com
Wed Jul 30 18:23:00 GMT 2003


Hi Kaveh,
> The ISO C math functions might as well all be declared so that the
> appropriate attributes are set on these functions.

Cool!  I had a very similar patch that I haven't yet posted pending
the review of my patch to alphabetize the contents of builtins.def.
http://gcc.gnu.org/ml/gcc-patches/2003-07/msg02559.html

Personally, I found it much easier to add and review the large number
of these mathematical builtins once they had some kind of order to
them, "like what g++ does with cp/cfns.gperf" to quote from your post :).
For example, it would simplify comparing our lists, where mine includes
"expm1", "isnan", "log2", "log1p",  "modf", etc... if both lists were
sorted...

Don't worry if your patch gets approved first, I'll just refresh my
reordering patch and resubmit it.

Roger
--



More information about the Gcc-patches mailing list