diff options
Diffstat (limited to 'libstdc++-v3/libsupc++')
-rw-r--r-- | libstdc++-v3/libsupc++/cxxabi.h | 4 | ||||
-rw-r--r-- | libstdc++-v3/libsupc++/eh_throw.cc | 2 | ||||
-rw-r--r-- | libstdc++-v3/libsupc++/tinfo.cc | 10 | ||||
-rw-r--r-- | libstdc++-v3/libsupc++/typeinfo | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/libstdc++-v3/libsupc++/cxxabi.h b/libstdc++-v3/libsupc++/cxxabi.h index e695ce5a223..dd6b774116e 100644 --- a/libstdc++-v3/libsupc++/cxxabi.h +++ b/libstdc++-v3/libsupc++/cxxabi.h @@ -45,7 +45,7 @@ #ifdef __cplusplus // We use the compiler builtins __SIZE_TYPE__ and __PTRDIFF_TYPE__ instead of -// std::size_t and std::ptrdiff_t respectively. This makes us independant of +// std::size_t and std::ptrdiff_t respectively. This makes us independent of // the conformance level of <cstddef> and whether -fhonor-std was supplied. // <cstddef> is not currently available during compiler building anyway. // Including <stddef.h> would be wrong, as that would rudely place size_t in @@ -363,7 +363,7 @@ protected: class __vmi_class_type_info : public __class_type_info { /* abi defined member variables */ public: - unsigned int __flags; /* details about the class heirarchy */ + 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 */ /* The array of bases uses the trailing array struct hack diff --git a/libstdc++-v3/libsupc++/eh_throw.cc b/libstdc++-v3/libsupc++/eh_throw.cc index a8e9ba34557..407b829f24b 100644 --- a/libstdc++-v3/libsupc++/eh_throw.cc +++ b/libstdc++-v3/libsupc++/eh_throw.cc @@ -40,7 +40,7 @@ __gxx_exception_cleanup (_Unwind_Reason_Code code, _Unwind_Exception *exc) { __cxa_exception *header = __get_exception_header_from_ue (exc); - // If we havn't been caught by a foreign handler, then this is + // If we haven't been caught by a foreign handler, then this is // some sort of unwind error. In that case just die immediately. if (code != _URC_FOREIGN_EXCEPTION_CAUGHT) __terminate (header->terminateHandler); diff --git a/libstdc++-v3/libsupc++/tinfo.cc b/libstdc++-v3/libsupc++/tinfo.cc index 732609cf048..8559a25a039 100644 --- a/libstdc++-v3/libsupc++/tinfo.cc +++ b/libstdc++-v3/libsupc++/tinfo.cc @@ -172,12 +172,12 @@ __vmi_class_type_info:: {} // __upcast_result is used to hold information during traversal of a class -// heirarchy when catch matching. +// hierarchy when catch matching. struct __class_type_info::__upcast_result { const void *dst_ptr; // pointer to caught object __sub_kind part2dst; // path from current base to target - int src_details; // hints about the source type heirarchy + int src_details; // hints about the source type hierarchy const __class_type_info *base_type; // where we found the target, // if in vbase the __class_type_info of vbase // if a non-virtual base then 1 @@ -189,14 +189,14 @@ struct __class_type_info::__upcast_result }; // __dyncast_result is used to hold information during traversal of a class -// heirarchy when dynamic casting. +// hierarchy when dynamic casting. struct __class_type_info::__dyncast_result { const void *dst_ptr; // pointer to target object or NULL __sub_kind whole2dst; // path from most derived object to target __sub_kind whole2src; // path from most derived object to sub object __sub_kind dst2src; // path from target to sub object - int whole_details; // details of the whole class heirarchy + int whole_details; // details of the whole class hierarchy public: __dyncast_result (int details_ = __vmi_class_type_info::__flags_unknown_mask) @@ -483,7 +483,7 @@ __do_dyncast (ptrdiff_t src2dst, || !(result.whole_details & __diamond_shaped_mask))) { // We already found SRC_PTR as a base of most derived, and - // either it was non-virtual, or the whole heirarchy is + // either it was non-virtual, or the whole hierarchy is // not-diamond shaped. Therefore if it is in either choice, it // can only be in one of them, and we will already know. if (old_sub_kind == __unknown) diff --git a/libstdc++-v3/libsupc++/typeinfo b/libstdc++-v3/libsupc++/typeinfo index a1d62c3d791..3d9afc90470 100644 --- a/libstdc++-v3/libsupc++/typeinfo +++ b/libstdc++-v3/libsupc++/typeinfo @@ -90,7 +90,7 @@ namespace std // type. Uniqueness must use the _name value, not object address. bool operator==(const type_info& __arg) const; #else - /** Returns true if @c *this preceeds @c __arg in the implementation's + /** Returns true if @c *this precedes @c __arg in the implementation's * collation order. */ // In new abi we can rely on type_info's NTBS being unique, // and therefore address comparisons are sufficient. |