Commit d4bf4842 by Jason Merrill

tinfo.h: Rename USItype to myint32, depend on BITS_PER_UNIT.

	* tinfo.h: Rename USItype to myint32, depend on BITS_PER_UNIT.

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

From-SVN: r31718
parent 02e59efb
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> 2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* cp-tree.h (make_thunk): PROTO -> PARAMS. * cp-tree.h (make_thunk): PROTO -> PARAMS.
......
...@@ -331,7 +331,7 @@ __throw_bad_cast () ...@@ -331,7 +331,7 @@ __throw_bad_cast ()
return 0; return 0;
} }
extern "C" type_info const & extern "C" std::type_info const &
__throw_bad_typeid () __throw_bad_typeid ()
{ {
throw std::bad_typeid (); throw std::bad_typeid ();
......
...@@ -170,14 +170,21 @@ public: ...@@ -170,14 +170,21 @@ public:
// type_info for a general class. // 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 { struct __class_type_info : public __user_type_info {
enum access { PUBLIC = 1, PROTECTED = 2, PRIVATE = 3 }; enum access { PUBLIC = 1, PROTECTED = 2, PRIVATE = 3 };
struct base_info { struct base_info {
const __user_type_info *base; const __user_type_info *base;
USItype offset: 29; myint32 offset: 29;
bool is_virtual: 1; bool is_virtual: 1;
enum access access: 2; enum access access: 2;
}; };
...@@ -203,8 +210,6 @@ struct __class_type_info : public __user_type_info { ...@@ -203,8 +210,6 @@ struct __class_type_info : public __user_type_info {
// new abi // new abi
#include "stddef.h" #include "stddef.h"
typedef int USItype __attribute__ ((mode (SI)));
namespace std { namespace std {
class __class_type_info; class __class_type_info;
......
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