This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: abs/fabs/labs not builtin in C++
- To: egcs at cygnus dot com
- Subject: Re: abs/fabs/labs not builtin in C++
- From: Joe Buck <jbuck at synopsys dot com>
- Date: Wed, 10 Dec 97 9:09:32 PST
- Reply-To: egcs at cygnus dot com
> Why are abs, labs and fabs not builtins in C++? A comment in cp/decl.c
> claims they don't work with libg++, but i could not find any problems
> after enabling them, and libg++ is obsolete anyway.
If this is done, we need to make sure to provide all the proper overloads.
Essentially there should be an abs() for every builtin numeric type.