Commit 943aa13d by Jason Merrill Committed by Jason Merrill

tinfo.cc (operator=): Use __builtin_strcmp.

	* tinfo.cc (operator=): Use __builtin_strcmp.
	* tinfo2.cc (before): Likewise.

From-SVN: r32980
parent 4e872036
2000-04-06 Jason Merrill <jason@yorick.cygnus.com>
* tinfo.cc (operator=): Use __builtin_strcmp.
* tinfo2.cc (before): Likewise.
2000-04-06 Mark Mitchell <mark@codesourcery.com> 2000-04-06 Mark Mitchell <mark@codesourcery.com>
* cp-tree.h (lang_decl_flags): Rename saved_inline to deferred. * cp-tree.h (lang_decl_flags): Rename saved_inline to deferred.
......
...@@ -66,7 +66,7 @@ convert_to_base (void *addr, bool is_virtual, myint32 offset) ...@@ -66,7 +66,7 @@ convert_to_base (void *addr, bool is_virtual, myint32 offset)
bool std::type_info:: bool std::type_info::
operator== (const std::type_info& arg) const operator== (const std::type_info& arg) const
{ {
return (&arg == this) || (strcmp (name (), arg.name ()) == 0); return (&arg == this) || (__builtin_strcmp (name (), arg.name ()) == 0);
} }
extern "C" void extern "C" void
......
...@@ -35,7 +35,7 @@ using std::type_info; ...@@ -35,7 +35,7 @@ using std::type_info;
bool bool
type_info::before (const type_info &arg) const type_info::before (const type_info &arg) const
{ {
return strcmp (name (), arg.name ()) < 0; return __builtin_strcmp (name (), arg.name ()) < 0;
} }
// type info for pointer type. // type info for pointer type.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment