Roger Sayle
709f271858
stubs.c (sinf,cosf): Implement stubs to enable the equivalent ___builtin__ versions.
...
2002-01-01 Roger Sayle <roger@eyesopen.com>
* libmath/stubs.c (sinf,cosf): Implement stubs to enable the
equivalent ___builtin__ versions.
* include/c_shadow/bits/std_cmath.h: All __builtin math functions
are available in libstdc++ as the necessary stub implementations
are provided by libmath/stubs.c.
From-SVN: r48445
2002-01-01 20:50:16 +01:00
GCC Administrator
3cce904905
Daily bump.
...
From-SVN: r48440
2002-01-01 08:16:26 +00:00
Paolo Carlini
6d66e50d52
iterator: Add #include <bits/std_iterator.h>, tweak.
...
2001-12-31 Paolo Carlini <pcarlini@unitus.it>
* include/ext/iterator: Add #include <bits/std_iterator.h>, tweak.
* testsuite/ext/headers.cc: Add <ext/iterator>.
From-SVN: r48430
2001-12-31 19:30:24 +00:00
Paolo Carlini
36955a954f
algo.h: Add two more using declarations.
...
2001-12-31 Paolo Carlini <pcarlini@unitus.it>
* include/backward/algo.h: Add two more using declarations.
* include/backward/iterator.h: Include <ext/iterator>,
add using declaration.
* include/ext/algorithm: Add #pragma GCC system_header.
From-SVN: r48429
2001-12-31 18:03:47 +00:00
Phil Edwards
3d90ff9352
stl_bvector.h: Change calls to 3-argument distance() into standard 2-argument version.
...
2001-12-31 Phil Edwards <pme@gcc.gnu.org>
* include/bits/stl_bvector.h: Change calls to 3-argument distance()
into standard 2-argument version.
* include/bits/stl_deque.h: Likewise.
* include/bits/stl_tempbuf.h: Likewise.
* include/bits/stl_tree.h: Likewise.
* include/bits/stl_vector.h: Likewise.
* include/ext/stl_hashtable.h: Likewise.
* include/bits/stl_iterator_base_funcs.h: Move distance() extension...
* include/ext/iterator: to here. New file.
* include/Makefile.am (ext_headers): Add new file, alphabatize.
* include/Makefile.in: Regenerate.
From-SVN: r48428
2001-12-31 16:16:17 +00:00
Phil Edwards
0de92bd834
stl_deque.h: Doxygenate with initial/example hooks.
...
2001-12-31 Phil Edwards <pme@gcc.gnu.org>
* include/bits/stl_deque.h: Doxygenate with initial/example hooks.
Clean up spacing and indentation.
From-SVN: r48426
2001-12-31 14:53:47 +00:00
Paolo Carlini
63fea34ee3
slist: Move into __gnu_cxx, tweak, add using declarations.
...
2001-12-31 Paolo Carlini <pcarlini@unitus.it>
* include/ext/slist: Move into __gnu_cxx,
tweak, add using declarations.
From-SVN: r48423
2001-12-31 10:26:01 +00:00
Paolo Carlini
e538847e1c
hash_map: Move into __gnu_cxx, tweak, add using declarations.
...
2001-12-31 Paolo Carlini <pcarlini@unitus.it>
* include/ext/hash_map: Move into __gnu_cxx,
tweak, add using declarations.
* include/ext/hash_set: Ditto.
* include/ext/ropeimpl.h: Ditto.
* include/ext/stl_hash_fun.h: Ditto.
* include/ext/stl_hashtable.h: Ditto.
* include/ext/stl_rope.h: Ditto.
* src/ext-inst.cc: Tweak.
* testsuite/ext/rope.cc: Tweak.
From-SVN: r48422
2001-12-31 10:22:00 +00:00
Paolo Carlini
a2ee914480
algo.h: Include <ext/algorithm>, tweak using declarations.
...
2001-12-31 Paolo Carlini <pcarlini@unitus.it>
* include/backward/algo.h: Include <ext/algorithm>,
tweak using declarations.
From-SVN: r48421
2001-12-31 09:10:39 +00:00
GCC Administrator
2b0ee5c813
Daily bump.
...
From-SVN: r48419
2001-12-31 08:16:10 +00:00
GCC Administrator
285f491adf
Daily bump.
...
From-SVN: r48398
2001-12-30 08:16:40 +00:00
GCC Administrator
fac510512c
Daily bump.
...
From-SVN: r48360
2001-12-29 08:16:09 +00:00
Phil Edwards
5adf72de27
c++config: Move doxygen hook comment...
...
2001-12-28 Phil Edwards <pme@gcc.gnu.org>
* include/bits/c++config: Move doxygen hook comment...
* docs/doxygen/doxygroups.cc: ...to here.
From-SVN: r48353
2001-12-28 22:23:55 +00:00
Phil Edwards
be3996918f
re PR libstdc++/2054 (g++-3 rejects legal code, accepted by g++-2.95.2 (functors))
...
2001-12-28 Phil Edwards <pme@gcc.gnu.org>
PR libstdc++/2054
* include/bits/stl_algo.h (lower_bound): Relax concept checks.
* testsuite/ext/concept_checks.cc: New file.
From-SVN: r48351
2001-12-28 21:57:47 +00:00
Paolo Carlini
2c1bc4ebc9
stl_algo.h (count returning void, [...]): Move to...
...
2001-12-28 Paolo Carlini <pcarlini@unitus.it>
* include/bits/stl_algo.h (count returning void,
count_if returning void, __random_sample, random_sample,
random_sample_n, __is_heap, is_heap, is_sorted): Move to...
* include/ext/algorithm: ...here, new file.
* include/Makefile.am (ext_headers): Add new file.
* include/Makefile.in: Regenerate.
* testsuite/ext/headers.cc: Include <ext/algorithm>.
From-SVN: r48350
2001-12-28 18:46:54 +00:00
Paolo Carlini
bf95248579
basic_string.h (insert(__pos, __s, __n)): Optimize by avoiding temporaries and working in-place when possible.
...
2001-12-28 Paolo Carlini <pcarlini@unitus.it>
Nathan Myers <ncm@cantrip.org>
* include/bits/basic_string.h (insert(__pos, __s, __n)):
Optimize by avoiding temporaries and working in-place when possible.
(insert(__pos1, __str)): Call insert(__pos1, __str, __pos2, __n).
(insert(__pos1, __str, __pos2, __n)): Call insert(__pos, __s, __n).
* testsuite/21_strings/insert.cc (test02): New testcases.
Co-Authored-By: Nathan Myers <ncm@cantrip.org>
From-SVN: r48345
2001-12-28 14:00:18 +00:00
GCC Administrator
9346c2fffd
Daily bump.
...
From-SVN: r48340
2001-12-28 08:16:10 +00: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
GCC Administrator
110fa83701
Daily bump.
...
From-SVN: r48325
2001-12-27 08:16:09 +00:00
Benjamin Kosnik
f591eb23d1
insert_iterator.cc (test02): Add.
...
2001-12-26 Benjamin Kosnik <bkoz@waller.constant.com>
* testsuite/24_iterators/insert_iterator.cc (test02): Add.
* testsuite/24_iterators/front_insert_iterator.cc (test02): Add.
* testsuite/24_iterators/back_insert_iterator.cc (test02): Add.
* testsuite/24_iterators/reverse_iterator.cc (test02): Add.
* include/bits/stl_iterator.h (reverse_iterator): Uglify member
current to _M_current.
(back_insert_iterator): Ulify member container to _M_container.
(front_insert_iterator): Same.
(insert_iterator): Same.
From-SVN: r48318
2001-12-26 21:56:17 +00:00
GCC Administrator
682bb08093
Daily bump.
...
From-SVN: r48313
2001-12-26 08:16:09 +00:00
Gabriel Dos Reis
4ff64fa9f0
std_limits.h (__glibcpp_xxx_is_modulo): New macros for signed types; default value is true.
...
* include/bits/std_limits.h (__glibcpp_xxx_is_modulo): New
macros for signed types; default value is true.
(numeric_limits<>::is_modulo): Get value from corresponding
__glibcpp_xxx_is_modulo macro.
From-SVN: r48311
2001-12-25 13:53:56 +00:00
GCC Administrator
cf161a952a
Daily bump.
...
From-SVN: r48309
2001-12-25 08:16:09 +00:00
GCC Administrator
6b98090114
Daily bump.
...
From-SVN: r48301
2001-12-24 08:16:39 +00:00
GCC Administrator
4e87ff3fab
Daily bump.
...
From-SVN: r48283
2001-12-23 08:16:09 +00:00
GCC Administrator
5637a0ebb9
Daily bump.
...
From-SVN: r48263
2001-12-22 08:16:10 +00:00
Paolo Carlini
05b8581146
stl_rope.h (_Rope_iterator): Add local typedef to fix implicit typename problems.
...
2001-12-21 Paolo Carlini <pcarlini@unitus.it>
* include/ext/stl_rope.h (_Rope_iterator):
Add local typedef to fix implicit typename problems.
From-SVN: r48242
2001-12-21 13:08:35 +00:00
GCC Administrator
baf158869c
Daily bump.
...
From-SVN: r48234
2001-12-21 08:16:13 +00:00
GCC Administrator
c12b6f2a07
Daily bump.
...
From-SVN: r48196
2001-12-20 08:16:14 +00:00
Phil Edwards
82b61df521
Intro.3: New 'Allocators' module.
...
2001-12-19 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/Intro.3: New 'Allocators' module.
* docs/doxygen/TODO: Update.
* docs/doxygen/doxygroups.cc: Update.
* docs/doxygen/run_doxygen: Update.
* include/bits/stl_alloc.h: Tweak doxygen hooks in comments.
* include/bits/std_memory.h: Doxygenate.
* include/bits/stl_iterator_base_types.h: Likewise.
* include/bits/stl_raw_storage_iter.h: Likewise.
* include/bits/stl_tempbuf.h: Likewise.
(get_temporary_buffer): Remove unused nonstandard overload.
* include/bits/stl_uninitialized.h: Likewise.
* include/bits/stl_iterator_base_types.h (input_iterator,
output_iterator, forward_iterator, bidirectional_iterator,
random_access_iterator): Move old names...
* include/backward/iterator.h: ...to here.
* include/bits/stl_bvector.h: Update.
* include/ext/stl_rope.h: Update.
From-SVN: r48185
2001-12-19 21:57:43 +00:00
GCC Administrator
db1ae42802
Daily bump.
...
From-SVN: r48173
2001-12-19 08:16:11 +00:00
Paolo Carlini
c448ca845c
basic_string.h (assign(__str, __pos, __n)): Call assign(__s, __n).
...
2001-12-18 Paolo Carlini <pcarlini@unitus.it>
Nathan Myers <ncm@cantrip.org>
* include/bits/basic_string.h (assign(__str, __pos, __n)):
Call assign(__s, __n).
(assign(__s, __n)): Terminate the string with _S_terminal.
Co-Authored-By: Nathan Myers <ncm@cantrip.org>
From-SVN: r48151
2001-12-18 12:06:01 +00:00
GCC Administrator
5faa1c16ac
Daily bump.
...
From-SVN: r48147
2001-12-18 08:16:44 +00:00
Benjamin Kosnik
8d33a04d8b
std_limits.h (__glibcpp_long_double_is_bounded): Set to true, like float and double.
...
2001-12-17 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/std_limits.h (__glibcpp_long_double_is_bounded):
Set to true, like float and double.
From-SVN: r48145
2001-12-18 06:57:28 +00: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
GCC Administrator
540136cbff
Daily bump.
...
From-SVN: r48094
2001-12-17 08:16:12 +00:00
GCC Administrator
7759fccd62
Daily bump.
...
From-SVN: r48066
2001-12-16 08:16:42 +00:00
Paolo Carlini
bd1f473825
2001-12-15 Paolo Carlini <pcarlini@unitus.it>
...
Nathan Myers <ncm@cantrip.org>
* include/bits/basic_string.h
(assign(__str, __pos, __n), assign(__s, __n)): Optimize
by avoiding unnecessary temporaries.
(assign(__s)): Call assign(__s, __n).
* include/bits/basic_string.tcc (_M_replace_safe): Adjust comment.
* include/bits/std_string.h: include stl_function.h.
* testsuite/21_strings/assign.cc (test02, test03): New tests.
Co-Authored-By: Nathan Myers <ncm@cantrip.org>
From-SVN: r48053
2001-12-16 01:02:17 +00:00
GCC Administrator
ed86a83d51
Daily bump.
...
From-SVN: r48036
2001-12-15 08:16:09 +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
Andreas Jaeger
dc6f415864
builtins.def: Rename BUILT_IN_FSQRT to BUILT_IN_SQRT and __builtin_fsqrt to __builtin_sqrt.
...
2001-12-14 Roger Sayle <roger@eyesopen.com>
* 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.
From-SVN: r48008
2001-12-14 22:06:35 +01:00
GCC Administrator
e82c2b28d1
Daily bump.
...
From-SVN: r47995
2001-12-14 08:16:45 +00:00
GCC Administrator
3af44a8e3f
Daily bump.
...
From-SVN: r47966
2001-12-13 08:16:52 +00:00
Paolo Carlini
897bb55fe3
ropeimpl.h (rope::_S_leaf_concat_char_iter, [...]): Adjust implicit typename.
...
2001-12-12 Paolo Carlini <pcarlini@unitus.it>
* include/ext/ropeimpl.h (rope::_S_leaf_concat_char_iter,
_S_destr_leaf_concat_char_iter, _S_tree_concat, _S_concat_char_iter,
_S_destr_concat_char_iter, _S_concat, _S_substring, _S_balance)
: Adjust implicit typename.
* include/ext/stl_rope.h (_Rope_iterator::operator=, rope::npos):
Adjust implicit typename.
* testsuite/27_io/streambuf.cc: Adjust implicit typename.
From-SVN: r47958
2001-12-13 00:41:03 +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
Philip Martin
cb93dfb4a0
Ross Smith <r-smith@ihug.co.nz> Paolo Carlini <pcarlini@unitus.it>
...
2001-12-12 Philip Martin <philip@codematters.co.uk>
Ross Smith <r-smith@ihug.co.nz>
Paolo Carlini <pcarlini@unitus.it>
libstdc++/5045
* include/bits/std_limits.h (defines, numeric_limits<bool>::digits10):
Fix digits10 values for integral types.
* include/bits/locale_facets.tcc (num_get::do_get for integral types):
Tweak _M_extract_int call.
* testsuite/27_io/istream_extractor_arith.cc (test13, test12_aux):
Tweak overflowing number of digits.
* testsuite/18_support/numeric_limits.cc (test03): New testcase.
Co-Authored-By: Paolo Carlini <pcarlini@unitus.it>
Co-Authored-By: Ross Smith <r-smith@ihug.co.nz>
From-SVN: r47947
2001-12-12 20:23:30 +00:00
GCC Administrator
41d2bbe765
Daily bump.
...
From-SVN: r47924
2001-12-12 08:16:18 +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
Jason Merrill
6fe4816fdb
locale_facets.tcc (_M_extract_int): Avoid uninitialized warning.
...
* include/bits/locale_facets.tcc (_M_extract_int): Avoid
uninitialized warning.
From-SVN: r47877
2001-12-11 10:48:11 -05:00
GCC Administrator
2b5ee71cee
Daily bump.
...
From-SVN: r47865
2001-12-11 08:17:58 +00:00