summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/bits/pthread_allocimpl.h
diff options
context:
space:
mode:
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-24 02:37:56 +0000
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-24 02:37:56 +0000
commit7c1003ce76a220e69ec6f695f3ce24449028909d (patch)
tree95892375e0037abfccb367e7ddf20eb86e127183 /libstdc++-v3/include/bits/pthread_allocimpl.h
parent420f5e4e47a825086355d7b5b3f7a415a5dde21f (diff)
downloadppe42-gcc-7c1003ce76a220e69ec6f695f3ce24449028909d.tar.gz
ppe42-gcc-7c1003ce76a220e69ec6f695f3ce24449028909d.zip
2001-10-23 Benjamin Kosnik <bkoz@redhat.com>
Make -fno-exceptions work. * config/locale/c_locale_gnu.cc: Use functexcept. * include/bits/c++config (__stl_assert): Remove. (__STL_USE_EXCEPTIONS): Same. (__STL_TRY): Same. (__STL_CATCH_ALL): Same. (__STL_THROW): Same. (__STL_RETHROW): Same. (__STL_NOTHROW): Same. (__STL_UNWIND): Same. * include/bits/pthread_allocimpl.h: Fix. * include/bits/std_bitset.h: Same. * include/bits/std_list.h: Same. * include/bits/std_memory.h: Same. * include/bits/std_queue.h: Same. * include/bits/stl_alloc.h: Same. * include/bits/stl_deque.h: Same. * include/bits/stl_list.h: Same. * include/bits/stl_queue.h: Same. * include/bits/stl_tempbuf.h: Same. * include/bits/stl_tree.h: Same. * include/bits/stl_uninitialized.h: Same. * include/bits/stl_vector.h: Same. * include/ext/ropeimpl.h: Same. * include/ext/slist: Same. * include/ext/stl_hashtable.h: Same. * include/ext/stl_rope.h: Same. * libsupc++/new_op.cc: Include cstdlib. * libsupc++/eh_personality.cc: Add exception_defines include. Use __throw_exception_again, tweak. * libsupc++/eh_aux_runtime.cc: Include stdlib for abort. * libsupc++/vec.cc: Tweak. * src/functexcept.cc: Remove unused arguments. * testsuite/23_containers/bitset_members.cc: Tweak. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46455 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/bits/pthread_allocimpl.h')
-rw-r--r--libstdc++-v3/include/bits/pthread_allocimpl.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/libstdc++-v3/include/bits/pthread_allocimpl.h b/libstdc++-v3/include/bits/pthread_allocimpl.h
index 5585a3b3017..1c52127f192 100644
--- a/libstdc++-v3/include/bits/pthread_allocimpl.h
+++ b/libstdc++-v3/include/bits/pthread_allocimpl.h
@@ -422,12 +422,12 @@ public:
typedef pthread_allocator<_NewType> other;
};
- pthread_allocator() __STL_NOTHROW {}
- pthread_allocator(const pthread_allocator& a) __STL_NOTHROW {}
+ pthread_allocator() throw() {}
+ pthread_allocator(const pthread_allocator& a) throw() {}
template <class _OtherType>
pthread_allocator(const pthread_allocator<_OtherType>&)
- __STL_NOTHROW {}
- ~pthread_allocator() __STL_NOTHROW {}
+ throw() {}
+ ~pthread_allocator() throw() {}
pointer address(reference __x) const { return &__x; }
const_pointer address(const_reference __x) const { return &__x; }
@@ -443,7 +443,7 @@ public:
void deallocate(pointer __p, size_type __n)
{ _S_Alloc::deallocate(__p, __n * sizeof(_Tp)); }
- size_type max_size() const __STL_NOTHROW
+ size_type max_size() const throw()
{ return size_t(-1) / sizeof(_Tp); }
void construct(pointer __p, const _Tp& __val) { new(__p) _Tp(__val); }
OpenPOWER on IntegriCloud