This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to add declarations for many (most?) math builtins
- From: Roger Sayle <roger at eyesopen dot com>
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 30 Jul 2003 12:23:20 -0600 (MDT)
- Subject: Re: Patch to add declarations for many (most?) math builtins
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
--