Benjamin Kosnik
6e81c6f49c
From-SVN: r66726
2003-05-12 18:12:27 +00:00
GCC Administrator
faa302172b
Daily bump.
...
From-SVN: r66704
2003-05-12 00:16:07 +00:00
Gabriel Dos Reis
cdc958d823
re PR libstdc++/3181 (Unable to use sqrt,cos,sin,... with int argument.)
...
PR libstdc++/3181
* include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
(acos): Handle integer argument.
(asin): Likewise.
(atan): Likewise.
(atan2): Likewise.
(ceil): Likewise.
(cos): Likewise.
(cosh): Likewise.
(exp): Likewise.
(fabs): Likewise.
(floor): Likewise.
(frexp): Likewise.
(ldexp): Likewise.
(log): Likewise.
(log10): Likewise.
(sin): Likewise.
(sinh): Likewise.
(sqrt): Likewise.
(tan): Likewise.
(tanh): Likewise.
* include/bits/cpp_type_traits.h (__are_same<>): New traits.
(__enable_if): Likewise.
* testsuite/26_numerics/cmath/overloads.C: New test.
From-SVN: r66681
2003-05-11 09:07:17 +00:00
Benjamin Kosnik
51ff814940
[multiple changes]
...
2003-05-10 Petur Runolfsson <peturr02@ru.is>
PR libstdc++/9027
PR libstdc++/9520
PR libstdc++/10096
* include/bits/fstream.tcc (basic_file::_M_underflow): Add generic
implementation, based on old wchar_t specialization, add support
for codecvt::in() return value of codecvt_base::noconv, remove
_M_file.sys_ungetc() call.
* include/std/std_fstream.h (basic_file::underflow,
basic_file::uflow, basic_file::_M_underflow): Remove
specialization declarations, call _M_underflow from generic versions
of underflow and uflow.
* src/fstream.cc (basic_file::underflow, basic_file::uflow,
basic_file::_M_underflow): Remove specializations.
* src/Makefile.am (sources): Remove fstream.cc.
* src/Makefile.in: Regenerated.
* testsuite/27_io/basic_filebuf/underflow/10096.cc: New test.
* testsuite/27_io/basic_filebuf/underflow/char/1.cc: New test.
* testsuite/27_io/basic_filebuf/underflow/char/9027.cc: New test.
* testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc: New test.
2003-05-10 Benjamin Kosnik <bkoz@redhat.com>
* include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
buffer.
* config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
unbuffered bits.
(__basic_file::xsputn): Same.
(__basic_file::seekoff): Same.
(__basic_file::seekpos): Same.
(__basic_file::showmanyc): Same.
* config/io/basic_file_stdio.cc: Same.
* include/std/std_fstream.h: Same.
* include/bits/fstream.tcc: Same.
* src/fstream.cc: Same.
* testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
2003-05-10 Petur Runolfsson <peturr02@ru.is>
PR libstdc++/9520
PR libstdc++/9661
PR libstdc++/9662
* include/ext/stdio_sync_filebuf.h: New file.
(basic_stdiobuf): New.
* include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
* include/Makefile.in: Regenerate.
* include/bits/ios_base.h (Init::_S_create_buffers,
Init::_S_destroy_buffers): Remove declarations.
* src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync): Define.
* src/ios.cc (Init::_S_create_buffers,
Init::_S_destroy_buffers): Remove.
(Init::Init): Create and use syncronized buffers.
(ios_base::sync_with_stdio): Destroy syncronized buffers,
create and install unsyncronized buffers.
* testsuite/27_io/objects/char/10.cc: New test.
* testsuite/27_io/objects/char/9.cc: New test.
* testsuite/27_io/objects/char/9661-1.cc: New test.
* testsuite/27_io/objects/char/9661-2_xin.cc: New test.
* testsuite/27_io/objects/char/9661-2_xin.in: New.
* testsuite/27_io/objects/wchar_t/1.cc: New test.
* testsuite/27_io/objects/wchar_t/10.cc: New test.
* testsuite/27_io/objects/wchar_t/2.cc: New test.
* testsuite/27_io/objects/wchar_t/2523-1_xin.cc: New test.
* testsuite/27_io/objects/wchar_t/2523-1_xin.in: New.
* testsuite/27_io/objects/wchar_t/2523-2_xin.cc: New test.
* testsuite/27_io/objects/wchar_t/2523-2_xin.in: New.
* testsuite/27_io/objects/wchar_t/3045.cc: New test.
* testsuite/27_io/objects/wchar_t/3647.cc: New test.
* testsuite/27_io/objects/wchar_t/3_xin.cc: New test.
* testsuite/27_io/objects/wchar_t/3_xin.in: New.
* testsuite/27_io/objects/wchar_t/4_xin.cc: New test.
* testsuite/27_io/objects/wchar_t/4_xin.in: New.
* testsuite/27_io/objects/wchar_t/5.cc: New test.
* testsuite/27_io/objects/wchar_t/5268.cc: New test.
* testsuite/27_io/objects/wchar_t/5280_xin.cc: New test.
* testsuite/27_io/objects/wchar_t/5280_xin.in: New.
* testsuite/27_io/objects/wchar_t/6.cc: New test.
* testsuite/27_io/objects/wchar_t/6548_xin.cc: New test.
* testsuite/27_io/objects/wchar_t/6548_xin.in: New.
* testsuite/27_io/objects/wchar_t/6648-1_xin.cc: New test.
* testsuite/27_io/objects/wchar_t/6648-1_xin.in: New.
* testsuite/27_io/objects/wchar_t/6648-2_xin.cc: New test.
* testsuite/27_io/objects/wchar_t/6648-2_xin.in: New.
* testsuite/27_io/objects/wchar_t/7.cc: New test.
* testsuite/27_io/objects/wchar_t/7744_xin.cc: New test.
* testsuite/27_io/objects/wchar_t/7744_xin.in: New.
* testsuite/27_io/objects/wchar_t/8.cc: New test.
* testsuite/27_io/objects/wchar_t/9_xin.cc: New test.
* testsuite/27_io/objects/wchar_t/9_xin.in: New.
* testsuite/27_io/objects/wchar_t/9520.cc: New test.
* testsuite/27_io/objects/wchar_t/9661-1.cc: New test.
* testsuite/27_io/objects/wchar_t/9661-2_xin.cc: New test.
* testsuite/27_io/objects/wchar_t/9661-2_xin.in: New.
* testsuite/27_io/objects/wchar_t/9662.cc: New test.
* testsuite/ext/stdiobuf_char.cc: New test.
* testsuite/ext/stdiobuf_wchar_t.cc: New test.
From-SVN: r66678
2003-05-11 04:20:57 +00:00
GCC Administrator
95e32f8573
Daily bump.
...
From-SVN: r66674
2003-05-11 00:16:07 +00:00
GCC Administrator
05c6099ab9
Daily bump.
...
From-SVN: r66651
2003-05-10 00:16:13 +00:00
GCC Administrator
8ac3815a08
Daily bump.
...
From-SVN: r66621
2003-05-09 00:16:06 +00:00
Paolo Carlini
db7948c2d8
std_streambuf.h (setg, setp): Don't touch _M_mode.
...
2003-05-08 Paolo Carlini <pcarlini@unitus.it>
* include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
From-SVN: r66595
2003-05-08 11:47:45 +00:00
GCC Administrator
c156358adf
Daily bump.
...
From-SVN: r66586
2003-05-08 00:16:08 +00:00
Paolo Carlini
cd96b185c5
std_fstream.h (_M_is_indeterminate): Remove.
...
2003-05-07 Paolo Carlini <pcarlini@unitus.it>
* include/std/std_fstream.h (_M_is_indeterminate): Remove.
* src/fstream.cc
(basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
there is no buffer or __testget == !__testinit.
* src/fstream.cc
(basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
automatically sets, if appropriate, _M_out_cur == _M_in_cur.
* include/std/std_fstream.h (_M_destroy_pback): Don't set
unnecessarily _M_pback_cur_save and _M_pback_end_save.
* include/std/std_fstream.h (_M_set_determinate): Minor tweak.
* include/std/std_sstream.h (_M_sync): Minor tweak.
* include/bits/fstream.tcc (close): No need to call
_M_destroy_pback, setting _M_pback_init to false suffices
to clean up.
From-SVN: r66557
2003-05-07 12:48:58 +00:00
Benjamin Kosnik
655d78212b
stl_algo.h: Enums as _S_.
...
2003-05-06 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/stl_algo.h: Enums as _S_.
* include/bits/stl_tree.h: Same.
* include/bits/stl_bvector.h: Same.
* include/bits/ios_base.h: Same.
* include/bits/stl_alloc.h: Same.
* include/ext/stl_hashtable.h: Same.
* src/ios.cc: And here.
* include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
* include/bits/sstream.tcc: Same.
* include/bits/basic_ios.h: Correct spacing for '< ctype'.
* include/bits/locale_facets.tcc: Replace __temp to __tmp.
* include/bits/locale_facets.h (__num_base): Remove protected.
Use _S_[io]* names for enumerations.
(_S_format_int): Remove.
* include/bits/locale_facets.tcc: Same.
* src/locale.cc: Same.
* include/std/std_sstream.h (stringbuf::str): Tweak formatting.
From-SVN: r66552
2003-05-07 05:01:59 +00:00
GCC Administrator
0b745a5bcc
Daily bump.
...
From-SVN: r66544
2003-05-07 00:16:07 +00:00
Michael Ritzert
b7c4cd53ab
And retweak.
...
Co-Authored-By: Matt Kraai <kraai@alumni.cmu.edu>
From-SVN: r66530
2003-05-06 19:31:39 +00:00
Michael Ritzert
3612c9efbb
* include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
...
From-SVN: r66523
2003-05-06 14:32:52 +00:00
GCC Administrator
d7b4a59027
Daily bump.
...
From-SVN: r66512
2003-05-06 00:16:08 +00:00
Loren J. Rittle
1976f0d995
stl_threads.h (_Atomic_swap): Kill it...
...
* include/bits/stl_threads.h (_Atomic_swap): Kill it...
(_Swap_lock_struct<>): ...and the horse it rode in on.
* src/globals.cc (_Swap_lock_struct<>): Likewise.
* include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
member to support...
* include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
visibility rules related to POSIX threads.
* testsuite/thread/pthread7-rope.cc: New test.
From-SVN: r66507
2003-05-05 22:28:16 +00:00
GCC Administrator
18ec39dad3
Daily bump.
...
From-SVN: r66473
2003-05-05 00:16:06 +00:00
GCC Administrator
c3a5317cd3
Daily bump.
...
From-SVN: r66444
2003-05-04 00:16:15 +00:00
GCC Administrator
43e9b64bf5
Daily bump.
...
From-SVN: r66407
2003-05-03 00:16:15 +00:00
Benjamin Kosnik
53c2acdf21
Makefile.am (CLEANFILES): Remove PCH files in target directory.
...
2003-05-02 Benjamin Kosnik <bkoz@redhat.com>
* include/Makefile.am (CLEANFILES): Remove PCH files in target
directory.
* include/Makefile.in: Regenerate.
From-SVN: r66403
2003-05-02 23:18:09 +00:00
Paolo Carlini
4571fbb1ec
std_sstream.h (str()): Tidy.
...
2003-05-02 Paolo Carlini <pcarlini@unitus.it>
* include/std/std_sstream.h (str()): Tidy.
From-SVN: r66402
2003-05-02 23:02:03 +00:00
Nathan Myers
0992fb51ae
streambuf.tcc (__copy_streambufs): Rewrote.
...
2003-05-02 Nathan Myers <ncm@cantrip.org>
Paolo Carlini <pcarlini@unitus.it>
* include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
Co-Authored-By: Paolo Carlini <pcarlini@unitus.it>
From-SVN: r66395
2003-05-02 18:35:24 +00:00
Jonathan Wakely
8515a6007c
basic_string.h (swap): Remove redundant template parameters from declaration of non-template member...
...
2003-05-02 Jonathan Wakely <redi@gcc.gnu.org>
* include/bits/basic_string.h (swap): Remove redundant template
parameters from declaration of non-template member function.
From-SVN: r66389
2003-05-02 16:50:53 +01:00
GCC Administrator
c4dec8d5a8
Daily bump.
...
From-SVN: r66365
2003-05-02 00:17:06 +00:00
Paolo Carlini
74843551df
sstream.tcc (overflow): Instead of calling str()...
...
2003-05-01 Paolo Carlini <pcarlini@unitus.it>
* include/bits/sstream.tcc (overflow): Instead of calling
str(), then _M_string.reserve, thus copying the contents
of the current buffer two times, just copy the latter in
a temporary, then use the 'swap trick'.
From-SVN: r66358
2003-05-02 00:14:49 +00:00
Paolo Carlini
e70b1b7788
std_sstream.h (str()): Revert the best of the previous 'improvement'...
...
2003-05-01 Paolo Carlini <pcarlini@unitus.it>
* include/std/std_sstream.h (str()): Revert the best of the
previous 'improvement', incorrect due to the COW nature of
v3 basic_string; simplify.
From-SVN: r66357
2003-05-01 23:20:33 +00:00
Paolo Carlini
f4731b64d2
streambuf.tcc (__copy_streambufs): Adjust the type of __avail to ptrdiff_t to avoid signed-unsigned warning.
...
2003-05-01 Paolo Carlini <pcarlini@unitus.it>
* include/bits/streambuf.tcc (__copy_streambufs): Adjust the
type of __avail to ptrdiff_t to avoid signed-unsigned warning.
From-SVN: r66356
2003-05-01 22:53:13 +00:00
Paolo Carlini
397751aef0
streambuf.tcc (basic_streambuf::xsgetn): Const-ify some variables.
...
2003-05-01 Paolo Carlini <pcarlini@unitus.it>
* include/bits/streambuf.tcc (basic_streambuf::xsgetn):
Const-ify some variables.
(basic_streambuf::xsputn): Likewise; change the type of some
variables to size_t.
(__copy_streambufs): Change some variables to size_t.
2003-05-01 Paolo Carlini <pcarlini@unitus.it>
* include/std/std_sstream.h (str()): Avoid constructing
a basic_string temporary not only when it would turn out
to be zero-sized but also when identical to the current
_M_string buffer.
From-SVN: r66334
2003-05-01 16:45:50 +00:00
Paolo Carlini
8544261c53
stdio_filebuf.h (stdio_filebuf(int, std::ios_base::openmode, bool, size_t), [...]): Shorten a bit (-10 lines) by factoring out some code.
...
2003-05-01 Paolo Carlini <pcarlini@unitus.it>
* include/ext/stdio_filebuf.h
(stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
Shorten a bit (-10 lines) by factoring out some code.
From-SVN: r66320
2003-05-01 08:41:59 +00:00
GCC Administrator
ee704412ab
Daily bump.
...
From-SVN: r66314
2003-05-01 00:17:10 +00:00
GCC Administrator
95b588cf15
Daily bump.
...
From-SVN: r66279
2003-04-30 00:17:06 +00:00
Paolo Carlini
cc9d1c78ef
fstream.tcc (open): Change to single return.
...
2003-04-29 Paolo Carlini <pcarlini@unitus.it>
* include/bits/fstream.tcc (open): Change to single return.
From-SVN: r66245
2003-04-29 19:46:07 +00:00
Paolo Carlini
d4be2966f3
std_sstream.h (underflow): Change to single return.
...
2003-04-29 Paolo Carlini <pcarlini@unitus.it>
* include/std/std_sstream.h (underflow): Change to single return.
From-SVN: r66234
2003-04-29 17:47:38 +00:00
GCC Administrator
3e1be8c1b1
Daily bump.
...
From-SVN: r66200
2003-04-29 00:17:06 +00:00
Paolo Carlini
479a181108
std_streambuf.h (_M_buf): is currently used only for basic_filebuf, therefore move it there.
...
2003-04-28 Paolo Carlini <pcarlini@unitus.it>
* include/std/std_streambuf.h (_M_buf): is currently
used only for basic_filebuf, therefore move it there.
(basic_streambuf(), ~basic_streambuf()): Adjust.
* include/std/std_fstream.h (_M_buf): Moved here.
* include/std/std_sstream.h (setbuf): Don't set _M_buf,
is actually redundant for basic_stringbuf.
(_M_really_sync): Likewise.
* include/bits/fstream.tcc (basic_filebuf()): Adjust.
* include/bits/sstream.tcc (seekoff): Adjust.
From-SVN: r66193
2003-04-28 23:51:37 +00:00
Benjamin Kosnik
988ad90d00
localename.cc: Standardize exception strings.
...
2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
* src/localename.cc: Standardize exception strings.
* src/locale.cc: Same.
* src/ios.cc: Same.
* include/bits/basic_string.tcc: Same.
* include/bits/basic_ios.tcc: Same.
* include/std/std_bitset.h: Same.
* include/ext/ropeimpl.h: Same.
* include/bits/stl_vector.h: Same.
* include/bits/stl_deque.h: Same.
* include/bits/stl_bvector.h: Same.
* config/locale/generic/c_locale.cc: Same.
* config/locale/gnu/c_locale.cc: Same.
* config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
* testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
From-SVN: r66192
2003-04-28 23:05:57 +00:00
Paolo Carlini
6ef4b79c95
std_streambuf.h (_M_buf_size): is currently used only for basic_filebuf, therefore move it there.
...
2003-04-28 Paolo Carlini <pcarlini@unitus.it>
* include/std/std_streambuf.h (_M_buf_size): is currently
used only for basic_filebuf, therefore move it there.
(basic_streambuf(), ~basic_streambuf()): Adjust.
* include/std/std_fstream.h (_M_buf_size): Moved here.
* include/bits/fstream.tcc (basic_filebuf()): Adjust.
From-SVN: r66191
2003-04-28 23:02:46 +00:00
Paolo Carlini
44b84cc918
streambuf.tcc (__copy_streambufs): Don't use _M_buf_size (synced input is now correctly dealt with elsewhere)...
...
2003-04-28 Paolo Carlini <pcarlini@unitus.it>
* include/bits/streambuf.tcc (__copy_streambufs): Don't use
_M_buf_size (synced input is now correctly dealt with
elsewhere); when the output buffer is full don't fall back
to a snextc-sputc loop, call overflow instead.
From-SVN: r66190
2003-04-28 22:15:58 +00:00
Paolo Carlini
ca78f36ae3
sstream.tcc (pbackfail): Shorten a bit (6 lines) the innermost 'if' by factoring out some code.
...
2003-04-28 Paolo Carlini <pcarlini@unitus.it>
* include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
the innermost 'if' by factoring out some code.
From-SVN: r66187
2003-04-28 21:28:25 +00:00
Phil Edwards
ad41429085
configure.in: Test for libintl.h.
...
2003-04-28 Phil Edwards <pme@gcc.gnu.org>
* configure.in: Test for libintl.h.
* include/bits/c++config: Define __N for everybody.
* include/bits/basic_string.h, include/bits/stl_bvector.h,
include/bits/stl_deque.h, include/bits/stl_vector.h,
include/std/std_bitset.h: Wrap all __throw* text with __N.
* po/Makefile.am (pot): New rule, mostly working.
* src/functexcept.cc: Call gettext on all __throw* arguments when
-fexceptions is in effect.
* po/Makefile.in, config.h.in, configure: Regenerate.
From-SVN: r66185
2003-04-28 21:03:19 +00:00
Benjamin Kosnik
2aacd7357a
[multiple changes]
...
2003-04-28 Petur Runolfsson <peturr02@ru.is>
PR libstdc++/9523
* include/bits/ios_base.h (Init::_S_ios_create,
Init::_S_ios_destroy): Remove declarations.
(Init::_S_create_buffers,
Init::_S_destroy_buffers): Declare
* src/ios.cc (Init::_S_ios_create): Remove
(Init::_S_create_buffers): Create buffers and add to streams.
(Init::_S_ios_destroy): Rename to...
(Init::_S_destroy_buffers): this.
(Init::Init): Only construct streams once.
(Init::~Init): Flush streams, don't destroy them.
(ios_base::sync_with_stdio): Don't destroy streams, only buffers.
* testsuite/27_io/ios_base/sync_with_stdio/9523.cc: New test.
* testsuite/27_io/objects/char/5.cc: New test.
* testsuite/27_io/objects/char/5268.cc: Avoid undefined behavior.
* testsuite/27_io/objects/char/6.cc: New test.
* testsuite/27_io/objects/char/7.cc: New test.
2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/27_io/objects/char/8.cc: New test.
From-SVN: r66177
2003-04-28 17:15:03 +00:00
Benjamin Kosnik
aa438e8f2b
std_fstream.h (basic_filebuf): _M_pback_destroy to _M_destroy_pback.
...
2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
* include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
_M_destroy_pback. _M_pback_create to
_M_create_pback. _M_underflow_common to
_M_underflow. _M_really_overflow to _M_overflow.
* include/bits/fstream.tcc: Same.
* src/fstream.cc: Same.
* include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
_M_move_in_cur. _M_out_cur_move to _M_move_out_cur.
* include/bits/streambuf.tcc: Same.
* include/bits/fstream.tcc: Same.
* include/bits/sstream.tcc: Same.
From-SVN: r66149
2003-04-28 04:54:54 +00:00
Benjamin Kosnik
73c4dcc675
locale_classes.h (locale::_Impl): Change _M_names from fixed size array.
...
2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/locale_classes.h (locale::_Impl): Change _M_names
from fixed size array.
(locale): Change _S_categories as well.
Formatting tweaks.
* include/bits/locale_facets.tcc: Tweak.
* config/locale/gnu/c_locale.cc: Assign _S_categories.
* config/locale/generic/c_locale.cc: Same.
* src/locale.cc: Tweak.
* src/globals.cc: Change facet_name to name_vec, add names_c.
* src/localename.cc: Use them.
(locale::_Impl::~_Impl): Destroy _M_names.
(locale::_Impl::_Impl): Create _M_names.
From-SVN: r66147
2003-04-28 03:41:49 +00:00
GCC Administrator
cfd228648d
Daily bump.
...
From-SVN: r66144
2003-04-28 00:17:06 +00:00
Nathan Myers
2d9d52359c
Move some basic_string members out of line because they are too big to reasonably be inline.
...
2003-04-27 Nathan Myers <ncm@cantrip.org>
Move some basic_string members out of line because
they are too big to reasonably be inline.
* include/bits/basic_string.h
(assign(const basic_string&, size_type, size_type),
assign(const _CharT*, size_type),
insert(size_type, const basic_string&, size_type, size_type),
insert(size_type, const _CharT*, size_type),
replace(size_type, size_type, const _CharT*, size_type)):
Move from here to...
* include/bits/basic_string.tcc: ...here.
From-SVN: r66132
2003-04-27 17:20:42 +00:00
GCC Administrator
0a57102f8f
Daily bump.
...
From-SVN: r66127
2003-04-27 00:17:05 +00:00
Paolo Carlini
c7f79b4cb2
fstream.tcc (pbackfail): Shorten a bit (10 lines) the innermost 'if' by factoring out some code.
...
2003-04-26 Paolo Carlini <pcarlini@unitus.it>
* include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
the innermost 'if' by factoring out some code.
From-SVN: r66102
2003-04-26 08:31:57 +00:00
Paolo Carlini
ac5b7972ab
streambuf.tcc (__copy_streambufs): Don't use in_avail(), simplify.
...
2003-04-26 Paolo Carlini <pcarlini@unitus.it>
* include/bits/streambuf.tcc (__copy_streambufs): Don't
use in_avail(), simplify.
2003-04-26 Paolo Carlini <pcarlini@unitus.it>
* include/std/std_sstream.h (setbuf): don't set _M_buf_size,
in basic_stringbuf it's unused.
* include/std/std_sstream.h (underflow): consistently use
_M_in_cur, not gptr().
From-SVN: r66100
2003-04-26 08:13:35 +00:00
Benjamin Kosnik
a1796d12ff
re PR libstdc++/10132 (filebuf destructor throws exceptions)
...
2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/10132
* include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
exception specifications.
(basic_filebuf::close): Same.
(basic_filebuf::_M_pback_destroy): Same.
(basic_filebuf::_M_destroy_internal_buffer): Same.
(basic_filebuf): Remove __res_type typedef.
* src/fstream.cc: Same.
* include/bits/fstream.tcc
(basic_filebuf::_M_convert_to_external): Simplify.
(basic_filebuf::seekoff): Use has_facet before use_facet.
(basic_filebuf::close): Add exception specification of throw().
* testsuite/27_io/basic_filebuf/cons: New.
* testsuite/27_io/basic_filebuf/cons/wchar_t: New.
* testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
* testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
* testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
From-SVN: r66091
2003-04-26 00:23:18 +00:00
GCC Administrator
c21bf638a3
Daily bump.
...
From-SVN: r66090
2003-04-26 00:17:04 +00:00
Benjamin Kosnik
89e9920bd6
2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
...
* include/bits/locale_classes.h
(locale::_S_extra_categories_size): Remove.
* src/locale.cc: Remove _S_extra_categories_size.
* src/localename.cc: Same.
* config/locale/gnu/c_locale.cc: Same.
* config/locale/generic/c_locale.cc: Same.
From-SVN: r66068
2003-04-25 17:23:21 +00:00
GCC Administrator
13e7174292
Daily bump.
...
From-SVN: r66058
2003-04-25 00:17:08 +00:00
GCC Administrator
5c894b968c
Daily bump.
...
From-SVN: r66026
2003-04-24 00:17:06 +00:00
Phil Edwards
d8c3061141
Missed tellg() comment from previous checkin somehow.
...
From-SVN: r65984
2003-04-23 07:21:27 +00:00
Phil Edwards
6894ddcf3d
howto.html ('LWG Issues'): Add issue 60, partial implementation only.
...
2003-04-23 Phil Edwards <pme@gcc.gnu.org>
* docs/html/ext/howto.html ('LWG Issues'): Add issue 60, partial
implementation only.
* include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
Comment and change to comply with DR 60 and the effect on gcount().
* include/std/std_istream.h: Update comments.
* testsuite/27_io/basic_istream/putback/char/1.cc (test01): Add
comments about reasons for tests. Test sync() against gcount().
* testsuite/27_io/basic_istream/seekg/char/2.cc: New file, test
for effect on gcount().
* testsuite/27_io/basic_istream/tellg/char/2.cc: New file, test
for effect on gcount().
From-SVN: r65983
2003-04-23 07:05:18 +00:00
GCC Administrator
de793c9368
Daily bump.
...
From-SVN: r65977
2003-04-23 00:17:11 +00:00
Paolo Carlini
45aca21f40
std_streambuf.h (_S_pback_size, [...]): Move to basic_filebuf.
...
2003-04-22 Paolo Carlini <pcarlini@unitus.it>
* include/std/std_streambuf.h (_S_pback_size, _M_pback,
_M_pback_cur_save, _M_pback_end_save, _M_pback_init,
_M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
(basic_streambuf::basic_streambuf()): Adjust.
* include/std/std_fstream.h (_S_pback_size, _M_pback,
_M_pback_cur_save, _M_pback_end_save, _M_pback_init,
_M_pback_create(), _M_pback_destroy()): Moved here
from basic_streambuf.
* include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
Adjust.
(basic_filebuf::_S_pback_size): Add declaration.
* include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
Remove declaration.
From-SVN: r65950
2003-04-22 17:32:25 +00:00
GCC Administrator
f71c12554b
Daily bump.
...
From-SVN: r65928
2003-04-22 00:17:06 +00:00
Paolo Carlini
07c2b60df9
Consistently use _M_in_beg instead of eback(), _M_in_cur instead of gptr(), and so on.
...
2003-04-21 Paolo Carlini <pcarlini@unitus.it>
Consistently use _M_in_beg instead of eback(), _M_in_cur
instead of gptr(), and so on.
* include/bits/fstream.tcc (pbackfail, imbue): Here.
* include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
* include/bits/streambuf.tcc (sbumpc, sputbackc,
__copy_streambufs): Ditto.
* include/std/std_streambuf.h (sgetc): Ditto.
From-SVN: r65909
2003-04-21 21:44:44 +00:00
Paolo Carlini
65085aa3ef
sstream.tcc (pbackfail, overflow): Formatting fixes.
...
2003-04-21 Paolo Carlini <pcarlini@unitus.it>
* include/bits/sstream.tcc (pbackfail, overflow):
Formatting fixes.
From-SVN: r65893
2003-04-21 18:46:44 +00:00
Paolo Carlini
9d3e38ec59
std_streambuf.h (uflow()): It's used only by basic_stringbuf (i.e....
...
2003-04-21 Paolo Carlini <pcarlini@unitus.it>
* include/std/std_streambuf.h (uflow()): It's used only by
basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
therefore do not consider the _M_buf_unified == true case.
* include/std/std_streambuf.h (sgetc()): Restore __ret variable.
From-SVN: r65891
2003-04-21 18:11:51 +00:00
GCC Administrator
0f0b91be0a
Daily bump.
...
From-SVN: r65877
2003-04-21 00:17:04 +00:00
Paolo Carlini
5e77a35767
sstream.tcc (pbackfail): Remove redundant NULL pointer check from test involving _M_in_*.
...
2003-04-20 Paolo Carlini <pcarlini@unitus.it>
* include/bits/sstream.tcc (pbackfail): Remove redundant
NULL pointer check from test involving _M_in_*.
(overflow, seekoff, seekpos): Const qualify bool variables.
* include/std/std_sstream.h (underflow): Remove redundant
NULL pointer check from test involving _M_in_*.
(_M_really_sync): Const qualify bool variables.
* src/fstream.cc (_M_underflow_common): Remove redundant
NULL pointer check from test involving _M_in_*, const qualify
bool variables.
* include/std/std_streambuf.h (sgetc): Remove redundant
variable.
From-SVN: r65853
2003-04-20 13:54:45 +00:00
GCC Administrator
4049c77a01
Daily bump.
...
From-SVN: r65841
2003-04-20 00:17:05 +00:00
GCC Administrator
606c999123
Daily bump.
...
From-SVN: r65807
2003-04-19 00:17:04 +00:00
Paolo Carlini
0b176c1af2
According to 5.9 para 2 (second bullet) for pointers p...
...
2003-04-18 Paolo Carlini <pcarlini@unitus.it>
According to 5.9 para 2 (second bullet) for pointers p, q
pointing to the same type, with p == 0 and q == 0, (p < q)
is false.
* include/bits/fstream.tcc (close, overflow, _M_really_overflow,
seekoff): Remove redundant NULL pointer checks from tests
involving _M_out_* and _M_in_*, const qualify bool variables.
(showmanyc, pbackfail, _M_convert_to_external, imbue): Const
qualify bool variables.
* include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
Remove redundant NULL pointer checks from tests involving
_M_out_* and _M_in_*, const qualify bool variables.
* include/std/std_fstream.h (sync): Likewise.
(_M_is_indeterminate): Const qualify bool variables.
* include/std/std_streambuf.h (sgetc, uflow): Remove redundant
NULL pointer checks from tests involving _M_out_* and _M_in_*,
const qualify bool variables.
(_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
variables.
From-SVN: r65783
2003-04-18 13:55:22 +00:00
Loren J. Rittle
9c59483708
porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
...
* docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
(_GLIBCPP_USE_C99_DYNAMIC): New macro.
(_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
(_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
* config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
New macro.
(_GLIBCPP_USE_C99_DYNAMIC): New macro.
(_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
(_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
* include/c_std/std_cstdlib.h: Use new macros.
* include/c_std/std_cstdio.h: Use new macros.
* include/c_std/std_cwchar.h: Use new macros.
From-SVN: r65778
2003-04-18 09:53:58 +00:00
Loren J. Rittle
c04ec67ecd
std_cmath.h (C99 FP capture): Only undefine said C99 FP macros, if actually captured.
...
* include/c_std/std_cmath.h (C99 FP capture): Only undefine said
C99 FP macros, if actually captured.
From-SVN: r65777
2003-04-18 06:58:42 +00:00
Benjamin Kosnik
06e7ca50ab
re PR libstdc++/9555 (ostream inserters fail to set badbit on exception)
...
2003-04-17 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/9555
* include/bits/ostream.tcc: Catch all exceptions for formatted
output, instead of std::exception and derivatives.
* include/bits/istream.tcc: Same.
* testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
* testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
* testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
* testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
* testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
* testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
New.
From-SVN: r65770
2003-04-18 03:46:44 +00:00
Phil Edwards
3cfbe1789a
c++config: Minor cosmetic tweaks.
...
2003-04-17 Phil Edwards <pme@gcc.gnu.org>
* include/bits/c++config: Minor cosmetic tweaks.
From-SVN: r65768
2003-04-18 02:41:06 +00:00
Loren J. Rittle
8520f70425
testsuite_flags.in (PCHFLAGS): Find PCH in new home.
...
* testsuite_flags.in (PCHFLAGS): Find PCH in new home.
* include/Makefile.am (pch_input): Find in ${target_builddir}.
(pch_output): Rename to...
(pch_output_builddir): ..this. Find in ${target_builddir}.
(pch_source): Tweak.
(pch_build): Key off a built file.
(pch_output rule): Rename to...
(pch_input rule): ...this. Produce ${pch_output_builddir}
instead of ${pch_output}.
(install-pch rule): Install ${pch_output_builddir}.
* include/Makefile.in: Regenerated.
From-SVN: r65767
2003-04-18 02:03:52 +00:00
GCC Administrator
dc93be8dce
Daily bump.
...
From-SVN: r65765
2003-04-18 00:17:06 +00:00
Paolo Carlini
b5bc3efb4b
std_streambuf.h (setp): _M_out_lim, being the end limit of used put area, is set equal to _M_out_beg.
...
2003-04-17 Paolo Carlini <pcarlini@unitus.it>
* include/std/std_streambuf.h (setp): _M_out_lim, being
the end limit of used put area, is set equal to _M_out_beg.
From-SVN: r65740
2003-04-17 11:29:15 +00:00
Benjamin Kosnik
9e57d5caf2
acinclude.m4 (GLIBCPP_CHECK_PCH): New.
...
2003-04-16 Benjamin Kosnik <bkoz@redhat.com>
* acinclude.m4 (GLIBCPP_CHECK_PCH): New.
* aclocal.m4: Regenerated.
* configure.in: Remove old demangler bits.
Call pch checks.
* configure: Regenerate.
* config.h.in: Regenerate.
* include/Makefile.am (allstamps): Now allstamped.
(allcreated): Define this.
(all-local): Use 'em.
Conditionally define pch_build, pch_install based on
GLIBCPP_BUILD_PCH.
(${pch_output}): New rule.
(install-pch): New rule.
(install-headers): New rule.
(install-data-local): Install headers and conditionally pch.
* include/Makefile.in: Regenerate.
* testsuite_flags.in (--build-cxx): Use pch file.
From-SVN: r65717
2003-04-17 03:27:05 +00:00
GCC Administrator
e34d367d2d
Daily bump.
...
From-SVN: r65712
2003-04-17 00:17:04 +00:00
GCC Administrator
6a1b7acd55
Daily bump.
...
From-SVN: r65673
2003-04-16 00:17:06 +00:00
Loren J. Rittle
b39d035918
std_cmath.h (__gnu_cx::__c99_binding): New namespace.
...
libstdc++/7680
* include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
Populate it with multiple legal ways to obtain the C99 float
transcendentals. Use them instead of direct global reference.
(C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
* docs/html/17_intro/porting.texi
(_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
(_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
(_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
* config/os/bsd/freebsd/os_defines.h
(_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
(_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
* testsuite/26_numerics/c_math_dynamic.cc: New file.
From-SVN: r65624
2003-04-15 07:27:55 +00:00
Loren J. Rittle
4ea34005e6
std_bitset.h (_M_do_find_next): Fix -Wall nit.
...
* include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
* include/bits/concept_check.h: Fix multi-line comment.
* testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
when target is *-*-freebsd*.
From-SVN: r65620
2003-04-15 06:11:10 +00:00
GCC Administrator
47f2b6acd5
Daily bump.
...
From-SVN: r65612
2003-04-15 00:17:07 +00:00
Nathan Myers
21a1d2c493
PR libstdc++/9701 (in_avail())
...
2003-04-14 Nathan Myers <ncm@cantrip.org>
Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/9701 (in_avail())
* include/std/std_streambuf.h (in_avail): Simplify, in_avail
doesn't care if there is anything in some putback cell.
* testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.
* testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
unused string literals.
Co-Authored-By: Paolo Carlini <pcarlini@unitus.it>
From-SVN: r65603
2003-04-14 22:43:32 +00:00
Paolo Carlini
22fc0e9ffe
fstream.tcc (basic_filebuf::setbuf): Don't set _M_out_end, _M_set_indeterminate() does it.
...
2003-04-14 Paolo Carlini <pcarlini@unitus.it>
* include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
_M_out_end, _M_set_indeterminate() does it.
From-SVN: r65582
2003-04-14 17:57:48 +00:00
GCC Administrator
fda8869be8
Daily bump.
...
From-SVN: r65558
2003-04-14 00:17:06 +00:00
GCC Administrator
71707889ed
Daily bump.
...
From-SVN: r65538
2003-04-13 00:17:05 +00:00
Paolo Carlini
7ef9fd85ef
Remove _M_buf_size_opt, use directly _M_buf_size instead.
...
2003-04-12 Paolo Carlini <pcarlini@unitus.it>
Remove _M_buf_size_opt, use directly _M_buf_size instead.
* include/bits/fstream.tcc
(basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove
references to _M_buf_size_opt.
* include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise.
* include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename
__bufsize to __in_avail and __size_opt to __buf_size.
* include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise.
* include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise.
* include/std/std_streambuf.h (~basic_streambuf(),
basic_streambuf()): Likewise, remove _M_buf_size_opt member.
* testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size.
* testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
* testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise.
* testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise.
* testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise.
* testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise.
* testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise.
* testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise.
* testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
* testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
* testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
* testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
From-SVN: r65518
2003-04-12 19:21:35 +00:00
Paolo Carlini
2ad0022889
stdio_filebuf.h (stdio_filebuf::stdio_filebuf(...), ...): _M_buf_size_opt == 0 means only...
...
2003-04-12 Paolo Carlini <pcarlini at unitus dot it>
* include/ext/stdio_filebuf.h
(stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
_M_buf_size_opt == 0 means only "not to use an allocated buffer"
since a stack-based buffer is used for small values of the size_t
parameter.
* include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
* testsuite/ext/stdio_filebuf_2.cc: New testfile.
From-SVN: r65513
2003-04-12 16:07:51 +00:00
GCC Administrator
bedd8bed3a
Daily bump.
...
From-SVN: r65495
2003-04-12 00:17:08 +00:00
GCC Administrator
5288c2a113
Daily bump.
...
From-SVN: r65451
2003-04-11 00:17:06 +00:00
Benjamin Kosnik
23cac88566
Reshuffle 27_io testsuite.
...
2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
Reshuffle 27_io testsuite. * testsuite/27_io/filebuf.cc,
filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc,
filebuf_virtuals-1.tst, filebuf_virtuals-1.txt,
filebuf_virtuals-2.tst, filebuf_virtuals-3.tst,
filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc,
ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt,
ifstream_members.cc, instantiations.cc, ios.cc,
ios_base_callbacks.cc, ios_base_members_static-1.tst,
ios_base_members_static.cc, ios_base_storage.cc,
ios_base_types.cc, ios_ctor.cc, ios_init.cc,
ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc,
iostream.cc, iostream_members.cc, istream.cc,
istream_exception.cc, istream_extractor_char.cc,
istream_extractor_other-1.tst, istream_extractor_other-1.txt,
istream_extractor_other-2.tst, istream_extractor_other.cc,
istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt,
istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc,
istream_sentry.cc, istream_unformatted-1.tst,
istream_unformatted-1.txt, istream_unformatted.cc,
istringstream.cc, istringstream_members.cc,
narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst,
ofstream_members.cc, ostream.cc, ostream_exception.cc,
ostream_fail.cc, ostream_inserter_arith.cc,
ostream_inserter_char-1.tst, ostream_inserter_char-1.txt,
ostream_inserter_char.cc, ostream_inserter_other-1.tst,
ostream_inserter_other-2.tst, ostream_inserter_other.cc,
ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc,
ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc,
ostringstream_members.cc, standard_manipulators.cc, streambuf.cc,
streambuf_members.cc, stringbuf.cc, stringbuf_members.cc,
stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc,
wide_stream_objects.cc, istream_extractor_arith/01.cc,
istream_extractor_arith/02.cc, istream_extractor_arith/03.cc,
istream_extractor_arith/06.cc, istream_extractor_arith/07.cc,
istream_extractor_arith/08.cc, istream_extractor_arith/09.cc,
istream_extractor_arith/10.cc, istream_extractor_arith/11.cc,
istream_extractor_arith/12.cc, istream_extractor_arith/13.cc:
Split into...
* 27_io/basic_filebuf/1.cc: New.
* 27_io/basic_filebuf/2.cc: New.
* 27_io/basic_filebuf/3.cc: New.
* 27_io/basic_filebuf/4.cc: New.
* 27_io/basic_filebuf/close/char/1.cc: New.
* 27_io/basic_filebuf/close/char/2.cc: New.
* 27_io/basic_filebuf/close/char/3.cc: New.
* 27_io/basic_filebuf/close/char/4879.cc: New.
* 27_io/basic_filebuf/close/char/9964.cc: New.
* 27_io/basic_filebuf/imbue/char/1.cc: New.
* 27_io/basic_filebuf/imbue/char/9322.cc: New.
* 27_io/basic_filebuf/in_avail/char/1.cc: New.
* 27_io/basic_filebuf/is_open/char/1.cc: New.
* 27_io/basic_filebuf/open/char/1.cc: New.
* 27_io/basic_filebuf/open/char/2.cc: New.
* 27_io/basic_filebuf/open/char/3.cc: New.
* 27_io/basic_filebuf/open/char/9507.cc: New.
* 27_io/basic_filebuf/overflow/char/1.cc: New.
* 27_io/basic_filebuf/overflow/char/3599.cc: New.
* 27_io/basic_filebuf/overflow/char/9169.cc: New.
* 27_io/basic_filebuf/overflow/char/9182-2.cc: New.
* 27_io/basic_filebuf/overflow/char/9988.cc: New.
* 27_io/basic_filebuf/sbumpc/char/1.cc: New.
* 27_io/basic_filebuf/sbumpc/char/9825.cc: New.
* 27_io/basic_filebuf/seekoff/char/1.cc: New.
* 27_io/basic_filebuf/seekoff/char/2.cc: New.
* 27_io/basic_filebuf/seekpos/char/1.cc: New.
* 27_io/basic_filebuf/seekpos/char/2.cc: New.
* 27_io/basic_filebuf/setbuf/char/1.cc: New.
* 27_io/basic_filebuf/setbuf/char/2.cc: New.
* 27_io/basic_filebuf/setbuf/char/3.cc: New.
* 27_io/basic_filebuf/sgetc/char/1.cc: New.
* 27_io/basic_filebuf/sgetn/char/1.cc: New.
* 27_io/basic_filebuf/sgetn/char/2.cc: New.
* 27_io/basic_filebuf/snextc/char/1.cc: New.
* 27_io/basic_filebuf/sputbackc/char/1.cc: New.
* 27_io/basic_filebuf/sputbackc/char/9425.cc: New.
* 27_io/basic_filebuf/sputc/char/1.cc: New.
* 27_io/basic_filebuf/sputc/char/1057.cc: New.
* 27_io/basic_filebuf/sputc/char/9701-2.cc: New.
* 27_io/basic_filebuf/sputn/char/1.cc: New.
* 27_io/basic_filebuf/sputn/char/1057.cc: New.
* 27_io/basic_filebuf/sputn/char/9701-1.cc: New.
* 27_io/basic_filebuf/sungetc/char/1.cc: New.
* 27_io/basic_filebuf/sync/char/1057.cc: New.
* 27_io/basic_filebuf/sync/char/9182-1.cc: New.
* 27_io/basic_filebuf/underflow/char/10097.cc: New.
* 27_io/basic_fstream/1.cc: New.
* 27_io/basic_fstream/2.cc: New.
* 27_io/basic_fstream/3.cc: New.
* 27_io/basic_fstream/4.cc: New.
* 27_io/basic_fstream/rdbuf/char/2832.cc: New.
* 27_io/basic_ifstream/1.cc: New.
* 27_io/basic_ifstream/2.cc: New.
* 27_io/basic_ifstream/3.cc: New.
* 27_io/basic_ifstream/4.cc: New.
* 27_io/basic_ifstream/cons/char/1.cc: New.
* 27_io/basic_ifstream/open/char/1.cc: New.
* 27_io/basic_ifstream/rdbuf/char/2832.cc: New.
* 27_io/basic_ios/1.cc: New.
* 27_io/basic_ios/2.cc: New.
* 27_io/basic_ios/3.cc: New.
* 27_io/basic_ios/4.cc: New.
* 27_io/basic_ios/clear/char/1.cc: New.
* 27_io/basic_ios/cons/char/1.cc: New.
* 27_io/basic_ios/cons/char/2.cc: New.
* 27_io/basic_ios/cons/char/3.cc: New.
* 27_io/basic_ios/copyfmt/char/1.cc: New.
* 27_io/basic_ios/copyfmt/char/2.cc: New.
* 27_io/basic_ios/exceptions/char/1.cc: New.
* 27_io/basic_ios/locales/char/1.cc: New.
* 27_io/basic_iostream/1.cc: New.
* 27_io/basic_iostream/2.cc: New.
* 27_io/basic_iostream/3.cc: New.
* 27_io/basic_iostream/4.cc: New.
* 27_io/basic_istream/1.cc: New.
* 27_io/basic_istream/2.cc: New.
* 27_io/basic_istream/3.cc: New.
* 27_io/basic_istream/4.cc: New.
* 27_io/basic_istream/exceptions/char/9561.cc: New.
* 27_io/basic_istream/extractors_arithmetic/char/01.cc: New.
* 27_io/basic_istream/extractors_arithmetic/char/02.cc: New.
* 27_io/basic_istream/extractors_arithmetic/char/03.cc: New.
* 27_io/basic_istream/extractors_arithmetic/char/06.cc: New.
* 27_io/basic_istream/extractors_arithmetic/char/07.cc: New.
* 27_io/basic_istream/extractors_arithmetic/char/08.cc: New.
* 27_io/basic_istream/extractors_arithmetic/char/09.cc: New.
* 27_io/basic_istream/extractors_arithmetic/char/10.cc: New.
* 27_io/basic_istream/extractors_arithmetic/char/11.cc: New.
* 27_io/basic_istream/extractors_arithmetic/char/12.cc: New.
* 27_io/basic_istream/extractors_arithmetic/char/13.cc: New.
* 27_io/basic_istream/extractors_character/char/1.cc: New.
* 27_io/basic_istream/extractors_character/char/2.cc: New.
* 27_io/basic_istream/extractors_character/char/3.cc: New.
* 27_io/basic_istream/extractors_character/char/9826.cc: New.
* 27_io/basic_istream/extractors_other/char/1.cc: New.
* 27_io/basic_istream/extractors_other/char/2.cc: New.
* 27_io/basic_istream/extractors_other/char/3.cc: New.
* 27_io/basic_istream/extractors_other/char/9318-in.cc: New.
* 27_io/basic_istream/extractors_other/char/9424-in.cc: New.
* 27_io/basic_istream/get/char/1.cc: New.
* 27_io/basic_istream/get/char/2.cc: New.
* 27_io/basic_istream/getline/char/1.cc: New.
* 27_io/basic_istream/getline/char/2.cc: New.
* 27_io/basic_istream/getline/char/3.cc: New.
* 27_io/basic_istream/ignore/char/1.cc: New.
* 27_io/basic_istream/ignore/char/6360.cc: New.
* 27_io/basic_istream/ignore/char/7220.cc: New.
* 27_io/basic_istream/peek/char/1.cc: New.
* 27_io/basic_istream/peek/char/6414.cc: New.
* 27_io/basic_istream/putback/char/1.cc: New.
* 27_io/basic_istream/read/char/1.cc: New.
* 27_io/basic_istream/read/char/2.cc: New.
* 27_io/basic_istream/read/char/3.cc: New.
* 27_io/basic_istream/readsome/char/6746-1.cc: New.
* 27_io/basic_istream/readsome/char/6746-2.cc: New.
* 27_io/basic_istream/readsome/char/8258.cc: New.
* 27_io/basic_istream/seekg/char/2346-fstream.cc: New.
* 27_io/basic_istream/seekg/char/2346-sstream.cc: New.
* 27_io/basic_istream/seekg/char/8348-1.cc: New.
* 27_io/basic_istream/seekg/char/8348-2.cc: New.
* 27_io/basic_istream/seekg/char/fstream.cc: New.
* 27_io/basic_istream/seekg/char/sstream.cc: New.
* 27_io/basic_istream/sentry/char/1.cc: New.
* 27_io/basic_istream/sentry/char/2.cc: New.
* 27_io/basic_istream/sentry/char/3.cc: New.
* 27_io/basic_istream/sentry/char/3983-fstream.cc: New.
* 27_io/basic_istream/sentry/char/3983-sstream.cc: New.
* 27_io/basic_istream/tellg/char/1.cc: New.
* 27_io/basic_istream/tellg/char/8348.cc: New.
* 27_io/basic_istream/tellg/char/fstream.cc: New.
* 27_io/basic_istream/tellg/char/sstream.cc: New.
* 27_io/basic_istream/ws/char/1.cc: New.
* 27_io/basic_istringstream/1.cc: New.
* 27_io/basic_istringstream/2.cc: New.
* 27_io/basic_istringstream/3.cc: New.
* 27_io/basic_istringstream/4.cc: New.
* 27_io/basic_istringstream/rdbuf/char/2832.cc: New.
* 27_io/basic_istringstream/str/char/1.cc: New.
* 27_io/basic_ofstream/1.cc: New.
* 27_io/basic_ofstream/2.cc: New.
* 27_io/basic_ofstream/3.cc: New.
* 27_io/basic_ofstream/4.cc: New.
* 27_io/basic_ofstream/cons/char/2.cc: New.
* 27_io/basic_ofstream/open/char/1.cc: New.
* 27_io/basic_ofstream/rdbuf/char/2832.cc: New.
* 27_io/basic_ostream/1.cc: New.
* 27_io/basic_ostream/2.cc: New.
* 27_io/basic_ostream/3.cc: New.
* 27_io/basic_ostream/4.cc: New.
* 27_io/basic_ostream/cons/char/9827.cc: New.
* 27_io/basic_ostream/endl/char/1.cc: New.
* 27_io/basic_ostream/ends/char/1.cc: New.
* 27_io/basic_ostream/ends/char/2.cc: New.
* 27_io/basic_ostream/exceptions/char/9561.cc: New.
* 27_io/basic_ostream/flush/char/1.cc: New.
* 27_io/basic_ostream/inserters_arithmetic/char/1.cc: New.
* 27_io/basic_ostream/inserters_arithmetic/char/2.cc: New.
* 27_io/basic_ostream/inserters_arithmetic/char/3.cc: New.
* 27_io/basic_ostream/inserters_arithmetic/char/4.cc: New.
* 27_io/basic_ostream/inserters_arithmetic/char/4402.cc: New.
* 27_io/basic_ostream/inserters_arithmetic/char/5.cc: New.
* 27_io/basic_ostream/inserters_arithmetic/char/6.cc: New.
* 27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: New.
* 27_io/basic_ostream/inserters_character/char/1.cc: New.
* 27_io/basic_ostream/inserters_character/char/2.cc: New.
* 27_io/basic_ostream/inserters_character/char/3.cc: New.
* 27_io/basic_ostream/inserters_character/char/4.cc: New.
* 27_io/basic_ostream/inserters_character/char/5.cc: New.
* 27_io/basic_ostream/inserters_character/char/6.cc: New.
* 27_io/basic_ostream/inserters_character/char/8.cc: New.
* 27_io/basic_ostream/inserters_character/wchar_t/7.cc: New.
* 27_io/basic_ostream/inserters_character/wchar_t/8.cc: New.
* 27_io/basic_ostream/inserters_other/char/1.cc: New.
* 27_io/basic_ostream/inserters_other/char/2.cc: New.
* 27_io/basic_ostream/inserters_other/char/3.cc: New.
* 27_io/basic_ostream/inserters_other/char/4.cc: New.
* 27_io/basic_ostream/inserters_other/char/9318-out.cc: New.
* 27_io/basic_ostream/inserters_other/char/9424-out.cc: New.
* 27_io/basic_ostream/sentry/char/1.cc: New.
* 27_io/basic_ostream/sentry/char/2.cc: New.
* 27_io/basic_ostream/sentry/char/3983-fstream.cc: New.
* 27_io/basic_ostream/sentry/char/3983-sstream.cc: New.
* 27_io/basic_ostream/tellp/char/1.cc: New.
* 27_io/basic_ostream/tellp/char/2.cc: New.
* 27_io/basic_ostringstream/1.cc: New.
* 27_io/basic_ostringstream/2.cc: New.
* 27_io/basic_ostringstream/3.cc: New.
* 27_io/basic_ostringstream/4.cc: New.
* 27_io/basic_ostringstream/cons/char/3.cc: New.
* 27_io/basic_ostringstream/rdbuf/char/2832.cc: New.
* 27_io/basic_ostringstream/str/char/1.cc: New.
* 27_io/basic_ostringstream/str/char/2.cc: New.
* 27_io/basic_streambuf/1.cc: New.
* 27_io/basic_streambuf/2.cc: New.
* 27_io/basic_streambuf/3.cc: New.
* 27_io/basic_streambuf/cons/char/1.cc: New.
* 27_io/basic_streambuf/imbue/char/1.cc: New.
* 27_io/basic_streambuf/imbue/char/9322.cc: New.
* 27_io/basic_streambuf/overflow/char/1.cc: New.
* 27_io/basic_streambuf/overflow/char/2.cc: New.
* 27_io/basic_streambuf/overflow/char/3599.cc: New.
* 27_io/basic_streambuf/sgetc/char/1.cc: New.
* 27_io/basic_streambuf/sgetn/char/1.cc: New.
* 27_io/basic_streambuf/sputbackc/char/9538.cc: New.
* 27_io/basic_streambuf/sputc/char/1057.cc: New.
* 27_io/basic_streambuf/sputn/char/1.cc: New.
* 27_io/basic_streambuf/sputn/char/1057.cc: New.
* 27_io/basic_streambuf/sync/char/1057.cc: New.
* 27_io/basic_stringbuf/1.cc: New.
* 27_io/basic_stringbuf/2.cc: New.
* 27_io/basic_stringbuf/3.cc: New.
* 27_io/basic_stringbuf/4.cc: New.
* 27_io/basic_stringbuf/5.cc: New.
* 27_io/basic_stringbuf/imbue/char/1.cc: New.
* 27_io/basic_stringbuf/imbue/char/9322.cc: New.
* 27_io/basic_stringbuf/in_avail/char/1.cc: New.
* 27_io/basic_stringbuf/overflow/char/2.cc: New.
* 27_io/basic_stringbuf/overflow/char/3599.cc: New.
* 27_io/basic_stringbuf/overflow/char/9988.cc: New.
* 27_io/basic_stringbuf/sbumpc/char/1.cc: New.
* 27_io/basic_stringbuf/sbumpc/char/9825.cc: New.
* 27_io/basic_stringbuf/seekoff/char/1.cc: New.
* 27_io/basic_stringbuf/seekoff/char/2.cc: New.
* 27_io/basic_stringbuf/seekpos/char/1.cc: New.
* 27_io/basic_stringbuf/seekpos/char/2.cc: New.
* 27_io/basic_stringbuf/setbuf/char/1.cc: New.
* 27_io/basic_stringbuf/setbuf/char/2.cc: New.
* 27_io/basic_stringbuf/setbuf/char/3.cc: New.
* 27_io/basic_stringbuf/sgetc/char/1.cc: New.
* 27_io/basic_stringbuf/sgetn/char/1.cc: New.
* 27_io/basic_stringbuf/snextc/char/1.cc: New.
* 27_io/basic_stringbuf/sputbackc/char/1.cc: New.
* 27_io/basic_stringbuf/sputbackc/char/9425.cc: New.
* 27_io/basic_stringbuf/sputc/char/1.cc: New.
* 27_io/basic_stringbuf/sputc/char/1057.cc: New.
* 27_io/basic_stringbuf/sputc/char/9404-1.cc: New.
* 27_io/basic_stringbuf/sputn/char/1.cc: New.
* 27_io/basic_stringbuf/sputn/char/1057.cc: New.
* 27_io/basic_stringbuf/sputn/char/9404-2.cc: New.
* 27_io/basic_stringbuf/str/char/1.cc: New.
* 27_io/basic_stringbuf/str/char/2.cc: New.
* 27_io/basic_stringbuf/str/char/3.cc: New.
* 27_io/basic_stringbuf/str/char/3955.cc: New.
* 27_io/basic_stringbuf/sungetc/char/1.cc: New.
* 27_io/basic_stringbuf/sync/char/1057.cc: New.
* 27_io/basic_stringstream/1.cc: New.
* 27_io/basic_stringstream/2.cc: New.
* 27_io/basic_stringstream/3.cc: New.
* 27_io/basic_stringstream/4.cc: New.
* 27_io/basic_stringstream/rdbuf/char/2832.cc: New.
* 27_io/basic_stringstream/str/char/1.cc: New.
* 27_io/basic_stringstream/str/char/2.cc: New.
* 27_io/basic_stringstream/str/char/3.cc: New.
* 27_io/basic_stringstream/str/char/4.cc: New.
* 27_io/fpos/1.cc: New.
* 27_io/fpos/2.cc: New.
* 27_io/fpos/3.cc: New.
* 27_io/ios_base/callbacks/1.cc: New.
* 27_io/ios_base/state/1.cc: New.
* 27_io/ios_base/storage/1.cc: New.
* 27_io/ios_base/storage/2.cc: New.
* 27_io/ios_base/storage/3.cc: New.
* 27_io/ios_base/sync_with_stdio/1.cc: New.
* 27_io/ios_base/sync_with_stdio/2.cc: New.
* 27_io/manipulators/adjustfield/char/1.cc: New.
* 27_io/manipulators/adjustfield/char/2.cc: New.
* 27_io/manipulators/basefield/char/1.cc: New.
* 27_io/manipulators/standard/char/1.cc: New.
* 27_io/manipulators/standard/char/2.cc: New.
* 27_io/objects/char/1.cc: New.
* 27_io/objects/char/2.cc: New.
* 27_io/objects/char/2523-1_xin.cc: New.
* 27_io/objects/char/2523-1_xin.in: New.
* 27_io/objects/char/2523-2_xin.cc: New.
* 27_io/objects/char/2523-2_xin.in: New.
* 27_io/objects/char/3045.cc: New.
* 27_io/objects/char/3647.cc: New.
* 27_io/objects/char/3_xin.cc: New.
* 27_io/objects/char/3_xin.in: New.
* 27_io/objects/char/4_xin.cc: New.
* 27_io/objects/char/4_xin.in: New.
* 27_io/objects/char/5268.cc: New.
* 27_io/objects/char/5280_xin.cc: New.
* 27_io/objects/char/5280_xin.in: New.
* 27_io/objects/char/6548_xin.cc: New.
* 27_io/objects/char/6548_xin.in: New.
* 27_io/objects/char/6648-1_xin.cc: New.
* 27_io/objects/char/6648-1_xin.in: New.
* 27_io/objects/char/6648-2_xin.cc: New.
* 27_io/objects/char/6648-2_xin.in: New.
* 27_io/objects/char/7744_xin.cc: New.
* 27_io/objects/char/7744_xin.in: New.
* 27_io/objects/wchar_t/1.cc: New.
* 27_io/types/1.cc: New.
* 27_io/types/2.cc: New.
* data/filebuf_members-1.tst: New.
* data/filebuf_members-1.txt: New.
* data/filebuf_virtuals-1.tst: New.
* data/filebuf_virtuals-1.txt: New.
* data/filebuf_virtuals-2.tst: New.
* data/filebuf_virtuals-3.tst: New.
* data/ifstream_members-1.tst: New.
* data/ifstream_members-1.txt: New.
* data/ios_base_members_static-1.tst: New.
* data/istream_extractor_other-1.tst: New.
* data/istream_extractor_other-1.txt: New.
* data/istream_extractor_other-2.tst: New.
* data/istream_seeks-1.tst: New.
* data/istream_seeks-1.txt: New.
* data/istream_seeks-2.tst: New.
* data/istream_seeks-3.tst: New.
* data/istream_unformatted-1.tst: New.
* data/istream_unformatted-1.txt: New.
* data/ofstream_members-1.tst: New.
* data/ostream_inserter_char-1.tst: New.
* data/ostream_inserter_char-1.txt: New.
* data/ostream_inserter_other-1.tst: New.
* data/ostream_inserter_other-2.tst: New.
* data/ostream_seeks-1.tst: New.
2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/sstream.tcc (basic_stringbuf::seekpos): Remove
requirement that __mode must be strict input or output.
* include/std/std_streambuf.h (basic_streambuf::setp): Set
_M_out_lim.
* include/std/std_sstream.h (basic_strinbuf::str): Zero length
output string shouldn't core.
(basic_stringbuf::_M_really_sync): Add base argument. Remove rturn
type.
* include/bits/sstream.tcc: Adjust _M_really_sync bits here.
* include/bits/istream.tcc (basic_istream::putback): Set gcount to
zero.
2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/data: New directory.
* testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
to copy files from the testsuite data directory.
(libstdc++-v3-list-sourcefiles): Add another test list filter, for
testfiles containing _xin, which now means this is an interactive
test and should be run with the interactive dejagnu hooks.
* testsuite/Makefile.am: Remove testsuite_* files.
* testsuite/Makefile.in: Regenerate.
From-SVN: r65421
2003-04-10 07:15:40 +00:00
GCC Administrator
2363a51aee
Daily bump.
...
From-SVN: r65418
2003-04-10 00:17:08 +00:00
GCC Administrator
5f7505af23
Daily bump.
...
From-SVN: r65394
2003-04-09 00:17:13 +00:00
Alexandre Oliva
e9fcab6251
sstream.tcc (overflow): Make sure operands of min and max have the same type.
...
* include/bits/sstream.tcc (overflow): Make sure operands of min
and max have the same type.
From-SVN: r65368
2003-04-08 12:03:26 +00:00
GCC Administrator
12031a6266
Daily bump.
...
From-SVN: r65361
2003-04-08 00:17:08 +00:00
GCC Administrator
4877d67e3b
Daily bump.
...
From-SVN: r65317
2003-04-07 00:18:14 +00:00
GCC Administrator
73205f20af
Daily bump.
...
From-SVN: r65287
2003-04-06 00:17:09 +00:00
GCC Administrator
9942dbe230
Daily bump.
...
From-SVN: r65262
2003-04-05 00:17:34 +00:00
GCC Administrator
26ec28e403
Daily bump.
...
From-SVN: r65224
2003-04-04 00:17:04 +00:00
GCC Administrator
63dfa9bb2a
Daily bump.
...
From-SVN: r65189
2003-04-03 00:17:06 +00:00
GCC Administrator
5b64bfc45b
Daily bump.
...
From-SVN: r65157
2003-04-02 00:17:07 +00:00
GCC Administrator
6fa91a1d0b
Daily bump.
...
From-SVN: r65125
2003-04-01 00:17:06 +00:00
Paolo Carlini
eb98bd16ce
std_streambuf.h (_M_out_buf_size()): Remove.
...
2003-03-31 Paolo Carlini <pcarlini@unitus.it>
* include/std/std_streambuf.h (_M_out_buf_size()): Remove.
* include/bits/fstream.tcc (_M_allocate_internal_buffer):
Don't set _M_out_end.
(basic_filebuf::overflow): Replace _M_out_buf_size() with
this->_M_out_cur && this->_M_out_cur < this->_M_out_end.
* include/bits/sstream.tcc (basic_stringbuf::overflow):
Replace _M_out_buf_size() with this->_M_out_cur < this->_M_out_end;
* include/bits/streambuf.tcc (basic_streambuf::sputc):
Replace _M_out_buf_size() with _M_out_cur && _M_out_cur < _M_out_end.
(basic_streambuf::xsputn): Replace _M_out_buf_size() with
_M_out_end - _M_out_cur.
(__copy_streambufs): Likewise.
* include/std/std_fstream.h (_M_set_determinate): Set
_M_out_end here.
From-SVN: r65093
2003-03-31 18:24:13 +00:00
GCC Administrator
bd3f840c72
Daily bump.
...
From-SVN: r65069
2003-03-31 00:17:04 +00:00
Paolo Carlini
631693d58d
fstream.tcc (basic_filebuf::showmanyc, [...]): Fix test for synced buffer.
...
2003-03-30 Paolo Carlini <pcarlini@unitus.it>
* include/bits/fstream.tcc (basic_filebuf::showmanyc,
_M_convert_to_external, _M_really_overflow, seekoff): Fix
test for synced buffer.
* include/std/std_fstream.h (sync): Likewise.
* src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
basic_filebuf<wchar_t>::_M_underflow_common): Likewise.
From-SVN: r65038
2003-03-30 08:32:11 +00:00
GCC Administrator
59ee40a472
Daily bump.
...
From-SVN: r65032
2003-03-30 00:17:05 +00:00
GCC Administrator
f7b4bc4d8f
Daily bump.
...
From-SVN: r65004
2003-03-29 00:17:06 +00:00
Benjamin Kosnik
d29cc32f9d
std_sstream.h (basic_istringstream): Adjust initialization.
...
2003-03-28 Benjamin Kosnik <bkoz@redhat.com>
* include/std/std_sstream.h (basic_istringstream): Adjust
initialization.
(basic_ostringstream): Same.
(basic_stringstream): Same.
* include/std/std_fstream.h (basic_ifstream): Adjust initialization.
(basic_ofstream): Same.
(basic_fstream): Same.
* include/std/std_ostream.h (basic_ostrem): Add protected ctor
that does not call init.
* include/std/std_istream.h (basic_istream): Same.
(basic_iostream): Construct istream, ostream uninitialized, use
init to initialize just once. Add protected ctor that does not
call init.
From-SVN: r64980
2003-03-28 19:45:44 +00:00
Paolo Carlini
bbacb998c8
re PR libstdc++/9533 (Can't read from tty with ifstream)
...
2003-03-28 Paolo Carlini <pcarlini@unitus.it>
Nathan Myers <ncm@cantrip.org>
PR libstdc++/9533
* include/bits/fstream.tcc (basic_filebuf<>::open): Don't
call underflow().
(basic_filebuf<>::showmanyc): Use the information provided
by codecvt and __basic_file<>::showmanyc_helper to implement
a non-trivial showmanyc.
* config/io/basic_file_stdio.h
(__basic_file<>::showmanyc_helper): New, declare.
* config/io/basic_file_stdio.cc
(__basic_file<>::showmanyc_helper): Define.
(__basic_file<>::_M_open_mode): Don't set O_NONBLOCK.
(__basic_file<char>::open): Don't call fcntl().
* acinclude.m4 (GLIBCPP_CHECK_S_ISREG_OR_S_IFREG,
GLIBCPP_CHECK_POLL): New macros.
* configure.in: Call here.
* acconfig.h: Add #undefs for the corresponding symbols.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* config.h.in: Regenerate.
Co-Authored-By: Nathan Myers <ncm@cantrip.org>
From-SVN: r64978
2003-03-28 18:28:47 +00:00
GCC Administrator
36875565eb
Daily bump.
...
From-SVN: r64944
2003-03-28 00:17:35 +00:00
GCC Administrator
57eb75f2bb
Daily bump.
...
From-SVN: r64916
2003-03-27 00:17:08 +00:00
GCC Administrator
dd68e5cd1f
Daily bump.
...
From-SVN: r64882
2003-03-26 00:17:03 +00:00
GCC Administrator
9469fe1512
Daily bump.
...
From-SVN: r64835
2003-03-25 00:17:35 +00:00
GCC Administrator
fc3703e35c
Daily bump.
...
From-SVN: r64769
2003-03-24 00:17:06 +00:00
GCC Administrator
086bfb7a46
Daily bump.
...
From-SVN: r64735
2003-03-23 00:17:06 +00:00
Jerry Quinn
442c0874ea
re PR libstdc++/5730 (complex<double>::norm() -- huge slowdown from egcs-2.91.66)
...
2003-03-21 Jerry Quinn <jlquinn@optonline.net>
PR libstdc++/5730
* include/bits/c++config (_GLIBCPP_FAST_MATH): Define.
* include/std/std_complex.h (norm): Use faster,
less accurate computation for builtin float types under --fast-math.
From-SVN: r64701
2003-03-22 04:57:46 +00:00
GCC Administrator
b276402eea
Daily bump.
...
From-SVN: r64697
2003-03-22 00:17:06 +00:00
GCC Administrator
03c1f6a3ea
Daily bump.
...
From-SVN: r64642
2003-03-21 00:17:09 +00:00
GCC Administrator
7e9268dbee
Daily bump.
...
From-SVN: r64603
2003-03-20 00:17:13 +00:00
GCC Administrator
c59fca5992
Daily bump.
...
From-SVN: r64563
2003-03-19 00:17:16 +00:00
GCC Administrator
d4e9427174
Daily bump.
...
From-SVN: r64517
2003-03-18 00:17:13 +00:00
Benjamin Kosnik
0c45b8e073
[multiple changes]
...
2003-03-17 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/Makefile.am (CLEANFILES): Add tmp*.
* testsuite/Makefile.in: Regenerate.
* testsuite/27_io/filebuf_members.cc: Consistently name tmp files.
Cleanups.
2003-03-17 Petur Runolfsson <peturr02@ru.is>
PR libstdc++/9964
* include/bits/fstream.tcc (basic_filebuf::close):
Always close file, even when write fails.
* testsuite/27_io/filebuf_members.cc (test_07): New test.
From-SVN: r64498
2003-03-17 18:44:44 +00:00
GCC Administrator
01cca2d84d
Daily bump.
...
From-SVN: r64460
2003-03-17 00:17:42 +00:00
GCC Administrator
95101abf4b
Daily bump.
...
From-SVN: r64427
2003-03-16 00:17:11 +00:00
GCC Administrator
af2e51f395
Daily bump.
...
From-SVN: r64385
2003-03-15 00:17:09 +00:00
Benjamin Kosnik
628c731a48
stdc++.h: New.
...
2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
* include/stdc++.h: New.
* libsupc++/exception_defines.h (__EXCEPTION_DEFINES_H): Add guard.
* include/Makefile.am (stamp-std-precompile): Generate stdc++.h.gch
* include/Makefile.in: Regenerate.
* testsuite_flags.in (--build-cxx): Add, but don't use PCHFLAGS.
(--cxxflags): Put -g -O2 here.
* testsuite/libstdc++-v3.dg/dg.exp: Remove -g -O2 here.
From-SVN: r64374
2003-03-14 22:16:06 +00:00
GCC Administrator
7733611d0c
Daily bump.
...
From-SVN: r64345
2003-03-14 00:17:40 +00:00
GCC Administrator
4cc819ab05
Daily bump.
...
From-SVN: r64280
2003-03-13 00:17:09 +00:00
GCC Administrator
b97dbcff50
Daily bump.
...
From-SVN: r64208
2003-03-12 00:17:05 +00:00
Carlo Wood
1be4def3c6
demangle.h: Prepend accessors of class qualifier with 'get_' in order to fix warnings when...
...
2003-03-11 Carlo Wood <carlo@alinoe.com>
* include/bits/demangle.h: Prepend accessors of
class qualifier with 'get_' in order to fix warnings
when compiling with -Wshadow.
From-SVN: r64172
2003-03-11 13:48:16 +00:00
GCC Administrator
3c6a9be30f
Daily bump.
...
From-SVN: r64153
2003-03-11 00:17:05 +00:00
GCC Administrator
a3b3d76f93
Daily bump.
...
From-SVN: r64062
2003-03-10 00:17:09 +00:00
Paolo Carlini
95dca20c9c
re PR libstdc++/7744 (streambuf::in_avail() always returns 0 (zero) for cin input stream)
...
2003-03-09 Paolo Carlini <pcarlini@unitus.it>
Nathan Myers <ncm@cantrip.org>
PR libstdc++/7744
* config/io/basic_file_stdio.h (__basic_file<>::xsgetn, xsputn,
seekoff, seekpos): Add a boolean parameter __stdio.
* config/io/basic_file_stdio.cc (__basic_file<>::xsgetn, xsputn,
seekoff, seekpos): If __stdio == true, use fread (fwrite, fseek/ftell,
fseek/ftell, respectively), otherwise read (write, lseek, lseek,
respectively).
* include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external,
_M_really_overflow, seekoff): Use the boolean parameter in the calls.
* include/std/std_fstream.h (sync): Likewise.
* src/fstream.cc (basic_filebuf<>::_M_underflow_common): Likewise.
* src/ios.cc (ios_base::Init::_S_ios_create(bool)): Revert libstdc++/8399
commit involving isatty(0).
* acinclude.m4 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): Remove.
(GLIBCPP_CHECK_UNISTD_SUPPORT): Remove
* configure.in: Remove call.
* aclocal.m4: Regenerate.
* config.h.in: Regenerate.
* configure: Regenerate.
* testsuite/27_io/narrow_stream_objects.cc (test11): Add.
Co-Authored-By: Nathan Myers <ncm@cantrip.org>
From-SVN: r64051
2003-03-09 22:31:45 +00:00
Paolo Carlini
3006d72869
re PR libstdc++/9988 (filebuf::overflow writes EOF to file)
...
2003-03-09 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/9988
* include/bits/fstream.tcc (overflow): don't write EOF to file.
* testsuite/27_io/filebuf_virtuals.cc (test15): Add.
From-SVN: r64045
2003-03-09 21:35:09 +00:00
Jerry Quinn
6f62fbd81a
re PR libstdc++/9561 (ostream inserters rethrow exception of wrong type)
...
2003-03-08 Jerry Quinn <jlquinn@optonline.net>
PR libstdc++/9561
* include/bits/basic_ios.h (_M_setstate): New.
* include/bits/ostream.tcc (operator<<): Use it.
* include/bits/istream.tcc (operator>>): Use it.
* include/std/std_ostream.h (operator<<): Make friends.
* include/std/std_istream.h (operator>>): Make friends.
* testsuite/27_io/ostream_exception.cc,
testsuite/27_io/istream_exception.cc: New tests.
From-SVN: r64021
2003-03-09 04:19:52 +00:00
GCC Administrator
9e4d15f481
Daily bump.
...
From-SVN: r64011
2003-03-09 00:17:04 +00:00
Benjamin Kosnik
6fef42173f
locale_facets.tcc: Fix typo.
...
2003-03-08 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/locale_facets.tcc: Fix typo.
From-SVN: r63976
2003-03-08 09:11:04 +00:00
Paolo Carlini
feecf61403
re PR libstdc++/9424 (i/ostream::operator>>/<<(streambuf*) drops characters)
...
2003-03-08 Paolo Carlini <pcarlini@unitus.it>
Petur Runolfsson <peturr02@ru.is>
PR libstdc++/9424
* include/bits/streambuf.tcc (__copy_streambufs): Use
sgetn-sputn only when sputn cannot fail, otherwise fall back
to safe snextc-sputc.
* testsuite/27_io/streambuf_members.cc (test11, test12): Add.
Co-Authored-By: Petur Runolfsson <peturr02@ru.is>
From-SVN: r63974
2003-03-08 08:16:06 +00:00
Jerry Quinn
611db4979a
locale_facets.tcc (num_put::do_put(bool)): Use locale cache for truename and falsename.
...
2003-03-08 Jerry Quinn <jlquinn@optonline.net>
* include/bits/locale_facets.tcc (num_put::do_put(bool)): Use
locale cache for truename and falsename.
From-SVN: r63970
2003-03-08 06:28:20 +00:00
GCC Administrator
149904b58f
Daily bump.
...
From-SVN: r63962
2003-03-08 00:17:04 +00:00
Paolo Carlini
9a97e40ae1
fstream.tcc (_M_convert_to_external): Set __elen to zero if codecvt::out eventually fails.
...
2003-03-07 Paolo Carlini <pcarlini@unitus.it>
* include/bits/fstream.tcc (_M_convert_to_external):
Set __elen to zero if codecvt::out eventually fails.
From-SVN: r63954
2003-03-07 22:20:18 +00:00
Paolo Carlini
1deba98bd2
re PR libstdc++/9182 (basic_filebuf<> does not report errors in codecvt<>::out)
...
2003-03-07 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/9182
* include/bits/fstream.tcc (_M_really_overflow): Check
for _M_convert_to_external possible failures.
* include/std/std_fstream.h (sync): Check _M_really_overflow
return value and return -1 in case of failure.
* testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add.
2003-03-07 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/9826
* include/bits/istream.tcc (operator>>(_CharT*),
operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
* testsuite/27_io/stringstream.cc (test02): Add.
* include/bits/istream.tcc (operator>>(_CharT*)):
Assign a char_type to *__s.
From-SVN: r63953
2003-03-07 22:06:28 +00:00
Petur Runolfsson
5040d6912c
re PR libstdc++/9817 (collate::compare doesn't handle nul characters.)
...
2003-03-07 Petur Runolfsson <peturr02@ru.is>
PR libstdc++/9817
* include/bits/locale_facets.tcc
(collate::do_compare, collate::do_transform):
Handle nul characters in input.
* testsuite/22_locale/collate/compare/char/3.cc: New test.
* testsuite/22_locale/collate/compare/wchar_t/3.cc: New test.
* testsuite/22_locale/collate/transform/char/3.cc: New test.
* testsuite/22_locale/collate/transform/wchar_t/3.cc: New test.
From-SVN: r63946
2003-03-07 17:24:47 +00:00
Jerry Quinn
53279c104f
streambuf_iterator.h (_M_put): Set _M_failed if sputn fails.
...
2003-03-07 Jerry Quinn <jlquinn@optonline.net>
* include/bits/streambuf_iterator.h (_M_put): Set _M_failed if
sputn fails.
* testsuite/27_io/ostream_fail.cc: New test.
From-SVN: r63944
2003-03-07 14:14:11 +00:00
GCC Administrator
006425bff5
Daily bump.
...
From-SVN: r63922
2003-03-07 00:17:05 +00:00
GCC Administrator
99a86ee1e2
Daily bump.
...
From-SVN: r63881
2003-03-06 00:17:07 +00:00
Alexandre Oliva
dd6eaaed37
strstream.cc, [...]: Remove incorrect whitespace added in my previous change.
...
* src/strstream.cc, include/bits/basic_string.tcc: Remove
incorrect whitespace added in my previous change.
From-SVN: r63869
2003-03-05 22:24:56 +00:00
Carlo Wood
0530d3b00b
ios_base.h (ios_base::Init::_S_initialized()): Added _S_initialized() in order to allow debugging libraries to detect when...
...
2003-03-05 Carlo Wood <carlo@alinoe.com>
* include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
_S_initialized() in order to allow debugging libraries to detect
when the std streams are initialized from an overloaded operator
new.
From-SVN: r63852
2003-03-05 18:53:18 +00:00
Benjamin Kosnik
83e924e101
demangle.h: Move to..
...
2003-03-05 Benjamin Kosnik <bkoz@redhat.com>
* libsupc++/demangle.h: Move to..
* include/bits/demangle.h: ...here.
* src/demangle.cc: Adjust include.
* include/Makefile.am (bits_headers): Add.
* include/Makefile.in: Regenerate.
From-SVN: r63851
2003-03-05 17:57:52 +00:00
GCC Administrator
75d8f260df
Daily bump.
...
From-SVN: r63821
2003-03-05 00:17:14 +00:00
Alexandre Oliva
1a8f10da2c
strstream.cc (strstreambuf::overflow): Make sure operands of min and max have the same type.
...
* src/strstream.cc (strstreambuf::overflow): Make sure operands of
min and max have the same type.
* include/bits/basic_string.tcc (append, rfind, compare): Likewise.
From-SVN: r63802
2003-03-04 21:21:44 +00:00
Benjamin Kosnik
6b919a8ab9
Makefile.am (allstamps): Remove stamp-std-precompile.
...
2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
* include/Makefile.am (allstamps): Remove stamp-std-precompile.
* include/Makefile.in: Regenerate.
From-SVN: r63787
2003-03-04 16:22:17 +00:00
Benjamin Kosnik
3a15abf155
abi_check.cc (report_symbol_info): Add version info.
...
2003-03-03 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/abi_check.cc (report_symbol_info): Add version info.
* config/linker-map.gnu: Hide more stuff.
* include/Makefile.am: Cleanups.
* include/Makefile.in: Regenerate.
From-SVN: r63764
2003-03-04 05:23:56 +00:00
GCC Administrator
f06e42d6a0
Daily bump.
...
From-SVN: r63751
2003-03-04 00:17:04 +00:00
GCC Administrator
90d86c43f3
Daily bump.
...
From-SVN: r63712
2003-03-03 00:17:04 +00:00
GCC Administrator
d457094cc1
Daily bump.
...
From-SVN: r63643
2003-03-02 00:17:03 +00:00
GCC Administrator
d5b11fba00
Daily bump.
...
From-SVN: r63597
2003-03-01 00:17:22 +00:00
GCC Administrator
c5cf6d7d48
Daily bump.
...
From-SVN: r63539
2003-02-28 00:17:06 +00:00
GCC Administrator
f50e2df291
Daily bump.
...
From-SVN: r63497
2003-02-27 00:17:03 +00:00
GCC Administrator
61ba356a99
Daily bump.
...
From-SVN: r63440
2003-02-26 00:17:03 +00:00
Phil Edwards
bd2726e0ca
Intro.3: Update with new (proper) names.
...
2003-02-25 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/Intro.3: Update with new (proper) names.
* docs/doxygen/TODO: Update.
* docs/doxygen/run_doxygen: More comments, fix up man pages.
Fake entries for standard typedefs.
* docs/doxygen/user.cfg.in: Turn INLINE_INHERITED_MEMB back on.
* docs/html/documentation.html: Top-level man page is now called
C++Intro.
* include/std/std_limits.h: Doxygenate.
From-SVN: r63433
2003-02-26 00:02:16 +00:00
Scott Snyder
63b1a6ba01
re PR libstdc++/9811 (incorrect documentation for std::map::lower_bound, etc.)
...
2003-02-25 Scott Snyder <snyder@fnal.gov>
PR libstdc++/9811
* include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
Correct documentation.
* include/bits/stl_multimap.h (lower_bound, upper_bound,
equal_range): Likewise.
From-SVN: r63396
2003-02-25 06:27:10 +00:00
GCC Administrator
bacbf39910
Daily bump.
...
From-SVN: r63392
2003-02-25 00:17:06 +00:00
Paolo Carlini
391cd0955e
PR libstdc++/9404, PR libstdc++/9701 (partial)
...
2003-02-24 Paolo Carlini <pcarlini@unitus.it>
Nathan Myers <ncm@cantrip.org>
PR libstdc++/9404, PR libstdc++/9701 (partial)
(aka pptr == epptr implies overflow)
* include/bits/fstream.tcc (_M_allocate_internal_buffer):
Consistently, _M_out_end points to the end of the buffer just
created.
(overflow): Tweak to use _M_out_buf_size().
(_M_convert_to_external): The role of the old _M_out_end is
now played by _M_out_lim.
(_M_really_overflow): Likewise.
(seekoff): Likewise.
(setbuf): _M_out_end points to the end of the external buffer.
* include/bits/sstream.tcc (overflow): Rewrote, taking into
account the resolution of DR 169 (TC).
(seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
(seekpos): Use _M_string.capacity(); tweak.
* include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
* include/std/std_fstream.h (sync): The role of the old
_M_out_end is now played by _M_out_lim.
(_M_set_indeterminate): Use _M_set_determinate.
(_M_set_determinate): _M_out_end is now _M_out_lim.
(_M_is_indeterminate): Likewise.
* include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
(_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
which have the information readily available as _M_string.capacity();
for ate and app modes, pass the string size to _M_really_sync.
(_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
point to the end of the buffer (i.e., epptr) and to the string end,
respectively.
* include/std/std_streambuf.h: tweak comments, add _M_out_lim,
which points to the right limit of the used put area.
(_M_out_cur_move): The role of the old _M_out_end is now played
by _M_out_lim.
(_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
_M_out_end - _M_out_cur (i.e., pptr), _very_ close to the letter
of the standard.
(basic_streambuf()): Initialize _M_out_lim too.
* testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
* testsuite/27_io/filebuf_virtuals.cc (test11): Add.
* testsuite/27_io/stringbuf_virtuals.cc (test09): Add.
Co-Authored-By: Nathan Myers <ncm@cantrip.org>
From-SVN: r63367
2003-02-24 18:22:58 +00:00
GCC Administrator
6ecc7b8ffd
Daily bump.
...
From-SVN: r63347
2003-02-24 00:17:04 +00:00
GCC Administrator
185e2e1315
Daily bump.
...
From-SVN: r63312
2003-02-23 00:17:03 +00:00
GCC Administrator
6a6d417ebd
Daily bump.
...
From-SVN: r63262
2003-02-22 00:17:07 +00:00
Jerry Quinn
d77478a5e5
locale_facets.tcc (_M_convert_float): Replace numpunct facet accesses with data from __locale_cache.
...
2003-02-21 Jerry Quinn <jlquinn@optonline.net>
* include/bits/locale_facets.tcc (_M_convert_float): Replace
numpunct facet accesses with data from __locale_cache.
From-SVN: r63213
2003-02-21 08:34:18 +00:00
GCC Administrator
763b929241
Daily bump.
...
From-SVN: r63196
2003-02-21 00:17:07 +00:00
Paolo Carlini
c85dca2816
sstream.tcc (overflow): According to 27.7.1.3, p5, actual output is performed by sputc(c).
...
2003-02-19 Paolo Carlini <pcarlini@unitus.it>
* include/bits/sstream.tcc (overflow): According to
27.7.1.3, p5, actual output is performed by sputc(c).
From-SVN: r63147
2003-02-20 00:55:45 +00:00
GCC Administrator
7b616a297c
Daily bump.
...
From-SVN: r63144
2003-02-20 00:17:05 +00:00
Phil Edwards
41662dbb4e
re PR libstdc++/9582 (ODR violation in std::allocator)
...
2003-02-19 Phil Edwards <pme@gcc.gnu.org>
PR libstdc++/9582
* include/bits/stl_alloc.h: Remove all traces of assert().
From-SVN: r63136
2003-02-20 00:11:43 +00:00
GCC Administrator
35bd551997
Daily bump.
...
From-SVN: r63076
2003-02-19 00:17:34 +00:00
Paolo Carlini
de59bd27dc
std_sstream.h (str()): the size of the current string may be different from the initial one whenever...
...
2003-02-18 Paolo Carlini <pcarlini@unitus.it>
* include/std/std_sstream.h (str()): the size of the
current string may be different from the initial one
whenever _M_out_end > _M_out_beg.
* testsuite/27_io/stringbuf_members.cc (test07): Add.
From-SVN: r63066
2003-02-18 23:26:32 +00:00
Paolo Carlini
14a65f50b0
re PR libstdc++/9582 (ODR violation in std::allocator)
...
2003-02-18 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/9582
* include/bits/stl_alloc.h (__pool_alloc::allocate):
Remove assert.
From-SVN: r63031
2003-02-18 10:54:37 +00:00
Benjamin Kosnik
6067bea410
[multiple changes]
...
2003-02-17 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
* testsuite/27_io/ios_members.cc (test03): New.
2003-02-17 Jerry Quinn <jlquinn@optonline.net>
* include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
(basic_ios::_M_cache_facets): Move into above.
* include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
cache.
(basic_ios::imbue): Force locale cache to be built.
(basic_ios::_M_init): Create and initialize locale cache.
* include/bits/ios_base.h (__locale_cache_base): Declare.
(ios_base::_M_locale_cache): New.
(ios_base::_M_cache): Define.
* include/bits/locale_facets.h: (__num_base): Fix comment. Add
_S_end.
(__locale_cache_base,__locale_cache<_CharT>): New classes.
(__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
* include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
cache literal string, grouping flag, thousands separator.
(__locale_cache<_CharT>::__locale_cache): New.
(__locale_cache<_CharT>::_M_init): New.
(__locale_cache<_CharT>::_M_populate): New.
* src/ios.cc: Clear _M_locale_cache in constructor.
* src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
New.
From-SVN: r63025
2003-02-18 05:45:07 +00:00
GCC Administrator
5b0512df31
Daily bump.
...
From-SVN: r63023
2003-02-18 00:17:05 +00:00
Paolo Carlini
1a1aed2466
re PR libstdc++/9580 (basic_filebuf<> with custom traits_type fails to link)
...
2003-02-17 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/9580
* include/std/std_fstream.h: Declare underflow and uflow
specializations, change generic definitions to do nothing.
* src/fstream.cc: Add underflow and uflow specializations.
From-SVN: r63008
2003-02-17 20:07:48 +00:00
Paolo Carlini
130cd3e1df
re PR libstdc++/9169 (filebuf output fails if codecvt<>::out returns noconv)
...
2003-02-17 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/9169
* include/bits/fstream.tcc (_M_convert_to_external):
Deal correctly with noconv, as prescribed by 27.8.1.4,p8.
* testsuite/27_io/filebuf_virtuals.cc (test10): Add.
From-SVN: r63004
2003-02-17 19:05:01 +00:00
GCC Administrator
7a01761009
Daily bump.
...
From-SVN: r62995
2003-02-17 00:17:03 +00:00
GCC Administrator
a7075aea58
Daily bump.
...
From-SVN: r62954
2003-02-16 00:17:03 +00:00
GCC Administrator
b62b6de0cd
Daily bump.
...
From-SVN: r62931
2003-02-15 00:17:03 +00:00
GCC Administrator
684b92c740
Daily bump.
...
From-SVN: r62885
2003-02-14 00:17:06 +00:00
Benjamin Kosnik
1bc8b0ad4e
c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
...
2003-02-13 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
* include/bits/basic_ios.tcc: Guard use of extern template.
* include/std/std_iomanip.h: Same.
* include/bits/streambuf.tcc: Same.
* include/bits/stl_alloc.h: Same.
* include/bits/locale_facets.tcc: Same.
* include/bits/ostream.tcc: Same.
* include/bits/istream.tcc: Same.
* include/bits/fstream.tcc: Same.
* include/bits/basic_string.tcc: Same.
From-SVN: r62865
2003-02-13 21:39:03 +00:00
Paolo Carlini
b7bb6d4a6a
ostream.tcc (sentry::sentry): Improve performance-wise the fix for libstdc++/9563.
...
2003-02-13 Paolo Carlini <pcarlini@unitus.it>
* include/bits/ostream.tcc (sentry::sentry): Improve
performance-wise the fix for libstdc++/9563.
From-SVN: r62855
2003-02-13 17:43:58 +00:00
GCC Administrator
e3c3342556
Daily bump.
...
From-SVN: r62809
2003-02-13 00:17:06 +00:00
Paolo Carlini
ff5d863fc2
re PR libstdc++/9563 (ostream::sentry returns true after a failed preparation)
...
2003-02-12 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/9563
* include/bits/ostream.tcc (sentry::sentry): Check
the state of the stream after the preparation.
* testsuite/27_io/ostream_sentry.cc (test02): Add.
From-SVN: r62779
2003-02-12 19:39:19 +00:00
Benjamin Kosnik
ab77073fd7
Makefile.am (stamp-std-precompile): Add rule.
...
2003-02-11 Benjamin Kosnik <bkoz@redhat.com>
* include/Makefile.am (stamp-std-precompile): Add rule.
* include/Makefile.in: Regenerated.
From-SVN: r62752
2003-02-12 00:54:39 +00:00
GCC Administrator
e7478fa2aa
Daily bump.
...
From-SVN: r62751
2003-02-12 00:17:06 +00:00
Jerry Quinn
ce3039af7d
locale_facets.h (__num_base): Add _S_atoms_out.
...
2003-02-11 Jerry Quinn <jlquinn@optonline.net>
Benjamin Kosnik <benjamin@redhat.com>
* include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
Add indexes into this array.
(__num_base::_S_atoms): To _S_atoms_in.
(num_put::_M_insert): Rename to _M_pad.
(num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
(num_put::_M_widen_int): Rename to _M_group_int.
(num_put::_M_widen_float): Rename to _M_group_float.
* include/bits/locale_facets.tcc (__int_to_char): New inline
function and adapter functions.
(num_put::_M_group_int): Streamline.
(num_put::_M_group_float): Streamline.
(num_put::_M_convert_int): Remove unused parameter names. Choose
large enough buffer for text. Use __int_to_char instead of
__convert_from_v. Formatted text is now at the end of the buffer.
(num_put::_M_convert_float): Preliminary fixups.
* src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
(__int_to_char<unsigned long long>): Same.
(__int_to_char<char, unsigned long>): New.
(__int_to_char<char, unsigned long long>): New.
(__int_to_char<wchar_t, unsigned long>): New.
(__int_to_char<wchar_t, unsigned long long>): New.
Co-Authored-By: Benjamin Kosnik <bkoz@redhat.com>
From-SVN: r62731
2003-02-11 21:55:49 +00:00
Scott Snyder
74db146134
re PR libstdc++/9659 (3.3/3.4 seekoff overload problem with optimization)
...
2003-02-11 Scott Snyder <snyder@fnal.gov>
PR libstdc++/9659
* include/bits/fstream.tcc (seekoff): Avoid operator+
for pos_type.
From-SVN: r62712
2003-02-11 19:53:51 +00:00
Paolo Carlini
dfc7d89965
re PR libstdc++/9320 (Incorrect usage of traits_type::int_type in stdio_filebuf)
...
2003-02-11 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/9320
* include/ext/stdio_filebuf.h
(stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
Change to take a __size parameter of type size_t, not
of type (template parameter dependent) int_type.
* src/ios.cc (ios_base::Init::_S_ios_create): Change type of
size vars to size_t.
* testsuite/ext/stdio_filebuf.cc: Add.
From-SVN: r62691
2003-02-11 10:43:49 +00:00
Paolo Carlini
da61d02231
re PR libstdc++/9318 (i/ostream::operator>>/<<(streambuf*) broken)
...
2003-02-11 Paolo Carlini <pcarlini@unitus.it>
Petur Runolfsson <peturr02@ru.is>
PR libstdc++/9318
* include/bits/streambuf.tcc (__copy_streambufs):
Don't conditionalize the copy to __testput.
* testsuite/27_io/streambuf_members.cc (test09, test10): Add.
Co-Authored-By: Petur Runolfsson <peturr02@ru.is>
From-SVN: r62689
2003-02-11 09:59:19 +00:00
GCC Administrator
9ecd389eb1
Daily bump.
...
From-SVN: r62669
2003-02-11 00:17:03 +00:00
GCC Administrator
2ae4751af4
Daily bump.
...
From-SVN: r62619
2003-02-10 00:17:05 +00:00
GCC Administrator
cefadf78ae
Daily bump.
...
From-SVN: r62592
2003-02-09 00:17:03 +00:00
GCC Administrator
0a6bc31450
Daily bump.
...
From-SVN: r62566
2003-02-08 00:17:03 +00:00
Paolo Carlini
afb6c265b7
re PR libstdc++/9562 (ostream::sentry::operator bool () should be const)
...
2003-02-06 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/9562
* include/std/std_istream.h
(basic_istream::sentry::operator bool()): Make const.
* include/std/std_ostream.h
(basic_ostream::sentry::operator bool()): Likewise.
* testsuite/27_io/istream_sentry.cc (test03): Add.
* testsuite/27_io/ostream_sentry.cc: Add.
From-SVN: r62508
2003-02-07 00:26:44 +00:00
GCC Administrator
f6358ad6da
Daily bump.
...
From-SVN: r62507
2003-02-07 00:17:03 +00:00
Paolo Carlini
5dc911525c
re PR libstdc++/9548 (Incorrect results from setf(ios::fixed) and precision(-1) [DR231])
...
2003-02-06 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/9548
Implement resolution of DR 231 (Ready)
* include/bits/locale_facets.h (__num_base::_S_format_float):
Change declaration: return void, remove __prec parameter.
* src/locale.cc (__num_base::_S_format_float): Implement
resolution of DR 231.
* include/bits/locale_facets.tcc (num_put::_M_convert_float):
Tweak uses. Check for negative precision.
* testsuite/22_locale/num_put/put/char/6.cc: Add
* testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
From-SVN: r62492
2003-02-06 18:08:51 +00:00
Peter Soetens
6eeabb09a6
basic_file_libio.h: Fixups.
...
2003-02-06 Peter Soetens <peter.soetens@mech.kuleuven.ac.be>
* config/io/basic_file_libio.h: Fixups.
* config/io/c_io_libio.h: Same.
* libio/Makefile.am: Same.
* libio/Makefile.in: Regenerated.
From-SVN: r62475
2003-02-06 08:10:47 +00:00
Benjamin Kosnik
e61c8e230a
[multiple changes]
...
2003-02-06 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
Explicitly use the "C" locale.
* testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.
2003-02-06 Petur Runolfsson <peturr02@ru.is>
DR 75
DR 305
PR libstdc++/9028 (partial)
PR libstdc++/9224
PR libstdc++/9246
PR libstdc++/9247
* src/codecvt.cc
(codecvt<wchar_t, char, mbstate_t>::do_encoding,
codecvt<wchar_t, char, mbstate_t>::do_length,
codecvt<wchar_t, char, mbstate_t>::do_max_length):
Move...
* config/locale/generic/codecvt_members.cc: ...here.
* config/locale/gnu/codecvt_members.cc: ...and here.
* config/locale/generic/codecvt_members.cc,
* config/locale/gnu/codecvt_members.cc
(codecvt<wchar_t, char, mbstate_t>::do_encoding
codecvt<wchar_t, char, mbstate_t>::do_in,
codecvt<wchar_t, char, mbstate_t>::do_length,
codecvt<wchar_t, char, mbstate_t>::do_max_length,
codecvt<wchar_t, char, mbstate_t>::do_out):
New implementation that handles stateless encodings,
including UTF-8.
* config/locale/generic/codecvt_members.cc,
* config/locale/gnu/codecvt_members.cc,
* config/locale/ieee_1003.1-2001/codecvt_specializations.h,
* include/bits/codecvt.h,
* src/codecvt.cc
(codecvt::length, codecvt::do_length):
Change type of first argument of length and do_length from
'const state_type&' to 'state_type&' according to DR 75.
* testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Cleanup.
* testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: New test.
* testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: New test.
* testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: New test.
* testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
Cleanup and check for correct return value from encoding
for "C" locale.
* testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: New test.
* testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: New test.
* testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: New test.
* testsuite/22_locale/codecvt/in/wchar_t/1.cc: Cleanup.
* testsuite/22_locale/codecvt/in/wchar_t/2.cc: New test.
* testsuite/22_locale/codecvt/in/wchar_t/3.cc: New test.
* testsuite/22_locale/codecvt/in/wchar_t/4.cc: New test.
* testsuite/22_locale/codecvt/in/wchar_t/5.cc: New test.
* testsuite/22_locale/codecvt/in/wchar_t/6.cc: New test.
* testsuite/22_locale/codecvt/in/wchar_t/7.cc: New test.
* testsuite/22_locale/codecvt/in/wchar_t/8.cc: New test.
* testsuite/22_locale/codecvt/in/wchar_t/9.cc: New test.
* testsuite/22_locale/codecvt/length/char/1.cc: Cleanup.
* testsuite/22_locale/codecvt/length/char/2.cc: New test.
* testsuite/22_locale/codecvt/length/wchar_t/1.cc: Cleanup.
* testsuite/22_locale/codecvt/length/wchar_t/2.cc: New test.
* testsuite/22_locale/codecvt/length/wchar_t/3.cc: New test.
* testsuite/22_locale/codecvt/length/wchar_t/4.cc: New test.
* testsuite/22_locale/codecvt/length/wchar_t/5.cc: New test.
* testsuite/22_locale/codecvt/length/wchar_t/6.cc: New test.
* testsuite/22_locale/codecvt/length/wchar_t/7.cc: New test.
* testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Cleanup.
* testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: New test.
* testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: New test.
* testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: New test.
* testsuite/22_locale/codecvt/out/wchar_t/1.cc: Cleanup.
* testsuite/22_locale/codecvt/out/wchar_t/2.cc: New test.
* testsuite/22_locale/codecvt/out/wchar_t/3.cc: New test.
* testsuite/22_locale/codecvt/out/wchar_t/4.cc: New test.
* testsuite/22_locale/codecvt/out/wchar_t/5.cc: New test.
* testsuite/22_locale/codecvt/out/wchar_t/6.cc: New test.
* testsuite/22_locale/codecvt/out/wchar_t/7.cc: New test.
* testsuite/22_locale/codecvt/unicode/1.cc: New test.
* testsuite/22_locale/codecvt/unshift/wchar_t/1.cc: Cleanup.
* testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: New test.
* testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: New test.
* testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc: New test.
From-SVN: r62474
2003-02-06 06:24:21 +00:00
Benjamin Kosnik
2e2a38cd06
[multiple changes]
...
2003-02-05 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/locale_facets.tcc (time_put::do_put): Use __write.
(money_put::do_put): Same.
2003-02-05 Jerry Quinn <jlquinn@optonline.net>
* include/bits/ios_base.h (ios_base): Document reserved storage.
* include/bits/locale_facets.h: (struct __pad): Comment on
implementation.
(__verify_grouping): Same.
(__add_grouping): Same.
* include/bits/locale_facets.tcc (__verify_grouping): Move
comments to declaration.
(__add_grouping): Same.
* include/bits/locale_facets.tcc:
(__write<_CharT, _OutIter>): New function.
(__write<_CharT>): New function specialization.
(num_put::_M_insert): Remove explicit loop over iterator. Use
__write.
(num_put::_M_widen_float): Remove __basefield.
(num_put::_M_widen_int): Move __basefield to within grouping block.
* include/bits/streambuf_iterator.h: Include <streambuf>.
(ostreambuf_iterator::_M_put): Add.
From-SVN: r62473
2003-02-06 05:58:10 +00:00
GCC Administrator
2113479c7d
Daily bump.
...
From-SVN: r62462
2003-02-06 00:17:07 +00:00
GCC Administrator
00d3c37653
Daily bump.
...
From-SVN: r62420
2003-02-05 00:17:05 +00:00
Paolo Carlini
52b62c0e1a
PR libstdc++/9439, PR libstdc++/9425
...
2003-02-04 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/9439, PR libstdc++/9425
* config/io/basic_file_stdio.cc
(__basic_file<char>::seekoff, seekpos): Return -1L if
fseek fails.
* include/bits/fstream.tcc (basic_filebuf::seekoff):
Check _M_file.seekoff return value; always return
pos_type(off_type(-1)) in case of failure.
(basic_filebuf::pbackfail): Check this->seekoff return
value and return traits_type::eof() in case of failure.
* testsuite/27_io/filebuf_virtuals.cc (test09): Add.
From-SVN: r62408
2003-02-04 22:42:32 +00:00
Jerry Quinn
8d0a564bba
std_ostream.h (ostream::_M_write): Declare.
...
2003-02-04 Jerry Quinn <jlquinn@optonline.net>
* include/std/std_ostream.h (ostream::_M_write): Declare.
* ostream.tcc (ostream::_M_write): Define.
(basic_ostream::write): Use it.
(operator<<(basic_ostream, _CharT)): Ditto.
(operator<<(basic_ostream, char)): Ditto.
(operator<<(basic_ostream, _CharT*)): Ditto.
(operator<<(basic_ostream, char*)): Ditto.
(operator<<(basic_ostream, basic_string)): Ditto.
From-SVN: r62399
2003-02-04 20:56:50 +00:00
Paolo Carlini
7cd3907b57
[multiple changes]
...
2003-02-04 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/9538
* include/bits/streambuf.tcc (sputbackc): Access
this->gptr()[-1] only if _M_in_beg < _M_in_cur.
* testsuite/27_io/filebuf_virtuals.cc (test08): Add.
2003-02-04 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/9507
* include/bits/fstream.tcc (open): If the 'ate' repositioning
operation fails, calls close _and_ returns a null pointer
to indicate failure (27.8.1.3,4).
* testsuite/27_io/filebuf_members.cc (test_06): Add.
2003-02-04 Petur Runolfsson <peturr02@ru.is>
* testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
From-SVN: r62388
2003-02-04 18:08:45 +00:00
GCC Administrator
95628882f0
Daily bump.
...
From-SVN: r62364
2003-02-04 00:18:06 +00:00
Falk Hueffner
348b0c3105
std_bitset.h: Replace CHAR_BIT with __CHAR_BIT__, use numeric_limits for bits-per-word values.
...
2003-02-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
Phil Edwards <pme@gcc.gnu.org>
* include/std/std_bitset.h: Replace CHAR_BIT with __CHAR_BIT__, use
numeric_limits for bits-per-word values.
(_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
Use __builtin_popcountl instead.
(_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
_Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
Use __builtin_ctzl instead.
(_S_bit_count, _S_first_one): Remove.
* config/linker-map.gnu (GLIBCPP_3.4): Remove std::_S_bit_count.
* src/Makefile.am (sources): Remove bitset.cc.
* src/bitset.cc: Delete file.
* src/Makefile.in: Regenerate.
Co-Authored-By: Phil Edwards <pme@gcc.gnu.org>
From-SVN: r62335
2003-02-03 19:37:53 +00:00
Volker Reichelt
847e8c74ac
re PR libstdc++/9234 (unary minus for valarrays broken)
...
PR libstdc++/9234
* include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
operator.
* include/bits/valarray_before.h (__not_equal_to): Use != instead of ==.
* testsuite/26_numerics/valarray_operators.cc: New test.
From-SVN: r62309
2003-02-03 10:38:36 +00:00
GCC Administrator
f2e05ec7c7
Daily bump.
...
From-SVN: r62299
2003-02-03 00:17:03 +00:00
GCC Administrator
7073f4745f
Daily bump.
...
From-SVN: r62267
2003-02-02 00:17:05 +00:00
Paolo Carlini
064994a3f2
Const correctness issue: http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
...
2003-02-01 Paolo Carlini <pcarlini@unitus.it>
Benjamin Kosnik <bkoz@redhat.com>
Const correctness issue:
http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
* include/bits/locale_classes.h
(locale::_Impl::_M_facets): Change type to const facet**.
(locale::_Impl::_M_install_facet): Change declaration to
take const facet*.
(locale::facet::_M_references): Make mutable.
(locale::facet::_M_add_reference): Declare const.
(locale::facet::_M_remove_reference): Likewise.
* include/bits/locale_facets.tcc
(use_facet(const locale&)): Tweak for const facet** _M_facets.
(has_facet(const locale&)): Likewise.
* src/locale.cc
(locale::facet::_M_add_reference): Adjust definition.
(locale::facet::_M_remove_reference): Likewise.
* src/localename.cc
(locale::_Impl::_Impl(const _Impl&, size_t)): Tweak for
const facet** _M_facets.
(locale::_Impl::_Impl(const char*, size_t)): Likewise.
(locale::_Impl::_Impl(facet**, size_t, bool)): Likewise.
(locale::_Impl::_M_install_facet): Adjust definition to take
const facet* and for const facet** _M_facets.
* testsuite/22_locale/locale/cons/8.cc: Add.
Co-Authored-By: Benjamin Kosnik <bkoz@redhat.com>
From-SVN: r62248
2003-02-01 16:37:20 +00:00
GCC Administrator
e4b9b5fb09
Daily bump.
...
From-SVN: r62224
2003-02-01 00:17:03 +00:00
GCC Administrator
4f7e3dcf7e
Daily bump.
...
From-SVN: r62169
2003-01-31 00:17:06 +00:00
Mark Mitchell
14d22dd667
c-common.c (builtin_define_float_constants): Define __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
...
* c-common.c (builtin_define_float_constants): Define
__<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
* call.c (build_field_call): Use build_new_op, not build_opfncall.
(prep_operand): New function.
(build_new_op): Use it. Remove dead code.
* class.c (pushclass): Change "modify" parameter type from int to
bool.
(currently_open_class): Use same_type_p, not pointer equality.
(push_nested_class): Adjust calls to pushclass, remove modify
parameter.
* cp-tree.h (INTEGRAL_OR_ENUMERATION_TYPE_P): New macro.
(pushclass): Change prototype.
(push_nested_class): Likewise.
(grokoptypename): Remove.
(build_opfncall): Remove.
(value_dependent_expression_p): Declare.
(resolve_typename_type): Likewise.
(resolve_typename_type_in_current_instantiation): Likewise.
(enter_scope_of): Remove.
(tsubst): Remove.
(tsubst_expr): Likewise.
(tsubst_copy): Likewise.
(tsubst_copy_and_build): Likewise.
* decl.c (warn_about_implicit_typename_lookup): Remove.
(finish_case_label): Return error_mark_node for erroneous labels.
(start_decl): Adjust calls to push_nested_class.
(grokfndecl): Call push_scope/pop_scope around call to
duplicate_decls.
(grokdeclarator): Do not call tsubst.
(start_function): Adjust calls to push_nested_class.
* decl2.c (grok_array_decl): Use build_new_op, not build_opfncall.
(check_classfn): Use push_scope/pop_scope around type comparisions.
(grokoptypename): Remove.
(push_sscope): Adjust call to push_nested_class.
* error.c (dump_type): Show cv-qualification of typename types.
* init.c (build_member_call): Use build_new_op, not
build_opfncall.
* method.c (build_opfncall): Remove.
* parser.c (cp_parser): Add allow_non_constant_expression_p and
non_constant_expression_p.
(cp_parser_constant_expression): Adjust prototype.
(cp_parser_resolve_typename_type): Remove.
(cp_parser_non_constant_expression): New function.
(cp_parser_non_constant_id_expression): Likewise.
(cp_parser_new): Set allow_non_constant_expression_p and
non_constant_expression_p.
(cp_parser_primary_expression): Reject `this' and `va_arg' in
constant-expressions. Note that dependent names aren't really
constant.
(cp_parser_postfix_expression): Reject conversions to non-integral
types in constant-expressions. Neither are increments or
decrements.
(cp_parser_unary_expression): Reject increments and decrements in
constant-expressions.
(cp_parser_direct_new_declarator): Adjust call to
cp_parser_constant_expression.
(cp_parser_cast_expression): Reject conversions to non-integral
types in constant-expressions.
(cp_parser_assignment_expression): Rejects assignments in
constant-expressions.
(cp_parser_expression): Reject commas in constant-expressions.
(cp_parser_labeled_statement): Adjust call to
cp_parser_constant_expression.
(cp_parser_direct_declarator): Simplify array bounds, even in
templates, when they are non-dependent. Use
resolve_typename_type, not cp_parser_resolve_typename_type.
(cp_parser_class_head): Use resolve_typename_type, not
cp_parser_resolve_typename_type.
(cp_parser_member_declaration): Adjust call to
cp_parser_constant_expression.
(cp_parser_constant_initializer): Likewise.
(cp_parser_constructor_declarator): Use resolve_typename_type, not
cp_parser_resolve_typename_type.
(cp_parser_late_parsing_default_args): Adjust call to
push_nested_class.
* pt.c (tsubst): Give it internal linkage.
(tsubst_expr): Likewise.
(tsubst_copy): Likewise.
(tsubst_copy_and_build): Likewise.
(push_access_scope_real): Likewise.
(tsubst_friend_class): Likewise.
(instantiate_class_template): Adjust call to pushclass.
(value_dependent_expression_p): Give it external linkage.
Robustify.
(resolve_typename_type): New function.
* semantics.c (finish_call_expr): Use build_new_op, not
build_opfncall.
(begin_constructor_declarator): Remove.
(begin_class_definition): Adjust call to pushclass.
(enter_scope_of): Remove.
* typeck.c (comptypes): Resolve typename types as appropriate.
(build_x_indirect_ref): Use build_new_op, not build_opfncall.
(build_x_compound_expr): Likewise.
(build_modify_expr): Likewise.
(build_x_modify_expr): Likewise.
* typeck2.c (build_x_arrow): Likewise.
* g++.dg/parser/constant1.C: New test.
* include/std/std_limits.h (numeric_limits<float>::has_infinity):
Use __FLT_HAS_INIFINITY__ to initialize.
(numeric_limits<float>::has_quiet_NaN): Likewise.
(numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__
to initialize.
(numeric_limits<double>::has_quiet_NaN): Likewise.
(numeric_limits<long double>::has_infinity): Use
__LDBL_HAS_INIFINITY__ to initialize.
(numeric_limits<long_double>::has_quiet_NaN): Likewise.
From-SVN: r62130
2003-01-30 07:24:02 +00:00
GCC Administrator
00a673ff61
Daily bump.
...
From-SVN: r62121
2003-01-30 00:17:05 +00:00
GCC Administrator
eda8d9c5c7
Daily bump.
...
From-SVN: r62059
2003-01-29 00:17:08 +00:00
GCC Administrator
2040cbc13a
Daily bump.
...
From-SVN: r61913
2003-01-28 00:17:04 +00:00
GCC Administrator
81cc3b5053
Daily bump.
...
From-SVN: r61872
2003-01-27 00:17:04 +00:00
GCC Administrator
af5d8fced5
Daily bump.
...
From-SVN: r61814
2003-01-26 00:17:04 +00:00
GCC Administrator
e5c81eff2e
Daily bump.
...
From-SVN: r61753
2003-01-25 00:17:05 +00:00
Nathan Sidwell
c13bea50d1
valarray_meta.h: Remove, split into ...
...
* include/bits/valarray_meta.h: Remove, split into ...
* include/bits/valarray_before.h: ... this, and ...
* include/bits/valarray_after.h: ... this.
* include/std/std_valarray.h: Adjust.
* include/Makefile.am (bits_headers): Adjust.
* include/Makefile.in: Regenerate.
From-SVN: r61706
2003-01-24 16:32:11 +00:00
GCC Administrator
90861f513b
Daily bump.
...
From-SVN: r61688
2003-01-24 00:17:07 +00:00
Petur Runolfsson
1ceb90cfa1
re PR libstdc++/9322 (return value of basic_streambuf<>::getloc affected by locale::global)
...
2003-01-23 Petur Runolfsson <peturr02@ru.is>
PR libstdc++/9322
* include/std/std_streambuf.h
(basic_streambuf::basic_streambuf,
basic_streambuf::~basic_streambuf,
basic_streambuf::getloc, basic_streambuf::imbue):
Remove _M_buf_locale_init use.
* include/bits/fstream.tcc (basic_filebuf::imbue): Likewise
* testsuite/27_io/filebuf_virtuals.cc (test08): Add.
* testsuite/27_io/streambuf_members.cc (test08): Add.
* testsuite/27_io/stringbuf_virtuals.cc (test08): Add.
From-SVN: r61678
2003-01-23 22:53:35 +00:00
Benjamin Kosnik
1a1e79bbfe
Revert include ordering.
...
2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
Revert include ordering.
* config/locale/generic/c_locale.h: Add include guards.
* config/locale/gnu/c_locale.h: Same.
* include/bits/locale_classes.h: Remove cctype include.
* include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
* include/std/std_fstream.h: Remove streambuf include.
* include/std/std_sstream.h: Remove streambuf include.
From-SVN: r61664
2003-01-23 18:56:00 +00:00
Benjamin Kosnik
8099b2aee8
configure.in (libtool_VERSION): To 6:0:0.
...
2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
* configure.in (libtool_VERSION): To 6:0:0.
* configure: Regenerated.
* config/linker-map.gnu: Clean.
* src/misc-inst.cc: Remove instantiations.
* include/bits/stl_alloc.h (__malloc_alloc_template):
To __malloc_alloc.
(__default_alloc_template): To __pool_alloc.
* src/stl-inst.cc: Same.
* include/backward/alloc.h: Update.
* testsuite/ext/allocators.cc: Update.
* src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
really try to remove these if possible.
* src/locale.cc (std): Same.
* testsuite/abi_check.cc (check_version): Add.
From-SVN: r61658
2003-01-23 17:21:11 +00:00
GCC Administrator
f5c140abee
Daily bump.
...
From-SVN: r61632
2003-01-23 00:17:37 +00:00
Benjamin Kosnik
b4ec7fc7f0
re PR libstdc++/9269 (libstdc++ headers: explicit specialization of function must precede its first use)
...
2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
Sysoltsev Slawa <Vyatcheslav.Sysoltsev@intel.com>
Mark Mitchell <mark@codesourcery.com>
PR libstdc++/9269
* include/std/std_fstream.h (basic_filebuf::uflow): Declare.
(basic_filebuf::underflow): Declare.
Move definitions.
Co-Authored-By: Mark Mitchell <mark@codesourcery.com>
Co-Authored-By: Sysoltsev Slawa <Vyatcheslav.Sysoltsev@intel.com>
From-SVN: r61616
2003-01-22 21:18:00 +00:00
Benjamin Kosnik
e66868131b
locale_facets.h: Move non-facet classes requiring <string> to...
...
2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/locale_facets.h: Move non-facet classes requiring
<string> to...
* include/bits/locale_classes.h: New.
* include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
* include/bits/Makefile.in: Regenerate.
* include/bits/locale_facets.tcc (__convert_from_v): Move to...
* config/locale/gnu/c_locale.h: ...here.
* config/locale/generic/c_locale.h: Same.
* include/bits/locale_facets.tcc: Move declarations to...
* include/bits/locale_facets.h: ...here.
* include/bits/basic_ios.h: Tweak includes accordingly.
* include/std/std_sstream.h: Add streambuf include.
* include/std/std_fstream.h: Ditto.
* include/std/std_locale.h: Add locale_classes.h include.
* include/std/std_iosfwd.h: Tweak.
* src/concept-inst.cc: Add iterator include.
* config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
bits as unexported in the future.
From-SVN: r61593
2003-01-22 16:51:52 +00:00
GCC Administrator
44897a588a
Daily bump.
...
From-SVN: r61583
2003-01-22 00:17:06 +00:00
GCC Administrator
aa4fb101f1
Daily bump.
...
From-SVN: r61523
2003-01-21 00:17:05 +00:00
GCC Administrator
3fdd055a2b
Daily bump.
...
From-SVN: r61497
2003-01-20 06:28:28 +00:00
GCC Administrator
e1848179dd
Daily bump.
...
From-SVN: r61472
2003-01-18 08:17:30 +00:00
GCC Administrator
a1d4422910
Daily bump.
...
From-SVN: r61438
2003-01-17 08:17:36 +00:00
Mark Mitchell
8fbc5ae723
cp-tree.h (lang_type_class): Remove is_partial_instantiation.
...
* cp-tree.h (lang_type_class): Remove is_partial_instantiation.
(PARTIAL_INSTANTIATION_P): Remove.
(IMPLICIT_TYPENAME_P): Likewise.
(IMPLICIT_TYPENAME_TYPE_DECL_P): Likewise.
(build_typename_type): Remove declaration.
(parmlist_is_exprlist): Likewise.
* decl.c (build_typename_type): Make it static, remove third
parameter.
(push_class_binding): Don't do implicit typename stuff.
(make_typename_type): Likewise.
(lookup_name_real): Likewise.
(grokdeclarator): Don't try to convert declarations into
initializations. Don't do implicit typename stuff.
(parmlist_is_exprlist): Remove.
(xref_basetypes): Simplify.
* decl2.c (grokfield): Don't try to convert declarations into
initializations.
(build_anon_union_vars): Do this while processing templates, too.
(finish_anon_union): Likewise.
* error.c (dump_type): Remove implicit typename handling.
* parser.c (cp_parser_diagnose_invalid_type_name): New method.
(cp_parser_primary_expression): Correct handling of names not
found by unqualified name lookup in templates.
(cp_parser_nested_name_specifier_opt): Avoid checking dependency
of types when possible.
(cp_parser_simple_declaration): Complain intelligently about some
invalid declarations.
(cp_parser_member_declaration): Likewise.
(cp_parser_constructor_declarator_p): Don't check when we're in a
function scope.
* pt.c (instantiate_class_template): Remove
PARTIAL_INSTANTIATION_P gunk.
* search.c (lookup_field_r): Don't build implicit typenames.
(marked_pushdecls_p): Don't enter dependent base types.
(unmarked_pushdecls_p): Likewise.
* semantics.c (begin_class_definition): Remove implicit typename
stuff.
* config/locale/gnu/messages_members.h: Use this-> to refer to
unqualified members of base clasess.
* config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise.
* include/bits/codecvt.h: Likewise.
* include/bits/deque.tcc: Likewise.
* include/bits/fstream.tcc: Likewise.
* include/bits/istream.tcc: Likewise.
* include/bits/list.tcc: Likewise.
* include/bits/locale_facets.h: Likewise.
* include/bits/ostream.tcc: Likewise.
* include/bits/sstream.tcc: Likewise.
* include/bits/stl_bvector.h: Likewise.
* include/bits/stl_deque.h: Likewise.
* include/bits/stl_list.h: Likewise.
* include/bits/stl_tree.h: Likewise.
* include/bits/stl_vector.h: Likewise.
* include/bits/vector.tcc: Likewise.
* include/ext/ropeimpl.h: Likewise.
* include/ext/stdio_filebuf.h: Likewise.
* include/ext/stl_rope.h: Likewise.
* include/std/std_fstream.h: Likewise.
* include/std/std_sstream.h: Likewise.
Co-Authored-By: Jeffrey Oldham <oldham@codesourcery.com>
From-SVN: r61403
2003-01-16 20:30:50 +00:00
GCC Administrator
faca036b47
Daily bump.
...
From-SVN: r61387
2003-01-16 08:17:35 +00:00
Phil Edwards
25ad7e06c6
basic_string.tcc (_S_string_copy): Unused, remove.
...
2003-01-15 Phil Edwards <pme@gcc.gnu.org>
* include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
From-SVN: r61377
2003-01-16 03:11:13 +00:00
GCC Administrator
dc298ba792
Daily bump.
...
From-SVN: r61318
2003-01-15 08:17:32 +00:00
GCC Administrator
17fb1987d6
Daily bump.
...
From-SVN: r61272
2003-01-14 08:17:31 +00:00
GCC Administrator
e308bc5ad3
Daily bump.
...
From-SVN: r61245
2003-01-13 08:17:46 +00:00
GCC Administrator
ae6ccbe391
Daily bump.
...
From-SVN: r61229
2003-01-12 08:17:26 +00:00
Phil Edwards
3a9fdf3058
tables.html: Finished now.
...
2003-01-11 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/tables.html: Finished now.
* docs/doxygen/user.cfg.in: Update to latest version of Doxygen.
* include/bits/basic_ios.h (basic_ios::rdbuf): Add example to
comments.
* include/bits/deque.tcc, include/bits/stl_alloc.h,
include/bits/stl_deque.h, include/bits/stl_list.h,
include/bits/stl_vector.h: Remove _GLIBCPP_DEPRECATED bits scheduled
for 3.4 removal.
From-SVN: r61221
2003-01-12 02:56:50 +00:00
GCC Administrator
2b95bca63e
Daily bump.
...
From-SVN: r61197
2003-01-11 08:17:18 +00:00
GCC Administrator
ca3b903372
Daily bump.
...
From-SVN: r61147
2003-01-10 08:17:27 +00:00
GCC Administrator
eb27f449b6
Daily bump.
...
From-SVN: r61091
2003-01-09 08:17:32 +00:00
Christian Cornelssen
90e5b39f8e
Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
...
libf2c:
2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
* Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
(install, uninstall): Prepend $(DESTDIR) to destination
paths in all (un)installation commands.
libiberty:
2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
* Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
libobjc:
2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
* Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
(install-libs, install-headers): Prepend $(DESTDIR) to
destination paths in all (un)installation commands.
libstdc++:
2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
* include/Makefile.am (install-data-local): Prepend
$(DESTDIR) to destination paths in all (un)installation
commands. Use ${c_base_builddir} and ${std_builddir}
as destination subdirectories to achieve consistency with
preceding mkinstalldirs commands. No effect because both
variables contain "." only.
* include/Makefile.in: Regenerate.
From-SVN: r61082
2003-01-09 09:08:30 +01:00
Benjamin Kosnik
7ec3af37b9
[multiple changes]
...
2003-01-08 Benjamin Kosnik <bkoz@redhat.com>
* include/Makefile.am (stamp-*): Add checks for existing stamps.
* include/Makefile.in: Regenerate.
* acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Correct comment.
* aclocal.m4: Regenerate.
* configure.in: Don't add new multi-do rules every time the
directory is reconfigured.
* configure: Regenerate.
2003-01-08 Brad Spencer <spencer@infointeractive.com>
Nathan Myers <ncm@cantrip.org>
* src/Makefile.am (stamp-debug): Clean.
* src/Makefile.in: Regenerate.
From-SVN: r61052
2003-01-08 19:43:11 +00:00
GCC Administrator
67d96a1661
Daily bump.
...
From-SVN: r61036
2003-01-08 08:17:32 +00:00
GCC Administrator
fe50034d9c
Daily bump.
...
From-SVN: r60988
2003-01-07 08:17:26 +00:00
Benjamin Kosnik
1c26d8fd84
locale_facets.h (messages): Move ctor, dtor definitions to..
...
2003-01-06 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/locale_facets.h (messages): Move ctor, dtor
definitions to..
(__timepunct): Same.
* config/locale/gnu/messages_members.h (messages): Add dtor, ctor
definitions. Conditionalize for GNU systems.
* config/locale/generic/messages_members.h (messages): Add dtor, ctor
definitions.
* config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
definitions. Conditionalize for GNU systems.
* config/locale/generic/time_members.h (messages): New. Add dtor, ctor
definitions.
* include/bits/localefwd.h (locale::facet::_S_c_name): Add.
* src/locale.cc: Define.
* src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
Use it.
* config/locale/gnu/time_members.h: Use it.
* config/locale/gnu/messages_members.h: Use it.
* config/linker-map.gnu: Add locale::facets details.
* include/Makefile.am (target_headers_extra): Add time_members.h.
* include/Makefile.in: Regenerate.
* acinclude.m4: Export CTIME_H.
* aclocal.m4: Regenerate.
* configure: Regnerate.
From-SVN: r60952
2003-01-06 21:23:00 +00:00
Paolo Carlini
87117aa2f3
re PR libstdc++/9151 (std::setprecision limited to 16 digits when outputting a double to a stream)
...
2003-01-06 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/9151
* include/bits/locale_facets.cc (num_put::_M_convert_float):
Limit __prec to digits10 + 2, not digits10 + 1, taking into
account the possibility of %{g,G} conversion specifiers
inside _S_format_float.
* testsuite/27_io/ostream_inserter_arith.cc (test06): Add.
From-SVN: r60939
2003-01-06 15:32:16 +00:00