Go to file
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
boehm-gc For boehm-gc: 2000-12-30 12:18:39 +00:00
config configure.in (target_makefile_frag): Use mt-alphaieee. 2001-01-27 22:59:00 -08:00
contrib texi2pod.pl: Handle "\,". 2001-01-24 19:47:47 +00:00
fastjar Makefile.in: Rebuilt. 2001-01-22 17:32:28 +00:00
gcc * invoke.texi (--param): Document. 2001-02-15 18:23:33 +00:00
include Add support for Java demangling under the v3 ABI: 2001-02-02 00:27:39 +00:00
INSTALL
libchill
libf2c Daily bump. 2001-02-15 01:45:19 -07:00
libffi gcj.texi: Change sources.redhat.com reference to gcc.gnu.org. 2001-02-08 01:49:53 +00:00
libiberty COPYING.LIB: Update to LGPL 2.1 from the FSF. 2001-02-02 19:38:01 +00:00
libjava i386-signal.h (INIT_SEGV): Use a direct system call to set the handler. 2001-02-15 19:19:50 +00:00
libobjc In libf2c: 2001-02-09 07:14:35 +00:00
libstdc++-v3 Add support for -fno-exceptions. 2001-02-16 00:44:44 +00:00
zlib
.cvsignore
ChangeLog configure: Introduce GCJ_FOR_TARGET. 2001-02-15 13:55:34 +00:00
config-ml.in
config.guess Add config suport for s390 2001-02-12 23:47:41 +00:00
config.if * config.if: Assume enable_libstdcxx_v3 is defined. 2001-02-05 11:02:20 +00:00
config.sub Add config suport for s390 2001-02-12 23:47:41 +00:00
configure * configure: Output host type to stdout, not stderr. 2001-02-06 20:03:16 -05:00
configure.in configure: Introduce GCJ_FOR_TARGET. 2001-02-15 13:55:34 +00:00
COPYING
COPYING.LIB COPYING.LIB: Update to LGPL 2.1 from the FSF. 2001-01-29 13:32:47 +00:00
install-sh
libtool.m4 ltcf-gcj.sh (lt_simple_link_test_code): Remove stray `(0)'. 2001-01-24 02:24:50 +00:00
ltcf-c.sh ltcf-c.sh: Add support for --no-undefined under GNU/Linux. 2001-02-06 05:52:33 +00:00
ltcf-cxx.sh ltcf-c.sh: Add support for --no-undefined under GNU/Linux. 2001-02-06 05:52:33 +00:00
ltcf-gcj.sh ltcf-c.sh (ld_shlibs): Disable on unknown CPU types. 2001-01-27 19:12:14 +00:00
ltconfig * ltconfig: Shell portability fix for the tagname validity check. 2001-01-27 19:48:46 +00:00
ltmain.sh ltmain.sh (TAG disable-shared, [...]): Make sure we keep at least one of build_libtool_libs or build_old_libs set to yes. 2001-01-24 20:08:50 +00:00
MAINTAINERS * MAINTAINERS: Update mail address. 2001-02-13 12:59:57 +00:00
Makefile.in configure: Introduce GCJ_FOR_TARGET. 2001-02-15 13:55:34 +00:00
missing
mkdep
mkinstalldirs
move-if-change
README
symlink-tree
ylwrap

		   README for GNU development tools

This directory contains various GNU compilers, assemblers, linkers, 
debuggers, etc., plus their support routines, definitions, and documentation.


Check the INSTALL directory for detailed configuration and installation
instructions.


Much of the code and documentation enclosed is copyright by
the Free Software Foundation, Inc.  See the file COPYING or
COPYING.LIB in the various directories, for a description of the
GNU General Public License terms under which you can copy the files.

REPORTING BUGS: Again, see gdb/README, binutils/README, etc., for info
on where and how to report problems.