summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/acconfig.h
Commit message (Collapse)AuthorAgeFilesLines
* 2001-12-14 Roger Sayle <roger@eyesopen.com>aj2001-12-141-2/+2
| | | | | | | | | | | | | | | | | | | | | * builtins.def: Rename BUILT_IN_FSQRT to BUILT_IN_SQRT and __builtin_fsqrt to __builtin_sqrt. * builtins.c (expand_builtin_mathfn,expand_builtin): Same. * doc/extend.texi: Simplify documentation to match patch. f: * com-rt.def: Use __builtin_sqrt instead of __builtin_fsqrt. * com.c (ffecom_init_0): Same, and fixed enumeration usage. libstdc++-v3: * acconfig.h: Test for __builtin_sqrt instead of __builtin_fsqrt. * acinclude.m4: Same. * include/c_shadow/bits/std_cmath.h: Same. * aclocal.m4: Regenerated. * config.h.in: Regenerated. * configure: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48008 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-11-02 Phil Edwards <pme@gcc.gnu.org>pme2001-11-021-4/+4
| | | | | | | | | | | | | | | | | | | | | | | * acconfig.h: Update comments. * acinclude.m4 (GLIBCPP_ENABLE_C99): Move strtoll, strtoull tests... (GLIBCPP_ENABLE_LONG_LONG): ...to here. Don't check enable_c99. * aclocal.m4: Regenerate. * config.h.in: Regenerate. * configure: Regenerate. * include/bits/boost_concept_check.h: Unconditionally compile uses of 'long long' which require only compiler support, not C lib support. * include/bits/cpp_type_traits.h: Likewise. * include/bits/std_limits.h: Likewise. * include/bits/type_traits.h: Likewise. * src/concept-inst.cc: Likewise. * src/limits.cc: Likewise. * include/c_shadow/stdlib.h: Compile conditionally on _GLIBCPP_USE_C99 instead of _GLIBCPP_USE_LONG_LONG. * include/c_shadow/bits/std_cstdlib.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46723 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-11-01 Phil Edwards <pme@gcc.gnu.org>pme2001-11-011-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * acinclude.m4: Fix spacing. (GLIBCPP_ENABLE_CONCEPT_CHECKS): New macro. * configure.in: Call here. * acconfig.h: Add _GLIBCPP_CONCEPT_CHECKS. * include/bits/boost_concept_check.h: Fix headers. (__function_requires): Make inline. * include/bits/c++config (_GLIBCPP_CONCEPT_CHECKS): Remove. * aclocal.m4: Regenerate. * config.h.in: Regenerate. * configure: Regenerate. Move trailing ';' inside macro, PR libstdc++/3666. * include/bits/concept_check.h: Add semicolon. * include/bits/stl_algo.h: Remove semicolon. * include/bits/stl_algobase.h: Likewise. * include/bits/stl_deque.h: Likewise. * include/bits/stl_heap.h: Likewise. * include/bits/stl_iterator_base_funcs.h: Likewise. * include/bits/stl_list.h: Likewise. * include/bits/stl_map.h: Likewise. * include/bits/stl_multimap.h: Likewise. * include/bits/stl_multiset.h: Likewise. * include/bits/stl_numeric.h: Likewise. * include/bits/stl_queue.h: Likewise. * include/bits/stl_set.h: Likewise. * include/bits/stl_stack.h: Likewise. * include/bits/stl_vector.h: Likewise. * include/ext/hash_map: Likewise. * include/ext/hash_set: Likewise. * include/ext/slist: Likewise. * src/concept-inst.cc: New file with explicit instantiations. * src/Makefile.am (sources): Add here, with special build rules. * src/Makefile.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46697 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-09-10 Benjamin Kosnik <bkoz@redhat.com>bkoz2001-09-111-0/+12
| | | | | | | | | | | | * configure.in: Fix cross compiling math routines. Correct comments for cross compiling and limits. Add floating point math routines found in newlib. * configure: Regenerate. * acconfig.h: Add macros. * config.h.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45530 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-08-09 Benjamin Kosnik <bkoz@redhat.com>bkoz2001-08-101-0/+3
| | | | | | | | | | | | | | | | | | | | | * acconfig.h (_GLIBCPP_MEM_LIMITS): Define. * config.h.in: Regenerate. * acinclude.m4 (GLIBCPP_CHECK_SETRLIMIT): Check for setrlimit function. * aclocal.m4: Regenerate. * configure.in: Remove duplicate AM_CONFIG_HEADER. (AM_CONFIG_HEADER): Remove testsuite/testsuite_hooks.h. Only call GLIBCPP_CHECK_SETRLIMIT for native compiles. * configure: Regenerate. * testsuite_hooks.h.in: Move to... * testsuite_hooks.h: Here, include c++config.h. Use it. * Makefile.am (SUBDIRS): Move testsuite to last directory. * Makefile.in: Regenerate. * po/Makefile.am (stamp-po): Add. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44752 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-08-07 Benjamin Kosnik <bkoz@redhat.com>bkoz2001-08-081-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement std::messages. Make config a fully-nested directory. * config/locale: New directory. * config/c_locale_generic.cc: Move into locale subdirectory. * config/c_locale_generic.h: Same. * config/c_locale_gnu.cc: Same. * config/c_locale_gnu.h: Same. * config/c_locale_ieee_1003.1-200x.cc: Same. * config/c_locale_ieee_1003.1-200x_.h: Same. * config/codecvt_specializations_generic.h: Same. * config/codecvt_specializations_ieee_1003.1-200x.h: Same. * config/messages_members_gnu.h: Same. * config/messaages_members_gnu.cc: Same. * config/messages_members_generic.h: Same. * config/messaages_members_generic.cc: Same. * config/messages_members_ieee_1003.1-200x.h: Same. * config/messaages_members_ieee_1003.1-200x.cc: Same. * config/io: New directory. * config/basic_file_libio.h: Move into io subdirectory. * config/basic_file_libio.cc: Same. * config/c_io_libio.h: Same. * config/c_io_libio_codecvt.c: Same. * config/basic_file_stdio.h: Same. * config/basic_file_stdio.cc: Same. * config/c_io_stdio.h: Same. * po: New directory. * po/POTFILES.in: New file. * po/Makefile.am: New file. * po/Makefile.in: New file. * po/libstdc++.pot: Generic translation file. * po/fr.po: Preliminary French translation. * po/de.po: Preliminary German translation. * intl: New directory. * intl/Makefile.am: New file. * intl/Makefile.in: New file. * intl/string_literals.cc: New file. * acinclude.m4 (GLIBCPP_CONFIGURE): Bump VERSION to 3.1.0. Add requisite setup for gettext. Re-arrange. * aclocal.m4: Regenerate. * configure.in: Don't call GLIBCPP_CHECK_COMPILER_VERSION. Output Makefile bits for po and intl. * configure: Regenerate. * Makefile.am (SUBDIRS): Add intl, po. Add rule for dist. * Makefile.in: Regenerate. * acconfig.h: Add ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY. * config.h.in: Regenerate. * acinclude.m4 (AC_REPLACE_STRINGFUNCS): Remove. * include/Makefile.am (install-data-local): Don't install Makefile. * include/Makefile.in: Regenerate. * include/bits/locale_facet.h (locale::facet::_S_clone_c_locale): Add member. * config/locale/c_locale_gnu.cc (_S_clone_c_locale): Add definition. * config/locale/c_locale_generic.cc: Same. * config/locale/c_locale_ieee_1003.1-200x.cc: Same. * include/bits/codecvt.h: Excise non-standard, non-required bits. This includes __enc_traits, and partial specializations of codecvt for __enc_traits. * src/codecvt.cc (__enc_traits::_S_max_size): Guard * config/codecvt_partials_ieee_1003.1-200x.h: New file. * config/codecvt_partials_generic.h: New file. * include/Makefile.am (allstamps): Add stamp-codecvt_model. (stamp-codecvt_model): Add. * include/Makefile.in: Regenerate. * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Add in codecvt configury. * aclocal.m4: Regenerate. * configure: Regenerate. * testsuite/22_locale/codecvt_unicode_wchar_t.cc: Use macro guard. * testsuite/22_locale/codecvt_unicode_char.cc: Same. * testsuite/22_locale/ctor_copy_dtor.cc: And here. * include/bits/localefwd.h (class locale::facet): Add __enc_traits as a friend for _S_*_c_locale functions. * include/bits/codecvt.h (__enc_traits::__enc_traits): Add locale argument to default constructor so that CODESET information can be deduced. * include/bits/locale_facets.h (messages_byname): Re-implement. Remove specializations. * src/locale.cc (messages_byname<char>): Remove specialization. (messages_byname<wchar_t>): Same. * config/locale/c_locale_ieee_1003.1-200x.cc: New file. * config/locale/c_locale_ieee_1003.1-200x.h: New file. * config/locale/messages_members_ieee_1003.1-200x.cc: New file. * config/locale/messages_members_ieee_1003.1-200x.h: New file. * config/locale/messages_members_gnu.cc: New file. * config/locale/messages_members_gnu.h: New file. * config/locale/messages_members_generic.cc: New file. * config/locale/messages_members_generic.h: New file. * docs/html/configopts.html: Add documentation for new locale model, ieee_1003.1. Adjust other flags for current defaults. * docs/html/22_locale/locale.html: Update. * docs/html/22_locale/howto.html: Add link to messages.html. Organize. * docs/html/22_locale/messages.html: New. * src/Makefile.am (sources): Add messages_virtuals.cc. * src/Makefile.in: Regenerate. * include/Makefile.am (allstamps): Add stamp-messages_model. (stamp-messages_model): Add. * include/Makefile.in: Regenerate. * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Add in messages configury. * aclocal.m4: Regenerate. * configure: Regenerate. * testsuite_flags.in (--cxxflags): Add LOCALEDIR. * testsuite/lib/libstdc++-v3-dg.exp: Remove broken LD_LIBRARY_PATH bits for Irix. * acinclude (GLIBCPP_ENABLE_CLOCALE): Set glibcpp_localedir to the build directories message catalog base directory, and export. Eventually this should probably be made to deal with build and install directories. For now, punt on this as the library itself doesn't use message catalogs (yet). * testsuite/22_locale/messages.cc: New file. * testsuite/22_locale/messages_char_members.cc: New file. * testsuite/22_locale/messages_byname.cc: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44702 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/threads-no.h: Remove file.ljrittle2001-06-081-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * config/threads-posix.h: Remove file. * acconfig.h (_GLIBCPP_USE_THREADS): Remove. (_GLIBCPP_SUPPORTS_WEAK): Add (required by namespace-clean gthr*.h). (_GLIBCPP_HAVE_GTHR_DEFAULT): Likewise. * config.h.in: Regenerate. * acinclude.m4 (GLIBCPP_ENABLE_THREADS): Completely rework to setup and use gthr*.h files. In particular, make gthr.h files namespace-clean in the staging area (they don't have to be for libgcc.a). * aclocal.m4: Regenerate. * configure: Regenerate. * src/Makefile.am (build_headers): Remove bits/c++threads.h and add bits/gthr.h bits/gthr-single.h bits/gthr-default.h. * src/Makefile.in: Regenerate. * include/bits/c++config: Cleanup threading configuration macros. In particular, define __STL_GTHREADS macro which controls... * include/bits/stl_threads.h: ...a brand new gthr.h-based configuration here. * config/c_io_stdio.h: Include staged gthr.h instead of local thread configuration file. Always use __gthread_mutex_t instead of __mutext_type (or int). * include/bits/std_fstream.h: Likewise. * docs/html/17_intro/howto.html: Remove placeholder comment in case this configuration patch didn't make it. Add advice that section only applies if configured with --enable-threads. * docs/html/23_containers/howto.html: Reword to make clear that _PTHREADS is no longer required for any port to be correctly using STL with threads. Add advice that section only applies if configured with --enable-threads. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42998 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-05-30 Benjamin Kosnik <bkoz@redat.com>bkoz2001-05-311-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * acconfig.h (_GLIBCPP_BUGGY_FLOAT_COMPLEX): Remove. (_GLIBCPP_BUGGY_COMPLEX): Remove. * config.h.in: Regenerate. * acinclude.m4 (GLIBCPP_CHECK_COMPLEX_MATH_COMPILER_SUPPORT): Remove. * aclocal.m4: Regenerate. * configure.in: Don't call it. * configure: Regenerate. libstdc++/2970 * src/complex_io.cc (operator<<(ostream&, const complex&): Fix. * testsuite/26_numerics/complex_inserters_extractors.cc (test01): New test. libstdc++/2985 * include/bits/std_complex.h: Include sstream. Put definitions for complex inserters and extractors here, and remove them from... * src/complex_io.cc: ...here. * include/bits/basic_ios.h (basic_ios::__numput_type): Add _Traits parameter. (basic_ios::__numget_type): Same. * include/bits/std_istream.h: Same. * include/bits/std_ostream.h: Same. * include/bits/sbuf_iter.h (ostreambuf_iterator): Fix typo in base class iterator template arguments. * src/locale-inst.cc: Add explicit has_facet instantiations. * include/bits/basic_ios.h (basic_ios::_M_get_fctype_ios): Remove. (_M_get_fnumput): Remove. (_M_get_fnumget): Remove. (basic_ios::_M_check_facet): New function. (basic_ios::_M_cache_facets): New function. * include/bits/basic_ios.tcc: Definition for _M_cache_facets. (basic_ios::imbue): Call _M_cache_facets. (basic_ios::init): Same. * include/bits/istream.tcc: Format, use _M_check_facet. * include/bits/ostream.tcc: Same. * include/bits/locale_facets.tcc (__output_float): Change signature, add _Traits. * testsuite/26_numerics/complex_inserters_extractors.cc (test02): New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42743 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-04-25 Benjamin Kosnik <bkoz@redhat.com>bkoz2001-04-261-10/+0
| | | | | | | | | | | | | | | * include/c_std/bits/std_cmath.h (std): Explicitly inject c99 names. * include/c_std/bits/std_cstdlib.h (std): Same, except for llabs. * include/c_std/bits/std_cwchar.h (std): Same. * acconfig.h (std): Remove c99 injection into std. * config.h.in: Regenerate. * testsuite/README: Fix typo. * include/bits/codecvt.h: Remove warnings. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41568 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-04-19 Benjamin Kosnik <bkoz@redhat.com>bkoz2001-04-201-6/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * acconfig.h (_GLIBCPP_USE_C99): Add. * config.h.in: Regenerate. * acinclude.m4 (GLIBCPP_ENABLE_C99): New macro. Test for ISO/IEC 9899: 1999 support. * aclocal.m4: Regenerate. * configure.in (GLIBCPP_ENABLE_C99): Use it, on by default. * configure: Regenerate. * configure.in (GLIBCPP_ENABLE_LONG_LONG): Set default to yes. * configure: Regenerate. * include/c_std/bits/std_cwchar.h: Put wcstold, wcstoll, wcstoull into c99. * include/c_std/bits/std_cmath.h: Bring C99 functions into c99 namespace. * include/c_std/bits/std_cstdlib.h: Same. * docs/html/configopts.html: Update. * testsuite/26_numerics/c99_macros.cc: Edit, use cmath instead of math.h (test_c99_classify): Add. * config/os/gnu-linux/bits/os_defines.h (_GNU_SOURCE): Remove. (_ISOC99_SOURCE): Remove. * include/bits/stl_algo.h: Use _GLIBCPP_HAVE_DRAND48. * include/bits/c++config (__STL_ASSERTIONS): Simplify. * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Add check for drand48. * aclocal.m4: Regenerate. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41451 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-01-01 Benjamin Kosnik <bkoz@fillmore.redhat.com>bkoz2001-01-021-16/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/c_std/bits/std_cwchar.h: Same. * testsuite/17_intro/header_cwchar.cc: Same. * include/c_std/bits/std_ctime.h: Same. * testsuite/17_intro/header_ctime.cc: Same. * include/c_std/bits/std_cstdlib.h: Same. Clean up undefs, make consistent with cwchar and cmath, etc. * testsuite/17_intro/header_cstdlib.cc: Same. * include/c_std/bits/std_cstdio.h: Same here. * testsuite/17_intro/header_cstring.cc: Same. * include/c_std/bits/std_cstring.h: Include std_cstddef.h for size_t. * testsuite/17_intro/header_cstring.cc: New file. Check for size_t in namespace std. * include/c_std/bits/std_cwchar.h: Explicit checks for mbstate_t. * acconfig.h (HAVE_MBSTATE_T): Add. * config.h.in: Regenerate. * acinclude.m4(GLIBCPP_CHECK_WCHAR_T_SUPPORT): Always test for mbstate_t. * aclocal.m4: Regenerate. * configure: Regenerate. * testsuite/17_intro/headers_c++.cc: New file. * testsuite/17_intro/headers_c.cc: Small changes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38614 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-12-12 Benjamin Kosnik <bkoz@purist.soma.redhat.com>bkoz2000-12-131-0/+15
| | | | | | | | | | | | | | | | | | | | * acinclude.m4 (GLIBCPP_CHECK_CTYPE_SUPPORT): Don't link ctype files here... * configure.in: Rather, do it once for all targets here. Clean up canadian cross and cross compile targets for linux-targeted crosses. * configure: Regenerate. * aclocal.m4: Regnerate. * acconfig.h: Add more defines. * config.h.in: Regenerate. 2000-12-12 Angela Marie Thomas <angela@cygnus.com> * configure.in: Fix case for host-x-linux * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38217 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-12-05 Benjamin Kosnik <bkoz@haight.redhat.com>bkoz2000-12-061-9/+3
| | | | | | | | | | | | | | * acinclude.m4 (EXTRA_CXX_FLAGS): And here. * include/c/bits/std_cstdlib.h (std ): Change macro to _GLIBCPP_NEED_LLDIV_T. * acconfig.h: Remove unused MBSTATE_T bits. * configure.in: Same. * aclocal.m4: Regenerate. * configure: Regenerate. * config.h.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38058 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-12-05 Benjamin Kosnik <bkoz@haight.redhat.com>bkoz2000-12-051-0/+3
| | | | | | | | | | | | | | | | * acinclude.m4 (GLIBCPP_ENABLE_LONG_LONG): Check for lldiv_t. Allow the use of os-specific defines while checking for long-long functions by the inclusion of os_defines.h. * aclocal.m4: Regenerate. * configure.in: Add comments. * configure: Regenerate. * acconfig.h: Add _GLIBCPP_HAVE_LLDIV_T. * config.h.in: Regenerate. * config/os/gnu-linux/bits/os_defines.h: Fix typos and duplications in comments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38051 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-10-24 Phil Edwards <pme@sources.redhat.com>bkoz2000-10-251-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * acconfig.h: List _GLIBCPP_USE_THREADS. * acinclude.m4: General formatting cleanup (tabs/spaces), typo correction, etc. Add comments about following *real* changes where they are used. (GLIBCPP_ENABLE_C_MBCHAR): New test... (GLIBCPP_CHECK_WCHAR_T_SUPPORT): ...results used here. (GLIBCPP_ENABLE_CSTDIO): Define need_wlibio iff wide characters are requested. (GLIBCPP_ENABLE_THREADS): If threads are used, define new macro _GLIBCPP_USE_THREADS in c++config.h. (GLIBCPP_ENABLE_SHADOW): For C_INCLUDE_DIR, change () to {} as this is used in both makefiles and shell scripts (mkcheck). * configure.in: Call GLIBCPP_ENABLE_C_MBCHAR. * libio/_G_config.h: Wrap _IO_MTSAFE_IO in _GLIBCPP_USE_THREADS. * config/c_io_libio.h: In nonthreaded case, typedef __c_lock to something harmless, like int. * config/os/aix/bits/os_defines.h: Guard with _GLIBCPP_OS_DEFINES, add comment/instructions. * config/os/bsd/bits/os_defines.h: Ditto. * config/os/generic/bits/os_defines.h: Ditto. * config/os/gnu-linux/bits/os_defines.h: Ditto. * config/os/irix/bits/os_defines.h: Ditto. * config/os/newlib/bits/os_defines.h: Ditto. * config/os/solaris/solaris2.5/bits/os_defines.h: Ditto. * config/os/solaris/solaris2.6/bits/os_defines.h: Ditto. * mkcheck.in: Limit the available heap size for testsuite binaries, initially at 2MB. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37050 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-10-21 Benjamin Kosnik <bkoz@purist.soma.redhat.com>bkoz2000-10-211-0/+3
| | | | | | | | | | | | | * acinclude.m4 (GLIBCPP_ENABLE_LONG_DOUBLE): New macro. * aclocal.m4: Regenerate. * configure.in: Use it. * configure: Regenerate. * src/complexl.cc: Fixup. * include/c_std/bits/std_cmath.h: Fixup. * include/c/bits/std_cmath.h: Fixup. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36998 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-10-02 Steven King <sxking@uswest.net>bkoz2000-10-041-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36707 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-08-24 Benjamin Kosnik <bkoz@purist.soma.redhat.com>bkoz2000-08-241-18/+0
| | | | | | | | | | * acconfig.h: Revert. * acinclude.m4: Revert. * libio/_G_config.h: Revert. * libio/libio.h: Revert. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35943 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-08-23 Phil Edwards <pme@sourceware.cygnus.com>pme2000-08-231-0/+18
| | | | | | | | | | | | | | | | | | | * acconfig.h: _GLIBCPP_USING_THREADS and some workaround types added. * acinclude.m4: New macro, GLIBCPP_ENABLE_WCHAR. Set the threads definition as well, and some minor spelling/spacing fixes. If building libio, check for certain typedefs. * libio/_G_config.h: Wrap _IO_MTSAFE_IO in _GLIBCPP_USING_THREADS. Conditionally define _LARGEFILE64_SOURCE, otherwise the 64-bit types will never be there. * libio/libio.h: In the null case, _IO_lock_t can't just be void. * src/string-inst.cc: Use _GLIBCPP_USE_WCHAR_T. * configure.in: Update the cache a bit more often. * mkcheck.in: For check-install, also need to -I the testsuite dir. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35901 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-06-22 Steven King <sxking@uswest.net>bkoz2000-06-221-173/+17
| | | | | | | | | | | | | | | | | | | | | | | * acinclude.m4: Check for sinl, _sinl using 1 parameter. 2000-06-22 Benjamin Kosnik <bkoz@purist.soma.redhat.com> * acinclude.m4 (GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT): Redo. Use the same approach as GLIBCPP_CHECK_MATH_SUPPORT, only don't try to link against libm and don't use -fno-builtins... * math/mathconf.h: Change up builtin macros to new schema. * bits/std_cmath.h: And here. Wheee! * shadow/bits/std_cmath.h: And here. * acconfig.h: Change up builtin macros here. * math/cosf.c: Remove. * math/fabsf.c: Likewise. * math/sinf.c: Likewise. * math/sqrtf.c: Likewise. * math/Makefile.am (EXTRA_DIST): Remove those four files. * math/Makefile.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34655 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-06-13 Steven King <sxking@uswest.net>bkoz2000-06-141-0/+9
| | | | | | | | | | | | | | | * acinclude.m4: Fixup some of the builtin math tests and add tests for __builtin_fmod* and test libm for fmodf, fmodl or _fmodf, _fmodl. * acconfig.h: Add entries for fmod*. 2000-06-13 Branko Cibej <branko.cibej@hermes.si> * bits/std_cmath.h: Fix typos in tests (*_FMODFF -> *_FMODF). Test *_MODFF not *_MODF for modf(float, float*). (modf(float, float*)): Remove reference to _C_legacy. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34539 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-06-06 Steven King <sxking@uswest.net>bkoz2000-06-061-13/+355
| | | | | | | | | | | | | | | | | | | * acconfig.h: Added defines for HAVE_BUILTIN math functs for float, double and long double. Added defines for HAVE libm math functs for float and long double. * aclocal.m4: Added configure checks for builtin math funcs and libm support for float and long double versions of the math functions. * config.h.in: Added undefs for math functs. * configure: Regenerate. * math/mathconf: Changed the _GLIBCPP_HAS_BUILTIN_* to _GLIBCPP_HAVE_BUILTIN_*. * bits/std_cmath.h: Added long double support. Use builtins for float, double and long if available, otherwise, use libm versions if availible, otherwise, punt. * shadow/bits/std_cmath.h: ditto git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34436 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-06-01 Benjamin Kosnik <bkoz@gnu.org>bkoz2000-06-021-5/+0
| | | | | | | | | | | | | | | | | | | | * bits/std_cwctype.h: Clean. * bits/std_cwchar.h: Clean, remove cruft. * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Re-work, add bits for beginning iconv support. Remove _GLIBCPP_HAS_WCHAR_MIN_MAX, roll into _GLIBCPP_USE_WCHAR_T macro. * acconfig.h: Remove _GLIBCPP_HAS_WCHAR_MIN_MAX. * bits/limits_generic.h: Remove. * src/gen-num-limits.cc: Same. * src/locale.cc: Tweaks. * bits/char_traits.h: Tweaks. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34352 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-05-10 Benjamin Kosnik <bkoz@redhat.com>bkoz2000-05-111-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bits/std_cmath.h: Tweaks. * math/mathconf.h: Tweaks and fixes for HP-UX 11. (sqrtf): Define away iff !builtin and !in <math.h>. (sinf): Same. (cosf): Same. (fabsf): Same. At some point this directory should be converted to c++, the autoconf tests should be run by the c++ compiler (not c), and <cmath> should be used instead of math.h. Move declaration of nan() here. * math/complex-stub.h (cabsl): Remove nan() declaration. Finish up FreeBSD4.0 support. * config/bsd/ctype.cc: Scope out toupper, tolower calls. * config/generic/ctype.cc: And here. * testsuite/21_strings/char_traits.cc (test02): Guard with _GLIBCPP_USE_WCHAR_T. via Phil Edwards <pme@sourceware.cygnus.com> * bits/std_cctype.h: Remove _GLIBCPP_USE_NAMESPACES. * acconfig.h: And here. * acinclude.m4: Same. * testsuite/27_io/istream.cc: And here. * testsuite/27_io/ostream.cc: And here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33835 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-04-21 Benjamin Kosnik <bkoz@redhat.com>bkoz2000-04-211-0/+199
* libstdc++-v3: New directory. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33317 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud