gcc/libstdc++-v3/bits
Benjamin Kosnik 0517cb9903 [multiple changes]
2000-10-02  Steven King  <sxking@uswest.net>

        * mkcshadow: Fixed script to output proper include guard.
        * bits/char_traits.h: Cleaned up types in char_traits<char> functions.
        * libio/_G_config.h: Hacked to make work with shadow heraders.
        * shadow/*: Hacked to make shadow headers work.

2000-10-02  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	Self-compile with shadow headers.
	* acconfig.h (_GLIBCPP_USE_SHADOW_HEADERS): Define. Eventually,
	like _GLIBCPP_USE_NAMESPACES before it, this macro will die when
	it becomes the default way the library is built.
	* acinclude.m4 (GLIBCPP_ENABLE_SHADOW): New macro.
	* config/gnu-linux/bits/ctype_base.h (ctype_base): Use it.
	* config/gnu-linux/ctype.cc (ctype): Use it.

	* src/localename.cc (locale::_Impl::_M_replace_categories): Remove
	call to assert.
	* src/locale.cc: Explicitly cast mbstate_t to void* in calls to
	memset. This should not be necessary, but an ambiguous overload
	with it in.

	* shadow/bits/std_cwchar.h: Fix.
	* shadow/wchar.h: Fix.

	* config/gnu-linux/bits/ctype_base.h (ctype_base): Inject ctype
	enums into namespace std:: for ctype_base enum. Other OS types
	will have to do this as well.
	* config/gnu-linux/ctype.cc (ctype): Inject ctype data into
	namespace std, in particular __ctype_toupper, __ctype_tolower,
	__ctype_b.

	* shadow/iolibio.h: New file.
	* shadow/bits/wrap_iolibio.h: New file.
	* shadow/libioP.h: New file.
	* shadow/bits/wrap_libioP.h: New file.
	* shadow/bits/wrap_fcntl.h: New file.
	* shadow/fcntl.h: New file.
	* shadow/iconv.h: New file. Inject iconv names into the global
	namespace, unmangled for the moment.
	* shadow/bits/wrap_iconv.h: New file.
	* shadow/unistd.h: Remove. Useless.
	* shadow/bits/wrap_unistd.h: Remove.

	* src/Makefile.am: Take out machine-ansi.h, add fcntl.h unistd.h.
	* src/Makefile.in: Regenerate.

	* config/c_io_libio.h (_IO_codecvt): Change to normal C++ decl.

	* shadow/libio.h: Fix.
	* shadow/bits/wrap_libio.h: Fix.

	* shadow/bits/std_clocale.h: Remove typedef struct construct,
	which will not compile.
	* shadow/bits/std_ctime.h: Same.

	* shadow/pthread.h: New file. Put pthreads types and functions
	into global scope, which is probably not the correct long-term
	solution but has to be done at the moment before libio wrappers
	can even be started.
	* shadow/bits/wrap_pthread.h: New file.

	* bits/std_ios.h: Formatting tweak.
	* shadow/bits/std_cstdio.h: Format. Remove extraneous bits.

	* acinclude.m4 (GLIBCPP_CHECK_COMPILER_FEATURES): Add -Werror to
	tests for compiler features.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.

	* config/c_io_libio.cc: Remove fcntl.h include, as SEEK_SET
	redefined.
	* libio/libioP.h: Comment out fcntl.h include.

	* shadow/math.h: Add in float and long declarations, as per ISO C9X.

	* bits/c++config: Define _ISOC99_SOURCE.

	* acinclude.m4 (GLIBCPP_ENABLE_SHADOW): Add -fno-builtins to
	CSHADOWFLAGS, as well as _ISOC99_SOURCE.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.
	* src/Makefile.am (CSHADOW_INCLUDES): Enable, again.
	(CSHADOW_INCLUDES): Add -I$(top_srcdir)/std before shadow include dir.
	(CXXCOMPILE): Remove $(DEFS), which searches $(top_srcdir) before
	std or shadow directories.
	(LTCXXCOMPILE): Same.
	(INCLUDES): Add $(top_builddir) before $(top_srcdir).
	(AC_CXXFLAGS): Add CSHADOWFLAGS.
	* src/Makefile.in: Regenerate.

	* src/complex.cc (FCT): Change ::name to name.
	* src/complexl.cc (FCT): Same. Use _GLIBCPP_USE_LONG_LONG here.
	* src/complexf.cc (FCT): Same.

	* src/complexf.cc: Remove FCT define, as things are properly
	overloaded in the std namespace with the shadow headers.
	* src/complexl.cc: Same.
	* src/complex.cc: Same.

From-SVN: r36707
2000-10-04 05:06:32 +00:00
..
basic_file.h basic_file.h (_M_open_mode): Remove extra qualifier. 2000-09-25 18:00:16 +00:00
basic_ios.h Internal consistency checks..... 2000-07-19 08:04:38 +00:00
basic_ios.tcc Internal consistency checks..... 2000-07-19 08:04:38 +00:00
basic_string.h locale.cc (locale::name()): Implement. 2000-09-15 07:06:46 +00:00
c++config [multiple changes] 2000-10-04 05:06:32 +00:00
char_traits.h [multiple changes] 2000-10-04 05:06:32 +00:00
codecvt.h acinclude.m4 (GLIBCPP_CHECK_GNU_MAKE): Remove test != "0". 2000-09-12 01:06:03 +00:00
concept_checks.h 2000-06-29 scott snyder <snyder@fnal.gov> 2000-06-30 00:49:12 +00:00
container_concepts.h Update to SGI STL 3.3 2000-06-27 23:08:37 +00:00
cpp_type_traits.h
exception_support.h
fpos.h
fstream.tcc [multiple changes] 2000-08-09 07:33:39 +00:00
generic_shadow.h generic_shadow.h: Remaining _C_Shadow -> _C_shadow fix. 2000-06-01 01:01:34 +00:00
gslice.h
gslice_array.h [multiple changes] 2000-07-05 23:59:02 +00:00
indirect_array.h [multiple changes] 2000-07-05 23:59:02 +00:00
ios_base.h locale_facets.tcc (_S_build_float_format): Move ... 2000-09-01 08:58:07 +00:00
istream.tcc configure.in: Change AM_PROG_LIBTOOL to AC_PROG_LIBTOOL. 2000-07-26 06:51:38 +00:00
limits_generic.h std_cwctype.h: Clean. 2000-06-02 07:24:15 +00:00
locale_facets.h locale-inst.cc: Add time_put_byname and time_get_byname instantiations. 2000-09-19 06:47:52 +00:00
locale_facets.tcc global_templates.cc (test01): Add negative tests for use_facet. 2000-09-12 18:50:16 +00:00
localefwd.h localename.cc (locale::_Imp): Remove typedefs. 2000-09-20 08:19:07 +00:00
mask_array.h [multiple changes] 2000-07-05 23:59:02 +00:00
ostream.tcc misc-inst.cc (std): Remove instantiations. 2000-07-26 20:55:48 +00:00
pthread_allocimpl.h
sbuf_iter.h locale_facets.tcc (_S_build_float_format): Move ... 2000-09-01 08:58:07 +00:00
sequence_concepts.h Update to SGI STL 3.3 2000-06-27 23:08:37 +00:00
slice.h
slice_array.h [multiple changes] 2000-07-05 23:59:02 +00:00
sstream.tcc configure.in: Change AM_PROG_LIBTOOL to AC_PROG_LIBTOOL. 2000-07-26 06:51:38 +00:00
std_algorithm.h
std_bitset.h std_bitset.h (operator>>): Change to char_type. 2000-09-18 18:08:46 +00:00
std_cassert.h acinclude.m4: Change "#pragma system_header" to "#pragma GCC system_header". 2000-07-21 01:02:32 +00:00
std_cctype.h acinclude.m4: Change "#pragma system_header" to "#pragma GCC system_header". 2000-07-21 01:02:32 +00:00
std_cerrno.h acinclude.m4: Change "#pragma system_header" to "#pragma GCC system_header". 2000-07-21 01:02:32 +00:00
std_cfloat.h acinclude.m4: Change "#pragma system_header" to "#pragma GCC system_header". 2000-07-21 01:02:32 +00:00
std_climits.h acinclude.m4: Change "#pragma system_header" to "#pragma GCC system_header". 2000-07-21 01:02:32 +00:00
std_clocale.h acinclude.m4: Change "#pragma system_header" to "#pragma GCC system_header". 2000-07-21 01:02:32 +00:00
std_cmath.h Fix thinko. 2000-08-21 11:29:16 +00:00
std_complex.h [multiple changes] 2000-07-04 01:20:04 +00:00
std_csetjmp.h acinclude.m4: Change "#pragma system_header" to "#pragma GCC system_header". 2000-07-21 01:02:32 +00:00
std_csignal.h acinclude.m4: Change "#pragma system_header" to "#pragma GCC system_header". 2000-07-21 01:02:32 +00:00
std_cstdarg.h acinclude.m4: Change "#pragma system_header" to "#pragma GCC system_header". 2000-07-21 01:02:32 +00:00
std_cstddef.h acinclude.m4: Change "#pragma system_header" to "#pragma GCC system_header". 2000-07-21 01:02:32 +00:00
std_cstdio.h acinclude.m4: Change "#pragma system_header" to "#pragma GCC system_header". 2000-07-21 01:02:32 +00:00
std_cstdlib.h acinclude.m4: Change "#pragma system_header" to "#pragma GCC system_header". 2000-07-21 01:02:32 +00:00
std_cstring.h acinclude.m4: Change "#pragma system_header" to "#pragma GCC system_header". 2000-07-21 01:02:32 +00:00
std_ctime.h acinclude.m4: Change "#pragma system_header" to "#pragma GCC system_header". 2000-07-21 01:02:32 +00:00
std_cwchar.h acinclude.m4: Change "#pragma system_header" to "#pragma GCC system_header". 2000-07-21 01:02:32 +00:00
std_cwctype.h std_cwctype.h: Remove yesterday's hacks. 2000-09-07 22:38:41 +00:00
std_deque.h
std_exception.h acinclude.m4: Change "#pragma system_header" to "#pragma GCC system_header". 2000-07-21 01:02:32 +00:00
std_fstream.h localefwd.h (std::locale): Use explicit `class' specified when declaring friends. 2000-08-17 20:13:47 +00:00
std_functional.h
std_iomanip.h
std_ios.h [multiple changes] 2000-10-04 05:06:32 +00:00
std_iosfwd.h [multiple changes] 2000-10-04 05:06:32 +00:00
std_iostream.h
std_istream.h
std_iterator.h
std_list.h
std_locale.h locale_facets.tcc (_S_build_float_format): Move ... 2000-09-01 08:58:07 +00:00
std_map.h Update to SGI STL 3.3 2000-06-27 20:57:11 +00:00
std_memory.h std_memory.h: Revert. 2000-07-04 01:21:24 +00:00
std_new.h acinclude.m4: Change "#pragma system_header" to "#pragma GCC system_header". 2000-07-21 01:02:32 +00:00
std_numeric.h
std_ostream.h string.tcc (_Rep::_S_max_size): Use typename for its size_type return type. 2000-09-14 19:44:03 +00:00
std_queue.h
std_set.h
std_sstream.h std_fstream.h: Remove duplicate typdefs for ofstream and wofstream... 2000-08-14 19:46:44 +00:00
std_stack.h
std_stdexcept.h
std_streambuf.h std_fstream.h: Remove duplicate typdefs for ofstream and wofstream... 2000-08-14 19:46:44 +00:00
std_string.h
std_strstream.h
std_typeinfo.h acinclude.m4: Change "#pragma system_header" to "#pragma GCC system_header". 2000-07-21 01:02:32 +00:00
std_utility.h
std_valarray.h valarray_array.h (__valarray_get_storage): New function. 2000-07-15 20:07:45 +00:00
std_vector.h
stl_algo.h Update to SGI STL 3.3 2000-06-27 20:57:11 +00:00
stl_algobase.h Update to SGI STL 3.3 2000-06-27 20:57:11 +00:00
stl_alloc.h Update to SGI STL 3.3 2000-06-27 20:57:11 +00:00
stl_config.h acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Force glibc_satisfactory to no... 2000-09-07 01:02:01 +00:00
stl_construct.h Update to SGI STL 3.3 2000-06-27 20:57:11 +00:00
stl_deque.h Update to SGI STL 3.3 2000-06-27 20:57:11 +00:00
stl_function.h Update to SGI STL 3.3 2000-06-27 20:57:11 +00:00
stl_heap.h Update to SGI STL 3.3 2000-06-27 20:57:11 +00:00
stl_iterator.h Update to SGI STL 3.3 2000-06-27 20:57:11 +00:00
stl_iterator_base.h Update to SGI STL 3.3 2000-06-27 20:57:11 +00:00
stl_list.h Update to SGI STL 3.3 2000-06-27 20:57:11 +00:00
stl_map.h Update to SGI STL 3.3 2000-06-27 20:57:11 +00:00
stl_multimap.h Update to SGI STL 3.3 2000-06-27 20:57:11 +00:00
stl_multiset.h Update to SGI STL 3.3 2000-06-27 20:57:11 +00:00
stl_numeric.h Update to SGI STL 3.3 2000-06-27 20:57:11 +00:00
stl_pair.h
stl_pthread_alloc.h
stl_queue.h Update to SGI STL 3.3 2000-06-27 20:57:11 +00:00
stl_range_errors.h
stl_raw_storage_iter.h
stl_relops.h
stl_set.h Update to SGI STL 3.3 2000-06-27 20:57:11 +00:00
stl_stack.h Update to SGI STL 3.3 2000-06-27 20:57:11 +00:00
stl_string_fwd.h Update to SGI STL 3.3 2000-06-27 20:57:11 +00:00
stl_tempbuf.h
stl_threads.h Update to SGI STL 3.3 2000-06-27 20:57:11 +00:00
stl_tree.h stl_tree.h: Make operators !=, == type safe for map, set. 2000-09-07 21:08:59 +00:00
stl_uninitialized.h Update to SGI STL 3.3 2000-06-27 20:57:11 +00:00
stl_vector.h Update to SGI STL 3.3 2000-06-27 20:57:11 +00:00
streambuf.tcc configure.in: Change AM_PROG_LIBTOOL to AC_PROG_LIBTOOL. 2000-07-26 06:51:38 +00:00
string.tcc string.tcc (_Rep::_S_max_size): Use typename for its size_type return type. 2000-09-14 19:44:03 +00:00
type_traits.h
valarray_array.h valarray_array.h (__valarray_min, [...]): Fix thinko. 2000-08-19 11:28:22 +00:00
valarray_array.tcc
valarray_meta.h valarray_meta.h: Fix typos... 2000-08-18 16:29:18 +00:00