summaryrefslogtreecommitdiff
path: root/gcc/cp/tinfo.cc
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>1998-10-13 18:29:36 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>1998-10-13 18:29:36 +0000
commit820b9955dce9166a46f2538ad54582dff2ff5e71 (patch)
treee9dedc1e6bd521e1491bdf14f5b3da5541a261c9 /gcc/cp/tinfo.cc
parentc9ff1a07dfbefc45c4b6916c1b125f2e5258af3f (diff)
downloadgcc-820b9955dce9166a46f2538ad54582dff2ff5e71.tar.gz
* tinfo2.cc (fast_compare): Remove.
(before): Just use strcmp. * tinfo.cc (operator==): Just use strcmp. * decl.c (grokfndecl): Don't check for linkage in `extern "C"' declarations. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23057 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/tinfo.cc')
-rw-r--r--gcc/cp/tinfo.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/tinfo.cc b/gcc/cp/tinfo.cc
index 6de805524e0..23750ac9310 100644
--- a/gcc/cp/tinfo.cc
+++ b/gcc/cp/tinfo.cc
@@ -28,6 +28,7 @@
#pragma implementation "typeinfo"
#include <stddef.h>
+#include <string.h>
#include "tinfo.h"
#include "new" // for placement new
@@ -43,7 +44,7 @@ std::type_info::
bool type_info::
operator== (const type_info& arg) const
{
- return (&arg == this) || (fast_compare (name (), arg.name ()) == 0);
+ return (&arg == this) || (strcmp (name (), arg.name ()) == 0);
}
extern "C" void