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
This commit is contained in:
Jason Merrill 2000-01-31 12:20:39 -05:00
parent 02e59efb69
commit d4bf484274
3 changed files with 19 additions and 5 deletions

View 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.

View 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 ();

View 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;