This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
tinfo.cc & -fhonor-std
- To: egcs-patches at cygnus dot com
- Subject: tinfo.cc & -fhonor-std
- From: Edward Jason Riedy <ejr at cs dot berkeley dot edu>
- Date: Tue, 08 Dec 1998 17:56:38 -0800
Compiling egcs with honor-std as the default died on tinfo.cc. Some,
but not all, occurances of type_info were qualified. The included
tiny patch makes tinfo.cc work like tinfo2.cc.
Jason
--- tinfo.cc 1998/11/23 03:12:34 1.8
+++ tinfo.cc 1998/12/09 01:51:05
@@ -31,11 +31,13 @@
#include "tinfo.h"
#include "new" // for placement new
+using std::type_info;
+
// This file contains the minimal working set necessary to link with code
// that uses virtual functions and -frtti but does not actually use RTTI
// functionality.
-std::type_info::
+type_info::
~type_info ()
{ }
@@ -52,7 +54,7 @@ __rtti_class (void *addr, const char *na
{ new (addr) __class_type_info (name, bl, bn); }
extern "C" void
-__rtti_si (void *addr, const char *n, const std::type_info *ti)
+__rtti_si (void *addr, const char *n, const type_info *ti)
{
new (addr) __si_type_info
(n, static_cast <const __user_type_info &> (*ti));