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