tinfo.h: Rename USItype to myint32, depend on BITS_PER_UNIT.
authorJason Merrill <jason@gcc.gnu.org>
Mon, 31 Jan 2000 17:20:39 +0000 (12:20 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 31 Jan 2000 17:20:39 +0000 (12:20 -0500)
* tinfo.h: Rename USItype to myint32, depend on BITS_PER_UNIT.

* exception.cc (__throw_bad_typeid): Add missing std::.

From-SVN: r31718

gcc/cp/ChangeLog
gcc/cp/exception.cc
gcc/cp/tinfo.h

index 253a60e..2969fe4 100644 (file)
@@ -1,3 +1,12 @@
+2000-01-31  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
+           Jason Merrill  <jason@yorick.cygnus.com>
+
+       * tinfo.h: Rename USItype to myint32, depend on BITS_PER_UNIT.
+
+2000-01-31  Alfred Minarik <a8601248@unet.univie.ac.at>
+
+       * exception.cc (__throw_bad_typeid): Add missing std::.
+
 2000-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * cp-tree.h (make_thunk): PROTO -> PARAMS.
index 0c806e6..82bc5f9 100644 (file)
@@ -331,7 +331,7 @@ __throw_bad_cast ()
   return 0;
 }
 
-extern "C" type_info const &
+extern "C" std::type_info const &
 __throw_bad_typeid ()
 {
   throw std::bad_typeid ();
index 2894ed6..4753e71 100644 (file)
@@ -170,14 +170,21 @@ public:
 
 // type_info for a general class.
 
-typedef int USItype __attribute__ ((mode (SI)));
+// Kludge, kludge, kludge.
+#if BITS_PER_UNIT == 8
+typedef int myint32 __attribute__ ((mode (SI)));
+#elif BITS_PER_UNIT == 16
+typedef int myint32 __attribute__ ((mode (HI)));
+#elif BITS_PER_UNIT == 32
+typedef int myint32 __attribute__ ((mode (QI)));
+#endif
 
 struct __class_type_info : public __user_type_info {
   enum access { PUBLIC = 1, PROTECTED = 2, PRIVATE = 3 };
 
   struct base_info {
     const __user_type_info *base;
-    USItype offset: 29;
+    myint32 offset: 29;
     bool is_virtual: 1;
     enum access access: 2;
   };
@@ -203,8 +210,6 @@ struct __class_type_info : public __user_type_info {
 // new abi
 #include "stddef.h"
 
-typedef int USItype __attribute__ ((mode (SI)));
-
 namespace std {
 
 class __class_type_info;