This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Are any G++ builtin functions working?
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Are any G++ builtin functions working?
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Wed, 3 Jan 2001 13:18:57 -0500 (EST)
I may have lost my mind, :-) but I can't seem to get any builtins to
work in G++. (They seem fine in Gnu C itself.)
When I compile the following with G++ -O1 -save-temps it doesn't look
like strlen is being calculated as 5, instead it issues the function
call.
> #include <string.h>
> int main()
> {
> return strlen("hello");
> }
Any ideas? Or did I miss something obvious?
(We definitely need some minimal basic builtin tests in the G++ suite,
the C tests aren't enough given this boo boo.)
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions