This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Are any G++ builtin functions working?


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]