Richard Earnshaw
25cf83980b
cpu_limits.h: New file.
...
* config/cpu/arm/cpu_limits.h: New file.
* configure.target: Use config/cpu/arm for XScale and StrongARM
configurations.
From-SVN: r56653
2002-08-29 09:14:27 +00:00
Phil Edwards
6dc5fdfd5f
linker-map.gnu: Verbose comments, clean up spacing.
...
2002-08-23 Phil Edwards <pme@gcc.gnu.org>
* config/linker-map.gnu: Verbose comments, clean up spacing.
* include/bits/stl_alloc.h: Fix indentation of 'if' bodies, return
statements.
__allocator: Change class declaration to struct.
* docs/html/17_intro/C++STYLE: Fix typo.
* include/bits/stl_deque.h, include/bits/stl_list.h,
include/bits/stl_map.h, include/bits/stl_multimap.h,
include/bits/stl_vector.h: Fix fallout from typo.
From-SVN: r56540
2002-08-23 16:52:29 +00:00
Loren J. Rittle
1f8151cf73
abi_check.cc: Enhance shell portability.
...
* testsuite/abi_check.cc: Enhance shell portability.
* config/abi/i386-unknown-freebsd4.6: Add.
* config/abi/i386-unknown-freebsd4.6/baseline_symbols.txt: New file.
From-SVN: r56527
2002-08-23 01:50:15 +00:00
Benjamin Kosnik
747d096709
Makefile.am (check-abi): New rule.
...
2002-08-22 Benjamin Kosnik <bkoz@redhat.com>
Phil Edwards <pme@gcc.gnu.org>
Ulrich Drepper <drepper@redhat.com>
* Makefile.am (check-abi): New rule.
* Makefile.in: Regenerate.
* acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Export baseline_file.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* testsuite/Makefile.am (noinst_PROGRAMS): Add abi_check.
(abi_check_SOURCES): Add.
* testsuite/Makefile.in: Regenerate.
* testsuite/abi_check.cc: New file.
* config/abi: Add.
* config/abi/i686-pc-linux-gnu: Add.
* config/abi/i686-pc-linux-gnu/baseline_symbols.txt: New file.
Co-Authored-By: Phil Edwards <pme@gcc.gnu.org>
Co-Authored-By: Ulrich Drepper <drepper@redhat.com>
From-SVN: r56515
2002-08-22 20:06:01 +00:00
Danny Smith
b5028f5e8b
ctype_inline.h (is): Don't offset _M_table.
...
2002-08-02 Danny Smith <dannysmith@users.sourceforge.net>
* config/os/newlib/ctype_inline.h (is): Don't offset _M_table.
(scan_is): Use this->is.
(scan_not): Likewise.
From-SVN: r55989
2002-08-02 16:10:12 +00:00
Benjamin Kosnik
3450b8d03c
re PR libstdc++/7461 (ctype<char>::classic_table() returns offset array on Cygwin)
...
2002-08-01 Rick Danos <rdanos@hotmail.com>
PR libstdc++/7461
* config/os/newlib/ctype_noninline.h (classic_table): Add offset.
* config/os/newlib/ctype_inline.h (is): Use static_cast.
From-SVN: r55955
2002-08-01 22:17:23 +00:00
Benjamin Kosnik
0870a49046
linker-map.gnu: Change CXXABI_1 to CXXABI_1.2, GLIBCPP_3.1 to GLIBCPP_3.2.
...
2002-08-01 Benjamin Kosnik <bkoz@redhat.com>
Jakub Jelinek <jakub@redhat.com>
* config/linker-map.gnu: Change CXXABI_1 to CXXABI_1.2,
GLIBCPP_3.1 to GLIBCPP_3.2.
From-SVN: r55938
2002-08-01 17:25:56 +00:00
Alan Modra
bd11db39e8
cpu_limits.h (__glibcpp_long_bits): Define.
...
* config/cpu/powerpc/cpu_limits.h (__glibcpp_long_bits): Define.
* configure.target (cpu_include_dir): Use cpu/powerpc for powerpc64.
* config/cpu/powerpc/atomicity.h (__always_swap): Remove.
(__test_and_set): Remove.
(_STWCX): Define and use.
From-SVN: r55854
2002-07-30 08:56:00 +09:30
Benjamin Kosnik
9a56333e55
re PR libstdc++/7230 (<strstream> header file is missing (trunk))
...
2002-07-24 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/7230
* config/linker-map.gnu: Revert strstream patch from 2002-07-01.
* include/Makefile.am (backward_headers): Use strstream, not
strstream.h.
* include/Makefile.in: Regenerate.
* include/backward/strstream: Revert.
* include/backward/strstream.h: Remove.
* src/strstream.cc: Revert.
* testsuite/backward/strstream_members.cc: Change include.
From-SVN: r55730
2002-07-25 00:04:37 +00:00
Rainer Orth
b62024ef52
ctype_base.h (ctype_base): Fix print to match vendor <ctype.h>.
...
* config/os/solaris/solaris2.5/ctype_base.h (ctype_base): Fix
print to match vendor <ctype.h>.
From-SVN: r55463
2002-07-15 20:23:38 +00:00
Eric Christopher
17640f249b
configure.target: Fix comment for mips atomicity.
...
2002-07-08 Eric Christopher <echristo@redhat.com>
* configure.target: Fix comment for mips atomicity. Add
mips*-*-linux* target, enable atomic operations there.
* config/cpu/mips/atomicity.h: Fix comments, remove
#ifndef/#endif. Add push/pop mips2.
From-SVN: r55331
2002-07-08 19:41:57 +00:00
Benjamin Kosnik
fdf7e80975
re PR libstdc++/6410 (Trouble with non-Ascii monetary symbols and wchar_t)
...
2002-07-02 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/6410
* include/bits/locale_facets.h (moneypunct::moneypunct): Add const
char* name parameter.
* config/locale/gnu/monetary_members.cc: Use it.
* config/locale/generic/monetary_members.cc: Same.
* src/localename.cc (_Impl::_Impl(const char*, size_t)): Use it.
* include/backward/strstream.h: Update date.
From-SVN: r55203
2002-07-03 06:29:26 +00:00
Benjamin Kosnik
eafa1afac6
strstream: Remove namespace std.
...
2002-07-01 Benjamin Kosnik <bkoz@redhat.com>
* include/backward/strstream: Remove namespace std. Transfer to...
* include/backward/strstream.h: ...here. Qualify std names.
* src/strstream.cc: Remove namespace std.
* include/Makefile.am (backward_headers): Remove strstream.h.
* include/Makefile.in: Regenerate.
* config/linker-map.gnu: Export strstream bits.
* src/fstream-inst.cc: Tweak.
* src/io-inst.cc: Same.
* src/istream-inst.cc: Same.
* src/misc-inst.cc: Same.
* src/ostream-inst.cc: Same.
* src/sstream-inst.cc: Same.
* src/valarray-inst.cc: Same.
* src/misc-inst.cc: Remove unused instantiations.
From-SVN: r55148
2002-07-01 19:58:42 +00:00
Jessica Han
0e20c0b56f
2002-06-25 Jessica Han <jessica@cup.hp.com>
...
* config/os/hpux/os_defines.h Define _GLIBCPP_VTABLE_PADDING
* libsupc++/tinfo.cc Handle the 8 byte aligned vtable entries when
_GLIBCPP_VTABLE_PADDING is defined.
From-SVN: r54991
2002-06-25 16:55:47 +00:00
Phil Edwards
d32e25dffa
*: Move header files up a level.
...
2002-06-24 Phil Edwards <pme@gcc.gnu.org>
* config/cpu/*/bits/*: Move header files up a level. Remove bits.
* config/os/*/bits/*: Likewise.
* configure.in: Update.
* configure: Regenerate.
* configure.target: Update.
* docs/html/17_intro/porting.texi: Update.
From-SVN: r54943
2002-06-24 05:50:58 +00:00
David Edelsohn
8fcbeac278
- Follow up to 2002-06-05 patch.
...
From-SVN: r54934
2002-06-23 17:46:34 -04:00
J.T. Conklin
f62bef4832
configure.target: Set os_include_dir to config/os/qnx/qnx6.1 under *-qnx6.[12]*.
...
2002-06-11 J.T. Conklin <jtc@acorntoolworks.com>
Benjamin Kosnik <bkoz@redhat.com>
* configure.target: Set os_include_dir to config/os/qnx/qnx6.1
under *-qnx6.[12]*.
* configure.in: Add support for *-qnx6.[12]*.
* configure: Regenerate.
* config/os/qnx, config/os/qnx/qnx6.1, config/os/qnx/qnx6.1/bits:
New directories.
* config/os/qnx/qnx6.1/bits/ctype_base.h, ctype_inline.h,
ctype_noninline.h, os_defines.h: New files.
Co-Authored-By: Benjamin Kosnik <bkoz@redhat.com>
From-SVN: r54518
2002-06-11 17:54:27 +00:00
Benjamin Kosnik
4e4bcb4e86
ctype_noninline.h: Tweak format.
...
2002-06-08 Benjamin Kosnik <bkoz@redhat.com>
* config/os/generic/bits/ctype_noninline.h: Tweak format.
From-SVN: r54371
2002-06-08 14:03:03 +00:00
David Edelsohn
b80ee165bd
ctype_noninline.h (do_toupper,do_tolower): Call external symbol.
...
* config/os/aix/bits/ctype_noninline.h (do_toupper,do_tolower):
Call external symbol.
From-SVN: r54284
2002-06-05 10:51:59 -04:00
Marc Espie
04df515ada
atomicity.h (__exchange_and_add): Fix inline assembly for old assemblers.
...
* config/cpu/m68k/bits/atomicity.h(__exchange_and_add): Fix inline
assembly for old assemblers.
From-SVN: r54202
2002-06-03 05:26:00 +00:00
Benjamin Kosnik
bed1bd8c51
re PR libstdc++/6795 (stringbuf failure)
...
2002-05-27 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/6795.
* config/os/solaris/solaris2.6/bits/ctype_noninline.h
(classic_table): Fix.
* config/os/solaris/solaris2.5/bits/ctype_noninline.h: Same.
2002-05-27 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/22_locale/ctype_is_wchar_t.cc: Guard with
_GLIBCPP_USE_WCHAR_T.
* testsuite/22_locale/ctype_narrow_wchar_t.cc: Same.
* testsuite/22_locale/ctype_to_wchar_t.cc: Same.
* testsuite/22_locale/ctype_widen_wchar_t.cc: Same.
From-SVN: r53921
2002-05-27 11:42:59 +00:00
Carlo Wood
7aacf98920
re PR libstdc++/6811 (Missing 'return *this' in __enc_traits& operator=(const __enc_traits& __obj)' in 3.1 release)
...
2002-05-26 Carlo Wood <carlo@alinoe.com>
Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/6811
* config/locale/ieee_1003.1-2001/codecvt_specializations.h
(__enc_traits::operator=): add missing return statement.
Co-Authored-By: Paolo Carlini <pcarlini@unitus.it>
From-SVN: r53896
2002-05-26 14:35:04 +00:00
Benjamin Kosnik
f64ce6c6e8
[multiple changes]
...
2002-05-24 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/6701
* testsuite/22_locale/ctype_narrow_char.cc: New.
* testsuite/22_locale/ctype_narrow_wchar_t.cc: New.
* testsuite/22_locale/ctype_widen_char.cc: New.
* testsuite/22_locale/ctype_widen_wchar_t.cc: New.
* testsuite/22_locale/ctype_members_char.cc: Move some bits into...
* testsuite/22_locale/ctype_is_char.cc: ...this.
* testsuite/22_locale/ctype_to_char.cc: ...and this.
* testsuite/22_locale/ctype_members_wchar_t.cc: Move some bits into...
* testsuite/22_locale/ctype_is_wchar_t.cc: ...this.
* testsuite/22_locale/ctype_to_wchar_t.cc: ...and this.
* testsuite/22_locale/ctype_scan_wchar_t.cc: Should pass.
2002-05-24 Dale Peakall <dale@peakall.net>
PR libstdc++/6701
* config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_narrow): Fix.
* config/locale/generic/ctype_members.cc: Same.
From-SVN: r53841
2002-05-24 16:02:39 +00:00
Kaveh R. Ghazi
a8b432f4de
ctype_inline.h (scan_is, scan_not): Fix typo, use this->is() rather than manually (and perhaps incorrectly) inlining it.
...
* config/os/irix/irix5.2/bits/ctype_inline.h (scan_is, scan_not):
Fix typo, use this->is() rather than manually (and perhaps
incorrectly) inlining it.
* config/os/irix/irix6.5/bits/ctype_inline.h (scan_is, scan_not):
Likewise.
* testsuite/22_locale/ctype_scan_char.cc: New file.
From-SVN: r53422
2002-05-13 13:52:08 +00:00
Kaveh R. Ghazi
31397a7b64
os_defines.h: Revert 2002-05-06 change.
...
libstdc++-v3:
* config/os/irix/irix5.2/bits/os_defines.h: Revert 2002-05-06
change.
gcc:
* mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
From-SVN: r53408
2002-05-13 02:52:47 +00:00
John David Anglin
1f121cdbdd
os_defines.h (__glibcpp_long_bits): Define to 64 for hppa 64-bit port.
...
* config/os/gnu-linux/bits/os_defines.h (__glibcpp_long_bits): Define
to 64 for hppa 64-bit port.
(__glibcpp_long_double_bits): Define to 64 for all hppa ports.
From-SVN: r53388
2002-05-12 01:01:21 +00:00
Mark Mitchell
83b35bd149
Adjust copyright dates
...
From-SVN: r53296
2002-05-08 18:26:06 +00:00
Mark Mitchell
522e3d2226
configure.in: Add support for WindISS.
...
* configure.in: Add support for WindISS.
* configure: Regenerated.
* configure.target: Add support for WindISS.
* config/os/windiss/bits/ctype_base.h: New file.
* config/os/windiss/bits/ctype_inline.h: Likewise.
* config/os/windiss/bits/ctype_noninline.h: Likewise.
* config/os/windiss/bits/os_defines.h: Likewise.
From-SVN: r53269
2002-05-07 20:43:10 +00:00
Kaveh R. Ghazi
567310ad7f
os_defines.h (_SGI_SOURCE, [...]): Ensure they are always defined.
...
* config/os/irix/irix5.2/bits/os_defines.h (_SGI_SOURCE,
__EXTENSIONS__): Ensure they are always defined.
From-SVN: r53216
2002-05-06 14:03:57 +00:00
Paolo Carlini
6d030676cc
[multiple changes]
...
2002-05-04 Benjamin Kosnik <bkoz@redhat.com>
Paolo Carlini <pcarlini@unitus.it>
* testsuite/22_locale/num_put_members_char.cc: Add test04(),
testing for the locale_facets.tcc entry of the previous commit.
* testsuite/22_locale/num_put_members_wchar_t.cc: Likewise.
2002-05-04 Takeshi Kobayakawa <tskoba@mte.biglobe.ne.jp>
* config/locale/generic/c_locale.cc
(__convert_to_v(float, double, long double)):
Fix the temporary switch to the "C" locale, saving and
restoring in the proper way the current locale.
* config/locale/generic/time_members.cc
(__timepunct<char, wchar_t>::_M_put): Likewise.
* config/locale/gnu/messages_members.cc
(messages<char>::do_get): Likewise.
* config/locale/gnu/messages_members.h
(messages<_CharT>::do_get): Likewise.
* config/locale/gnu/time_members.cc
(__timepunct<char, wchar_t>::_M_put): Likewise.
* include/bits/locale_facets.tcc (__convert_from_v): Likewise.
From-SVN: r53167
2002-05-04 21:33:19 +00:00
Kaveh R. Ghazi
b70d6d4b66
ctype_noninline.h (classic_table): Return __ctype + 1.
...
* config/os/irix/irix5.2/bits/ctype_noninline.h (classic_table):
Return __ctype + 1.
(ctype:_M_table): Initialize to classic_table(), not __ctype.
From-SVN: r53093
2002-05-03 13:56:52 +00:00
Kaveh R. Ghazi
08d028699d
* config/os/irix/irix5.2/bits/os_defines.h
...
(__glibcpp_long_double_bits, __glibcpp_long_bits): Define.
From-SVN: r53077
2002-05-03 04:01:58 +00:00
Kaveh R. Ghazi
3a02124033
ctype_inline.h: Cast to unsigned char.
...
* config/os/irix/irix5.2/bits/ctype_inline.h: Cast to unsigned
char.
From-SVN: r53076
2002-05-03 03:59:22 +00:00
John David Anglin
888d5eaa62
re PR libstdc++/6501 (ctype_noninline.h:45: `__SB_masks' undeclared)
...
PR libstdc++/6501
* include/c_std/std_cctype.h: Include bits/c++config.h.
* config/os/hpux/bits/os_defines.h (_SB_CTYPE_MACROS): Define.
From-SVN: r52970
2002-04-30 19:50:29 +00:00
Benjamin Kosnik
5cdd50a591
stdio_filebuf.h: New file.
...
2002-04-30 Benjamin Kosnik <bkoz@redhat.com>
* include/ext/stdio_filebuf.h: New file.
* include/ext/enc_filebuf.h: New file.
* config/io/basic_file_stdio.h (__basic_file::sys_open): Add fd ctor.
* config/io/basic_file_stdio.cc: Same.
* include/bits/fstream.tcc (filebuf::_M_allocate_internal_buffer):
Remove _M_unbuf hacks.
(filebuf::_M_destroy_internal_buffer): Same.
(filebuf::filebuf(cfile, openmode, int_type): Remove definition.
(filebuf::fd): Remove.
* include/std/std_fstream.h (filebuf::_M_unbuf): Remove.
(filebuf::filebuf(__c_file*, openmode, int_type)): Remove.
(filebuf::fd): Remove.
* src/ios.cc (ios_base::_S_ios_create): Change to use specialized
filebufs.
(ios_base::_S_ios_destroy): Same.
* src/misc-inst.cc (file_filebuf<char>): Add instantiation.
* include/Makefile.am (ext_headers): Add ext_filebuf.h,
stdio_filebuf.h. * include/Makefile.in: Regenerate.
From-SVN: r52961
2002-04-30 19:04:43 +00:00
Benjamin Kosnik
8e44e77e6a
re PR libstdc++/6511 (new libstdc++ v3 testsuite regressions on *-*-solaris2.8)
...
2002-04-30 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/6511
* config/os/solaris/solaris2.7/bits/ctype_noninline.h: Fix typo.
From-SVN: r52937
2002-04-30 09:15:48 +00:00
Benjamin Kosnik
d02475fdae
re PR libstdc++/5280 (Problems with named locales and iostreams (gnulocale))
...
2002-04-28 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/5280
* config/io/basic_file_stdio.h (__basic_file::sys_getc): Return int.
(__basic_file::sys_ungetc): Take int.
* config/io/basic_file_stdio.cc (__basic_file::sys_ungetc): Same.
* include/bits/fstream.tcc (basic_filebuf::_M_underflow_common):
Use sys_getc for unbuffered input.
* testsuite/27_io/narrow_stream_objects.cc (test06): New.
* src/ios.cc (_M_grow_words): Adjust error checking.
* testsuite/27_io/ios_base_storage.cc: Same.
From-SVN: r52879
2002-04-29 07:00:50 +00:00
Benjamin Kosnik
82f637d15d
os_defines.h: Remove _G_USING_THUNKS.
...
2002-04-27 Benjamin Kosnik <bkoz@redhat.com>
* config/os/solaris/solaris2.5/bits/os_defines.h: Remove
_G_USING_THUNKS.
* config/os/solaris/solaris2.6/bits/os_defines.h: Same.
* config/os/solaris/solaris2.7/bits/os_defines.h: Same.
From-SVN: r52838
2002-04-28 00:42:12 +00:00
Hans-Peter Nilsson
7e67bb8588
cpu_limits.h: New file.
...
* config/cpu/mmix/bits/cpu_limits.h: New file.
* configure.target (CPULIMITSH): Use it.
From-SVN: r52674
2002-04-23 17:46:24 +00:00
Jason Merrill
5066927d9e
re PR libstdc++/4150 (catastrophic performance decrease in C++ code)
...
PR libstdc++/4150
* include/std/std_streambuf.h (basic_streambuf::_M_set_indeterminate):
Move to filebuf.
(basic_streambuf::_M_set_determinate): Likewise.
(basic_streambuf::_M_is_indeterminate): Likewise.
* include/bits/std_fstream.h (basic_filebuf::_M_filepos): New
non-static data member.
(basic_filebuf::_M_underflow_common): New non-static member function.
(basic_filebuf::_M_underflow, _M_uflow): Call it.
(basic_filebuf::sync): Avoid useless seeking.
(basic_filebuf::_M_set_indeterminate): Move here from streambuf.
Set _M_filepos.
(basic_filebuf::_M_set_determinate): Likewise.
(basic_filebuf::_M_is_indeterminate): Likewise.
* include/bits/fstream.tcc (basic_filebuf::_M_really_overflow): Seek
back to _M_out_beg if necessary.
(basic_filebuf::seekoff): Likewise.
(basic_filebuf::_M_underflow_common): Generalization of old
underflow(). Don't seek back to _M_in_beg.
* src/ios.cc: Lose _GLIBCPP_AVOID_FSEEK stuff.
* config/os/solaris/solaris2.?/bits/os_defines.h: Likewise.
* config/os/bsd/freebsd/bits/os_defines.h: Likewise.
* config/os/mingw32/bits/os_defines.h: Likewise.
* testsuite/27_io/filebuf_virtuals.cc (test05): Don't overspecify
ungetc test.
From-SVN: r52634
2002-04-22 16:28:05 -04:00
Benjamin Kosnik
cff5778913
linker-map.gnu (__malloc_alloc_template): Add.
...
2002-04-17 Benjamin Kosnik <bkoz@redhat.com>
* config/linker-map.gnu (__malloc_alloc_template): Add.
(__default_alloc_template): Same.
* include/bits/stl_alloc.h (__malloc_alloc_template): Add extern
template.
(__default_alloc_template): Same.
From-SVN: r52441
2002-04-17 20:08:18 +00:00
Benjamin Kosnik
d3a193e36c
re PR libstdc++/4164 (33 Memory Leak when using iostream)
...
2002-04-15 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/4164
Valgrind fixes.
* config/io/basic_file_stdio.cc (__basic_file::~__basic_file):
Call close.
(__basic_file::close): Call fflush. Correct return if fclose ok.
(__basic_file::is_open): Make const.
Change __c_file_type to __c_file.
* config/io/basic_file_stdio.h: Change __c_file_type to __c_file.
(__basic_file::is_open): Make const.
* config/io/c_io_stdio.h: Change __c_file_type to __c_file.
* include/std/std_fstream.h (filebuf::_M_allocate_file): Remove.
(filebuf::_M_unbuf): Add.
(filebuf::_M_file): Change to non-pointer.
(filebuf::_M_allocate_pback_buffer): Remove.
* include/bits/fstream.tcc (filebuf::_M_allocate_file): Remove.
(filebuf::_M_allocate_internal_buffer): Use _M_unbuf.
Change initialization list for _M_file change.
(filebuf::_M_allocate_pback_buffer): Remove.
Change _M_file usage to reflect non-pointer data member.
* config/locale/generic/c_locale.cc
(locale::facet::_S_create_c_locale): Add parameter.
* config/locale/generic/collate_members.cc: Change
_M_compare_helper to _M_compare.
Change _M_transform_helper to _M_transform.
* config/locale/generic/monetary_members.cc: Changeup data types.
Add dtors.
* config/locale/generic/numeric_members.cc: Add dtors.
* config/locale/generic/time_members.cc: Add dtors.
* config/locale/gnu/c_locale.cc: Add parameter.
* config/locale/gnu/collate_members.cc:Change
_M_compare_helper to _M_compare.
Change _M_transform_helper to _M_transform.
* config/locale/gnu/ctype_members.cc: Better error checking.
* config/os/gnu-linux/bits/ctype_noninline.h: Better error checking.
* config/locale/gnu/messages_members.cc: Tweak comment.
* config/locale/gnu/monetary_members.cc: Change data types.
Add dtors.
* config/locale/gnu/numeric_members.cc: Add dtors, better error
checking.
* config/locale/gnu/time_members.cc: Same.
* config/locale/ieee_1003.1-2001/c_locale.cc
(locale::facet::_S_create_c_locale): Add parameter.
* config/locale/ieee_1003.1-2001/c_locale.h: Correct typedef.
* config/locale/ieee_1003.1-2001/codecvt_specializations.h: Remove
bogus ctor.
* include/bits/locale_facets.h (moneypunct): Use string literals.
Don't define dtor.
(numpunct): Same.
(__timepunct): Same.
(locale::_Impl::_M_facets): Change from vector to array.
(locale::_Impl::_M_names): Change from array of strings to array
of string literals.
(locale::facet::_S_create_c_locale): Add parameter.
(locale::locale::_S_num_facets): Move to...
(locale::_Impl::_M_facets_size): Here.
* include/bits/locale_facets.tcc: Fixups for _M_facets, _M_name
changes.
* include/bits/localefwd.h: (locale:🆔 :_M_id): Add member function.
(locale::_Impl::_Impl(facet**, size_t, bool)): Add.
(locale::_Impl::_Impl(string, size_t)): Change to
(locale::_Impl::_Impl(const char*, size_t)): This.
* include/bits/streambuf.tcc (streambuf::_S_pback_size): Define.
* include/std/std_streambuf.h (streambuf::_M_pback_size): Change to
(streambuf::_S_pback_size): This.
* src/globals.cc: Add pre-allocations for "C" facets.
* src/locale-inst.cc: Remove vector instantiations.
* src/locale.cc: Remove vector include. Fixups for _M_names,
_M_facets changes.
* src/localename.cc: Same.
* include/bits/stl_vector.h: Fix odd formatting.
* include/bits/basic_string.tcc: Tweak comment.
* libsupc++/new: Make sure parameters are uglified.
* libsupc++/typeinfo: Same.
* testsuite/22_locale/num_get_members_char.cc: Fixup.
* testsuite/22_locale/num_get_members_wchar_t.cc: Same.
* testsuite/27_io/filebuf_members.cc: Same.
From-SVN: r52345
2002-04-16 00:45:36 +00:00
Steve Ellcey
ef290537a3
* gcc/libstdc++-v3/config/os/hpux/bits/os_defines.h
...
(strtoll, strtoull): In 64 bit mode HP-UX (IA64 and HPPA)
does not define strtoll or strtoull, but does define strtol
and strtoul which are the same since in 64 bit mode
sizeof(long) == sizeof(long long).
From-SVN: r52247
2002-04-12 22:31:27 +00:00
Richard Henderson
51cd12de0d
* config/linker-map.gnu: Add __gxx_personality_sj0.
...
From-SVN: r52187
2002-04-11 16:27:45 -07:00
Benjamin Kosnik
1cb7f91f86
bitset_members.cc: New test.
...
2002-04-09 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/6124
* testsuite/23_containers/bitset_members.cc: New test.
* include/std/std_bitset.h (_Bit_count::_S_bit_count): Move..
(_S_bit_count): Here.
(_First_one::_S_first_one): Move...
(_S_first_one): Here.
Format.
* src/bitset.cc: Adjust.
* config/linker-map.gnu: Export.
From-SVN: r52066
2002-04-09 07:35:31 +00:00
David S. Miller
03381059f7
2002-04-05 David S. Miller <davem@redhat.com>
...
* config/os/gnu-linux/bits/os_defines.h
(__glibcpp_long_double_bits): Set to 64 on 32-bit Sparc.
From-SVN: r51921
2002-04-05 05:46:50 -08:00
Phil Edwards
76f6aa8b6c
linker-map.gnu: Export __verbose_terminate_handler.
...
2002-04-01 Phil Edwards <pme@gcc.gnu.org>
* config/linker-map.gnu: Export __verbose_terminate_handler.
* libsupc++/Makefile.am (sources): Add cxa_demangle.c, dyn-string.c.
Make new LTCOMPILE variable, use it in new special build rules.
* libsupc++/Makefile.in: Rebuild.
* src/vterminate.cc (__verbose_terminate_handler): Enable use of
runtime __cxa_demangle.
* docs/html/install.html: Update prereqs and instructions.
* docs/html/19_diagnostics/howto.html: Bring naming for
verbose_terminate_handler into line with reality.
From-SVN: r51709
2002-04-01 21:56:42 +00:00
Paolo Carlini
99b629fa30
2002-04-01 Paolo Carlini <pcarlini@unitus.it>
...
* config/locale/ieee_1003.1-2001/codecvt_specializations.h
(codecvt::do_out, codecvt::do_unshift, codecvt::do_in):
By definition, sizeof(char) == 1.
* include/bits/locale_facets.tcc (money_get::do_get,
money_put::do_put): Ditto.
* testsuite/21_strings/inserters_extractors.cc
(test04): Ditto.
From-SVN: r51685
2002-04-01 08:55:05 +00:00
Benjamin Kosnik
9ad6276f02
ctype_noninline.h (ctype::classic): Set to _ctype_.
...
2002-03-25 Benjamin Kosnik <bkoz@redhat.com>
* config/os/newlib/bits/ctype_noninline.h (ctype::classic): Set to
_ctype_.
From-SVN: r51354
2002-03-25 23:36:47 +00:00
Benjamin Kosnik
99ffa1e37a
messages_members.h: Correct conditional.
...
2002-03-25 Benjamin Kosnik <bkoz@redhat.com>
Jakub Jelinek <jakub@redhat.com>
* config/locale/gnu/messages_members.h: Correct conditional.
* config/locale/gnu/messages_members.cc: Same.
* config/locale/gnu/time_members.cc: Same.
From-SVN: r51332
2002-03-25 20:20:34 +00:00
Benjamin Kosnik
1f3a2ce1db
messages_members.h: Add __uselocale bits.
...
2002-03-22 Benjamin Kosnik <bkoz@redhat.com>
* config/locale/gnu/messages_members.h: Add __uselocale bits.
* config/locale/gnu/messages_members.cc: Same.
* config/locale/gnu/time_members.cc: Same.
From-SVN: r51217
2002-03-23 01:55:34 +00:00
Benjamin Kosnik
f714575791
ctype_noninline.h: Cast to unsigned char.
...
2002-03-12 Benjamin Kosnik <bkoz@redhat.com>
Per Liboriussen <liborius@stofanet.dk>
* config/os/gnu-linux/bits/ctype_noninline.h: Cast to
unsigned char.
* config/os/gnu-linux/bits/ctype_inline.h: Same.
* config/os/irix/irix6.5/bits/ctype_inline.h: Same.
* config/os/solaris/solaris2.5/bits/ctype_inline.h: Same.
* config/os/solaris/solaris2.5/bits/ctype_noninline.h: Same.
* config/os/solaris/solaris2.6/bits/ctype_inline.h: Same.
* config/os/solaris/solaris2.6/bits/ctype_noninline.h: Same.
* config/os/solaris/solaris2.7/bits/ctype_inline.h: Same.
* config/os/solaris/solaris2.7/bits/ctype_noninline.h: Same.
* testsuite/22_locale/ctype_members_char.cc (main): Add tests.
Co-Authored-By: Per Liboriussen <liborius@stofanet.dk>
From-SVN: r50708
2002-03-13 02:32:08 +00:00
Ulrich Drepper
a10e3b428c
2002-03-09 Ulrich Drepper <drepper@redhat.com>
...
Paolo Carlini <pcarlini@unitus.it>
* config/locale/generic/collate_members.cc
(collate<char,wchar_t>::_M_compare_helper): normalize
values returned by strcoll and wcscoll.
* config/locale/gnu/collate_members.cc
(collate<char,wchar_t>::_M_compare_helper): ditto
for __strcoll_l and __wcscoll_l.
Co-Authored-By: Paolo Carlini <pcarlini@unitus.it>
From-SVN: r50551
2002-03-10 23:48:25 +00:00
Benjamin Kosnik
1fa4bed7b5
c_locale_generic.cc: Move to...
...
2002-03-08 Benjamin Kosnik <bkoz@redhat.com>
* c_locale_generic.cc: Move to...
* generic/c_locale.cc
* c_locale_generic.h: Move to...
* generic/c_locale.h
* codecvt_specializations_generic.h: Move to...
* generic/codecvt_specializations.h
* collate_members_generic.cc: Move to...
* generic/collate_members.cc
* ctype_members_generic.cc: Move to...
* generic/ctype_members.cc
* messages_members_generic.cc: Move to...
* generic/messages_members.cc
* messages_members_generic.h: Move to...
* generic/messages_members.h
* moneypunct_members_generic.cc: Move to...
* generic/monetary_members.cc
* numpunct_members_generic.cc: Move to...
* generic/numeric_members.cc
* time_members_generic.cc: Move to...
* generic/time_members.cc
* c_locale_gnu.cc: Move to...
* gnu/c_locale.cc
* c_locale_gnu.h: Move to...
* gnu/c_locale.h
* collate_members_gnu.cc: Move to...
* gnu/collate_members.cc
* ctype_members_gnu.cc: Move to...
* gnu/ctype_members.cc
* messages_members_gnu.cc: Move to...
* gnu/messages_members.cc
* messages_members_gnu.h: Move to...
* gnu/messages_members.h
* moneypunct_members_gnu.cc: Move to...
* gnu/monetary_members.cc
* numpunct_members_gnu.cc: Move to...
* gnu/numeric_members.cc
* time_members_gnu.cc: Move to...
* gnu/time_members.cc
* c_locale_ieee_1003.1-200x.cc: Move to...
* ieee_1003.1-2001/c_locale.cc
* c_locale_ieee_1003.1-200x.h: Move to...
* ieee_1003.1-2001/c_locale.h
* codecvt_specializations_ieee_1003.1-200x.h: Move to...
* ieee_1003.1-2001/codecvt_specializations.h
* messages_members_ieee_1003.1-200x.cc: Move to...
* ieee_1003.1-2001/messages_members.cc
* messages_members_ieee_1003.1-200x.h: Move to...
* ieee_1003.1-2001/messages_members.h
* acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Make consistent.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* src/Makefile.am (sources): Change to monetary and numeric.
* src/Makefile.in: Regenerate.
* docs/html/configopts.html: Update to ieee_1003.1-2001.
From-SVN: r50472
2002-03-09 02:16:36 +00:00
Benjamin Kosnik
8497934433
std_limits.h: Move static const data members out of generic template...
...
2002-03-08 Benjamin Kosnik <bkoz@redhat.com>
* include/std/std_limits.h: Move static const data members out of
generic template, into base class __numeric_limits_base.
* src/limits.cc: Add definitions.
* config/linker-map.gnu: Add __numeric_limits_base.
* testsuite/18_support/numeric_limits.cc: Declare test in scope.
From-SVN: r50447
2002-03-08 17:59:14 +00:00
Benjamin Kosnik
41b4d44bac
stl_alloc.h: Add extern implicit allocator instantiations.
...
2002-03-07 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/stl_alloc.h: Add extern implicit allocator
instantiations.
* include/bits/basic_string.tcc: Tweak.
* include/bits/locale_facets.tcc: Remove default args. Add
has_facet, use_facet extern instantiations.
* src/stl-inst.cc: Add explicit instantiation.
* src/locale-inst.cc: Clean. Remove locale member template
instantiations.
* testsuite/22_locale/operators.cc (test02): Enable.
From-SVN: r50426
2002-03-08 06:05:21 +00:00
Benjamin Kosnik
d3d526aca6
stl_tree.h (_S_rb_tree_red): Make enum.
...
2002-03-06 Benjamin Kosnik <bkoz@redhat.com>
Stephen M. Webb <stephen.webb@bregmasoft.com>
* include/bits/stl_tree.h (_S_rb_tree_red): Make enum.
(_S_rb_tree_black): Make enum.
Clean. Format.
* include/bits/stl_bvector.h (__WORD_BIT): To _M_word_bit, enum.
* include/bits/stl_algo.h (__stl_chunk_size): _M_chunk_size, enum.
(__stl_threshold): _M_threshold, enum.
* src/stl-inst.cc: Same.
* config/linker-map.gnu: Remove.
* testsuite/23_containers/vector_bool.cc: New.
Co-Authored-By: Stephen M. Webb <stephen.webb@bregmasoft.com>
From-SVN: r50393
2002-03-07 06:53:23 +00:00
Richard Henderson
e38ff265da
linker-map.gnu: Export operator new with unsigned long, and with std::nothrow_t.
...
* config/linker-map.gnu: Export operator new with unsigned long,
and with std::nothrow_t. Likewise operator delete.
From-SVN: r50176
2002-02-28 17:27:57 -08:00
Phil Edwards
9aa4369841
acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Fix comment.
...
2002-02-22 Phil Edwards <pme@gcc.gnu.org>
* acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Fix comment.
* aclocal.m4: Regenerate.
* docs/html/configopts.html: Document --enable-symvers.
* config/linker-map.gnu: Break libsupc++ symbols out to their own tag.
From-SVN: r49977
2002-02-22 23:45:28 +00:00
Phil Edwards
c98b201bd9
acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES): Also check version.
...
2002-02-20 Phil Edwards <pme@gcc.gnu.org>
* acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES): Also check version.
(GLIBCPP_ENABLE_SYMVERS): Redo logic, use linker version.
* configure.in (GLIBCPP_ENABLE_SYMVERS): Move later in the script.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* config/linker-map.dummy: New file. Contains nothing useful.
From-SVN: r49913
2002-02-20 22:10:39 +00:00
Danny Smith
be6efd9f31
2002-02-20 Danny Smith <dannysmith@users.sourceforge.net>
...
* config/os/mingw32/bits/ctype_noninline.h
(ctype<char>::ctype): Remove default args from parm list.
* config/os/djgpp/bits/ctype_noninline.h: Same.
From-SVN: r49900
2002-02-20 17:18:00 +00:00
Benjamin Kosnik
0d223e3a4e
std_iomanip.h: Inline, tweaks.
...
2002-02-19 Benjamin Kosnik <bkoz@redhat.com>
* include/std/std_iomanip.h: Inline, tweaks.
* config/linker-map.gnu: Remove hacks.
* testsuite/21_strings/capacity.cc: Add explicit instantiations.
* testsuite/27_io/ios_init.cc: Same.
* testsuite/22_locale/money_get_members_char.cc (test07): Fix.
* testsuite/22_locale/money_get_members_wchar_t.cc (test07): Same.
From-SVN: r49884
2002-02-20 00:58:17 +00:00
Benjamin Kosnik
9b41c37048
linker-map.gnu: Export global vtable, typeinfo, guard variable, and thunk info as per CXXABI docs.
...
2002-02-19 Benjamin Kosnik <bkoz@redhat.com>
* config/linker-map.gnu: Export global vtable, typeinfo, guard
variable, and thunk info as per CXXABI docs.
From-SVN: r49878
2002-02-19 21:47:05 +00:00
Benjamin Kosnik
37cea03434
linker-map.gnu: Change tag from GCC_3.1 to GLIBCPP_3.1.
...
2002-02-14 Benjamin Kosnik <bkoz@redhat.com>
* config/linker-map.gnu: Change tag from GCC_3.1 to GLIBCPP_3.1.
Add typeinfo bits. Smooth.
* aclocal.m4: Regenerate.
* configure: Same.
* src/Makefile.in: Same.
From-SVN: r49780
2002-02-15 02:21:33 +00:00
Joel Sherrill
0b46224d2b
atomicity.h: Corrected for RTEMS targets which do not have a CAS instruction.
...
2001-02-14 Joel Sherrill <joel@OARcorp.com>
* config/cpu/m68k/bits/atomicity.h: Corrected for RTEMS targets which
do not have a CAS instruction.
From-SVN: r49772
2002-02-14 18:57:38 +00:00
Phil Edwards
530539d9d9
acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): New macro, initial revision.
...
2002-02-14 Phil Edwards <pme@gcc.gnu.org>
* acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): New macro, initial revision.
* configure.in: Call it.
* config/linker-map.gnu: New file, initial incomplete revision.
* src/Makefile.am: Optionally pass version script to the linker.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* src/Makefile.in: Regenerate.
From-SVN: r49770
2002-02-14 18:24:13 +00:00
Benjamin Kosnik
005326029f
stl_algo (__stl_threshold): Declare external.
...
2002-02-11 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/stl_algo (__stl_threshold): Declare external.
(__stl_chunk_size): Same.
* include/bits/stl_bvector.h (__WORD_BIT): Same.
* include/bits/stl_tree.h (_S_rb_tree_red): Same.
(_S_rb_tree_black): Same.
* src/stl-inst.cc (__stl_threshold): Define.
(__stl_chunk_size): Same.
(__WORD_BIT): Same.
(_S_rb_tree_red): Same.
(_S_rb_tree_black): Same.
* config/io/basic_file_libio.h (__basic_file): Add declarations.
* include/bits/basic_file.h: Remove.
* config/io/c_io_stdio.h: Remove _GLIBCPP_BASIC_FILE_ENCAPSULATION
Declare generic types, specialization.
* config/io/basic_file_stdio.cc: Definitions.
* config/io/c_io_libio.h: Remove _GLIBCPP_BASIC_FILE_INHERITANCE.
Declare generic types.
* include/Makefile.am (bits_headers): Remove basic_file.h.
(extra_target_headers): Change basic_file_model.h to basic_file.h.
(stamp-target): Same.
* include/bits/stl_alloc.h: Tweaks.
* include/bits/localefwd.h: Same.
From-SVN: r49697
2002-02-12 04:35:58 +00:00
Benjamin Kosnik
07814743cf
std_fstream.h (filebuf::__file_type): Change to __basic_file<char>.
...
2002-02-07 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/5286
libstdc++/3860
* include/std/std_fstream.h (filebuf::__file_type): Change to
__basic_file<char>.
(filebuf::_M_convert_to_external): Declare.
* include/bits/fstream.tcc (filebuf::_M_convert_to_external): Define
codecvt bits for wide streams.
(filebuf::_M_really_overflow): Use it.
(filebuf::underflow): Use codecvt.
* config/locale/codecvt_specializations_ieee_1003.1-200x.h:
(codecvt<__enc_traits>::do_out): Deal with partial.
(codecvt<__enc_traits>::do_encoding): Return something useful.
* src/codecvt.cc (codecvt<wchar_t>::do_encoding): Return sizeof
wchar_t.
* testsuite/22_locale/codecvt_members_unicode_char.cc (test01):
Change expected encoding output.
(test02): Same.
* testsuite/22_locale/codecvt_members_wchar_t_char.cc (test01): Same.
(test02): Same.
From-SVN: r49601
2002-02-08 01:34:41 +00:00
Loren J. Rittle
ef8259b757
c_locale_generic.cc: Do not trust _GLIBCPP_HAVE_STRTOF or _GLIBCPP_HAVE_STRTOLD as set by configure.
...
* config/locale/c_locale_generic.cc: Do not trust
_GLIBCPP_HAVE_STRTOF or _GLIBCPP_HAVE_STRTOLD as
set by configure.
From-SVN: r49558
2002-02-06 23:11:16 +00:00
Loren J. Rittle
99a4deb8a9
acinclude.m4: Add C++ linkage check for strtof.
...
* acinclude.m4: Add C++ linkage check for strtof.
* aclocal.m4: Rebuilt.
* config.h.in: Rebuilt.
* configure: Rebuilt.
* config/locale/c_locale_generic.cc: Conditionally include
<ieeefp.h>. Improve handling and error checking of float
and long double input for non-C99 configurations.
From-SVN: r49546
2002-02-06 17:31:43 +00:00
Benjamin Kosnik
6f48900c2b
codecvt_specializations_ieee_1003.1-200x.h: Initialize all data members in copy ctor.
...
2002-01-31 Benjamin Kosnik <bkoz@redhat.com>
* config/locale/codecvt_specializations_ieee_1003.1-200x.h:
Initialize all data members in copy ctor. Make ctors explicit.
(__enc_traits::__enc_traits()): Default ctor does nothing.
(__enc_traits::_M_init): Guard against multiple iconv_opens.
* include/std/std_sstream.h (basic_stringbuf): Make data members
protected.
* include/std/std_fstream.h (basic_filebuf): Same.
* include/std/std_streambuf.h: Tweak.
* include/bits/streambuf.tcc: Same.
* include/bits/sstream.tcc: Same.
* include/bits/fstream.tcc: Same.
From-SVN: r49387
2002-02-01 03:20:39 +00:00
Benjamin Kosnik
2a4e640755
c_locale_gnu.cc: Same errno fixes as generic.
...
2002-01-30 Benjamin Kosnik <bkoz@redhat.com>
* config/locale/c_locale_gnu.cc: Same errno fixes as generic.
From-SVN: r49354
2002-01-31 01:21:08 +00:00
Loren J. Rittle
2083b5be4d
c_locale_generic.cc: Check errno for ERANGE instead of non-zero to aid portability.
...
* config/locale/c_locale_generic.cc: Check errno for ERANGE
instead of non-zero to aid portability.
From-SVN: r49350
2002-01-31 00:47:05 +00:00
Paolo Carlini
f2e7381d8e
2002-01-30 Paolo Carlini <pcarlini@unitus.it>
...
* config/locale/numpunct_members_gnu.cc
(numpunct<char, wchar_t>::_M_initialize_numpunct()):
Fix initialization of _M_grouping for locales which have
_M_thousands_sep == '\0'(L'\0', respectively).
* testsuite/22_locale/numpunct_byname.cc (test02): Add test.
From-SVN: r49343
2002-01-30 21:00:40 +00:00
Richard Henderson
acae253ec1
re PR libstdc++/5198 (3.0.3 linux x m68k build fail: invalid opcodes in c++locale.cc)
...
PR libstdc++/5198
* config/cpu/m68k/bits/atomicity.h (__exchange_and_add): Only use
CAS on the cpu variants that support it. Add versions that use
TAS and that disable interrupts.
(__atomic_add): Use __exchange_and_add to guarantee atomicity.
From-SVN: r49160
2002-01-23 17:31:13 -08:00
Loren J. Rittle
d419f1cdf0
* config/locale/c_locale_generic.cc: Fix typename usage.
...
From-SVN: r49141
2002-01-23 16:20:46 +00:00
Benjamin Kosnik
9b6e0e57a1
c_locale_generic.cc: Fix.
...
2002-01-22 Benjamin Kosnik <bkoz@redhat.com>
* config/locale/c_locale_generic.cc: Fix.
From-SVN: r49125
2002-01-23 03:50:49 +00:00
Benjamin Kosnik
4b9aaf6379
Audit for LANG independence.
...
2002-01-22 Benjamin Kosnik <bkoz@redhat.com>
Audit for LANG independence.
* include/bits/localefwd.h: Tweaks.
* include/bits/locale_facets.tcc (money_get::do_get(long double)):
Use __convert_to_v.
(time_get::do_get_year): Same.
(__convert_from_v): Add.
(num_put::_M_convert_float): Use.
(num_put::_M_convert_int): Same.
(money_put::do_put): Same.
* src/locale-inst.cc: Add instantiations for __convert_from_v.
* config/locale/time_members_gnu.cc: Cleanup setlocale usage.
* config/locale/time_members_generic.cc:
* config/locale/messages_members_gnu.cc: Same.
* config/locale/messages_members_gnu.h: Same.
* testsuite/22_locale/codecvt_members_wchar_t_char.cc (test02): New.
* testsuite/22_locale/codecvt_members_char_char.cc (test02): New.
* testsuite/22_locale/collate_members_wchar_t.cc (test02): New.
* testsuite/22_locale/collate_members_char.cc (test02): New.
* testsuite/22_locale/ctype_members_wchar_t.cc (test03): New.
* testsuite/22_locale/ctype_members_char.cc (test03): New.
* testsuite/22_locale/messages_members_char.cc (test02): New.
* testsuite/22_locale/moneypunct_members_wchar_t.cc (test02): New.
* testsuite/22_locale/moneypunct_members_char.cc (test02): New.
* testsuite/22_locale/money_get_members_wchar_t.cc (test04): New.
* testsuite/22_locale/money_get_members_char.cc (test04): New.
* testsuite/22_locale/money_put_members_wchar_t.cc (test04): New.
* testsuite/22_locale/money_put_members_char.cc (test04): New.
* testsuite/22_locale/numpunct_members_wchar_t.cc (test02): New.
* testsuite/22_locale/numpunct_members_char.cc (test02): New.
* testsuite/22_locale/time_put_members_wchar_t.cc (test03): New.
* testsuite/22_locale/time_put_members_char.cc (test03): New.
* testsuite/22_locale/time_get_members_wchar_t.cc (test07): New.
* testsuite/22_locale/time_get_members_char.cc (test07): New.
* testsuite/22_locale/num_get_members_wchar_t.cc (test03): New.
* testsuite/22_locale/num_get_members_char.cc (test03): New.
* testsuite/22_locale/num_put_members_wchar_t.cc (test03): New.
* testsuite/22_locale/num_put_members_char.cc (test03): New.
* testsuite/22_locale/time_get_members_char.cc: Fixups for global
locale issues.
* testsuite/22_locale/time_get_members_char.cc: Same.
2002-01-22 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/5280
* include/bits/localefwd.h: Tweak comments.
* include/bits/locale_facets.h (__convert_to_v): Add.
* include/bits/locale_facets.tcc (num_get::do_get(double)): Use it.
(num_get::do_get(float)): Same.
(num_get::do_get(long double)): Same.
(num_get::do_get(bool)): Same.
(num_get::do_get(long)): Same.
(num_get::do_get(long long)): Same.
(num_get::do_get(unsigned int)): Same.
(num_get::do_get(unsigned short)): Same.
(num_get::do_get(unsigned long)): Same.
(num_get::do_get(unsigned long long)): Same.
* config/locale/c_locale_gnu.cc (__convert_to_v): Specialize.
* config/locale/c_locale_generic.cc: Same.
From-SVN: r49108
2002-01-22 23:09:04 +00:00
Benjamin Kosnik
a0e073b266
ctype_noninline.h: Fix formatting.
...
2002-01-22 Benjamin Kosnik <bkoz@redhat.com>
* config/os/aix/bits/ctype_noninline.h: Fix formatting.
* config/os/bsd/netbsd/bits/ctype_noninline.h: Fix typo.
* config/os/bsd/freebsd/bits/ctype_noninline.h: Fix formatting.
From-SVN: r49078
2002-01-22 16:09:25 +00:00
Benjamin Kosnik
93dbe8d76d
[multiple changes]
...
2002-01-20 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/locale_facets.h (ctype<char>::classic_table):
Remove definition.
(ctype<char>::_S_ctable): Remove.
* config/os/gnu-linux/bits/ctype_noninline.h
(ctype<char>::_S_table): Remove definition.
(ctype<char>::classic_table): Define.
(ctype<char>::ctype): Replace _S_ctable with classic_table().
* config/os/aix/bits/ctype_noninline.h: Same.
* config/os/bsd/freebsd/bits/ctype_noninline.h: Same.
* config/os/bsd/netbsd/bits/ctype_noninline.h: Same.
* config/os/djgpp/bits/ctype_noninline.h: Same.
* config/os/generic/bits/ctype_noninline.h: Same.
* config/os/gnu-linux/bits/ctype_noninline.h: Same.
* config/os/hpux/bits/ctype_noninline.h: Same.
* config/os/irix/irix5.2/bits/ctype_noninline.h: Same.
* config/os/irix/irix6.5/bits/ctype_noninline.h: Same.
* config/os/mingw32/bits/ctype_noninline.h: Same.
* config/os/newlib/bits/ctype_noninline.h: Same.
* config/os/solaris/solaris2.5/bits/ctype_noninline.h: Same.
* config/os/solaris/solaris2.6/bits/ctype_noninline.h: Same.
* config/os/solaris/solaris2.7/bits/ctype_noninline.h: Same.
2002-01-20 Danny Smith <dannysmith@users.sourceforge.net>
* config/os/mingw32/bits/ctype_noninline.h: Declare _ctype instead
of _pctype. Use to define _S_ctable. Add definition for alternate
ctor. Initialise _M_ctable to _S_ctable in ctors.
(do_toupper, do_tolower): Use inline code appropriate for C-locale
rather than ::toupper, ::tolower.
From-SVN: r49032
2002-01-21 04:08:54 +00:00
David Billinghurst
d428652688
ctype_noninline.h: Fix typo
...
2002-01-18 David Billinghurst <David.Billinghurst@riotinto.com>
* config/os/irix/irix6.5/bits/ctype_noninline.h: Fix typo
From-SVN: r48979
2002-01-18 04:29:28 +00:00
Andreas Tobler
02c361a472
ctype_noninline.h: Fix.
...
2002-01-17 Andreas Tobler <toa@pop.agri.ch>
* config/os/solaris/solaris2.6/bits/ctype_noninline.h: Fix.
From-SVN: r48945
2002-01-17 09:56:42 +00:00
Benjamin Kosnik
8f7a401515
stl_iterator.h (reverse_iterator::_M_current): Deuglify, should be current.
...
2002-01-16 Benjamin Kosnik <bkoz@redhat.com>
Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
* include/bits/stl_iterator.h (reverse_iterator::_M_current):
Deuglify, should be current.
(back_insert_iterator::_M_container): Deuglify, should be container.
(front_insert_iterator::_M_container): Same.
(insert_iterator::_M_container): Same.
* testsuite/24_iterators/reverse_iterator.cc: Add check.
* testsuite/24_iterators/back_insert_iterator.cc: Add check.
* testsuite/24_iterators/front_insert_iterator.cc: Same.
* testsuite/24_iterators/insert_iterator.cc: Same.
2002-01-16 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/locale_facets.h (ctype<char>::classic_table): Make
static.
(ctype<char>::_M_ctable): Make static, change name to _S_ctable.
* config/os/gnu-linux/bits/ctype_noninline.h: Define _S_ctable.
* config/os/solaris/solaris2.7/bits/ctype_noninline.h: Same.
* config/os/solaris/solaris2.6/bits/ctype_noninline.h: Same.
* config/os/solaris/solaris2.5/bits/ctype_noninline.h: Same.
* config/os/newlib/bits/ctype_noninline.h: Same.
* config/os/irix/irix6.5/bits/ctype_noninline.h: Same.
* config/os/irix/irix5.2/bits/ctype_noninline.h: Same.
* config/os/hpux/bits/ctype_noninline.h: Same.
* config/os/djgpp/bits/ctype_noninline.h: Same.
* config/os/bsd/netbsd/bits/ctype_noninline.h: Same.
* config/os/bsd/freebsd/bits/ctype_noninline.h: Same.
* config/os/aix/bits/ctype_noninline.h: Same.
Testcase by Dietmar K�hl via Peter Schmid
* testsuite/22_locale/ctype_members_char.cc (char>): Add test for
classic_table().
Co-Authored-By: Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
From-SVN: r48938
2002-01-17 03:59:42 +00:00
Benjamin Kosnik
aefb3380dd
signbitl.c: Copyright years as list, not range.
...
2002-01-16 Benjamin Kosnik <bkoz@redhat.com>
* libmath/signbitl.c: Copyright years as list, not range.
* libmath/Makefile.am: Same.
* libmath/Makefie.in: Regenerate.
* libmath/signbit.c: Same.
* libmath/nan.c: Same.
* libmath/copysignf.c: Same.
* libmath/signbitf.c: Same.
* testsuite/22_locale/money_get_members_char.cc: Same.
* testsuite/22_locale/money_get_members_wchar_t.cc: Same.
* testsuite/22_locale/money_put_members_char.cc: Same.
* testsuite/22_locale/money_put_members_wchar_t.cc: Same.
* testsuite/22_locale/time_get_members_char.cc: Same.
* testsuite/22_locale/time_get_members_wchar_t.cc: Same.
* testsuite/22_locale/time_put_members_char.cc: Same.
* testsuite/22_locale/time_put_members_wchar_t.cc: Same.
* testsuite/21_strings/nonmember.cc: Same.
* testsuite/21_strings/compare.cc: Same.
* testsuite/27_io/stringstream.cc: Same.
* testsuite/27_io/stringbuf.cc: Same.
* testsuite/27_io/filebuf.cc: Same.
* testsuite/27_io/ios_manip_basefield.cc: Same.
* testsuite/27_io/ios_manip_fmtflags.cc: Same.
* include/bits/cpp_type_traits.h: Same.
* include/bits/generic_shadow.h: Same.
* include/bits/gslice_array.h: Same.
* include/bits/gslice.h: Same.
* include/bits/indirect_array.h: Same.
* include/bits/slice_array.h: Same.
* include/bits/sstream.tcc: Same.
* include/bits/streambuf_iterator.h: Same.
* include/bits/valarray_array.tcc: Same.
* include/bits/valarray_meta.h: Same.
* include/bits/valarray_array.h: Same.
* config/os/mingw32/bits/ctype_noninline.h: Same.
* config/os/mingw32/bits/ctype_base.h: Same.
* config/os/hpux/bits/ctype_noninline.h: Same.
* config/os/hpux/bits/ctype_base.h: Same.
* config/os/gnu-linux/bits/ctype_noninline.h: Same.
* config/os/gnu-linux/bits/ctype_base.h: Same.
* config/os/generic/bits/ctype_noninline.h: Same.
* config/os/generic/bits/ctype_base.h: Same.
* libsupc++/tinfo.h: Tweaks.
From-SVN: r48922
2002-01-16 19:57:39 +00:00
John David Anglin
93e9a99247
ctype_noninline.h: Use __SB_masks for address of character to attribute mapping table.
...
* config/os/hpux/bits/ctype_noninline.h: Use __SB_masks for address
of character to attribute mapping table.
From-SVN: r48880
2002-01-15 21:31:56 +00:00
Bo Thorsen
2dd1d259ae
cpu_limits.h (__glibcpp_long_bits): Add definition.
...
2002-01-09 Bo Thorsen <bo@suse.co.uk>
* config/cpu/x86-64/bits/cpu_limits.h (__glibcpp_long_bits): Add
definition.
From-SVN: r48683
2002-01-09 14:45:47 +01:00
Jeff Law
0487b51cbc
os_defines.h: Prefix __strtoll and __strtoull declarations with __extension__.
...
* config/os/hpux/bits/os_defines.h: Prefix __strtoll and
__strtoull declarations with __extension__.
From-SVN: r48516
2002-01-03 11:03:15 -07:00
Richard Henderson
9d430eb5b1
os_defines.h: Don't define __glibcpp_long_bits.
...
* config/os/hpux/bits/os_defines.h: Don't define __glibcpp_long_bits.
* config/os/hpux/bits/cpu_limits.h: New file.
* configure.target (CPULIMITSH): Use it.
From-SVN: r48379
2001-12-29 11:18:32 -08:00
Richard Henderson
0b622c4a1e
cpu_limits.h: New file.
...
* config/cpu/ia64/bits/cpu_limits.h: New file.
* config/os/osf/osf5.0/bits/cpu_limits.h: New file.
* configure.target (CPULIMITSH): Use them.
From-SVN: r48358
2001-12-28 17:19:51 -08:00
Paolo Carlini
b206658a5f
locale_facets.tcc (collate::do_transform): Adjust implicit typename.
...
2001-12-27 Paolo Carlini <pcarlini@unitus.it>
* include/bits/locale_facets.tcc (collate::do_transform):
Adjust implicit typename.
* config/locale/messages_members_generic.h (messages::open,
messages::do_open, messages::do_get): Adjust implicit typename.
* config/locale/messages_members_gnu.h (messages::open,
messages::do_open, messages::do_get): Adjust Implicit typename.
* config/locale/messages_members_ieee_1003.1-200x.h (messages::open,
messages::do_open, messages::do_get): Adjust implicit typename.
From-SVN: r48327
2001-12-27 12:13:23 +00:00
Jeff Law
b6e220169c
os_defines.h: Do not include <_sys/inttypes.h>.
...
* config/os/hpux/bits/os_defines.h: Do not include <_sys/inttypes.h>.
Twiddle return types for strtoll and strtoull to avoid using
intmax_t and uintmax-t.
From-SVN: r48293
2001-12-23 18:45:29 -07:00
Jeff Law
d599b3fc8a
os_defines.h: Update to avoid #defines for strtoll and strtoull.
...
* config/os/hpux/bits/os_defines.h: Update to avoid #defines
for strtoll and strtoull.
From-SVN: r48271
2001-12-22 09:51:55 -07:00
Jeff Law
4585ae3de2
os_defines.h: Include <sys/_inttypes.h.
...
* config/os/hpux/bits/os_defines.h: Include <sys/_inttypes.h.
Define strtoll and strtoull. Provide prototypes for
__strtoll and __strtoull. Define _GLIBCPP_USE_LONG_LONG
unconditionally.
From-SVN: r48260
2001-12-21 17:42:46 -07:00
Phil Edwards
e9c46bb75e
basic_file.h (__basic_file::fd): New function.
...
2001-12-17 Phil Edwards <pme@gcc.gnu.org>
* include/bits/basic_file.h (__basic_file::fd): New function.
* config/io/basic_file_stdio.h (__basic_file::fd): Define.
* include/bits/std_fstream.h (basic_filebuf::fd): New function.
* include/bits/fstream.tcc (basic_filebuf::fd): Define.
* testsuite/27_io/filebuf_members.cc (test_02): New test.
From-SVN: r48107
2001-12-17 17:08:57 +00:00
Benjamin Kosnik
def9790d51
Clean up initialization and simplfy caching of underlying "C" locale objects.
...
2001-12-14 Benjamin Kosnik <bkoz@redhat.com>
Clean up initialization and simplfy caching of underlying "C"
locale objects.
* src/localename.cc (locale::_Impl::_Impl(string, size_t):
Unconditionally create __clocale object for all named locales,
including "C" and "POSIX".
* config/locale/c_locale_generic.cc
(locale::facet::_S_create_c_locale): Always set __cloc to zero.
* config/locale/c_locale_gnu.cc: Always delete.
* include/bits/localefwd.h (locale::facet::_S_c_locale): New.
* src/locale.cc (locale::classic()): Initialize
locale::facet::_S_c_locale.
(locale::facet::_S_c_locale): Define.
* include/bits/locale_facets.h: Add ctype_byname<wchar_t> ctor
specialization.
* src/locale.cc: Add definition here.
* config/os/gnu-linux/bits/ctype_inline.h: Tweak.
* config/os/gnu-linux/bits/ctype_noninline.h: Adjust initializations.
* include/bits/locale_facets.h (ctype<char>::_M_c_locale_ctype): Add.
Adjust ctors, dtors.
(ctype<char>::_M_toupper): Remove const&.
(ctype<char>::_M_tolower): Remove const&.
(ctype<char>::_M_ctable): Remove const&.
* include/bits/locale_facets.h (collate): Clean up initialization
of _M_c_locale_collate in ctors and dtors.
* config/locale/collate_members_gnu.cc: Always use extended
functions.
* include/bits/locale_facets.h (messages): Clean up inits in ctor/dtor.
(messages_byname): Same.
* config/locale/messages_members_generic.h (messages::~messages):
Remove.
* config/locale/messages_members_gnu.h: Same.
* include/bits/localefwd.h: Clean. Move dtor definitions to
* src/locale.cc: Here.
* testsuite/22_locale/facet.cc: Fix spelling.
Named locale support for ctype<wchar_t>.
* acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Add variable
ctype_members_* bits.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* src/Makefile.am (sources): Add ctype.cc.
* src/Makefile.in: Regenerate.
* config/locale/ctype_members_generic.cc: New file.
* config/locale/ctype_members_gnu.cc: New file.
* src/locale.cc: Remove ctype<wchart_t> definitions.
From-SVN: r48034
2001-12-15 07:05:04 +00:00
Benjamin Kosnik
9e5c7dba50
Named locale support for ctype<char>.
...
2001-12-12 Benjamin Kosnik <bkoz@redhat.com>
Named locale support for ctype<char>.
* config/locale/c_locale_gnu.h (_GLIBCPP_C_LOCALE_GNU): New.
* config/os/gnu-linux/bits/ctype_noninline.h (ctype<char>): Add
definitions for alternate constructor.
* config/os/solaris/solaris2.7/bits/ctype_noninline.h (ctype): Same.
* config/os/solaris/solaris2.6/bits/ctype_noninline.h (ctype): Same.
* config/os/solaris/solaris2.5/bits/ctype_noninline.h (ctype): Same.
* config/os/newlib/bits/ctype_noninline.h (ctype): Same.
* config/os/irix/irix6.5/bits/ctype_noninline.h (ctype): Same.
* config/os/irix/irix5.2/bits/ctype_noninline.h (ctype): Same.
* config/os/hpux/bits/ctype_noninline.h (ctype): Same.
* config/os/generic/bits/ctype_noninline.h (ctype): Same.
* config/os/djgpp/bits/ctype_noninline.h (ctype): Same.
* config/os/bsd/netbsd/bits/ctype_noninline.h (ctype): Same.
* config/os/bsd/freebsd/bits/ctype_noninline.h (ctype): Same.
* config/os/aix/bits/ctype_noninline.h (ctype): Same.
* include/bits/locale_facets.h (ctype<_CharT>): Remove dummy
definitions for all virtual functions. These are now explicitly
undefined for non-required factets, ie any non-char, non-wchar_t
instantiations.
* src/localename.cc (locale::_Impl::_Impl(string, size_t): Named
locales use alternate constructor for ctype facet.
* include/bits/locale_facets.h (ctype<char>::ctype(__c_locale, const
mask*, bool, size_t): Add.
(ctype<wchar_t>::ctype(__c_locale, size_t): Add.
* src/locale.cc (ctype<wchar_t>::ctype(__c_locale, size_t)): Add
definition.
* testsuite/22_locale/ctype_members_char.cc (test02): Add, mark
XFAIL for non-gnu locale models.
From-SVN: r47953
2001-12-12 23:16:35 +00:00
Benjamin Kosnik
bf3b866e31
ctype_inline.h: Remove spaces.
...
2001-12-11 Benjamin Kosnik <bkoz@redhat.com>
* config/os/generic/bits/ctype_inline.h: Remove spaces.
* config/os/gnu-linux/bits/ctype_noninline.h: Same.
* include/bits/locale_facets.h (__num_base): Move double data
members to first in class.
* include/bits/locale_facets.tcc: Re-arrange, tweak.
* src/locale.cc: Clean.
*include/bits/stl_vector.h: Space typedefs.
From-SVN: r47918
2001-12-12 03:22:25 +00:00
Loren J. Rittle
813df02279
* config/cpu/sparc/sparc32/bits/atomicity.h
...
(__Atomicity_lock<0>::_S_atomicity_lock): Add.
From-SVN: r47867
2001-12-11 09:41:40 +00:00
Nathan Myers
7814a308e4
atomicity.h (struct __Atomicity_lock<__inst>): Add.
...
libstdc++/5037
* config/cpu/sparc/sparc32/bits/atomicity.h
(struct __Atomicity_lock<__inst>): Add.
(__Atomicity_lock<__inst>::_S_atomicity_lock): Add.
(__exchange_and_add): Use __Atomicity_lock<0>::_S_atomicity_lock
instead of lock local to static function.
(__atomic_add): Likewise.
Co-Authored-By: Loren J. Rittle <ljrittle@acm.org>
From-SVN: r47782
2001-12-08 00:59:11 +00:00
Benjamin Kosnik
861768350b
2001-11-28 Benjamin Kosnik <bkoz@redhat.com>
...
Jakub Jelinek <jakub@redhat.com>
* config/locale/moneypunct_members_gnu.cc
(moneypunct<wchar_t>::_M_initialize_moneypunct): Correctly cast
for ia64, others.
* config/locale/numpunct_members_gnu.cc
(numpunct<wchar_t>::_M_initialize_numpunct): Same.
From-SVN: r47402
2001-11-28 07:40:12 +00:00