diff options
author | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-07-31 21:24:18 +0000 |
---|---|---|
committer | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-07-31 21:24:18 +0000 |
commit | 5a03a7bf35acd61f50d300f9d87364c59527320b (patch) | |
tree | 8717a4d23aac956f1e288f1610567e1645b64469 /libstdc++-v3/libsupc++/cxxabi.h | |
parent | 2129caa2b96a7dd2813c9bbcfbc0bb1b5a41fdba (diff) | |
download | ppe42-gcc-5a03a7bf35acd61f50d300f9d87364c59527320b.tar.gz ppe42-gcc-5a03a7bf35acd61f50d300f9d87364c59527320b.zip |
2002-07-31 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/7442
* libsupc++/cxxabi.h
(__base_class_info): Change to __base_class_type_info. 2.9.5p6c
(__base_class_info::__base): Change to __base_type. 2.9.5p6c
(__base_class_info::offset_shift): Change to __offset_shift. 2.9.5p6c
(__vmi_class_type_info::__base_info): Don't make const, of type
__base_class_type_info, as per 2.9.5p6c
(__pbase_type_info::__qualifier_flags): Change to __flags, as per
2.9.5p7.
(__pbase_type_info::__qualifier_masks): Change to __masks, as per
2.9.5p7.
(__pointer_to_member_type_info::__context_class): Change member to
__context, as per 2.9.5p9.
* libsupc++/tinfo2.cc (__pointer_catch): Change __context_class to
__context.
* libsupc++/tinfo2.cc (__do_catch): Change __qualifier_flags to
__flags.
* libsupc++/tinfo.cc (__do_find_public_src): Change __base to
__base_type.
* libsupc++/tinfo.cc (__do_dyncast): Same.
* libsupc++/tinfo.cc (__do_upcast): Same.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55910 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/libsupc++/cxxabi.h')
-rw-r--r-- | libstdc++-v3/libsupc++/cxxabi.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/libstdc++-v3/libsupc++/cxxabi.h b/libstdc++-v3/libsupc++/cxxabi.h index dd6b774116e..2210dbd3393 100644 --- a/libstdc++-v3/libsupc++/cxxabi.h +++ b/libstdc++-v3/libsupc++/cxxabi.h @@ -1,6 +1,6 @@ // new abi support -*- C++ -*- -// Copyright (C) 2000 Free Software Foundation, Inc. +// Copyright (C) 2000, 2002 Free Software Foundation, Inc. // // This file is part of GNU CC. // @@ -117,7 +117,7 @@ class __pbase_type_info { /* abi defined member variables */ public: - unsigned int __qualifier_flags; /* qualification of the target object */ + unsigned int __flags; /* qualification of the target object */ const std::type_info *__pointee; /* type of pointed to object */ /* abi defined member functions */ @@ -127,12 +127,12 @@ public: explicit __pbase_type_info (const char *__n, int __quals, const std::type_info *__type) - : std::type_info (__n), __qualifier_flags (__quals), __pointee (__type) + : std::type_info (__n), __flags (__quals), __pointee (__type) { } /* implementation defined types */ public: - enum __qualifier_masks { + enum __masks { __const_mask = 0x1, __volatile_mask = 0x2, __restrict_mask = 0x4, @@ -181,7 +181,7 @@ class __pointer_to_member_type_info { /* abi defined member variables */ public: - __class_type_info *__context_class; /* class of the member */ + __class_type_info *__context; /* class of the member */ /* abi defined member functions */ public: @@ -191,7 +191,7 @@ public: int __quals, const std::type_info *__type, __class_type_info *__klass) - : __pbase_type_info (__n, __quals, __type), __context_class (__klass) + : __pbase_type_info (__n, __quals, __type), __context (__klass) { } /* implementation defined member functions */ @@ -204,11 +204,11 @@ protected: class __class_type_info; /* helper class for __vmi_class_type */ -class __base_class_info +class __base_class_type_info { /* abi defined member variables */ public: - const __class_type_info *__base; /* base class type */ + const __class_type_info* __base_type; /* base class type */ long __offset_flags; /* offset and info */ /* implementation defined types */ @@ -217,7 +217,7 @@ public: __virtual_mask = 0x1, __public_mask = 0x2, hwm_bit = 2, - offset_shift = 8 /* bits to shift offset by */ + __offset_shift = 8 /* bits to shift offset by */ }; /* implementation defined member functions */ @@ -230,7 +230,7 @@ public: { // This shift, being of a signed type, is implementation defined. GCC // implements such shifts as arithmetic, which is what we want. - return static_cast<__PTRDIFF_TYPE__> (__offset_flags) >> offset_shift; + return static_cast<__PTRDIFF_TYPE__> (__offset_flags) >> __offset_shift; } }; @@ -259,9 +259,9 @@ public: /* publicly) */ __contained_ambig, /* contained ambiguously */ - __contained_virtual_mask = __base_class_info::__virtual_mask, /* via a virtual path */ - __contained_public_mask = __base_class_info::__public_mask, /* via a public path */ - __contained_mask = 1 << __base_class_info::hwm_bit, /* contained within us */ + __contained_virtual_mask = __base_class_type_info::__virtual_mask, /* via a virtual path */ + __contained_public_mask = __base_class_type_info::__public_mask, /* via a public path */ + __contained_mask = 1 << __base_class_type_info::hwm_bit, /* contained within us */ __contained_private = __contained_mask, __contained_public = __contained_mask | __contained_public_mask @@ -365,7 +365,7 @@ class __vmi_class_type_info : public __class_type_info { public: unsigned int __flags; /* details about the class hierarchy */ unsigned int __base_count; /* number of direct bases */ - __base_class_info const __base_info[1]; /* array of bases */ + __base_class_type_info __base_info[1]; /* array of bases */ /* The array of bases uses the trailing array struct hack so this class is not constructable with a normal constructor. It is internally generated by the compiler. */ |