gcc/libstdc++-v3/include/bits
Benjamin Kosnik e2c094827c Add support for -fno-exceptions.
2001-02-15  Benjamin Kosnik  <bkoz@redhat.com>

	Add support for -fno-exceptions.
	* include/bits/exception_support.h: Remove.
	* include/bits/basic_string.h: Remove exception_support.
	(string::_M_check): Replace __OUTOFRANGE with __throw_out_of_range.
	(string::at): Same.
	(string::substr): Same.
	* include/bits/basic_string.tcc (string::reserve): Replace
	__LENGTHERROR with __throw_length_error.
	(string::_S_create): Same.
	(string::resize): Same.
	(string::_M_replace): Same.
	(string::replace): Same.
	(string::copy): Replace __OUTOFRANGE with __throw_out_of_range.
	(string::compare): Same.
	* include/bits/stl_vector.h: Remove exception_support.
	* src/Makefile.am (base_headers): Remove here.
	* src/Makefile.in: Regenerate.

	* include/bits/stl_range_errors.h: Remove.
	* include/bits/stl_deque.h: Use __throw_range_error.
	* include/bits/std_deque.h: Include functexcept.h.
	* include/bits/std_vector.h: Same.
	* src/Makefile.am (base_headers): Remove here.
	* src/Makefile.in: Regenerate.
	* include/ext/stl_bvector.h (class __BVECTOR): Use __throw_range_error.
	* include/ext/bvector: Remove stl_range_errors.h

	* include/bits/c++config (_GLIBCPP_USE_EXCEPTIONS): Remove.

	* include/bits/functexcept.h: New file.
	* src/functexcept.cc: New file. Definitions for function-based
	exception routines.
	* src/Makefile.am (sources): Add functexcept.cc.
	* src/Makefile.in: Regenerate.

	* include/bits/stl_config.h (__STL_USE_EXCEPTIONS): Wrap with
	__EXCEPTIONS.

	* include/bits/localefwd.h: Include functexcept.h.
	* include/bits/std_iosfwd.h: Same.

	* include/bits/basic_ios.h: Use __throw_ios_failure instead of
	throw basic_ios::failure.
	* include/bits/fstream.tcc (filebuf::_M_allocate_buffers):
	Use __throw_exception_again.
	(filebuf::_M_filebuf_init): Same.
	* include/bits/streambuf.tcc (__copy_streambufs): Same.
	* include/bits/ostream.tcc (ostream::operator<<): Same.
	* include/bits/istream.tcc (istream::operator>>): Same.
	* include/bits/basic_string.tcc (string::_M_mutate): Same.
	(string::_S_construct): Same.
	(string::_M_clone): Same.
	* include/bits/locale_facets.tcc (use_facet(const locale&)): Use
	__throw_bad_cast.
	(num_put<_CharT, _OutIter>::do_put): Use __throw_exception_again.
	* src/localename.cc (locale::_Imp::_Imp(const _Impl&, size_t): Use
	__throw_exception_again.
	(locale::_Imp::_Imp(string, size_t): Same.
	(locale::_Imp::_M_replace_facet): Use __throw_runtime_error.
	* src/locale.cc (locale::_M_coalesce): Use __throw_exception_again.
	(locale::locale(const char*)): Use __throw_runtime_error.
	(locale::classic): Use __throw_exception_again.
	(locale::_S_normalize_category): Use __throw_runtime_error.

	* src/stdexcept.cc: Remove cruft.

	* libsupc++/exception_defines.h: New file.
	* libsupc++/new_opnt.cc: Include exception_defines.h.
	* libsupc++/vec.cc: Same.
	(__cxa_vec_new2): Use __throw_exception_again.
	(__cxa_vec_new3): Same.
	(__cxa_vec_ctor): Same.
	(__cxa_vec_delete3): Same.
	(__cxa_vec_cctor): Same.
	(__cxa_vec_delete2): Same.
	(__cxa_vec_dtor): Same.
	* libsupc++/exception_support.cc: Include exception_defines.h. Only
	compile exception-handling bits if __EXCEPTIONS is defined.
	Remove old ABI support.
	* libsupc++/new_op.cc (new): Include exception_defines.h. Use
	std::__throw_bad_alloc() instead of throw bad_alloc.
	* libsupc++/Makefile.am: Add exception_defines.h.
	* libsupc++/Makefile.in: Reformat.
	* libsupc++/*: Format.

From-SVN: r39730
2001-02-16 00:44:44 +00:00
..
basic_file.h
basic_ios.h Add support for -fno-exceptions. 2001-02-16 00:44:44 +00:00
basic_ios.tcc [multiple changes] 2001-01-06 02:44:11 +00:00
basic_string.h Add support for -fno-exceptions. 2001-02-16 00:44:44 +00:00
basic_string.tcc Add support for -fno-exceptions. 2001-02-16 00:44:44 +00:00
c++config Add support for -fno-exceptions. 2001-02-16 00:44:44 +00:00
char_traits.h char_traits.h (char_traits<char>::int_type): Change to `int' to match 21.1.3.1/2. 2001-02-11 04:43:44 +00:00
codecvt.h Attempt to make locale visible in gdb. 2000-12-22 11:03:33 +00:00
concept_checks.h
container_concepts.h
cpp_type_traits.h
fpos.h fpos.h (fpos:::fpos(streamoff __pos)): Explicitly initialize mbstate_t member, name offset data members *off, not pos. 2001-01-08 23:51:57 +00:00
fstream.tcc Add support for -fno-exceptions. 2001-02-16 00:44:44 +00:00
functexcept.h Add support for -fno-exceptions. 2001-02-16 00:44:44 +00:00
generic_shadow.h
gslice_array.h
gslice.h
indirect_array.h
ios_base.h ios_base.h (_S_ios_fmtflags_end): Initialize correctly targets with 16bit ints. 2001-02-03 00:24:06 -07:00
istream.tcc Add support for -fno-exceptions. 2001-02-16 00:44:44 +00:00
limits_generic.h
locale_facets.h locale_facets.h (class moneypunct): Fix typos. 2001-02-06 07:21:41 +00:00
locale_facets.tcc Add support for -fno-exceptions. 2001-02-16 00:44:44 +00:00
localefwd.h Add support for -fno-exceptions. 2001-02-16 00:44:44 +00:00
mask_array.h
ostream.tcc Add support for -fno-exceptions. 2001-02-16 00:44:44 +00:00
pthread_allocimpl.h
sbuf_iter.h
sequence_concepts.h
slice_array.h
slice.h
sstream.tcc
std_algorithm.h
std_bitset.h Makefile.am (sources): Add bitset.cc 2000-11-29 01:09:09 +00:00
std_complex.h std_complex.h: Fix a typo. 2001-01-10 20:55:03 +00:00
std_deque.h Add support for -fno-exceptions. 2001-02-16 00:44:44 +00:00
std_fstream.h
std_functional.h
std_iomanip.h
std_ios.h Clean up stdexcept. 2001-02-07 20:26:24 +00:00
std_iosfwd.h Add support for -fno-exceptions. 2001-02-16 00:44:44 +00:00
std_iostream.h Fixes for libstdc++/1576 2001-01-10 17:24:11 +00:00
std_istream.h std_istream.h (op>> signed,unsigned char): Must use reinterpret_cast, not static_cast. 2001-02-06 15:52:37 +00:00
std_iterator.h std_iterator.h: Do not include stl_relops.h. 2001-01-25 15:35:10 +00:00
std_list.h
std_locale.h Attempt to make locale visible in gdb. 2000-12-22 11:03:33 +00:00
std_map.h
std_memory.h
std_numeric.h std_iterator.h: Do not include stl_relops.h. 2001-01-25 15:35:10 +00:00
std_ostream.h
std_queue.h
std_set.h
std_sstream.h
std_stack.h
std_stdexcept.h Clean up stdexcept. 2001-02-07 20:26:24 +00:00
std_streambuf.h acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Deal with library install locations too. 2001-02-07 01:54:21 +00:00
std_string.h Clean up stdexcept. 2001-02-07 20:26:24 +00:00
std_utility.h
std_valarray.h std_valarray.h: #undef _DEFINE_LOGICAL_OPERATOR... 2001-02-11 22:42:36 +00:00
std_vector.h Add support for -fno-exceptions. 2001-02-16 00:44:44 +00:00
stl_algo.h
stl_algobase.h std_iterator.h: Do not include stl_relops.h. 2001-01-25 15:35:10 +00:00
stl_alloc.h
stl_config.h Add support for -fno-exceptions. 2001-02-16 00:44:44 +00:00
stl_construct.h
stl_deque.h Add support for -fno-exceptions. 2001-02-16 00:44:44 +00:00
stl_function.h
stl_heap.h
stl_iterator_base.h
stl_iterator.h
stl_list.h
stl_map.h
stl_multimap.h
stl_multiset.h
stl_numeric.h
stl_pair.h
stl_pthread_alloc.h
stl_queue.h
stl_raw_storage_iter.h
stl_relops.h std_iterator.h: Do not include stl_relops.h. 2001-01-25 15:35:10 +00:00
stl_set.h
stl_stack.h
stl_tempbuf.h
stl_threads.h stl_threads.h (struct _STL_mutex_lock): Same. 2001-02-03 08:33:35 +00:00
stl_tree.h stl_tree.h: Overload operators == and != to be able to handle the case... 2000-11-17 22:58:19 +00:00
stl_uninitialized.h
stl_vector.h Add support for -fno-exceptions. 2001-02-16 00:44:44 +00:00
streambuf.tcc Add support for -fno-exceptions. 2001-02-16 00:44:44 +00:00
stringfwd.h Clean up stdexcept. 2001-02-07 20:26:24 +00:00
type_traits.h
valarray_array.h
valarray_array.tcc
valarray_meta.h valarray_meta.h (_RefFunClos<>_RefRunClos): Fix thinko in member initialisation. 2001-02-11 22:25:50 +00:00