]> gcc.gnu.org Git - gcc.git/blame - libstdc++-v3/ChangeLog
valarray_array.h (__valarray_get_storage): New function.
[gcc.git] / libstdc++-v3 / ChangeLog
CommitLineData
d4c4ae6f
GDR
12000-07-15 Gabriel Dos Reis <gdr@codesourcery.com>
2
3 * bits/valarray_array.h (__valarray_get_storage): New function.
4 (_Array<>::Array): Use it.
5 * bits/std_valarray.h (valarray<>::valarray): Likewise.
6 (valarray<>::resize): Likewise. Tweak.
7 * src/valarray-inst.cc (__valarray_product): Tweak.
8
c0ed1dea
PE
92000-07-11 Phil Edwards <pme@sourceware.cygnus.com>
10
11 * docs: Update sourceware->sources in every HTML file. Minor updates.
12
c4561450
BK
132000-07-07 Benjamin Kosnik <bkoz@soma.redhat.com>
14
15 Clean up configure/build longstanding issues.
16 * src/Makefile.am (AC_CXXFLAGS): Don't set @SECTION_LDFLAGS@ here.
17 (CXXLINK): Add here, instead.
18
19 * Makefile.am (check-install): Make sure mkcheck has execute privs.
20 (check): Same here.
21 * configure.in (AC_OUTPUT_COMMANDS): Remove hacks here.
22
23 * configure.in (AC_OUTPUT_COMMANDS): Link c_io_libio.h and
24 c_io_libio.cc instead of copying.
25 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Do link here.
26
27 * configure.in (AC_OUTPUT_COMMANDS): Link $THREADS.h and
28 c++threads.h instead of copying.
29 * acinclude.m4 (GLIBCPP_ENABLE_THREADS): Do link here.
0828a0bd
BK
30 Tweaks.
31
6eaa6abd
BK
32 * config/c_io_libio.cc (__basic_file::_M_open_mode): Consolidate.
33 * bits/basic_file.h: Declare.
34
35 * mkcheck.in (TESTS_FILE): Use -v instead of --version.
36
75555da7
BK
372000-07-07 brent verner <brent@rcfile.org>
38
39 * testsuite/27_io/istream_unformatted.cc (test05): New test.
40
412000-07-07 Benjamin Kosnik <bkoz@gnu.org>
42
43 * bits/istream.tcc (istream::getline): Minor tweaks.
44
dd1ee41e
PE
452000-07-07 Phil Edwards <pme@sourceware.cygnus.com>
46
47 * docs/download.html: Mention gcc_update.
48 * docs/configopts.html: Minor updates.
49 * docs/gccrebuild.html: Ditto.
50 * docs/18_support/howto.html: More tips, explanations, and reminders.
51 * docs/19_diagnostics/howto.html: Ditto.
52 * docs/21_strings/howto.html: Ditto.
53 * docs/24_iterators/howto.html: Ditto.
54 * docs/25_algorithms/howto.html: Ditto.
55 * docs/26_numerics/howto.html: Ditto.
56
42d18a47
BK
572000-07-05 brent verner <brent@rcfile.org>
58
59 * testsuite/27_io/ifstream_members.cc (test01): Add tests.
60 * testsuite/27_io/ofstream_members.cc (test01): Add tests.
61 * config/c_io_libio.cc (__basic_file::open): Unset
62 ~_IO_DELETE_DONT_CLOSE.
63
642000-07-05 Zack Weinberg <zack@wolery.cumb.org>
65
66 * bits/gslice_array.h, bits/indirect_array.h, bits/mask_array.h,
67 bits/slice_array.h, bits/std_valarray.h, bits/valarray_meta.h:
68 Do not paste anything after 'operator' keyword.
69
c14286b0
BK
702000-07-03 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
71
72 * bits/std_memory.h: Revert.
73
742000-07-03 Brendan Kehoe <brendan@zen.org>
75
76 * bits/std_complex.h: Fix parens. Format.
77
f22ad9d0
BK
782000-07-03 scott snyder <snyder@fnal.gov>
79
80 * bits/locale_facets.tcc (_M_extract): Only figure out the base
81 from the input if base == 0.
82 * testsuite/27_io/istream_extractor_arith.cc: Test reading a
83 number with a leading `0' in hex mode.
84
85 * shadow/bits/std_cmath.h: Fix typo in _GLIBCPP_HAVE_CEILL test.
86
87 * mkinclosure: Change `==' to `=' in test.
88
892000-07-03 Chip Salzenberg <chip@valinux.com>
90
91 * src/Makefile.am (libio_headers): _G_config.h is found in srcdir,
92 not builddir.
93 * src/Makefile.in: Regenerate.
94
20427c6b
BK
952000-07-01 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
96 Ulrich Drepper <drepper@purist.soma.redhat.com>
97
98 Sync libio to glibc-2.2 current CVS.
99 * libio/_G_config.h: New file.
100 * libio/wfileops.c: New file.
101 * libio/wfiledoalloc.c: New file.
102 * libio/wgenops.c: New file.
103 * libio/iofwide.c: New file.
104 * libio/Makefile.am: Tweaks.
105 * libio/Makefile.in: Regenerate.
106 * libio/gen-params: Remove. Generic replacement for this yet undone.
107 * libio/[filedoalloc.c, fileops.c, genops.c, iolibio.h, libio.h,
108 libioP.h, stdfiles.c]: Update.
109 * config/c_io_libio.cc: Tweaks.
110 * acinclude.m4: Complete hacks to test wide io.
111 * aclocal.m4: Regenerate.
112 * configure: Regenerate.
113 * src/Makefile.am: Update.
114 * src/Makefile.in: Regenerate.
115
116 * math/cargl.c: Remove underscores.
117
118 * bits/locale_facets.h: Tweaks. Start adding iconv details
119 and notes.
120 * bits/locale_facets.tcc: Tweaks.
121 * bits/std_cwchar.h: Tweaks.
122
b6a89402
SS
1232000-06-29 scott snyder <snyder@fnal.gov>
124
125 * bits/concept_checks.h
126 (__less_then_comparable_requirement_violation): Only check for <.
127 * testsuite/25_algorithms/lower_bound.cc: New file.
128
4a2f4b12 1292000-06-29 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
c011e2ad 130
4a2f4b12
BK
131 * testsuite/27_io/ostream_manip.cc (test02): Add tests.
132 * bits/ostream.tcc: Tweak.
133 * bits/std_fstream.h (basic_filebuf::setbuf): Reset
134 _M_buf_size_opt too.
135 * bits/std_streambuf.h (basic_streambuf::~basic_streambuf): Zero
136 out _M_buf_size_opt.
b6a89402 137 * bits/std_sstream.h (basic_stringbuf::_M_init_stringbuf): Set
4a2f4b12 138 _M_buf_size_opt out here.
c011e2ad
BC
139 * bits/char_traits.h (char_traits::eos): Non standard member
140 function, uglify to __eos. Return char_type().
141 * bits/std_ostream.h: Change.
fbd5f73b 142
20427c6b 143 * testsuite/27_io/ostream_seeks.cc: New file.
fbd5f73b
BK
144 * testsuite/27_io/ostream_seeks-1.tst: New file.
145 * testsuite/27_io/istream_unformatted.cc (main): Move test04 and
146 test05 to...
147 * testsuite/27_io/istream_seeks.cc: New file.
148
c011e2ad
BC
1492000-06-29 Branko Cibej <branko.cibej@hermes.si>
150
151 * bits/std_memory.h (auto_ptr_ref): Reworked and defined only if
152 _GLIBCPP_RESOLVE_LIB_DEFECTS.
153 (auto_ptr): _M_ptr changed to void*.
154 (suto_ptr::get): Cast _M_ptr to element type.
155 (auto_ptr::auto_ptr(auto_ptr<Tp1>)): Test implicit convetsion.
156 (auto_ptr::~auto_ptr): Use this->get() instead of _M_ptr.
157 (auto_ptr::operator*): Likewise.
158 (auto_ptr::operator->): Likewise.
159 (auto_ptr::release): Likewise.
160 (auto_ptr::reset): Likewise.
161 (auto_ptr::auto_ptr(auto_ptr_ref)): Initialize from __ref._M_release.
162 (auto_ptr::operator auto_ptr_rev<_Tp1>): Updated.
163 Define nested auto_ptr_ref unless _GLIBCPP_RESOLVE_LIB_DEFECTS.
164 Define operator=(auto_ptr_ref) if _GLIBCPP_RESOLVE_LIB_DEFECTS.
165
ab30ba5c
BK
1662000-06-28 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
167
168 * testsuite/27_io/filebuf.cc: Tweak.
169 * testsuite/27_io/filebuf_members.cc (test_01): Fix.
170 * config/c_io_libio.cc (__basic_file::~__basic_file): Match libio
171 filebuf dtor.
172 (__basic_file::basic_file): Clean, add calls similar to
173 _IO_file_attach.
174 (__basic_file::open): Clean.
175 (__basic_file::sys_open): Clean.
176
177 * bits/std_fstream.h: Revert.
178 * bits/fstream.tcc (filebuf::close()): Revert.
179 (filebuf::basic_filebuf()): Revert.
180
54a3a087 1812000-06-27 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
4afdac6d
BK
182
183 Update to SGI STL 3.3
54a3a087
BK
184 * ext/hash_map, ext/hash_set, ext/slist, ext/stl_bvector.h,
185 ext/stl_rope.h, ext/ropeimpl.h: Update.
186 * bits/std_bitset.h, bits/std_map, bits/std_memory.h,
187 bits/stl_algo.h, bits/stl_algobase.h, bits/stl_alloc.h,
188 bits/stl_config.h, bits/stl_construct.h, bits/stl_deque.h,
189 bits/stl_function.h, bits/stl_heap.h, bits/stl_iterator.h,
190 bits/stl_iterator_base.h, bits/stl_list.h, bits/stl_map.h,
191 bits/stl_multimap.h, bits/stl_multiset.h, bits/stl_numeric.h,
192 bits/stl_queue.h, bits/stl_set.h, bits/stl_stack.h,
193 bits/stl_string_fwd.h, bits/stl_threads.h, bits/stl_three.h,
194 bits/stl_uninitialized.h, bits/stl_vectory.h: Update.
4afdac6d
BK
195
196 * src/Makefile.am (headers): Add new files.
197 * src/Makefile.in: Regenerate.
54a3a087 198 * src/stl-inst.cc (std): Add instantiation for __sink_unused_warning.
4afdac6d
BK
199 * bits/concept_checks.h: New file.
200 * bits/container_concepts.h: New file.
201 * bits/sequence_concepts.h: New file.
4afdac6d
BK
202
2032000-06-27 H.J. Lu <hjl@gnu.org>
204 Loren J. Rittle <ljrittle@acm.org>
205
206 * mkcheck.in: Add support to print standard flags needed to
207 test g++ in build tree. Enhance command line error checking.
208
d4826ded
PE
2092000-06-27 Phil Edwards <pme@sourceware.cygnus.com>
210
211 * docs/install.html: Fix minor typo as reported.
212
ab30ba5c 2132000-06-26 Brent Verner <brent@rcfile.org>
644638bc
BK
214
215 * bits/string.tcc (string::rfind): Fix.
216 * testsuite/21_strings/rfind.cc: New file.
217
2182000-06-26 Anthony Williams <anthony@anthonyw.cjb.net>
219
220 * testsuite/21_strings/ctor_copy_dtor.cc: Fixed logic error.
221
44b1b18c
BC
2222000-06-26 Branko Cibej <branko.cibej@hermes.si>
223
644638bc
BK
224 * testsuite/27_io/filebuf_members.cc (test_01): Fixed typos.
225
226 * mkcheck.in: Make the *.txt and *.tst files writable after
227 copying them to $TEST_DIR.
44b1b18c 228
644638bc 229 * testsuite/27_io/ostream_inserter_arith.cc: Renamed
4afdac6d
BK
230 __TEST_NUMPUT_VERBOSE to TEST_NUMPUT_VERBOSE. Define
231 TEST_NUMPUT_VERBOSE only if DEBUG_ASSERT.
644638bc 232
b16810bf
BK
2332000-06-23 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
234
81ef1479
BK
235 * bits/fstream.tcc (basic_filebuf::basic_filebuf(fd)): Use it.
236 (basic_filebuf::close): Use it.
237 * bits/std_fstream.h (basic_filebuf): Remove default arguments for
238 filebuf ctor.
239 (basic_filebuf): Add _M_fileno_based data member.
240 As reported by brent verner <brent@rcfile.org>
241 * testsuite/27_io/filebuf_members.cc: New file.
242 * testsuite/27_io/filebuf_members-1.tst: New file.
243
b16810bf
BK
244 * bits/std_fstream.h: Formatting tweaks.
245 * testsuite/27_io/ofstream_members.cc: New file.
246 * testsuite/27_io/ofstream_members-1.tst: New file.
247 * testsuite/27_io/ifstream_members.cc: New file.
248 * testsuite/27_io/ifstream_members-1.tst: New file.
249
4f76382d
BK
2502000-06-23 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
251 Ulrich Drepper <drepper@cygnus.com>
252
253 * acinclude.m4 (GLIBCPP_CHECK_MATH_SUPPORT): Add -D_GNU_SOURCE, so
254 that all the freaky stuff like sincos will be around...
255
f5e79dda
BC
2562000-06-22 Branko Cibej <branko.cibej@hermes.si>
257
258 * Makefile.am (AM_MAKEFLAGS): Added WERROR to list of flags.
259
11fc1858
BK
2602000-06-22 Steven King <sxking@uswest.net>
261
262 * acinclude.m4: Check for sinl, _sinl using 1 parameter.
263
2642000-06-22 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
265
266 * acinclude.m4 (GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT): Redo. Use the
267 same approach as GLIBCPP_CHECK_MATH_SUPPORT, only don't try to
268 link against libm and don't use -fno-builtins...
269 * math/mathconf.h: Change up builtin macros to new schema.
270 * bits/std_cmath.h: And here. Wheee!
271 * shadow/bits/std_cmath.h: And here.
272 * acconfig.h: Change up builtin macros here.
273 * math/cosf.c: Remove.
274 * math/fabsf.c: Likewise.
275 * math/sinf.c: Likewise.
276 * math/sqrtf.c: Likewise.
277 * math/Makefile.am (EXTRA_DIST): Remove those four files.
278 * math/Makefile.in: Regenerate.
279
5f349042
BK
2802000-06-22 Anthony Williams <anthony@anthonyw.cjb.net>
281
282 * testsuite/21_strings/find.cc: Patch.
283
2842000-06-22 Benjamin Kosnik <bkoz@soma.redhat.com>
285
286 * acinclude.m4 (GLIBCPP_CHEC_LINKER_FEATURES): Use gcc + -x c++ as
287 an easy way to get at g++ without having to link in libstdc++.
288
38bd7296
BK
2892000-06-21 Benjamin Kosnik <bkoz@soma.redhat.com>
290
291 Fix alpha, powerpc build failures.
292 * acinclude.m4 (GLIBCPP_CHECK_MATH_SUPPORT): Substantially
293 re-write. Need to check for both proper declaration when using a
294 c++ compiler, and "C" linkage when linking. Do both, and if both
295 exist, then define the HAVE_* bits in config.h.
296 (GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE): New, uber-macro. Does all.
297 (GLIBCPP_CHECK_LINKER_FEATURES): Actually link and run this
298 program, doh.
299
60df8b81
BK
3002000-06-20 Anthony Williams <anthony@anthonyw.cjb.net>
301
302 * bits/string.tcc: Fix find.
303 * testsuite/21_strings/find.cc: Patch.
304
3052000-06-20 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
306
307 * docs/install.html: Update where to get automake, where to get
308 binutils.
309 * acinclude.m4: Need -fno-builtins too, so gcc doesn't recognize
310 builtins.
311
93c63813
BK
3122000-06-19 Benjamin Kosnik <bkoz@soma.redhat.com>
313
83fb52d8
BK
314 * acinclude.m4 ((GLIBCPP_CHECK_MATH_SUPPORT): Revert last change.
315 Add -Werror-implicit-function-declaration instead.
316
93c63813
BK
317 Regenerate with fixed maintainer-tools.
318 * aclocal.m4: Regenerate.
319 * configure: Regenerate.
320 * libio/Makefile.in: Regenerate.
321 * src/Makefile.in: Regenerate.
322
7f1063f8
RD
3232000-06-19 Russell Davidson <russell@ehess.cnrs-mrs.fr>
324
325 * testsuite/27_io/istream_extractor_arith.cc: Patch.
326 * bits/locale_factets.tcc: Tweak.
327
aac350aa
BK
3282000-06-19 Raja R Harinath <harinath@cs.umn.edu>
329
330 * src/Makefile.am: change @WERROR@ to $(WERROR) so that this can
331 be overridden on the command line for individual files.
332
2f103494
BK
3332000-06-19 Benjamin Kosnik <bkoz@soma.redhat.com>
334
aac350aa 335 * acinclude.m4 (GLIBCPP_CHECK_MATH_SUPPORT): Can't use
93c63813 336 AC_LANG_CPLUSPLUS as this tries to link in libstdc++, which we are
aac350aa
BK
337 building. Use -x c++ instead, which does not attempt to link
338 libstdc++.
339
340 * acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES): Actually check for
341 not coring when we hit a try/throw block, which was the problem
342 with the linker support...
343
2f103494
BK
344 * docs/17_intro/contribute.html: Add bits about getting to the LWG
345 issues pages.
346 * docs/documentation.html: Rename link to make more accurate and scary.
347 * docs/gccrebuild.html: Edit for clarity as these are no longer
348 separate projects.
349 * docs/install.html: Add bits about binutils for
350 -ffunction-sections, -fdata-sections, -Wl,--gc-sections
351
352 * configure.in: Add call for GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT.
353 * math/Makefile.am (EXTRA_DIST): Change USE_LONG_DOUBLE to
354 USE_COMPLEX_LONG_DOUBLE.
355 * acinclude.m4 (GLIBCPP_CHECK_MATH_SUPPORT): Break into
356 GLIBCPP_CHECK_MATH_SUPPORT and GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT.
357 Works around irregularies in powerpc "C" compiler, but a good idea
358 anyway.
359
360 * acinclude.m4 (GLIBCPP_CHECK_COMPLEX_MATH_COMPILER_SUPPORT):
361 New. Merge both old compiler bug checks for complex into this.
362
7626c237
BK
3632000-06-19 Anthony Williams <anthony@anthonyw.cjb.net>
364
365 * testsuite/21_strings/find.cc: Empty strings can be found at all
366 positions. Modified.
367
3682000-06-19 Branko Cibej <branko.cibej@hermes.si>
369
370 * testsuite/20_utilities: New directory.
371 * testsuite/20_utilities/auto_ptr.cc: New file.
372
c470c17d
BK
3732000-06-14 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
374
375 * src/Makefile.am (string_sources): Simplify, assuming that with
376 -ffunction-sections, -fdata-sections, -Wl,--gc-sections, all this
377 hacking is not necessary.
378 (wstring_sources): Same.
379 (OPTIMIZE_CXXFLAGS): Enable -fdata-sections -ffunction-sections
380 -Wl,--gc-sections.
381 * src/string-inst.cc: Remove macro blocks.
382 * mkcheck.in (CXX_FLAG): Add bits here.
383
384 * src/string-inst.cc: Remove iostream-related string instantiations.
385 * src/misc-inst.cc: Add here.
386
387 * acinclude.m4 (GLIBCPP_CHECK_COMPILER_VERSION): Change FMTFLAGS
388 to WFMT_FLAGS.
389 * aclocal.m4: Regenerate.
390 * configure.in: Change up.
391 * configure: Regenerate.
392
cc12edec
BK
3932000-06-13 Steven King <sxking@uswest.net>
394
395 * acinclude.m4: Fixup some of the builtin math tests and add tests for
396 __builtin_fmod* and test libm for fmodf, fmodl or _fmodf, _fmodl.
397 * acconfig.h: Add entries for fmod*.
398
5ae55a2e
BK
3992000-06-13 Branko Cibej <branko.cibej@hermes.si>
400
401 * bits/std_cmath.h: Fix typos in tests (*_FMODFF -> *_FMODF).
402 Test *_MODFF not *_MODF for modf(float, float*).
403 (modf(float, float*)): Remove reference to _C_legacy.
404
cc12edec
BK
4052000-06-13 Benjamin Kosnik <bkoz@redhat.com>
406
407 * acinclude.m4 (enable_cshadow_headers): Change CSHADOWFLAGS to
408 _GNU_SOURCE instead of _ISOC9X_SOURCE, as _GNU_SOURCE is the
409 superset, and already defined at top level.
410 * aclocal.m4: Regenerate.
411 * configure: Regenerate.
412
413 * docs/17_intro/contribute.html: Plead with people to use -cp.
414
8173b2d7
BK
4152000-06-13 Anthony Williams <anthony@anthonyw.cjb.net>
416
417 * testsuite/23_containers/bitset_ctor.cc: Qualify reverse wth std::.
418
419 * testsuite/27_io/filebuf.cc: Changed calls to
420 fpos<>._M_position() to implicit calls to operator streamoff().
421 * testsuite/27_io/iostream_objects.cc: Removed #include <ciso646>,
422 as not needed. Revert, as part of standard.
423 * testsuite/27_io/ostream_inserter_arith.cc: Replaced explicit
424 call to numpunct<>._M_init() with overrides of the appropriate
425 virtual functions.
426
427 * testsuite/27_io/stringstream.cc: Removed unnecessary char *
428 pointers from test01, so no need to call base(), which isn't
429 guaranteed to be implemented as iterators may themselves be pointers
430 * testsuite/27_io/stringbuf.cc: Removed unnecessary calls to
431 _M_position() - use implicit conversion to streamoff instead
432
4332000-06-13 Thomas Holenstein <thomas@hex.ch>
434
435 * bits/stl_iterator.h: Added inline to operators == to >=.
436
96cbf48b
BV
4372000-06-13 Brent Verner <brent@rcfile.org>
438
439 * bits/streambuf.tcc: repaired _S_copy_streambufs()
440 * testsuite/27_io/ostream_inserter_other.cc (test03): Added testcase.
441
088eb5a2
BK
4422000-06-12 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
443
444 * bits/locale_facets.h (ctype<wchar_t>): Remove unnecessary data
445 members.
446 * src/locale.cc: Add cwchar include here. Remove incorrect
447 definitions, and stub them out.
448 * config/generic/ctype.cc (ctype): Remove ctype<wchar_t> bits.
449 * config/solaris/solaris2.7/ctype.cc (ctype): Same.
450 * config/solaris/solaris2.5/ctype.cc (ctype): Same.
451 * config/newlib/ctype.cc: Same.
452 * config/gnu-linux/ctype.cc: Same.
453 * config/bsd/ctype.cc: Same.
454 * config/aix/ctype.cc: Same.
455
4562000-06-12 Branko Cibej <branko.cibej@hermes.si>
457
458 * config/solaris/solaris2.6/ctype.cc (do_toupper, do_tolower): Use
459 towupper and towlower to convert wide characters.
460
d54a528a
BK
4612000-06-12 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
462
463 * mkcheck.in: Clean up confusion regarding NAME, PRE_NAME.
464
6c820cf2
BC
4652000-06-08 Branko Cibej <branko.cibej@hermes.si>
466
467 * acinclude.m4 (GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT): Check for
468 sinf, cosf, fabsf, and sqrtf; add to LIBMATHOBJS if missing.
469 * aclocal.m4: Regenerate.
470 * configure: Regenerate.
471 * math/cosf.c: New file.
472 * math/fabsf.c: Likewise.
473 * math/sinf.c: Likewise.
474 * math/sqrtf.c: Likewise.
475 * math/Makefile.am (EXTRA_DIST): Add those four files.
476 * math/Makefile.in: Regenerate.
477
5c61f0f2
PE
4782000-06-08 Phil Edwards <pme@sourceware.cygnus.com>
479
480 * testsuite/26_numerics/complex_inserters_extractors.cc: Need cmath.
481
54fa7415
SK
4822000-06-06 Steven King <sxking@uswest.net>
483
484 * acconfig.h: Added defines for HAVE_BUILTIN math functs for float,
485 double and long double. Added defines for HAVE libm math functs for
486 float and long double.
487 * aclocal.m4: Added configure checks for builtin math funcs and libm
488 support for float and long double versions of the math functions.
489 * config.h.in: Added undefs for math functs.
490 * configure: Regenerate.
491 * math/mathconf: Changed the _GLIBCPP_HAS_BUILTIN_* to
492 _GLIBCPP_HAVE_BUILTIN_*.
493 * bits/std_cmath.h: Added long double support. Use builtins for
494 float, double and long if available, otherwise, use libm versions if
495 availible, otherwise, punt.
496 * shadow/bits/std_cmath.h: ditto
497
c9b39473
BK
4982000-06-02 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
499
cc4316b5
BK
500 * bits/locale_facets.h: Tweak.
501 * src/locale.cc (codecvt<wchar_t>): Tweak.
502
c9b39473
BK
503 * bits/locale_facets.h (_Format_cache): _S_ecks -> _S_x.
504 * bits/locale_facets.tcc (num_get<char>::_M_extract): Fix for hex.
505
cc4316b5
BK
506 * bits/basic_string.h: Move data member up.
507 * src/string-inst.cc: Fix instantiations.
508 * bits/string.tcc: Fix types.
509
3ce74580
AW
5102000-06-02 Anthony Williams <anthony@anthonyw.cjb.net>
511
512 * testsuite/21_strings/replace.cc (test01): Qualify find with std::.
513
3840fa2a
BK
5142000-06-01 Benjamin Kosnik <bkoz@gnu.org>
515
516 * bits/std_cwctype.h: Clean.
517 * bits/std_cwchar.h: Clean, remove cruft.
518
519 * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Re-work, add bits
520 for beginning iconv support.
521 Remove _GLIBCPP_HAS_WCHAR_MIN_MAX, roll into _GLIBCPP_USE_WCHAR_T
522 macro.
523 * acconfig.h: Remove _GLIBCPP_HAS_WCHAR_MIN_MAX.
524 * bits/limits_generic.h: Remove.
525 * src/gen-num-limits.cc: Same.
526
527 * src/locale.cc: Tweaks.
528
529 * bits/char_traits.h: Tweaks.
530
64cdd351
BK
5312000-05-31 Russell Davidson <russell@ehess.cnrs-mrs.fr>
532
533 * bits/locale_facets.tcc (num_get<char>::_M_extract): Fix signage,
534 exponent, scientific formatting issues.
535 * testsuite/27_io/istream_extractor_arith.cc (test09): Add tests.
536
b2c62b3c
BC
5372000-05-31 Branko Cibej <branko.cibej@hermes.si>
538
539 * bits/limits_generic.h (numeric_limits<wchar_t>): Use WCHAR_MIN
540 and WCHAR_MAX instead of WCHART_MIN and WCHART_MAX.
541
149a0abf
NM
5422000-05-31 Nathan Myers <ncm@cantrip.org>
543
544 * docs/thanks.html: edit own credits
545
30ff6342
BK
5462000-05-31 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
547
83bcda1e
BK
548 * bits/generic_shadow.h: Remaining _C_Shadow -> _C_shadow fix.
549
30ff6342
BK
550 * acinclude.m4 (GLIBCPP_ENABLE_LONG_LONG): Add strtoull checks...
551
64cdd351
BK
552 * mkcheck.in (SH_FLAG): Add in -Wl,--rpath -Wl,$LIB_PATH. Tweaks.
553
30ff6342
BK
5542000-05-31 Steven King <sxking@uswest.net>
555
556 * shadow/time.h: fix typo
557 * shadow/wchar.h: ifdef __USE_GNU for wcsdup
558 * shadow/bits/std_cwchar.h: ditto
559 * shadow/bits/std_cstdlib.h: add overloads of abs and div for long
560 and long long.
561
0137be2d
PE
5622000-05-26 Phil Edwards <pme@sourceware.cygnus.com>
563
564 * acinclude.m4 (GLIBCPP_ENABLE_LONG_LONG): If strtoll isn't
565 available, force --disable. Need to flesh this out; make smarter.
566 * aclocal.m4: Regenerate.
567 * configure: Regenerate.
568
569 * mkcheck.in: Minor tweaks.
570 * docs/download.html: Fix typo.
571
5b80666b
BK
5722000-05-25 Benjamin Kosnik <bkoz@milou.soma.redhat.com>
573
574 * inclosure: Change to...
575 * mkinclosure: This.
576 Fix paths to bash.
577 * mkcshadow: Fix paths to bash.
578
579 * src/Makefile.am: Tweaks. Do cshadow header trickery at build time.
580 * src/Makefile.in: Regnerate.
581 * acinclude.m4 (GLIBCPP_COMPILER_VERSION): Fix typo.
582 (GLIBCPP_ENABLE_SHADOW): Do a less gross hack.
583 * aclocal.m4: Regenerate.
39e09fba 584 * mkcheck.in (INC_PATH): Tweak.
5b80666b
BK
585
586 * configure.in: Enable long long by default.
587 * configure: Regenerate.
588
589 * mkcheck.in (LIB_PATH): Revert.
590
bf93f43b
BK
5912000-05-24 Nathan "I don't write ChangeLog Entries" Myers <ncm@cantrip.org>
592
593 * config/cpu/i486: New directory.
594 * config/cpu/i486/bits: New directory.
595 * config/cpu/i486/bits/atomicity.h: New file.
596 * config/cpu/i386/bits/atomicity.h (__compare_and_swap): Delete
597 'cmpxchgl' asm.
598 * acinclude.m4 (GLIBCPP_CHECK_CPU): Enable i386.
599
6002000-05-24 Loren J. Rittle <ljrittle@acm.org>
601
602 * backward/alloc.h (__default_alloc_template): Only expose
603 implementation-specific symbol, if it exists in the
604 configuration.
605 * backward/iostream.h (ends): Expose symbol.
606 * backward/strstream.h: New file.
607 * backward/stream.h: New file.
608 * backward/ostream.h: New file.
609 * backward/istream.h: New file.
610 * backward/fstream.h: New file.
611 * backward/complex.h: New file.
612 * backward/iomanip.h: New file.
613
614 * mkcheck.in (LIB_PATH): Add -R bits.
615
616 * math/carg.c (carg): Replace __atan2 with atan2.
617
d3a12960
BK
6182000-05-24 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
619
d94611f1
BK
620 * Makefile.am (TAGS): Construct.
621 * Makefile.in: Rengerate.
622 * src/Makefile.am: Tweak.
623 * src/Makefile.in: Tweak.
624 * configure.in: Tweak.
625
626 * bits/c++config.h: Rename to ...
627 * bits/c++config: This.
628 * mkc++config: Adjust.
629
af9fe0d1
BK
630 * m4: Remove.
631 * m4/lc_message.m4: Merge into acinclude.m4.
632 * m4/mathfcts.m4: Same.
633 * m4/stringfcts.m4: Same.
634 * acinclude.m4: Add here.
635 * configure: Regnerate.
636
d3a12960
BK
637 * acinclude.m4 (GLIBCPP_CHECK_COMPILER_VERSION): Remove
638 OPTLEVEL. Add FMTFLAGS.
639 * aclocal.m4: Regenerate.
af9fe0d1
BK
640 * src/Makefile.am (AC_CXXFLAGS): Take out OPTLEVEL, as this has
641 been disabled due to higher-level Makefiles running amuck over
d3a12960
BK
642 this bit, and add in FMTFLAGS so that formatting is clear.
643 * src/Makefile.in: Regenerate.
644 * configure: Regenerate.
645
bf93f43b 646 * src/ios.cc (ios_base::sync_with_stdio): Clean up buffers from
d3a12960
BK
647 initialization.
648
649 * docs/download.html: Remove references to Cygwin-specific bits,
650 as this can now be built natively.
651 Update with current information.
652
a4e99046
PE
6532000-05-24 Phil Edwards <pme@sourceware.cygnus.com>
654
655 * acinclude.m4 (GLIBCPP_CHECK_COMPILER_VERSION): If we can use
656 -fdiagnostics-show-location=once, do so. Expand AC_LANG_* to
657 enclose other tests in this macro, including future ones.
658 * aclocal.m4: Regenerate.
659 * configure: Regenerate.
660
661 * docs/faq/index.html: Update location of libg++ FAQ.
662 * docs/faq/index.txt: Regenerate.
663
d3a12960 6642000-05-22 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
6f5ed736
BK
665
666 * docs/17_intro/libstdc++-assign.txt: Change Cygnus to FSF.
667
276c771b
PE
6682000-05-22 Phil Edwards <pme@sourceware.cygnus.com>
669
670 * mkcheck.in: Tweak for Solaris 8. Additional minor output comment.
671
11a6e9a7
PE
6722000-05-22 Phil Edwards <pme@sourceware.cygnus.com>
673
674 * acinclude.m4: If the new pragma isn't supported, don't kill -Werror;
675 keep -Werror and add -Wno-unknown-pragma. -Werror Is Good.
676 * aclocal.m4: Regenerate.
677 * configure: Regenerate.
678
0d9a68e8
NM
6792000-05-19 Nathan C. Myers <ncm@cantrip.org>
680
681 * bits/generic_shadow.h: s/swamp/legacy/
682
8bd636c5
PE
6832000-05-19 Phil Edwards <pme@sourceware.cygnus.com>
684
685 * acinclude.m4: Clean up comments on newer checks.
686 (GLIBCPP_CHECK_COMPILER_VERSION): Check for system_header
687 pragma support. Remove WERRORSUPPRESS variable, add WERROR.
688 * aclocal.m4: Regenerate.
689 * configure: Regenerate.
690 * Makefile.in: Regenerate.
691 * libio/Makefile.in: Regenerate.
692 * math/Makefile.in: Regenerate.
693 * src/Makefile.am: Tell make's WERROR to depend on configure's WERROR.
694 * src/Makefile.in: Regenerate.
695 * docs/configopts.html: Document changes to --enable names.
696
6dad70df
BK
6972000-05-18 Chip Salzenberg <chip@valinux.com>
698
699 * bits/ostream.tcc (_S_pad_char): Function template should not be
700 static.
701 * bits/streambuf.tcc (_S_copy_streambufs): Likewise.
702 * src/string-inst.cc (__destroy_aux): Instantiate for string*.
703
7042000-05-18 Nathan C. Myers <ncm@cantrip.org>
705
706 * mkcshadow: Change C_Swamp to C_legacy.
707 * shadow/*: Same.
708 * shadow/bits/*: Same.
709 s/C_Swamp/C_legacy/g
710 s/SWAMP/LEGACY/g
711 s/_Shadow/_shadow/g
712
7132000-05-18 Anthony Williams <anthony@anthonyw.cjb.net>
714
715 * bits/locale_facets.tcc (num_get::_M_extract): Change char* to
716 const char*.
717 * src/string-inst.cc (string::_S_find): Same.
718
d0d88ce3
BK
7192000-05-18 Benjamin Kosnik <bkoz@gnu.org>
720
721 * acinclude.m4 (GLIBCPP_ENABLE_SHADOW): Change to
722 --enable-cshadow-headers. Add output messages.
723 (GCC_ENABLE_LONG_LONG): Change to --enable-long-long, no
724 underscores (like the rest of the enable options.) Add output messages.
725 * aclocal.m4: Regenerate.
726 * configure: Regenerate.
727 * configure.in: Touch.
728
a51ef160
BK
7292000-05-17 Benjamin Kosnik <bkoz@cygnus.com>
730
731 * mkcheck.in: Enable shared library testing.
732
811e551b
BK
7332000-05-17 Nathan C. Myers <ncm@cantrip.org>
734
735 * bits/std_cmath.h: fix sqrt(float)
736
7372000-05-16 Loren J. Rittle <ljrittle@acm.org>
738
739 * bits/std_cassert.h: Use system_header pragma.
740 * bits/std_cctype.h: Likewise.
741 * bits/std_cerrno.h: Likewise.
742 * bits/std_cfloat.h: Likewise.
743 * bits/std_climits.h: Likewise.
744 * bits/std_clocale.h: Likewise.
745 * bits/std_cmath.h: Likewise.
746 * bits/std_csetjmp.h: Likewise.
747 * bits/std_csignal.h: Likewise.
748 * bits/std_cstdarg.h: Likewise.
749 * bits/std_cstddef.h: Likewise.
750 * bits/std_cstdio.h: Likewise.
751 * bits/std_cstdlib.h: Likewise.
752 * bits/std_cstring.h: Likewise.
753 * bits/std_ctime.h: Likewise.
754 * bits/std_cwchar.h: Likewise.
755 * bits/std_cwctype.h: Likewise.
756 * bits/std_exception.h: Likewise.
757 * bits/std_new.h: Likewise.
758 * bits/std_typeinfo.h: Likewise.
759 * shadow/bits/std_cassert.h: Likewise.
760 * shadow/bits/std_cctype.h: Likewise.
761 * shadow/bits/std_cerrno.h: Likewise.
762 * shadow/bits/std_cfloat.h: Likewise.
763 * shadow/bits/std_climits.h: Likewise.
764 * shadow/bits/std_clocale.h: Likewise.
765 * shadow/bits/std_cmath.h: Likewise.
766 * shadow/bits/std_csetjmp.h: Likewise.
767 * shadow/bits/std_csignal.h: Likewise.
768 * shadow/bits/std_cstdarg.h: Likewise.
769 * shadow/bits/std_cstddef.h: Likewise.
770 * shadow/bits/std_cstdio.h: Likewise.
771 * shadow/bits/std_cstdlib.h: Likewise.
772 * shadow/bits/std_cstring.h: Likewise.
773 * shadow/bits/std_ctime.h: Likewise.
774 * shadow/bits/std_cwchar.h: Likewise.
775 * shadow/bits/std_cwctype.h: Likewise.
776 * shadow/bits/wrap_libio.h: Likewise.
777 * shadow/bits/wrap_unistd.h: Likewise.
778 * shadow/sys/cdefs.h: Likewise.
779
7802000-05-16 Nathan C. Myers <ncm@cantrip.org>
781
782 It appears that gcc-2.96 supports the keyword "and" now.
783 * bits/std_ciso646.h: remove.
784 * std/ciso646: gut.
785 * testsuite/17_intro/header_ciso646.c: enable testing.
786 * src/Makefile.am, src/Makefile.in: remove mention of
787 bits/std_ciso646.h
788
a5c0553d
NM
7892000-05-16 Nathan C. Myers <ncm@cantrip.org>
790
791 * mkcshadow: fix typo s/_C_Swamp_/_C_Swamp/.
792
032cc955
PE
7932000-05-16 Phil Edwards <pme@sourceware.cygnus.com>
794
795 * acinclude.m4: Fix typo, switch to decaf...
796 * aclocal.m4: Regenerate.
797 * configure: Regenerate.
798
99246c90
PE
7992000-05-16 Phil Edwards <pme@sourceware.cygnus.com>
800
801 * acinclude.m4 (GLIBCPP_ENABLE_SHADOW): New macro, stub.
802 * aclocal.m4: Regenerate.
803 * configure.in: Call.
804 * configure: Regenerate.
805 * docs/configopts.html: Stub documentation.
806
6ad50467
BK
8072000-05-14 Nathan Myers <ncm@cantrip.org>
808
809 * mkcshadow: build in more-correct directory, create cshadow/
810 directory if needed, report progress.
811
8122000-05-14 LLeweLLyn Reese <llewelly@dbritsch.dsl.xmission.com>
813
814 * src/Makefile.am: Fix tr commands.
815 * src/Makefile.am: Remove references to [w]stringCTORDUPAL.[lo,cc]
816 * src/string-inst.cc: Remove extra instantiation of
817 S::basic_string(S::size_type, C, S::allocator_type const&);
818 * src/string-inst.cc: Remove extra template keyword.
819
8202000-05-14 Loren J. Rittle <ljrittle@acm.org>
821
822 * config/bsd/bits/ctype_base.h: Add support for plain BSD4.4.
823 * acinclude.m4 (GLIBCPP_CHECK_CTYPE): Enhance bsd tests.
824 * aclocal.m4: Regenerate.
825 * configure: Regenerate.
826 * */Makefile.in: Regenerate.
827
32a4595e
PE
8282000-05-11 Phil Edwards <pme@sourceware.cygnus.com>
829
830 * acinclude.m4: Fix minor typo with ctypes, add more sanity to
831 enable-cxx-flags, and remove GLIBCPP_ENABLE_NAMESPACES altogether.
832 * aclocal.m4: Regenerate.
833 * configure.in: Non-blank arguments break fewer Linuxes.
834 * configure: Regenerate.
835 * src/Makefile.am: Re-order AC_CXXFLAGS components.
836 * src/Makefile.in: Regenerate.
837
f035fae1
BK
8382000-05-10 Benjamin Kosnik <bkoz@redhat.com>
839
991a40fc
BK
840 * bits/std_cmath.h: Tweaks.
841 * math/mathconf.h: Tweaks and fixes for HP-UX 11.
842 (sqrtf): Define away iff !builtin and !in <math.h>.
843 (sinf): Same.
844 (cosf): Same.
845 (fabsf): Same.
846 At some point this directory should be converted to c++, the
847 autoconf tests should be run by the c++ compiler (not c), and
848 <cmath> should be used instead of math.h.
849 Move declaration of nan() here.
850 * math/complex-stub.h (cabsl): Remove nan() declaration.
851
f035fae1
BK
852 Finish up FreeBSD4.0 support.
853 * config/bsd/ctype.cc: Scope out toupper, tolower calls.
854 * config/generic/ctype.cc: And here.
855 * testsuite/21_strings/char_traits.cc (test02): Guard with
856 _GLIBCPP_USE_WCHAR_T.
857
991a40fc
BK
858 via Phil Edwards <pme@sourceware.cygnus.com>
859 * bits/std_cctype.h: Remove _GLIBCPP_USE_NAMESPACES.
860 * acconfig.h: And here.
861 * acinclude.m4: Same.
862 * testsuite/27_io/istream.cc: And here.
863 * testsuite/27_io/ostream.cc: And here.
864
7b267e3e
BK
8652000-05-09 Benjamin Kosnik <bkoz@gnu.org>
866
867 * acinclude.m4 (GLIBCPP_CHECK_CPU): Change powerpc bits to
868 -mcpu=powerpc.
9e9ada45
BK
869 * src/Makefile.am: Disable ENABLE_CXX_FLAGS stuff for the moment.
870
7b267e3e
BK
871 * config/generic/bits/ctype_specializations.h (ctype<char>::is):
872 Make more generic.
873
874 * config/bsd: New directory.
875 * config/bsd/ctype.cc: New.
876 * config/bsd/bits/ctype_base.h (ctype_base): New.
877 * config/bsd/bits/ctype_specializations.h: New.
878 * acinclude.m4 (GLIBCPP_CHECK_CTYPE): Add bsd tests.
879
dcfa0bc8
PE
8802000-05-09 Phil Edwards <pme@sourceware.cygnus.com>
881
882 * acinclude.m4: New macro, GLIBCPP_ENABLE_CXX_FLAGS.
883 * configure.in: Call.
884 * src/Makefile.am: Append results of macro to AC_CXXFLAGS.
885 * aclocal.m4: Regenerate.
886 * configure: Ditto.
887 * src/Makefile.in: Ditto.
888 * docs/configopts.html: Document.
889 * docs/download.html: Fix typo (close quote).
890 * docs/footer.html: Update.
891
55718a0b
BK
8922000-05-09 Loren J. Rittle <ljrittle@acm.org>
893
894 * backward/iostream.h: Expose endl. Guard wide types.
895 * src/Makefile.am (headers): Update list to match files.
896 * src/Makefile.in: Regenerate.
897
8982000-05-09 Vadim Egorov <egorovv@mailandnews.com>
c0b84d79
VE
899 Benjamin Kosnik <bkoz@gnu.org>
900 Nathan Myers <ncm@cantrip.org>
901 Dietmar Kuehl <dietmar_kuehl@yahoo.com>
902
903 * bits/streambuf.tcc (basic_streambuf::xsgetn): Fix uflow case.
904 (basic_streambuf::xsputn): Make consistent.
905 * testsuite/27_io/filebuf.cc: Add tests.
906
943ff2a0 9072000-05-08 Steven King <sxking@uswest.net>
8445e42a 908
55718a0b 909 * bits/char_traits.h: Use wchar_t utility functions for
8445e42a
SK
910 char_traits<wchar_t> methods.
911 * testsuite/21_string/char_traits.cc: New (test02): test
912 char_traits<wchar_t>
913
d207c3f7
BK
9142000-05-08 Benjamin Kosnik <bkoz@cygnus.com>
915
8445e42a
SK
916 * acinclude.m4 (GLIBCPP_CXXFLAGS): Add bits for solaris2.8.
917
d207c3f7
BK
918 * bits/fstream.tcc (filebuf::_M_init_filebuf): Don't set
919 _M_buf_size based on macro, instead use _M_buf_size_opt.
920 * bits/std_streambuf.h (basic_streambuf): Add _M_buf_size_opt.
921 (basic_streambuf()): Set _M_buf_size_opt.
922 * testsuite/27_io/filebuf.cc (filebuf): Use _M_buf_size_opt
923 instead of _M_buf_size.
924
bfe5c121
BC
9252000-05-04 Branko Cibej <branko.cibej@hermes.si>
926
927 * src/complex_io.cc: Don't instantiate inserters and extractors
928 for wide-character streams unless _GLIBCPP_USE_WCHAR_T is defined.
929
754ac8f7
PE
9302000-05-03 Phil Edwards <pme@sourceware.cygnus.com>
931 Felix Natter <fnatter@gmx.net>
932
933 * docs/footer.html: Update to see if it takes effect.
934 * docs/thanks.html: More people.
935 * docs/17_intro/headers_cc.txt: Copy from testsuite, since that can't
936 be seen from the web pages. Rename for browser-friendliness...
937 * docs/17_intro/howto.html: ...and update here.
938 * docs/17_intro/porting-howto.html: Changes from Felix.
939 * docs/gccrebuild.html: Mention v3->egcs move.
940 * docs/faq/index.html: Ditto. Also misc tweaks and URL updates.
941 * docs/faq/index.txt: Regenerate.
942
e704c6bf
BK
9432000-05-01 Benjamin Kosnik <bkoz@redhat.com>
944
945 * config/cpu/powerpc/bits/atomicity.h (__exchange_and_add): More
946 fixes.
947
8fd05cb0
VE
9482000-05-01 Vadim Egorov <egorovv@@mailandnews.com>
949
950 * bits/char_traits.h: Fix parameter types.
951 * bits/string.tcc: Avoid traits_type::move.
952
cde28f0d
BK
9532000-05-01 Benjamin Kosnik <bkoz@haight.constant.com>
954
955 * src/Makefile.am (AC_CXXFLAGS): Add CPUFLAGS here.
956 * src/Makefile.in: Regenerate.
957 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Revert.
958
53a6ca29
SK
9592000-04-30 Steven King <sxking@uswest.net>
960
961 * bits/locale_facets.h: Fix syntax error.
962 * bits/std_fstream.h: ditto
963
6dd4c3fd
BK
9642000-04-30 Benjamin Kosnik <bkoz@gnu.org>
965
b7fe530c
BK
966 * config/cpu/powerpc/bits/atomicity.h (__compare_and_swap): Fix typo.
967
6dd4c3fd
BK
968 * mknumeric_limits (trait_name): Fix copyright notice.
969 * src/gen-num-limits.cc: Explicitly instantiate epsilon and
970 round_error data members of struct value. This works around
971 weak-linking issues on AIX, HPUX.
972
0bf0f027
PE
9732000-04-29 Phil Edwards <pme@sourceware.cygnus.com>
974
975 * docs/download.html: Add link to list of mirror sites.
976
3f49b842
BK
9772000-04-28 Loren J. Rittle <ljrittle@acm.org>
978
979 * mkcheck.in: Rely on exit status instead of the presence of a
980 core file. Added comments on how/where to save core and exe
981 files. Move shell wildcards outside quotes and fix core path.
982
9832000-04-27 scott snyder <snyder@fnal.gov>
984
985 * src/misc-inst.cc: Explicitly instantiate ifstream and ofstream
986 classes.
987
f3b004d8
BK
9882000-04-26 Nathan C. Myers <ncm@cantrip.org>
989
990 * bits/basic_string.h: include <bits/atomicity.h> instead
991 of <atomicity.h>, and use the uglified names.
992 * config/cpu/*/atomicity.h: replace with bits/atomicity.h;
993 uglify names, eliminate dependence on <inttypes.h>.
994 * src/Makefile.in, src/Makefile.am: refer to correct place
995 for atomicity.h header.
996
9972000-04-25 Steven King <sxking@uswest.net>
998
999 * bits/basic_string.h: Fix syntax error.
1000
10012000-04-25 Benjamin Kosnik <bkoz@redhat.com>
1002
1003 * acinclude.m4 (GLIBCPP_CHECK_MATH_SUPPORT): Improve checks for
1004 USE_LONG_DOUBLE.
1005 (GLIBCPP_ENABLE_DEBUG): If alpha, use -gdwarf-2.
1006 * math/Makefile.am (EXTRA_LONG_DOUBLE_yes): Add all the long
1007 versions to this as copysignl is needed anyway for these targets.
1008 * math/Makefile.in: Regenerate.
1009
1010 * bits/streambuf.tcc (streambuf::xsgetn): Tweak.
1011 * bits/fstream.tcc (underflow): Cast to libio types.
1012 * bits/basic_file.h (seekoff): Fixes for alpha: use __c_streamoff.
1013 * config/c_io_libio.cc (seekoff): And here.
1014
f7f8b180
LR
10152000-04-24 Loren J. Rittle <ljrittle@acm.org>
1016
1017 * mkcheck.in: Report compiler version used for test. Find
1018 the built _G_config.h instead of any old installed version.
1019
f4dad842
LR
10202000-04-24 Loren J. Rittle <ljrittle@acm.org>
1021
1022 * config/generic/ctype.cc (do_toupper): Remove dependence on
1023 non-portable/non-existent lookup table.
1024 (do_tolower): Same.
1025
5d89258a
BK
10262000-04-24 Nathan Myers <ncm@cantrip.org>
1027
1028 * src/string-inst.cc: More fixing.
1029
10302000-04-24 Benjamin Kosnik <bkoz@gnu.org>
1031
1032 * bits/stl_iterator.h: Pedantic fixing.
1033 * bits/std_sstream.h: And here.
1034 * bits/string.tcc: And here.
1035
10362000-04-24 Felix Natter <fnatter@gmx.net>
1037
1038 * docs/17_intro/howto.html: Add bits.
1039 * docs/17_intro/porting-howto.html: New file.
1040
10412000-04-24 Branko Cibej <branko.cibej@hermes.si>
1042
1043 * acinclude.m4(GLIBCPP_CHECK_WCHAR_T_SUPPORT): Expand
1044 @libinst_wstring_la@ to libinst-wstring.la when specializing for
1045 wchar_t, to empty string otherwise.
1046 * src/Makefile.am: (EXTRA_LTLIBRARIES): New.
1047 (sources): Remove $(string_sources) and $(wstring_sources).
1048 (libstdc___la_LIBADD): Add libinst-string.la and @libinst_wstring_la@.
1049 (libstdc___la_DEPENDENCIES): New.
1050 (libinst_string_la_SOURCES, libinst_wstring_la_SOURCES): New.
1051
b2dad0e3
BK
10522000-04-20 Benjamin Kosnik <bkoz@redhat.com>
1053
1054 * bits/std_sstream.h: Tweak formatting.
1055 * bits/std_fstream.h: Make types public.
1056
1057 * testsuite/27_io/streambuf.cc: Fix for alpha.
1058
1059 Brad Garcia <bgarcia@laurelnetworks.com>
1060 * bits/locale_facets.h (numpunct::numpunct(size_t)): Fix bool
1061 initialization.
1062 * testsuite/27_io/ios_manip_fmtflags.cc (test02): Add test for
1063 bool formatting.
1064
10652000-04-19 Nathan Myers <ncm@cantrip.org>
1066
1067 * src/string-inst: consolidate _S_create,
1068 destroy, leak, clone members into stringMAIN and stringMUTATE
1069 object files.
1070 * src/Makefile.am: Above, and eliminate dependence on
1071 wstring-inst.cc.
1072 * src/wstring-inst.cc: Remove.
1073
10742000-04-18 Benjamin Kosnik <bkoz@redhat.com>
1075
1076 * src/Makefile.am (AC_CXXFLAGS): Activate debugging code, again.
1077 Add flags for specialized rules dealing with instantiations.
1078
1079 * src/string-inst.cc: Add instantiations missing from shared
1080 libraries--see stringEQ, stringCONSC.
1081 * src/Makefile.am (wstring_sources): Add.
1082 (string_sources): Same.
1083 * src/Makefile.in: Regenerate.
1084
1085 * stl/*: Integrate contents of this directory into top-level
1086 directories.
1087 * ext/bvector hash_map hash_set rope ropeimpl.h slist
1088 stl_bvector.h stl_hash_fun.h stl_hashtable.h stl_rope.h tree: Add.
1089 * bits/pthread_allocimpl.h std_algorithm.h std_bitset.h
1090 std_deque.h std_functional.h std_iterator.h std_list.h std_map.h
1091 std_memory.h std_numeric.h std_queue.h std_set.h std_stack.h
1092 std_stdexcept.h std_strstream.h std_utility.h std_vector.h
1093 stl_algo.h stl_algobase.h stl_alloc.h stl_config.h stl_construct.h
1094 stl_deque.h stl_function.h stl_heap.h stl_iterator.h
1095 stl_iterator_base.h stl_list.h stl_map.h stl_multimap.h
1096 stl_multiset.h stl_numeric.h stl_pair.h stl_pthread_alloc.h
1097 stl_queue.h stl_range_errors.h stl_raw_storage_iter.h stl_relops.h
1098 stl_set.h stl_stack.h stl_string_fwd.h stl_tempbuf.h stl_threads.h
1099 stl_tree.h stl_uninitialized.h stl_vector.h type_traits.h: Add.
1100 * backward/algo.h algobase.h alloc.h bvector.h defalloc.h deque.h
1101 function.h hash_map.h hash_set.h hashtable.h heap.h iterator.h
1102 list.h map.h multimap.h multiset.h pair.h rope.h set.h slist.h
1103 stack.h tempbuf.h tree.h vector.h: Add.
1104 * README (file): Update.
1105 * docs/documentation.html: README not being found.
1106 * src/Makefile.am (sources): Take out stl directory.
1107 * mkcheck.in (SRC_DIR): And here.
1108 * src/Makefile.in: Regenerate.
1109
11102000-04-18 Levente Farkas <lfarkas@mindmaker.hu>
1111
1112 * stl/bits/stl_function.h: Add bits so that const and non-const
1113 both work.
1114
11152000-04-18 scott snyder <snyder@fnal.gov>
1116
1117 * stl/bits/stl_map.h (class map): Fix default for _Alloc template
1118 parameter. Get rid of use of __STL_DEFAULT_ALLOCATOR and
1119 __STL_LIMITED_DEFAULT_TEMPLATES macros.
1120 * stl/bits/stl_multimap.h (class multimap): Likewise. Get rid of
1121 use of __STL_DEPENDENT_DEFAULT_TMPL macro.
1122
11232000-04-18 scott snyder <snyder@fnal.gov>
1124
1125 * stl/bits/stl_config.h (__STL_DEPENDENT_DEFAULT_TMPL): Deleted
1126 this macro.
1127
1128 * stl/ext/hash_map (class hash_map, class hash_multimap): Get rid
1129 of use of __STL_DEPENDENT_DEFAULT_TMPL macro.
1130 * stl/ext/hash_set (class hash_set, class hash_multiset):
1131 Likewise.
1132 * stl/bits/stl_function.h (struct constant_unary_fun, struct
1133 constant_binary_fun): Likewise.
1134 * stl/bits/stl_queue.h (class queue, class priority_queue): Likewise.
1135 * stl/bits/stl_stack.h (class stack): Likewise.
1136 * stl/bits/stl_set.h (class set): Likewise.
1137 * stl/bits/stl_multiset.h (class multiset): Likewise.
1138
1139 * stl/bits/stl_iterator.h (class reverse_bidirectional_iterator,
1140 class reverse_iterator): Get rid of use of
1141 __STL_LIMITED_DEFAULT_TEMPLATES macro.
1142
1143 * stl/bits/stl_config.h (__STL_DEFAULT_ALLOCATOR): Deleted this
1144 macro.
1145
1146 * stl/bits/stl_deque.h (class deque): Get rid of use of
1147 __STL_DEFAULT_ALLOCATOR macro.
1148 * stl/bits/stl_list.h (class list): Likewise.
1149 * stl/bits/stl_multiset.h (class multiset): Likewise.
1150 * stl/bits/stl_set.h (class set): Likewise.
1151 * stl/bits/stl_string_fwd.h (class basic_string): Likewise.
1152 * stl/bits/stl_tree.h (class _Rb_tree, class rb_tree): Likewise.
1153 * stl/bits/stl_vector.h (class vector): Likewise.
1154 * stl/ext/ropeimpl.h (rotate): Likewise.
1155 * stl/ext/hash_map (class hash_map, class hash_multimap):
1156 Likewise.
1157 * stl/ext/hash_set (class hash_set, class hash_multiset):
1158 Likewise.
1159 * stl/ext/slist (class slist): Likewise.
1160 * stl/ext/stl_bvector.h (class bit_vector): Likewise.
1161 * stl/ext/stl_rope.h (class rope): Likewise.
1162 * src/locale.cc (_Impl): Likewise.
1163 * src/localename.cc (_Impl): Likewise.
1164 * bits/localefwd.h (_Impl): Likewise.
1165
11662000-04-18 Phil Edwards <pme@sourceware.cygnus.com>
1167
1168 * docs/install.html: Cleanup, minor changes.
1169 * docs/17_intro/howto.html: Ditto.
1170
11712000-04-18 Nathan Myers <ncm@cantrip.org>
1172
1173 * bits/basic_string.h: Remove "inline" from member _S_find.
1174
1175 * src/string-inst.cc: Rewrite to reflect non-inline template
1176 instantiations in string.tcc.
1177
1178 * src/stringADDCS.cc, stringADDPS.cc, stringADDSC.cc, stringADDSP.cc,
1179 stringADDSS.cc, stringBIST.cc, stringBOST.cc, stringCHTR.cc,
1180 stringEQPS.cc, stringEQSP.cc, stringEQSS.cc, stringEXTRA.cc,
1181 stringGEPS.cc, stringGESP.cc, stringGESS.cc, stringGETLI.cc,
1182 stringGTPS.cc, stringGTPS.cc, stringGTSP.cc, stringGTSS.cc,
1183 stringINSER.cc, stringLEPS.cc, stringLESP.cc, stringLESS.cc,
1184 stringLESP.cc, stringLTPS.cc, stringLTPS.cc, stringLTSP.cc,
1185 stringLTSS.cc, stringMAIN.cc, stringNEPS.cc, stringNESP.cc,
1186 stringNESS.cc, stringSCOPY.cc: Remove.
1187 * src/wstringADDCS.cc, etc: Remove.
1188
1189 Benjamin Kosnik <bkoz@haight.constant.com>
1190 * src/Makefile.am: Modify to reflect above.
1191 * src/Makefile.in: Regenerate.
1192
11932000-04-17 Benjamin Kosnik <bkoz@cygnus.com>
1194
1195 * docs/install.html (--enable-libstdcxx-v3): Clean up install docs.
1196
11972000-04-13 Benjamin Kosnik <bkoz@haight.cygnus.com>
1198
1199 * bits/std_fstream.h (filebuf::sync): Need to use the abstracted
1200 io interface here instead of the libio particulars.
1201
1202 * config/threads-posix.h: Consistency with stl_config.h.
1203
1204 * mkcheck.in (CXX_FLAG): Add DDEBUG_ASSERT back in.
1205
12062000-04-13 Loren J. Rittle <ljrittle@acm.org>
1207
1208 * mknumeric_limits: Rename generic type template parameter name
1209 '_T' to '_Tp'.
1210 * stl/bits/type_traits.h: Ditto.
1211
12122000-04-06 Benjamin Kosnik <bkoz@decepticon.cygnus.com>
1213
1214 * mkcheck.in (SRC_DIR): Change default mkcheck behavior, so that
1215 it is more useful for --enable-libstdcxx-v3. Use the built
1216 compilers with v3, instead of compilers in PATH, and don't
1217 re-include include directories for checking the install.
1218
12192000-04-05 Benjamin Kosnik <bkoz@cygnus.com>
1220
1221 * src/Makefile.am (AM_CXXFLAGS): Disable NAMESPACES, as this is on
1222 by default when using --enable-libstdcxx-v3.
1223 * src/Makefile.in: Regenerate.
1224 * configure.in: Disable GLIBCPP_ENABLE_NAMESPACES,
1225 GLIBCPP_ENABLE_RELIBGCC for --enable-libstdcxx-v3 flag.
1226 * configure: Regenerate.
1227 * mkcheck.in: Deal with NAMESPACES.
1228
12292000-04-05 Petter Urkedal <petter@matfys.lth.se>
1230
1231 * src/cmath.cc: New file...
1232 (pow(*, int)): Define functions...
1233 * src/Makefile.am (sources): ...register file.
1234 * src/Makefile.in: Regenerate.
1235 * bits/std_cmath.h (pow): ...declare functions here, and remove
1236 old definitions.
1237
12382000-04-04 Benjamin Kosnik <bkoz@redhat.com>
1239
1240 * acinclude.m4 (GCC_OBJDIR): Tweaks
1241
12422000-04-03 Benjamin Kosnik <bkoz@redhat.com>
1243
1244 * acinclude.m4 (GLIBCPP_CHECK_CPU): Add arm configure bits.
1245 * config/cpu/arm: New directory.
1246
1247 Jesper Skov <jskov@redhat.com>
1248 * config/cpu/arm/atomicity.h: New file.
1249
12502000-03-31 Benjamin Kosnik <bkoz@redhat.com>
1251
1252 * stl/bits/stl_config.h: Make _STL_THREADS depend on _REENTRANT.
1253 Remove unused bits. Clean.
1254
12552000-03-29 Benjamin Kosnik <bkoz@cygnus.com>
1256
1257 * testsuite/25_algorithms: New directory.
1258 * testsuite/25_algorithms/min_max.cc: New file.
1259
12602000-03-29 scott snyder <snyder@fnal.gov>
1261
1262 * bits/locale_facets.tcc (do_put): Allow a couple extra digits of
1263 precision beyond that which we get from numeric_limits::digits10.
1264
1265 * stl/bits/stl_algobase.h (max, min): Don't use comparison
1266 operator.
1267
1268 * testsuite/23_containers/bitset_shift.cc: Fix.
1269
1270 * testsuite/27_io/ios_manip_fmtflags.cc (test01): Don't give a
1271 temporary to imbue().
1272
1273 * bits/std_fstream.h (sync): Resync libio's idea of the current
1274 file position with the external file.
1275
12762000-03-28 Benjamin Kosnik <bkoz@cygnus.com>
1277
1278 * testsuite/27_io/istream_extractor_arith.cc.cvs: Fix merge
1279 mistake.
1280
1281 * bits/std_fstream.h (filebuf::is_open): Check for _M_file before
1282 attempting calls to it.
1283 * bits/fstream.tcc (ctors): Don't call _M_init_filebuf in
1284 ctors. Instead, call _M_init_filebuf ...
1285 (open): Here, as suggested by 27.8.1.3.
1286 * src/ios.cc (ios_base::Init::Init()): Clean up default filebufs
1287 properly when initializing cout/cin/cerr.
1288
12892000-03-27 Russell Davidson <russell@ehess.cnrs-mrs.fr>
1290
1291 * testsuite/23_containers/multiset.cc (main): Clean up for namespaces.
1292 * testsuite/22_locale/ctype_char_members.cc: And here.
1293 * testsuite/27_io/streambuf.cc (streambuf): And here.
1294 * testsuite/27_io/ostream_inserter_char.cc (test06): And here.
1295 * testsuite/27_io/istream_unformatted.cc (test05): And here.
1296 * testsuite/27_io/istream_extractor_arith.cc: And here.
1297 * testsuite/27_io/ios_manip_basefield.cc (test02): And here.
1298 * testsuite/27_io/ios_base_members_static.cc: And here.
1299 * bits/std_climits.h (_CPP_CLIMITS): Fix typo.
1300
13012000-03-27 Chris Faylor <cgf@cygnus.com>
1302
1303 * configure.in: Remove setting of CXX if canadian cross.
1304 * configure: Regenerate.
1305
13062000-03-27 Nathan Myers <ncm@zembu.com>
1307
1308 * bits/sstream.tcc: Optimize.
1309 * bits/basic_string.h(string::append): Don't inline.
1310 * bits/string.tcc: Move out-of-line.
1311
13122000-03-27 Phil Edwards <pme@sourceware.cygnus.com>
1313
1314 * acinclude.m4: (GLIBCPP_CHECK_COMPILER_VERSION) When using <2.96,
1315 define WERRORSUPPRESS so that the inlining warnings won't kill us.
1316 * aclocal.m4: Regenerate.
1317 * configure: Regenerate.
1318 * src/Makefile.am: Use WERRORSUPPRESS for the files that need it.
1319 * src/Makefile.in: Regenerate.
1320
1321 * docs/install.html: Almost complete rewrite.
1322
13232000-03-25 Phil Edwards <pme@sourceware.cygnus.com>
1324
1325 * docs/install.html: Explain -Werror problem at "#Werror" mark.
1326 * docs/faq/index.html: Testsuite will die horribly if new libgcc.a
1327 not installed.
1328 * docs/faq/index.txt: Regenerate.
1329
13302000-03-24 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
1331
1332 * src/Makefile.am (libio_headers_install): Fix.
1333 * src/Makefile.in: Regenerate.
1334
13352000-03-24 Benjamin Kosnik <bkoz@cygnus.com>
1336
1337 * docs/17_intro/RELEASE-NOTES: Fix typos.
1338 * docs/index.html: Update.
1339 * docs/17_intro/BUGS: Update.
1340 * docs/status.html: Update for 2.90.8 release.
1341
13422000-03-23 Phil Edwards <pme@sourceware.cygnus.com>
1343
1344 * Makefile.am: Better error message when missing libgcc2.ready.
1345 * Makefile.in: Regenerate.
1346 * acinclude.m4: Fastidious nitpicking reformatting.
1347 * aclocal.m4: Regenerate.
1348 * configure: Regenerate.
1349 * mkcheck.in: Must use same namespace settings as the library being
1350 tested. Also log ST_FLAG, since it's being passed.
1351 * docs/install.html: Add brief chunk on configuration.
1352 * docs/17_intro/RELEASE-NOTES: Fix minor Cygwin typo.
1353 * docs/23_containers/howto.html: Mention MT-safe string.
1354 * docs/faq/index.html: Minor updates.
1355 * docs/faq/index.txt: Regerarate.
1356
13572000-03-22 Benjamin Kosnik <bkoz@cygnus.com>
1358
1359 * bits/sstream.tcc (seekoff): Fix for gptr() null cases.
1360 Return newoff.
1361 * bits/fstream.tcc (seekoff): Sync.
1362 (seekpos): Sync.
1363 * testsuite/27_io/ostream_unformatted.cc: New file.
1364 * testsuite/27_io/stringbuf.cc: Fix.
1365 * testsuite/27_io/istream_unformatted.cc (test04): Fix.
1366
1367 * config/newlib/bits/ctype_base.h (ctype_base): Fix.
1368 * config/newlib/ctype.cc (ctype): Change __ctype -> _ctype_.
1369
1370 * src/complex_io.cc (operator>>complex): Tweak.
1371
1372 * config/cpu/alpha/atomicity.h: Explicitly typedef uint32_t, int32_t if
1373 <inttypes.h> does not exist.
1374 * config/cpu/sparc/sparc64/atomicity.h: Same.
1375 * config/cpu/sparc/sparc32/atomicity.h: Same.
1376 * config/cpu/powerpc/atomicity.h: Same.
1377 * config/cpu/i386/atomicity.h: Same.
1378 * config/cpu/generic/atomicity.h: Same.
1379 * configure.in: Check for inttypes.h.
1380 * configure: Regnerate.
1381
13822000-03-21 Benjamin Kosnik <bkoz@cygnus.com>
1383
1384 * bits/std_sstream.h (_M_init_stringbuf): Set initial ate position
1385 correctly.
1386 * testsuite/27_io/ostream_inserter_char.cc (test06): Add tests for ate.
1387
1388 * docs/17_intro/RELEASE-NOTES (New): Add bits.
1389
1390 * configure.in: Move AC_CHECK_HEADERS to a point where we know we
1391 are compiling natively.
1392
1393 * libio/*: Update to CVS libio from egcs.
1394
13952000-03-21 Phil Edwards <pme@sourceware.cygnus.com>
1396
1397 * docs/download.html: Document use of -z9 for CVS.
1398 * docs/index.html: Add target date (no link) for future snapshot.
1399
14002000-03-21 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
1401
1402 * bits/slice_array.h: Rename generic type template parameter name
1403 '_T' to '_Tp'.
1404 * bits/mask_array.h: Ditto
1405
14062000-03-20 Benjamin Kosnik <bkoz@cygnus.com>
1407
1408 * *: Change copyright holder from "Cygnus Solutions" to "Free
1409 Software Foundation, Inc."
1410
1411 * docs/configopts.html: Explain what "hella versions" means.
1412 * docs/install.html: Some tweaks--nice job on this Phil.
1413 * docs/documentation.html: Add a direct link to configuration options.
1414
1415 * src/Makefile.am (OPTIMIZE_CXXFLAGS): Add in extras.
1416 * docs/17_intro/RELEASE-NOTES (New): Add.
1417 * bits/c++config.h (__GLIBCPP__): Bump version.
1418
1419 * config/c_io_libio.cc (__basic__file(__c_lock*)): Change argument
1420 type to match prototype.
1421
14222000-03-20 Phil Edwards <pme@sourceware.cygnus.com>
1423
1424 * docs/install.html: Update for new funky build procedure. Move
1425 description of 'configure' options to...
1426 * docs/configopts.html: ...here. New file.
1427 * docs/17_intro/howto.html: Updates for new snapshot.
1428 * docs/20_util/howto.html: Ditto.
1429 * docs/21_strings/howto.html: Ditto.
1430 * docs/21_strings/stringtok_std_h.txt: Fix example typos.
1431 * docs/22_locale/howto.html: Ditto.
1432 * docs/23_containers/howto.html: Ditto.
1433 * docs/faq/index.html: Ditto.
1434
14352000-03-18 Petter Urkedal <petter@matfys.lth.se>
1436 Benjamin Kosnik <bkoz@gnu.org>
1437
1438 * acinclude.m4 (GLIBCPP_CHECK_COMPLEX_SUPPORT): Move code for main
1439 to the right place.
1440 * aclocal.m4: Regenerate.
1441 * configure: Regenerate.
1442
14432000-03-16 Benjamin Kosnik <bkoz@cygnus.com>
1444 scott snyder <sss@karma.fnal.gov>
1445
1446 * config/c_io_libio.h: Add __c_lock.
1447 * config/threads-no.h: Same here.
1448 * config/threads-posix.h: Add __mutext_type typedef.
1449 * config/c_io_libio.cc: basic_file ctor takes lock arg.
1450 * bits/basic_file.h: Ctor takes lock arg.
1451 * bits/std_fstream.h: Add _M_lock.
1452 * bits/fstream.tcc: Supply it to basic_file ctor.
1453
1454 * mkcheck.in (resultstext): Change [[ to [.
1455
1456 * testsuite/27_io/ostream_inserter_char.cc (test06): Tweak.
1457
1458 * bits/locale_facets.h: Tweak.
1459
1460 * stl/bits/stl_config.h: Fix defines.
1461
14622000-03-16 Benjamin Kosnik <bkoz@cygnus.com>
1463
1464 * mkcheck.in (INC_PATH): Add paths from cpu_include_dir to find
1465 atomicity.h
1466 * configure: Regenerate.
1467 * aclocal.m4: Regnerate.
1468
14692000-03-16 Nathan Myers <ncm@zembu.com>
1470
1471 * bits/string.tcc: Add MT support.
1472 * bits/basic_string.h: Same.
1473
14742000-03-16 Phil Edwards <pme@sourceware.cygnus.com>
1475
1476 * configure.in: Make --enable-namespaces and -libgcc-rebuild=../..
1477 the defaults.
1478 * configure: Regenerate.
1479
1480 * config/solaris/solaris2.7/ctype.cc: Fix unsigned/signed comparison.
1481
14822000-03-16 Phil Edwards <pme@sourceware.cygnus.com>
1483
1484 * acinclude.m4 (GLIBCPP_CHECK_CTYPE): If Sol2.5 ctype is found, keep
1485 checking for 2.[67]. (GLIBCPP_ENABLE_RELIBGCC): No longer ignore
1486 any defaults passed in.
1487 * aclocal.m4: Regenerate.
1488
14892000-03-16 Phil Edwards <pme@sourceware.cygnus.com>
1490
1491 * mkcheck.in: Report total successes and failures.
1492
14932000-03-15 Benjamin Kosnik <bkoz@cygnus.com>
1494
1495 * config/cpu: New directory, intended to be used to provide
1496 cpu-specific configuration files. In particular, assembly language
1497 primitives for thread safety.
1498 * config/cpu/alpha: Populate.
1499 * config/cpu/alpha/atomicity.h: New file.
1500 * config/cpu/arm: Populate.
1501 * config/cpu/generic: Populate.
1502 * config/cpu/generic/atomicity.h: New file.
1503 * config/cpu/hppa: Populate.
1504 * config/cpu/i386: Populate.
1505 * config/cpu/i386/atomicity.h: New file, take from i486.
1506 * config/cpu/m68k: Populate.
1507 * config/cpu/mips: Populate.
1508 * config/cpu/powerpc: Populate.
1509 * config/cpu/powerpc/atomicity.h: New file.
1510 * config/cpu/sparc: Populate.
1511 * config/cpu/sparc/sparc32: Populate.
1512 * config/cpu/sparc/sparc64: Populate.
1513 * config/cpu/sparc/sparc32/atomicity.h: New file.
1514 * config/cpu/sparc/sparc64/atomicity.h: New file.
1515
1516 * src/Makefile.am (myinstallheaders): Add install routines.
1517 * acinclude.m4 (GLIBCPP_CHECK_CPU):Add configuration for the
1518 cpu dir.
1519 * configure.in: Add.
1520
1521 * config/default: Adopt glibc naming conventions, and so move to
1522 * config/generic: Here.
1523 * acinclude.m4 (GLIBCPP_CHECK_CTYPE): Modify default case to generic.
1524
15252000-03-15 Bill Thompson <billt@toast.net>
1526
1527 * testsuite/27_io/ostream_inserter_char.cc (test06): Add test.
1528
15292000-03-14 Phil Edwards <pme@sourceware.cygnus.com>
1530
1531 * docs/17_intro/howto.html: Add missing "TOC" entry, and new section.
1532
1533 * acinclude.m4 (GLIBCPP_CHECK_CTYPE): Fixup.
1534 * aclocal.m4: Regenerate.
1535 * configure: Regenerate.
1536
15372000-03-13 scott snyder <snyder@fnal.gov>
1538 Jason Merrill <jason@cygnus.com>
1539
1540 * bits/locale_facets.h (class ctype, class ctype<char>, class
1541 ctype<wchar_t>): More mask fixes.
1542 * testsuite/22_locale/ctype.cc: Test for the problem.
1543
15442000-03-13 Benjamin Kosnik <bkoz@cygnus.com>
1545
1546 * acconfig.h: Add bits.
1547 * configure.in: Move AM_PROG_LIBTOOL up in file.
1548 Tweak cross compiling info.
1549 * configure: Regenerate.
1550
1551 * mknumeric_limits (XCOMPILE): Echo compilation line for
1552 gen-num-limits.cc
1553
1554 * acinclude.m4 (GLIBCPP_CHECK_CTYPE): Add aix checks.
1555 * aclocal.m4: Regenerate.
1556 * configure: Regenerate.
1557 * config/aix/ctype.cc (ctype): Tweak.
1558 * config/aix/bits/ctype_base.h (ctype_base): Tweak.
1559 * config/aix/bits/ctype_specializations.h: New file.
1560
15612000-03-10 scott snyder <snyder@fnal.gov>
1562
1563 * stl/bits/stl_vector.h (_M_assign_aux): Fix for __normal_iterator
1564 conversions.
1565 * testsuite/23_containers/vector_modifiers.cc (test01): Add a
1566 regression test for the problem.
1567
15682000-03-09 Benjamin Kosnik <bkoz@fidel.cygnus.com>
1569
1570 * testsuite/27_io/streambuf.cc (class testbuf): Same here.
1571 * bits/fpos.h: And here.
1572 * bits/std_ostream.h: Same here.
1573 * bits/std_istream.h: Same here.
1574 * bits/basic_ios.h: Same here.
1575 * bits/std_fstream.h: Same here.
1576 * bits/sbuf_iter.h (std): Here too.
1577 * bits/std_sstream.h: Make types public.
1578
1579 * src/misc-inst.cc: Use size_t instead of unsigned int.
1580 * bits/locale_facets.tcc (_S_format): For now, cast to char. I
1581 suppose this should be ctype::narrow... all the ctype<wchar_t>
1582 stuff needs to be cleaned up.
1583
15842000-03-09 Phil Edwards <pme@sourceware.cygnus.com>
1585
1586 * docs/gentop: Remove entire directory, finally.
1587
15882000-03-09 scott snyder <snyder@fnal.gov>
1589
1590 * bits/std_cmath.h (modf): Fix pointer overrun.
1591 * testsuite/26_numerics/c_math.cc (test04, main): Add a regression
1592 test for the problem.
1593
15942000-03-09 Phil Edwards <pme@sourceware.cygnus.com>
1595
1596 Looks like changes to the #include'd files must be followed by a
1597 change to the #include'ing files to take effect. Caveat emptor.
1598 * docs/header.html: New file, for server-side include.
1599 * docs/footer.html: New file, for server-side include.
1600 * docs/documentation.html: Change to use SSI.
1601 * docs/download.html: Ditto.
1602 * docs/index.html: Ditto.
1603 * docs/mail.html: Ditto.
1604 * docs/status.html: Ditto.
1605 * docs/thanks.html: Ditto, plus minor updates.
1606 * docs/how.html: Remove.
1607
16082000-03-09 Benjamin Kosnik <bkoz@gnu.org>
1609
1610 Preliminary alpha-linux support.
1611 * src/locale.cc (ctype<wchar_t>): Use correct types...
1612 * bits/locale_facets.h (ctype<char>): Add __table_type typedef.
1613 (ctype<wchar_t>): Same.
1614 * bits/locale_facets.h (ctype<wchar_t>): Have char and wchar_t
1615 types match for table_size (size_t).
1616
1617 * config/gnu-linux/ctype.cc (ctype): Change char_type to wchar_t
1618 as per char specialization.
1619 * config/*/ctype.cc: Same.
1620
16212000-03-09 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
1622
1623 * bits/locale_facets.h (_Ctype<>::mask): Import from base class
1624 _Ctype_nois<>. Template base classes are never examinated in
1625 first-phase name-lookup.
1626
16272000-03-08 Benjamin Kosnik <bkoz@gnu.org>
1628
1629 Add Solaris 2.5.1 support.
1630 * config/solaris/solaris2.5/bits/ctype_base.h (ctype_base): And here.
1631 * config/solaris/solaris2.5/ctype.cc: Fixup.
1632 * config/solaris/solaris2.5/bits/ctype_specializations.h: Add.
1633 * acinclude.m4 (GLIBCPP_CHECK_CTYPE): Add bits for solaris2.5.1.
1634 * aclocal.m4: Regenerate.
1635 * configure: Regenerate.
1636
1637 * config/default/ctype.cc (ctype): Fixup.
1638
16392000-03-07 Benjamin Kosnik <bkoz@blues.cygnus.com>
1640
1641 * testsuite/27_io/filebuf.cc: Activate init code from yesterday...
1642 * testsuite/27_io/ostream_inserter_arith.cc (testcases): Fix for
1643 non-wchar_t case.
1644
16452000-03-07 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
1646
1647 * bits/cpp_type_traits.h: Expand on this file purpose.
1648
16492000-03-06 Benjamin Kosnik <bkoz@gnu.org>
1650
1651 * bits/locale_facets.h (ctype<char>): Remove static members, and
1652 re-work initialization code.
1653 (ctype<wchar_t>): Same.
1654 Move _S_touppper to _M_toupper and initialize in ctor.
1655 Move _S_tolower to _M_tolower and initialize in ctor.
1656 Move _S_table to _M_ctable and intialize in ctor.
1657 * bits/locale_facets.h (std): And here.
1658 * src/locale.cc (std): Tweak.
1659 * config/gnu-linux/ctype.cc: Change initialization here.
1660 * config/newlib/ctype.cc: And here.
1661 * config/solaris/solaris2.7/ctype.cc: And here.
1662 * config/solaris/solaris2.6/ctype.cc: And here.
1663
1664 * bits/localefwd.h: Tweak.
1665 * bits/std_streambuf.h: Tweak formatting.
1666
1667 * testsuite/27_io/filebuf.cc: Remove BUFSIZ dependancies.
1668
16692000-03-05 Chip Salzenberg <chip@valinux.com>
1670
1671 * src/misc-inst.cc (basic_iostream<>): Instantiate.
1672
16732000-03-02 Phil Edwards <pme@sourceware.cygnus.com>
1674 Kevin Atkinson <kevinatk@home.com>
1675
1676 Initial grab of SGI's strstream implementation with minor
1677 modifications.
1678 * src/strstream.cc: New file.
1679 * std/strstream: New file.
1680 * stl/bits/std_strstream.h: New file.
1681 * bits/std_streambuf.h: Add public access.
1682 * src/Makefile.am: Add strstream sources to list of dependancies.
1683 * src/Makefile.in: Regenerate.
1684
16852000-03-03 2000 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
1686
1687 * bits/valarray_meta.h: Fix typo.
1688
16892000-03-02 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
1690 Chip Salzenberg <chip@valinux.com>
1691 Petter Urkedal <petter@matfys.lth.se>
1692
1693 * src/Makefile.am (myinstallheaders): Hack to avoid
1694 `for i in ; do'.
1695 * src/Makefile.in: Regenerate.
1696
16972000-03-02 Chip Salzenberg <chip@valinux.com>
1698
1699 * libio/Makefile.an, math/Makefile.an, src/Makefile.am
1700 (LINK): Put quotes around "$(CC)" for libtool link mode,
1701 so libtool will use "-B" options during GCC bootstrap.
1702 * */Makefile.in: Regenerate.
1703
17042000-03-02 Petter Urkedal <petter@matfys.lth.se>
1705
1706 * config/c_io_libio.h: Enclose it all in ::std.
1707 * bits/basic_string.h (basic_string<>): Make types and
1708 `npos' public.
1709 * mkc++config: Truncate output file before writing.
1710
17112000-03-01 Benjamin Kosnik <bkoz@gnu.org>
1712
1713 * math/cabsf.c (__mycabsf): Rename to cabsf.
1714 * math/cabs.c (__mycabs): Rename to cabs.
1715
17162000-02-29 LLeweLLyn Reese <llewelly@198.dsl.xmission.com>
1717
1718 * bits/basic_string.h: Move declarations of __out_of_range(),
1719 __length_error() and accompanying macros ...
1720 * bits/exception_support.h: here. (Newly created file).
1721 * bits/basic_string.h: #include <bits/exception_support.h>
1722 * stl/bits/stl_vector.h: #include <bits/exception_support.h>
1723 * src/Makefile.am (headers): Add.
1724 * src/Makefile.in: Regenerate.
1725
17262000-02-29 Benjamin Kosnik <bkoz@cygnus.com>
1727
1728 * bits/cpp_type_traits.h: Rename structs so they don't clash with
1729 type_traits.h.
1730 * bits/valarray_array.h: Synch. Fix typos.
1731
1732 * libio/Makefile.am: Change to only compile source files that
1733 config/c_io_libio.cc actually needs.
1734 * libio/Makefile.in: Regnerate.
1735 * libio/PlotFile.hes SFile.h builtinbuf.h editbuf.h floatconv.c
1736 floatio.h fstream.h indstream.h iofclose.c iofdopen.c iofeof.c
1737 ioferror.c iofflush.c iofgetpos.c iofgets.c iofopen.c iofprintf.c
1738 iofputs.c iofread.c iofscanf.c iofsetpos.c ioftell.c iofwrite.c
1739 iogetc.c iogetdelim.c iogetline.c iogets.c ioignore.c iomanip.h
1740 iopadn.c ioperror.c iopopen.c ioprims.c ioprintf.c ioputc.c
1741 ioputs.c ioscanf.c ioseekoff.c ioseekpos.c iosetbuffer.c
1742 iosetvbuf.c iosprintf.c iosscanf.c iostream.h iostrerror.c
1743 ioungetc.c iovfprintf.c iovfscanf.c iovsprintf.c iovsscanf.c
1744 istream.h list.out ostream.h outfloat.c parsestream.h peekc.c
1745 pfstream.h procbuf.h stdiostream.h stream.h streambuf.h strfile.h
1746 strops.c strstream.h: Delete.
1747
1748 * bits/basic_file.h: Stub out or delete unused bits in this
1749 interface.
1750 (filepos_beg): Remove.
1751 (filepos_cur): Remove.
1752 (filepos_valid): Remove.
1753 * config/c_io_libio.cc: Resynch with the changes to basic_file.
1754
17552000-02-29 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
1756
1757 * bits/cpp_type_traits.h: Correct typo.
1758
17592000-02-29 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
1760
1761 * bits/cpp_type_traits.h: New file.
1762
1763 * bits/valarray_array.h: Tweak. #include <bits/cpp_type_traits.h>
1764 Improve array construction.
1765 (_Array_default_ctor): New dispatcher class.
1766 (__valarray_default_construct): New function.
1767 (_Array_copy_ctor): New dispatcher class.
1768 (__valarray_copy_construct): New function.
1769 (_Array<>::free_data): Remove.
1770
1771 * src/Makefile.am (headers): Add cpp_type_traits.h
1772 * src/Makefile.in: Regenerate.
1773
17742000-02-28 Benjamin Kosnik <bkoz@cygnus.com>
1775
1776 Prune libio directory to match files in libio/Makefile.
1777 * libio/PlotFile.cc,indstream.cc, isgetsb.cc, sbform.cc,
1778 stream.cc, SFile.cc, ioassign.cc, isscan.cc, sbgetline.cc,
1779 streambuf.cc, builtinbuf.cc, ioextend.cc, osform.cc, sbscan.cc,
1780 strstream.cc, editbuf.cc, iomanip.cc, parsestream.cc,
1781 stdiostream.cc, filebuf.cc, iostream.cc, pfstream.cc,
1782 stdstrbufs.cc, fstream.cc, isgetline.cc, procbuf.cc,
1783 stdstreams.cc: Remove.
1784 * libio/floatio.h, iolibio.h, iostdio.h, iostreamP.h: Remove.
1785 * libio/iofflush_u.c: Remove.
1786
1787 * libio/dbz: Remove.
1788 * libio/include: Remove.
1789 * libio/stdio: Remove.
1790 * libio/tests: Remove.
1791 * libio/testsuite: Remove.
1792
1793 * config/c_io_libio.cc: Add fcntl.h include for Solaris.
1794
1795 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Add bits.
1796 * configure.in: Replace 'grep -e' with 'grep' for Solaris.
1797 * configure: Regenerate.
1798
17992000-02-25 Benjamin Kosnik <bkoz@gnu.org>
1800
1801 Abstract out the underlying "C" io bits.
1802 * bits/std_new.h: Remove <stl_config> include, as well as <cstddef>.
1803 * stl/bits/stl_string_fwd.h: Remove <stddef> include.
1804 * bits/std_cwchar.h: Wrap with _GLIBCPP_USE_WCHAR_T guards. Don't
1805 include <cstddef>.
1806 * stl/bits/stl_config.h: Don't include _G_config.h.
1807
1808 * bits/basic_file.h: Allow for non-inheritance based __basic_files.
1809 * config/c_io_libio.h (_GLIBCPP_BASIC_FILE_INHERITANCE): Define.
1810 * config/c_io_libio.cc: Tweak.
1811
1812 * src/Makefile.am (TOPLEVEL_INCLUDES): Add includedir.
1813 * src/Makefile.in: Regenerate.
1814 * Makefile.am (AM_MAKEFLAGS): Define includedir so that
1815 prefix/include files will be picked up.
1816 * Makefile.in: Regenerate.
1817 * math/Makefile.am (TOPLEVEL_INCLUDES): And here.
1818 * libio/Makefile.am (TOPLEVEL_INCLUDES): And here.
1819
1820 * bits/std_ios.h: Include <bits/c++io.h> instead of libio.
1821 * bits/fpos.h: And here.
1822 * bits/basic_file.h (get_fileno): Move definition from ...
1823 * src/basic_file.cc (std): To here.
1824 * bits/fpos.h: Move types for streamoff, streampos to..
1825 * bits/basic_file.h: Move __c_file_type and fpos typedefs to...
1826 * config/c_io_libio.h: ...here.
1827 (_GLIBCPP_[BOOLALPHA, HEX, DEC, FIXED, INTERNAL, LEFT, OCT, RIGHT,
1828 SCIENTIFIC, SHOWBASE, SHOWPOINT, SHOWPOS, SKIPWS, UNITBUF,
1829 UPPERCASE, ADJUSTFIELD, BASEFIELD, FLOATFIELD, BADBIT, EOFBIT,
1830 FAILBIT, GOODBIT, APP, ATE, BINARY, IN, OUT, TRUNC): New macros to
1831 abstract out bits in ios_base.
1832 * bits/ios_base.h: Re-macrofy.
1833 * src/basic_file.cc : Rename, move to
1834 * config/c_io_libio.cc: Here.
1835 * config/c_io_libio.h: New file. Include libio.
1836 * bits/c++config.h: Don't define _GLIBCPP_USE_LIBIO.
1837 * configure.in (blddir): Add enabling bits for GLIBCPP_ENABLE_CSTDIO.
1838 * configure: Regenerate.
1839 * src/Makefile.am (sources): Take out basic_file.cc and add c++io.cc.
1840 (generated_headers): Add c++io.h
1841 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): New function to select
1842 underlying "C" io library.
1843 * acinclude.m4 (GLIBCPP_CHECK_LIBIO): Roll functionality into
1844 GLIBCPP_ENABLE_CSTDIO.
1845
1846 * configure.in: Add configure bits for cross compiling non-newlib
1847 targets. .
1848 GLIBCPP_CHECK_COMPILER_VERSION: Take out this test for this
1849 target, as we assume g++ support is not the limiting factor.
1850 GLIBCPP_CHECK_LIBIO: Same, know we don't need libio.
1851 * configure: Regenerate.
1852
18532000-02-22 Benjamin Kosnik <bkoz@cygnus.com>
1854
1855 * Makefile.am (INTERFACE): Define.
1856 * Makefile.in: Regenerate.
1857 * libio/ChangeLog: Add entry.
1858
18592000-02-21 Benjamin Kosnik <bkoz@cygnus.com>
1860
1861 * docs/install.html: Update install directions.
1862
1863 * docs/status.html: Fix sidebar to be consistent.
1864 * docs/thanks.html: Same.
1865 * docs/links.html: Same.
1866 * docs/mail.html: Same.
1867 * docs/download.html: Same.
1868
1869 * testsuite/27_io/filebuf.cc: Change BUFSIZ to buffer_size, and
1870 kill the macro BUFSIZ. I think the solaris fails lie elsewhere
1871 however, in the ctype_char_members.cc fail (for instance.)
1872 * testsuite/17_intro/headers.cc: Remove extraneous fails for hosts
1873 that do not have wchar_t enabled.
1874 * testsuite/27_io/ostream_inserter_arith.cc (struct _TestCase):
1875 Same here.
1876 * testsuite/27_io/iostream_objects.cc: And here.
1877
1878 * libio/gen-params (CONFIG_NM): Specifically add in nm as the
1879 default CONFIG_NM.
1880
18812000-02-18 Benjamin Kosnik <bkoz@haight.constant.com>
1882 Tom Tromey <tromey@cygnus.com>
1883
1884 * configure.in: Manually add MULTISUBDIR.
1885 * configure: Regenerate.
1886 * src/Makefile.am (MULTISUBDIR): Add the lesser evil of Tom's two
1887 "Eww" hacks to get multilib installs working correctly.
1888 ($(headers): Test for MULTISUBDIR before installing.
1889 * Makefile.am (AM_MAKEFLAGS): Don't define MULTISUBDIR, instead
1890 have configure hack it in.
1891 * Makefile.in: Regenerate.
1892 * acinclude.m4 (GLIBCPP_CXXFLAGS): Tweak wording.
1893 Add enabling bits for native Cygwin ctypes, and other newlib-based
1894 Oses.
1895
18962000-02-17 Benjamin Kosnik <bkoz@decepticon.cygnus.com>
1897
1898 * mkc++config (OUT_H): Remove EOF in cygwin.
1899 * acinclude.m4 (LIBS): Tweaks to allow cygwin to configure.
1900
1901 Tom Tromey <tromey@cygnus.com>
1902 * src/Makefile.am: Tweaks for installing multilibs.
1903
19042000-02-17 Benjamin Kosnik <bkoz@cygnus.com>
1905
1906 * src/Makefile.am:
1907 (toolexeclib_LTLIBRARIES): Use this instead of lib_LTLIBRARIES.
1908 Add USE_LIBDIR bits here, not...
1909 * src/Makefile.in: Regenerate.
1910 * Makefile.am: ...here.
1911 * Makefile.in: Regenerate.
1912
19132000-02-17 Benjamin Kosnik <bkoz@gnu.org>
1914
1915 * acinclude.m4 (LIBS): Fix typos.
1916 * configure.in: _GLIBCPP_BUGGY_FLOAT_COMPLEX,
1917 _GLIBCPP_BUGGY_COMPLEX for crosses.
1918 * src/Makefile.am (std_headers): Add libio.h as install include,
1919 as with _G_config.h
1920 * src/Makefile.in: Regenerate.
1921
1922 * mkcheck.in: Add bits to set CXX to cross compiler.
1923
1924 * src/complex_io.cc: Tweak.
1925 * configure.in: _GLIBCPP_BUGGY_COMPLEX for crosses.
1926 * configure: Regenerate.
1927
1928 * config/newlib/ctype.cc: Tweaks.
1929 * config/newlib/bits/ctype_base.h (ctype_base): Set mask to char,
1930 not const char.
1931 * src/complex_io.cc (operator>>(istream, complex): Define out if
1932 BUGGY_COMPLEX.
1933
19342000-02-16 Benjamin Kosnik <bkoz@cygnus.com>
1935
1936 * config/newlib/bits/ctype_base.h: Correct _S_table.
1937
1938 Reconfigure ctype support for "C" libraries that don't use arrays.
1939 * testsuite/22_locale/ctype_char_members.cc: New file. Test for
1940 basic ctype<char> functionality.
1941 * src/locale.cc: Move host-specific ctype functions that are not
1942 inlines to config/*/ctype.cc files.
1943 (ctype<char>::do_tolower): For instance.
1944 (ctype<char>::do_toupper): For instance.
1945 (ctype<wchar_t>::do_tolower): For instance.
1946 (ctype<wchar_t>::do_toupper): For instance.
1947 * config/gnu-linux/ctype.cc: Modify.
1948 * config/default/ctype.cc: Modify.
1949 * config/newlib/ctype.cc: Modify.
1950 * config/solaris/solaris2.6/ctype.cc: Modify.
1951 * config/solaris/solaris2.7/ctype.cc: Modify.
1952
1953 * bits/locale_facets.h (ctype<char>::is): Mark inline, move
1954 out-of-line.
1955 (ctype<char>::scan_is): Here too.
1956 (ctype<char>::scan_not): Here too.
1957 Move out of line defs to config/*/bits/ctype_specializations.h.
1958 * config/gnu-linux/bits/ctype_specializations.h: ...here. New file.
1959 * config/default/bits/ctype_specializations.h: ...here. New file.
1960 * config/newlib/bits/ctype_specializations.h: ...here. New file.
1961 * config/solaris/solaris2.6/bits/ctype_specializations.h: New file.
1962 * config/solaris/solaris2.7/bits/ctype_specializations.h: New file.
1963 * src/Makefile.am (headers): Add ctype_specializations.h.
1964 * src/Makefile.in: Regenerate.
1965
1966 Aaron Weiss <weiss@clearway.com>
1967 * Makefile.am (AM_MAKEFLAGS): Add NM_FOR_BUILD, NM_FOR_TARGET, and
1968 CONFIG_NM for Solaris builds.
1969 * Makefile.in: Regenerate.
1970
1971 * src/locale.cc: Tweak formatting.
1972
19732000-02-15 Benjamin Kosnik <bkoz@cygnus.com>
1974
1975 Jim Parsons <parsons@clearway.com>
1976 * testsuite/27_io/istream_unformatted.cc (test06): Add test.
1977 * bits/istream.tcc (read): Set failbit if !good(). Don't increment
1978 gcount if eof.
1979 (readsome): Same.
1980
1981 Michel Decima <michel.decima@cnet.francetelecom.fr>
1982 * testsuite/27_io/streambuf.cc: Add test.
1983 * bits/streambuf.tcc (xsgetn): Don't test for valid mode.
1984 (xsputn): Same.
1985
1986 * src/Makefile.am (AM_CXXFLAGS): Pass down AC_CXXFLAGS,
1987 OPTIMIZE_CXXFLAGS, etc. So --enable-debug and --enable-namespaces
1988 will work correctly, for instance.
1989 * src/Makefile.in: Regenerate.
1990
1991 * bits/locale_facets.h: Fix merge error.
1992 (num_put::put(unsigned long long): And here.
1993 * mknumeric_limits (trait_name): Same.
1994
19952000-02-15 Chip Salzenberg <chip@valinux.com>
1996
1997 Support 'configure --enable-long-long'.
1998 * bits/c++config.h (_GLIBCPP_USE_LONG_LONG): Remove.
1999 * stl/bits/stl_config.h (__STL_LONG_LONG): Remove '#if 0'.
2000 * acconfig.h (_GLIBCPP_USE_LONG_LONG): Add. Default to undef.
2001 * acinclude.m4 (GLIBCPP_ENABLE_LONG_LONG): Define flag macro.
2002 * configure.in (GLIBCPP_ENABLE_LONG_LONG): Use it.
2003
2004 * aclocal.m4: Regenerate.
2005 * config.h.in: Regenerate.
2006 * configure: Regenerate.
2007
20082000-02-15 Chip Salzenberg <chip@valinux.com>
2009
2010 Improve (complete?) 'long long' support.
2011 * mknumeric_limits: Call $CXX with $CPPFLAGS. Define statics
2012 for {,unsigned} long long if the limits header declares them.
2013 * src/gen-num-limits.cc: Include <bits/c++config.h> early.
2014 (__USE_GNU, _GNU_SOURCE): Define if _GLIBC_USE_LONG_LONG.
2015 (long long, unsigned long long): Gen limits if _GLIBC_USE_LONG_LONG.
2016 * bits/locale_facets.h (num_get<>::get(..., long long &)): Define.
2017 (num_put<>::put(..., long long)): Likewise.
2018 (num_put<>::put(..., unsigned long long)): Likewise.
2019 * bits/locale_facets.tcc (_S_format): Rename from _S_format_long.
2020 Templatize last parameter to support 'long long'.
2021 (num_put<>::put(...)): Call _S_format with new name.
2022 (num_put<>::put(..., long long)): Define.
2023 (num_put<>::put(..., unsigned long long)): Likewise.
2024 * src/locale-inst.cc (_S_format): Instantiate under new name.
2025
20262000-02-15 Petter Urkedal <petter@matfys.lth.se>
2027
2028 * src/complex.cc (operator<<, operator>>): Moved from here...
2029 * src/complex_io.cc: ...to new file.
2030 (operator>>): Stub replaced by the real thing.
2031 * src/Makefile.am (sources): Inserted complex_io.cc.
2032 * src/Makefile.in: Regenerate.
2033 * testsuite/26_numerics/complex_inserters_extractors.cc: Check it.
2034
20352000-02-14 Benjamin Kosnik <bkoz@gnu.org>
2036
2037 Add in ctype information for newlib "C" libraries.
2038 * config/newlib: New directory
2039 * config/newlib/bits/ctype_base.h: New file.
2040 * config/newlib/ctype.cc: New file.
2041
2042 * ctype/config/linux/*: Rename, move to...
2043 * ctype/config/gnu-linux/*: Here.
2044
2045 Finish off multilib work.
2046 * configure.in: Don't set CXX if not Canadian cross.
2047 * configure: Regenerate.
2048 * acinclude.m4 (GLIBCPP_CHECK_LIBIO): Tweak messages.
2049 * aclocal.m4: Regenerate.
2050 * config.h.in: Regenerate.
2051
2052 * install-sh: Remove, as AC_CONFIG_AUX_DIR(..) picks this out of
2053 the top-level gcc directory now.
2054 * mkinstalldirs: Remove.
2055 * missing: Remove
2056 * ltconfig: Remove.
2057 * ltmain.sh: Remove.
2058 * config.guess: Remove.
2059 * config.sub: Remove.
2060
20612000-02-13 Benjamin Kosnik <bkoz@cygnus.com>
2062
2063 * configure.in (glibcpp_basedir): Add glibcpp_basedir.
2064 * Makefile.am: Move mutlilib stuff to src/Makefile.am.
2065 * Makefile.in: Regenerate.
2066 * src/Makefile.am: Add multilib bits.
2067 * src/Makefile.in: Regenerate.
2068
20692000-02-12 Benjamin Kosnik <bkoz@cygnus.com>
2070
2071 * configure.in: Clean, add some multilib support.
2072 * configure: Regenerate.
2073 * configure.host: New file.
2074
2075 * acinclude.m4: GLIBCPP_CHECK_LIBIO. Take bits from configure.in and
2076 roll a new function, checks for presence of libio.
2077 GLIBCPP_CHECK_COMPILER_VERSION: Same.
2078 GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT: Same.
2079 GLIBCPP_CHECK_MATH_SUPPORT: Same.
2080 GLIBCPP_CHECK_WCHAR_T_SUPPORT: Same.
2081 GLIBCPP_CHECK_LIBIO: Same.
2082 GLIBCPP_CHECK_CTYPE: Same.
2083 * aclocal.m4: Regenerate.
2084 * config.h.in: Regenerate.
2085
2086 * Makefile.am: Tweaks.
2087 * Makefile.in: Regenerate.
2088
20892000-02-11 Benjamin Kosnik <bkoz@cygnus.com>
2090
2091 * configure.in: Make outputing the libio/Makefile
2092 conditional. Haha, yeah right. Anyway, we instead do this thing
2093 where if libio is found, then we build a null library, as there is
2094 no point in duplicating the found libio.
2095 * Makefile.am: Tweak.
2096 * Makefile: Regenerate.
2097 * libio/Makefile.am: Add _G_config.h stuff. Now cross compilers
2098 are happy happy happy.
2099 * libio/Makefile.am: Regenerate.
2100 * libio/gen-params: New file.
2101 * src/Makefile.am: Make libio.la non-conditional, as it is now a
2102 null library if it's not needed. At least we are being consistent,
2103 if not as elegant as we could be.
2104 * src/Makefile: Regenerate.
2105
21062000-02-10 Benjamin Kosnik <bkoz@gnu.org>
2107
2108 * Makefile.am (SUBDIRS): Add libio again.
2109 * Makefile.in: Regenerate.
2110 * configure.in (BUILD_LIBIO_INCLUDE): And here.
2111 (AC_OUTPUT): Generate libio/Makefile again.
2112 * configure: Regnerate.
2113 * src/Makefile.am (libstdc___la_LIBADD): Change path so that
2114 libio.la is referring back to the libio subdir again.
2115 (LIBIO_INCLUDES): And here.
2116 * src/Makefile.in: Regenerate.
2117
21182000-02-09 Benjamin Kosnik <bkoz@decepticon.cygnus.com>
2119
2120 * math/complex-stub.h: Missed one. Change __mycabs* to cabs*.
2121
21222000-02-09 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
2123
2124 * bits/valarray_array.h (<bits/std_new.h>): #include.
2125 (__valarray_get_memory): New function.
2126 (__valarray_release_memory): Likewise.
2127 (__valarray_default_construct): New functions.
2128 (__valarray_fill_construct): New function.
2129 (__valarray_copy_construct): New funstions.
2130 (__valarray_destroy_elements): New function.
2131
2132 * bits/valarray_array.tcc (__valarray_copy_construct): New
2133 functions.
2134
2135 * bits/std_valarray.h (valarray<>::valarray): Use
2136 __valarray_get_memory and __valarray_fill_construct,
2137 __valarray_copy_construct, __valarray_default_construct to
2138 properly construct valarrays.
2139 (valarray<>::~valarray): Use __valarray_destroy_elements to
2140 destroy elements and __valarray_release_memory to return memory.
2141 (valarray<>::shift): Tweak.
2142 (valarray<>::cshift): Likewise.
2143 (valarray<>::resize): Robustify.
2144
21452000-02-09 Benjamin Kosnik <bkoz@cygnus.com>
2146
2147 * mknumeric_limits (XCOMPILE): Add support for cross compiling.
2148 * bits/limits_generic.h: New file, defaults.
2149 * src/limits_generic.cc: New file, defaults.
2150 * configure.in (LIBS): Run mknumeric_limits at configure time.
2151 * acconfig.h: Remove PACKAGE VERSION HAVE_COMPLEX
2152 HAVE_LC_MESSAGES, tidy, clean, etc.
2153 * src/Makefile.am (geberated_sources): Remove.
2154
2155 * bits/fpos.h: Use _GLIBCPP_USE_LIBIO guards for libio typenames
2156 (_IO_off_t, _IO_ssize_t)
2157
2158 * src/complex.cc: Use glibc's <complex.h> if
2159 possible. . . apparently this was not being done before. Include
2160 tweaks.
2161 (abs): Enable cabs if it's around, instead of mycabs.
2162 * src/complexf.cc (FCT): Add global scope to match complex.cc.
2163 * src/complexl.cc (FCT): Same.
2164 * math/Makefile.am (EXTRA_LONG_DOUBLE_yes): Change mycabsl to cabsl.
2165 (libmath_la_SOURCES): And here.
2166 * math/(mycabs.c, mycabsf.c, mycabsl.c): Move to. . .
2167 * math/(cabs.c, cabsf.c, cabsl.c): . . . Here.
2168 * math/complex-stub.h: Move c_log declarations into. . .
2169 * math/mathconf.h: Here. This is because glibc's <complex.h>
2170 declares cclog, not c_log. The case of the dueling standards. . .
2171 * math/mathconf.h: Add _GLIBCPP_HAVE_* to macros.
2172 * math/Makefile.am: Change.
2173 * math/nan.c (nan): Change signature.
2174 * math/mathconf.h (NAN): Same.
2175 * math/complex-stub.h (nan): And here.
2176
2177 * Makefile.am (rebuild-stamp): Remove libio and libio
2178 dependancies. Plan to take out libio subdir and just merge with
2179 libio in top level gcc directory. Of course, this assumes there is
2180 a libio in the top level directory (ie ../src_dir). This will
2181 probably change the way this library is configured by default.
2182 * libio/*: Remove.
2183
21842000-02-09 Chip Salzenberg <chip@valinux.com>
2185
2186 * localefwd.h (locale): Make public: facet, id, category.
2187
21882000-02-09 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
2189
2190 * testsuite/26_numerics/buggy_complex.cc: Fix Origin:.
2191
2192 * acinclude.m4: Patch only once!
2193
21942000-02-09 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
2195
2196 * testsuite/26_numerics/buggy_complex.cc: New file.
2197
21982000-02-05 Petter Urkedal <petter@matfys.lth.se>
2199
2200 * acinclude.m4: New GLIBCPP_CHECK_COMPLEX_SUPPORT macro. Based
2201 on the 1999-11-21 entries by Mumit Khan.
2202 * configure.in: Use.
2203 * acconfig.h: New _GLIBCPP_BUGGY_COMPLEX macro.
2204 * bits/std_complex.h: Use.
2205
22062000-02-04 Philip Martin <pm@corris.dircon.co.uk>
2207
2208 * stl/bits/stl_algobase.h: Add traits based dispatch for
2209 __normal_iterator in the copy_backward()algorithm
2210 * stl/bits/stl_vector.h: Reduce use of __normal_iterator
2211 base() function.
2212
22132000-02-04 Mumit Khan <khan@xraylith.wisc.edu>
2214
2215 * src/gen-num-limits.cc (signal_handler): Work around signal
2216 handling problem on Cygwin.
2217 Thanks to Chris Faylor <cgf@cygnus.com>.
2218
22192000-02-03 Benjamin Kosnik <bkoz@cygnus.com>
2220
2221 * configure.in: Add (preliminary) support for cross compiles and
2222 multilibs.
2223 Remove AC_C_BIGENDIAN tests. Why is this necessary? Cross
2224 compilation freaks on this.
2225 * configure: Regenerate.
2226 * src/Makefile.am: Add support for cross compiles.
2227 * src/Makefile: Regenerate.
2228 * Makefile.am: Add support for cross compiles.
2229 * Makefile.in: Regenerate.
2230
22312000-02-02 Benjamin Kosnik <bkoz@cygnus.com>
2232
2233 * configure.in (LIBS): Remove unused subdirs.
2234 * configure: Regenerate.
2235 * Makefile.am (SUBDIRS): And here.
2236 * Makefile.in: Regenerate.
2237 * src/Makefile.am (sources): And here.
2238 * src/Makefile.in: Regenerate.
2239 * string/*: Remove.
2240 * amm1/*: Remove.
2241 * generic/*: Remove.
2242 * glibc/*: Remove.
2243 * mkcheck.in (INC_PATH): Include $BUILD_DIR before any source dirs.
2244
2245 * libtool: Update to libtool-1.3.4.
2246 * ltconfig: Same
2247 * ltmain.sh: Same
2248 * config.sub: Same.
2249 * config.guess: Same.
2250
22512000-02-02 Benjamin Kosnik <bkoz@cygnus.com>
2252 Alexandre Petit-Bianco <apbianco@cygnus.com>
2253
2254 * mkc++config: New file. Put autoconf macros into _GLIBCPP_
2255 namespace instead of polluting global namespace with duplicate
2256 autoconf output.
2257 * configure.in (AC_OUTPUT): Don't need to generate bits/config.h
2258 here anymore. . .
2259 (AC_OUTPUT_COMMANDS): Make it here.
2260 * configure: Regenerate.
2261 * bits/c++config.h.in (_CPP_CPPCONFIG): Change. Tweak. Remove
2262 endif, as now we will add it manually.
2263 Move to this file. . .
2264 * bits/c++config.h: New file. Same as old c++config.h.in except
2265 the ending macro guard is now appended manually.
2266
2267 * bits/locale_facets.tcc: Change HAVE_* macros to _GLIBCPP_HAVE_*.
2268 * bits/std_cmath.h: Same here.
2269 * bits/std_cwchar.h: And here.
2270 * src/locale.cc: And here.
2271 * src/complexl.cc: And here.
2272 * math/mathconf.h: Change to include "config.h" instead of
2273 bits/c++config.h.
2274
22752000-02-01 Benjamin Kosnik <bkoz@gnu.org>
2276
2277 * configure.in: Add support for threads. Try a model closer to
2278 libjava, as hopefully if the thread bits are added carefully
2279 enough, the source code will not have gross hacks. Besides, the
2280 libstdc++-v2 model could be easily emulated without the necessity
2281 of linking files in (as currently done)--all that needs to be done
2282 is AC_DEFINE(-D_PTHREADS) etc. However, let's try something
2283 new. . . and see if we arrive at a more elegant solution.
2284 * configure: Regenerated.
2285 * config/threads-no.h: New file.
2286 * config/threads-posix.h: New file.
2287 * src/Makefile.am (myinstallheaders): Install c++threads.h.
2288 * src/Makefile.in: Regenerated.
2289
22902000-01-31 Benjamin Kosnik <bkoz@gnu.org>
2291
2292 META-QUESTION: Can we just make a "header.html" file and a
2293 "footer.html" and just include them in all the doc sub-pages. The
2294 duplication of the header info is kind of gross, and weak
2295 considering that if you change order or layout then all this stuff
2296 has to be changed in all the sub-files.
2297
2298 * docs/17_intro/contribute.html: Take out duplicate file info.
2299 * README: Should just contain a link to the docs/index.html
2300 page. Duplicate information removed.
2301 * docs/faq/index.html: Remove indexes into HOWTOS.
2302 * docs/17_intro/howto.html: Make intro and docs part more
2303 centralized. Move intro stuff to documentation.html.
2304 * docs/how.html: Tweak. Does this file need to exist? What calls it?
2305 * docs/README.html: Move documentation files to
2306 documentation.html. Should this file be renamed
2307 "config_and_install.html" as that is what is apparently covered
2308 here. . .
2309 * docs/install.html: Yes. New file, moved and renamed README.html.
2310 * docs/documentation.html: New file. This is the index file for
2311 the documentation.
2312 * docs/index.html: Edit sidebar order. Insert new link to new
2313 documentation spine, documentation.html.
2314
23152000-01-31 Scott Snyder <snyder@fnal.gov>
2316
2317 * bits/istream.tcc (operator>>(istream&, string&)): Set failbit if
2318 we don't extract any characters.
2319 * testsuite/21_strings/inserters_extractors.cc (main): New tests.
2320
23212000-01-31 Anders Widell <awl@hem.passagen.se>
2322
2323 * stl/bits/std_bitset.h (_M_do_left_shift): Handle case when shift
2324 step is a multiple of the word size.
2325 (_M_do_right_shift): Same.
2326 * testsuite/23_containers/bitset_shift.cc: New file.
2327
23282000-01-31 Nathan Myers <ncm@zembu.com>
2329
2330 * README (Documentation): Add path info, fix typos.
2331
23322000-01-26 Benjamin Kosnik <bkoz@redhat.com>
2333
2334 * bits/locale_facets.tcc (num_get::_M_extract): Add the freaking
2335 crazy group checking for numpunct, for real this time. At some
2336 point, the local variable __grp should probably get replaced a
2337 char array, or something a bit more lightweight.
2338 (num_get::do_get(bool)): Simplify. Don't set bool reference to
2339 parsed value unless err isn't failbit.
2340 (num_get::do_get(*)): Same, make consistent.
2341
2342 Nathan Myers <ncm@zembu.com>
2343 Jim Parsons <parsons@clearway.com>
2344 * testsuite/27_io/istream_extractor_arith.cc (test08): Add
2345 more grouping tests, tweak, scold, wine.
2346
23472000-01-24 Benjamin Kosnik <bkoz@gnu.org>
2348
2349 * testsuite/27_io/istream_extractor_arith.cc (test07): Add
2350 grouping tests.
2351 * bits/locale_facets.tcc (num_get::_M_extract): Change to fix
2352 grouping bugs. Only allow thousands_sep if _M_use_groupings is
2353 true.
2354
2355 via <llewelly@198.dsl.xmission.com>
2356 * stl/bits/stl_vector.h (vector::_M_range_check): Throw
2357 out_of_range instead of range_error.
2358
23592000-01-17 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
2360
2361 * bits/std_iomanip.h (setw): Fix typo.
2362
23632000-01-14 Benjamin Kosnik <bkoz@gnu.org>
2364
2365 * testsuite/27_io/istream_extractor_arith.cc: Fix.
2366 * bits/locale_facets.tcc (do_get(...void)): Change to strtoul.
2367 * testsuite/27_io/istream_unformatted.cc (test04): Tweak.
2368
23692000-01-14 Phil Edwards <pme@sourceware.cygnus.com>
2370
2371 * docs/README.html: Reformat, more installation instructions.
2372 * docs/gccrebuild.html: New file.
2373 * docs/faq/index.html: Update for new testsuite output filenames.
2374 * docs/faq/index.txt: Regenerate.
2375
23762000-01-14 Phil Edwards <pme@sourceware.cygnus.com>
2377
2378 * Makefile.am (rebuild-stamp, all-local): New targets.
2379 * Makefile.in: Regenerated.
2380 * acinclude.m4: New macro, GLIBCPP_ENABLE_RELIBGCC.
2381 * aclocal.m4: Regenerated.
2382 * configure.in: Call new macro. Also do some sanity checks
2383 for combinations of --enable's that may not make sense.
2384 * configure: Regenerated.
2385
23862000-01-13 Benjamin Kosnik <bkoz@cygnus.com>
2387
2388 * testsuite/27_io/istream_extractor_arith.cc: Add checks for void*.
2389 * bits/locale_facets.tcc (do_get::(...void)): Set fmtflags
2390 correctly for hex-formatted input.
2391
2392 * testsuite/27_io/istream_manip.cc (test01): Fix, as per setting
2393 eofbit instead of eofbit | failbit.
2394 * testsuite/27_io/istream_unformatted.cc (test04): Fix, as
2395 ifstreams now are opened or'd with ios_base::in (as is correct).
2396 * bits/fstream.tcc (filebuf::seekoff): Simplify.
2397 * testsuite/27_io/ios_base_members_static.cc (test01): Fix thinko.
2398
23992000-01-12 Benjamin Kosnik <bkoz@gnu.org>
2400
2401 * bits/std_fstream.h: Add ios_base as a friend to basic_filebuf.
2402 * bits/basic_file.h (basic_file::filepos_cur): Remove incorrect
2403 (misleading) code.
2404 (__basic_file::filepos_valid): Same.
2405 (__basic_file::filepos_beg): Same.
2406 (__baseic_file::get_fileno): New function.
2407 * bits/ios_base.h (ios_base::sync_with_stdio): Implement, including
2408 feedback from LWG 49.
2409 * src/ios.cc: Move definition here.
2410 * testsuite/27_io/ios_base_members_static.cc (test01): Add tests.
2411
2412 * bits/std_sstream.h (_M_really_sync): Simplify argument list. Set
2413 output part of internal buffer based on string size, so that
2414 _M_out_end is set consistently with filebufs. Correct comments.
2415 * bits/sstream.tcc (stringbuf::overflow): Update here too.
2416 * testsuite/27_io/stringbuf.cc: Changes.
2417
24182000-01-11 Benjamin Kosnik <bkoz@gnu.org>
2419
2420 * bits/sstream.tcc (seekoff): Set based on end of written buffer,
2421 not buffer size.
2422 * testsuite/27_io/stringbuf.cc: Add tests for seekoff(end).
2423
2424 * bits/std_fstream.h (ifstream::open): Add ios_base::in to openmode.
2425 (ofstream::open): Add ios_base::out to openmode.
2426
2427 * bits/locale_facets.tcc (_M_extract): Have consistency between
2428 istream::sentry and extractors, where failbit | eofbit is
2429 set. Don't change this, but instead change. . (do some formatting
2430 tweaks.)
2431 * bits/istream.tcc (istream::sentry): Only set eofbit.
2432
24332000-01-10 Benjamin Kosnik <bkoz@gnu.org>
2434
2435 * testsuite/27_io/istringstream_members.cc: New file.
2436
24372000-01-09 Benjamin Kosnik <bkoz@gnu.org>
2438
2439 * bits/istream.tcc (istream::sentry): Flush.
2440
2441 * configure.in (AC_OUTPUT_COMMANDS): Simplify.
2442 * configure: Regenerate.
2443 * src/Makefile.am (generated_headers): Remove bits/c++config.h so
2444 that make clean will not delete it.
2445 * src/Makefile: Regenerate.
2446
24472000-01-07 Phil Edwards <pme@sourceware.cygnus.com>
2448
2449 * mkcheck.in: Use host-specific invocation of size(1);
2450 GNU binutils isn't necessarily there (more's the pity).
2451
24522000-01-06 Benjamin Kosnik <bkoz@cygnus.com>
2453
2454 * configure.in (LIBS): Better tests for solaris2.6.
2455 * configure: Regenerate.
2456
2457 <vakatov@ncbi.nlm.nih.gov>
2458 * bits/std_sstream.h: As per libstdc++20.
2459
24602000-01-06 Benjamin Kosnik <bkoz@gnu.org>
2461
2462 Break out configuration on solaris.
2463 * configure.in (ctype_solaris): Add in bits for solaris2.6 and 2.7.
2464 * config/solaris/ctype.cc: Delete and move to proper version.
2465 * config/solaris/bits: Same.
2466 * config/solaris/solaris2.5: Add this directory, with subdir bits
2467 and file ctype.cc. Probably doesn't work.
2468 * config/solaris/solaris2.6: Same.
2469 * config/solaris/solaris2.7: Same, as per specs via Phil Edwards.
2470
2471 * Makefile.am: Change paths to mkcheck.
2472 * Makefile: Regenerate.
2473 * configure.in (AC_OUTPUT_COMMANDS): Build mkcheck here.
2474 * configure: Regenerate.
2475 * src/Makefile.am (generated_headers): Add bits/c++config.h.
2476
2477 * mkcheck: Now autogenerated by configure and renamed. . .
2478 * mkcheck.in (INC_PATH): Add glue for ctype_include_dir.
2479 Have longer-style dates.
2480 Raja R Harinath <harinath@cs.umn.edu>
2481 * mkcheck: Change path to #!/usr/clocal/bin/bash.
2482
2483 * docs/README.html: Correct links, maybe. FAQ, install notes, and
2484 general documentation need to be organized around each other, not
2485 fight against each other. . .
2486
24872000-01-04 Phil Edwards <pme@sourceware.cygnus.com>
2488 Nicolai Josuttis <nicolai.josuttis@braunschweig.netsurf.de>
2489
2490 * README: Add a note referring to README.html.
2491 * docs/README.html: New file from Nicolai.
2492 * docs/faq/index.html: Move "how to get a copy" to here.
2493 * docs/gentop/footchunk.html: Update.
2494 * docs/gentop/headchunk.html: New links according to
2495 bkoz's idea for "How to..." stuff.
2496 * docs/gentop/thanks: Actually put people here.
2497 * docs/download.html: Regenerated.
2498 * docs/index.html, docs/links.html, docs/mail.html,
2499 docs/status.html, docs/thanks.html, docs/faq/index.txt: Ditto.
2500 * docs/how.html: Ditto. (This file should go away soon.)
2501
25021999-12-26 Phil Edwards <pme@sourceware.cygnus.com>
2503
2504 * docs/gentop/status: Add snapshot version column, update
2505 for Solaris 7.
2506 * docs/status.html: Regenerated.
2507
25081999-12-26 Phil Edwards <pme@sourceware.cygnus.com>
2509
2510 * docs/faq/index.html: Turn README and RELEASE-NOTES into links
2511 from installation FAQ, and specify location of text files.
2512 * docs/faq/index.txt: Regenerated.
2513
25141999-12-23 Phil Edwards <pme@sourceware.cygnus.com>
2515
2516 * docs/gentop/download: Add links to prebuilds for Cygwin/Mingw32.
2517 * docs/download.html: Regenerated.
2518
25191999-12-22 Phil Edwards <pme@sourceware.cygnus.com>
2520
2521 * docs/faq/index.html: Update 'what works' for .7 snapshot,
2522 clean up various links.
2523 * docs/faq/index.txt: Regenerated.
2524 * docs/gentop/gentop: Smarter regeneration script.
2525 * docs/gentop/{head,foot}chunk.html: Updated with new
2526 contributors link and mod date.
2527 * docs/gentop/index: Snapshot relase date.
2528 * docs/gentop/thanks: New contributors page added.
2529 * docs/{download,how,index,links,mail,status,thanks}.html:
2530 Regenerated from gentop; thanks.html created.
2531
25321999-12-21 Benjamin Kosnik <bkoz@decepticon.cygnus.com>
2533
2534 * bits/c++config.h.in (__GLIBCPP__): 19991221.
2535 * docs/index.html: Add correct information.
2536
2537 * config/irix: New directory.
2538 * config/irix/ctype.cc: Add irix-6.5 info. Not tested.
2539 * config/irix/bits/ctype_base.h: And here.
2540
2541 * config/aix: New directory.
2542 * config/aix/ctype.cc: Add aix-4.2 info. Not tested.
2543 * config/aix/bits/ctype_base.h: And here.
2544
25451999-12-21 Philip Martin <pm@corris.dircon.co.uk>
2546
2547 * bits/basic_string.h: Add special case handling for integral
2548 "iterators".
2549 * bits/std_string.h: include type_traits.h
2550 * testsuite/21_strings/ctor_copy_dtor.cc: Tweak.
2551
25521999-12-21 Benjamin Kosnik <bkoz@decepticon.cygnus.com>
2553
2554 * bits/fstream.tcc (seekoff): Output buffer based on _M_*_in and
2555 _M_*_end now.
2556 * bits/std_fstream.h (sync): And here.
2557 * testsuite/27_io/filebuf.cc: Revisions.
2558 * testsuite/27_io/filebuf-2.tst: Correct, remove weird character
2559 at the end of the file.
2560 * testsuite/27_io/filebuf-3.tst: Correct.
2561
25621999-12-21 Phil Edwards <pedwards@jaj.com>
2563
2564 * docs/gentop/index: Hold off on .7 announcement date.
2565 * docs/index.html: Regenerate.
2566
25671999-12-21 Benjamin Kosnik <bkoz@kcygnus.com>
2568
2569 * bits/std_fstream.h (sync): Move _M_file->sync() to
2570 _M_really_overflow().
2571 * bits/fstream.tcc (seekoff): Call sync, not _M_really_overflow so
2572 as to get the _M_file->sync action, which forces the external
2573 buffer to update itself.
2574 (underflow): Same here.
2575
25761999-12-21 Phil Edwards <pedwards@jaj.com>
2577
2578 * bits/c++config.h.in: Uncomment _GLIBCPP_USE_NAMESPACES and move...
2579 * acconfig.h: ...to here.
2580 * config.h.in: Regenerate from aclocal.
2581 * acinclude.m4: Add GLIBCPP_ENABLE_DEBUG, GLIBCPP_ENABLE_NAMESPACES.
2582 * aclocal.m4: Regenerate from acinclude.
2583 * configure.in: Use ENABLE macros here.
2584 * configure: Regenerate.
2585 * src/Makefile.am: Use results from ENABLE macros.
2586 * src/Makefile.in: Regenerate.
2587
25881999-12-20 Benjamin Kosnik <bkoz@cygnus.com>
2589
2590 * mkcheck (SRC_DIR): Now have to include config/* dir if "make
2591 check" and not "make check-install." Temporarily hack in linux
2592 support.
2593
2594 * bits/std_streambuf.h: Tweaks.
2595 * bits/streambuf.tcc (xsgetn): Tweaks.
2596 * bits/std_fstream.h (sync): Make _M_really_overflow consistent.
2597 * bits/fstream.tcc (filebuf::underflow): Simplify.
2598 * bits/std_sstream.h (streambuf::underflow): Minor change to make
2599 checks for read position precisely implement the standard.
2600 * bits/basic_file.h (filepos_cur): Base this on _offset.
2601 * testsuite/21_strings/inserters_extractors.cc (test05): Tweaks.
2602 * testsuite/27_io/filebuf.cc: Tweak.
2603
26041999-12-20 Benjamin Kosnik <bkoz@cygnus.com>
2605
2606 * docs/17_intro/RELEASE-NOTES: Fix typos.
2607
2608 * bits/locale_facets.h (ctype): Modify, use __to_type to abstract
2609 out platform-specific bits.
2610 * config/default/ctype.cc: And here.
2611 * config/defaults/bits/ctype_base.h: And here.
2612 * config/linux/ctype.cc: And here.
2613 * config/linux/bits/ctype_base.h (ctype_base): And here.
2614 * config/solaris/bits/ctype_base.h (ctype_base): Add
2615 __to_type. Comment, as it looks like this is for solaris2.6 and
2616 above: solaris2.5.1 doesn't seem to have the same definitions.
2617 * config/solaris/ctype.cc: And here.
2618
26191999-12-19 Benjamin Kosnik <bkoz@cygnus.com>
2620 Ulrich Drepper <drepper@cygnus.com>
2621
2622 * acconfig.h: Remove _GLIBCPP_USE_CTYPE_ISBIT.
2623
2624 * src/locale.cc: Take out platform-specific hacks.
2625 * config/linux/ctype.cc: Put here.
2626 * config/solaris/ctype.cc: Put here.
2627 * config/default/ctype.cc: Put here.
2628
2629 * bits/locale_facets.h: Take out platform-specific hacks.
2630 * config/linux/bits/ctype_base.h: Put here.
2631 * config/solaris/bits/ctype_base.h: Put here.
2632 * config/default/bits/ctype_base.h: Put here.
2633
2634 * configure.in: Bump version.
2635 Add tests for top-level config directory.
2636 * configure: Regenerated.
2637 * src/Makefile.am (INCLUDES): Add platform-specific dir.
2638 * src/Makefile: Regenerate.
2639
26401999-12-19 Benjamin Kosnik <bkoz@cygnus.com>
2641 Ulrich Drepper <drepper@cygnus.com>
2642
2643 * bits/locale_facets.h: Hack in solaris support.
2644 * src/locale.cc: Here too.
2645
26461999-12-18 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
2647
2648 * docs/17_intro/TODO: Update
2649 * docs/17_intro/RELEASE-NOTES (New): Update.
2650
26511999-12-17 Benjamin Kosnik <bkoz@milou.cygnus.com>
2652
2653 * bits/c++config.h.in (__GLIBCPP__): Bump.
2654 * docs/17_intro/RELEASE-NOTES: Update, Gaby please add your stuff.
2655 * docs/17_intro/TODO: Update.
2656
2657 * bits/locale_facets.h: Touch this too.
2658 * bits/localefwd.h: Add typedefs for loooooong vector names.
2659 * bits/locale_facets.tcc (locale::operator()): Need parens.
2660 (has_facet): Simplify.
2661 * src/locale-inst.cc: Add instantiations.
2662 * src/locale.cc: Tweaks.
2663
2664 * bits/std_streambuf.h: Move indeterminates into. .
2665 * bits/std_fstream.h: Here.
2666 * bits/fstream.tcc (underflow): Rewind just for ios_base::out
2667 streams.
2668 * bits/sstream.tcc: Very minor formatting tweaks.
2669 * bits/std_streambuf.h (_M_set_determinate): If exclusively an
2670 input buffer, set _M_buf to offset.
2671 * bits/istream.tcc (std): Tweaks.
2672 * testsuite/27_io/istream_unformatted.cc (test05): More tweaks,
2673 include fstream.
2674 * testsuite/27_io/filebuf.cc: Tweaks.
2675
26761999-12-17 Phil Edwards <pedwards@jaj.com>
2677
2678 * configure.in: Add OPTLEVEL, -O2 for gcc 2.96+, nothing otherwise.
2679 * configure: Regenerate.
2680 * src/Makefile.am: Use OPTLEVEL in CXXFLAGS.
2681 * src/Makefile.in: Regenerate. Also picks up OTHER_CXXFLAGS rename
2682 to OPTIMIZE_CXXFLAGS from a previous revision (1.96) to Makefile.am.
2683
26841999-12-17 Phil Edwards <pedwards@jaj.com>
2685
2686 * docs/21_strings/stringtok_std_h.txt: New algorithm
2687 suggested by Chris King.
2688 * docs/21_strings/howto.html: Link to new version.
2689
26901999-12-16 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
2691
2692 * bits/valarray_array.h (__valarray_sum): Use operator+=, not
2693 operator+.
2694 * docs/17_intro/TODO: Update.
2695
26961999-12-15 Phil Edwards <pme@sourceware.cygnus.com>
2697
2698 * docs/gentop/footchunk.html: Updated, fixed CRLFs.
2699 * docs/gentop/gentop: Ditto.
2700 * docs/gentop/headchunk.html: Ditto.
2701 * docs/*.html: Regenerated from gentop.
2702 * docs/*/howto.html: Updated as test.
2703 * docs/faq/index.html: Updated, fixed CRLFs.
2704 * docs/faq/index.txt: Regenerated.
2705
27061999-12-15 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
2707
2708 * mknumeric_limits (OUT_C): restart only if $OUT_C is present.
2709
2710 * bits/std_complex.h
2711 (complex<float>::complex(const complex<double>&),
2712 complex<float>::complex(const complex<long double>&)): Define.
2713
2714 * docs/17_intro/TODO: Update.
2715
27161999-12-13 Benjamin Kosnik <bkoz@cygnus.com>
2717
2718 * bits/istream.tcc (seekg): Don't set _M_gcount.
2719 (tellg): Same.
2720 * bits/fstream.tcc (filebuf::underflow): Re-sync
2721 external byte sequence's input buffer only. . .
2722 * testsuite/27_io/istream_unformatted.cc (test04): New tests for
2723 tellg, seekg and filebufs.
2724 (test05): Same for stringbufs.
2725 * testsuite/27_io/istream_unformatted-2.tst: New file.
2726 * testsuite/27_io/istream_unformatted-1.tst: New file.
2727 * testsuite/27_io/istream_unformatted-1.txt: New file.
2728 * testsuite/21_strings/inserters_extractors.cc (test05): Change
2729 output file.
2730
27311999-12-13 Phil Edwards <pedwards@jaj.com>
2732
2733 * docs/gentop/*: New directory, containing bits for the homepages.
2734 * docs/*.html: Regenerated from gentop.
2735 * docs/*/*.html: Entries added and regenerated.
2736
27371999-12-13 Benjamin Kosnik <bkoz@gnu.org>
2738
2739 Efforts to get -O2 to work with -Winline -Werrors.
2740 * bits/valarray_array.h (__valarray_fill(_Tp*, size_t, const
2741 _Tp&): Remove inline declaration, as cannot be inlined and
2742 -Winline -Werror complains. An interesting question is why this
2743 cannot be inlined, as I can see no real reason to disqualify it.
2744 (__valarray_product(const _Tp*, const _Tp*)): Same here.
2745 * bits/std_valarray.h (valarray::operator[](size_t)): Same here.
2746
2747 * docs/17_intro/TODO: Update.
2748
27491999-12-12 Benjamin Kosnik <bkoz@gnu.org>
2750
2751 * bits/std_fstream.h (seekpos): Tweaks, fixes. Move definition to
2752 fstream.tcc.
2753 * bits/basic_file.h (filepos_cur()): Make pointers themselves be
2754 the resultant position.
2755 * bits/fstream.tcc (seekoff): Explicitly set return value to
2756 resultant external byte sequence position, not value returned from
2757 _M_file->seekoff. Need to make
2758 (seekpos): New definition.
2759
2760 * bits/istream.tcc (seekg): As per Library Issues List 136, set to
2761 just istream. Necessary, or else tellg will give an invalid stream
2762 position, but seekg will return a valid stream position, which is
2763 not groovy: see testcase addition.
2764 * bits/ostream.tcc (seekp): Same.
2765
2766 * bits/streambuf.tcc (_S_copy_streambufs): Simplify.
2767 * bits/sstream.tcc: Tweaks.
2768 * bits/locale_facets.tcc: Tweaks.
2769 (num_put::do_put(iter_type, ios_base, char_type, const void*)):
2770 Re-write in a way that is easier for the inliner to work with.
2771 * bits/ios_base.h: Use explicit static_cast<int>(...) notation.
2772
27731999-12-10 Benjamin Kosnik <bkoz@cygnus.com>
2774
2775 * bits/locale_facets.tcc: Tweaks.
2776 * bits/locale_facets.h (use_facet): Can't inline, remove inline
2777 from declaration.
2778 * bits/localefwd.h: And here.
2779 * bits/std_ostream.h: Tweaks, sentry ctor can't be inlined.
2780 * bits/ostream.tcc: Put here.
2781
2782 Frank Ch. Eigler <fche@cygnus.com>
2783 * src/Makefile.am: Adjust CXXFLAGS, add AM_CXXFLAGS.
2784
27851999-12-08 Benjamin Kosnik <bkoz@cygnus.com>
2786
2787 * bits/sstream.tcc (stringbuf::seekoff): Long overdue revamp. Make
2788 in and out buffers update independantly.
2789
2790 * bits/basic_ios.h: Minor formatting.
2791 * bits/fstream.tcc (std): Fix indentation.
2792
27931999-12-08 Chip Salzenberg <chip@valinux.com>
2794
2795 * bits/char_traits.h (char_traits<>): Move not_eof() functions
2796 after corresponding eof() functions, so they're easier for the
2797 compiler to inline.
2798 * bits/locale_facets.h (money_base::__default_pattern): Move
2799 static variable out of inline functions.
2800 (_Moneypunct<>::do_{pos,neg}_format): Use it.
2801 * src/locale-inst.cc (money_base::__default_pattern): Define it.
2802
28031999-12-08 Benjamin Kosnik <bkoz@cygnus.com>
2804
2805 * bits/std_fstream.h (filebuf::open): Tweak.
2806 * bits/fstream.tcc (filebuf::seekoff): Simplify, fix.
2807 * bits/std_ios.h: Minor tweaks for headers.
2808
28091999-12-06 Benjamin Kosnik <bkoz@gnu.org>
2810
2811 * bits/c++config.h.in (_GLIBCPP_FULLY_COMPLIANT_HEADERS): New macro.
2812 * src/string-inst.cc: Add guards . . .
2813 * src/misc-inst.cc: And here.
2814 * bits/std_sstream.h: And here.
2815 * bits/std_fstream.h: And here.
2816 * bits/std_streambuf.h: And here.
2817 * bits/std_istream.h: And here.
2818 * bits/std_ostream.h: And here.
2819
28201999-12-06 Scott Snyder <snyder@fnal.gov>
2821
2822 * bits/istream.tcc (basic_istream::read): Try to handle __n == 0
2823 case.
2824 (basic_istream::readsome): And here as well.
2825 * testsuite/27_io/istream_unformatted.cc: Test a zero-length
2826 read().
2827
28281999-12-06 Mumit Khan <khan@xraylith.wisc.edu>
2829
2830 * bits/istream.tcc (basic_istream::ignore): streamsize is not
2831 necessarily an `int'.
2832
28331999-12-06 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
2834
2835 * mknumeric_limits: Don't use $CXXFLAGS when building
2836 gen-num-limits. It's definitely wrong to use it since $CXXFLAGS
2837 generally instructs the compiler not to emit template
2838 instantiations and we end up with undefined symbols. Sigh.
2839
28401999-12-05 Benjamin Kosnik <bkoz@gnu.org>
2841
2842 * bits/locale_facets.tcc: Tweak.
2843 (_S_format_long): Adjust showpos formatting for hex and oct.
2844 * bits/std_ostream.h (operator<<(short)): Correctly deal with hex
2845 and oct by formatting as unsigned.
2846 (operator<<(int)): Same here.
2847 * bits/ostream.tcc (operator<<(long)): Same.
2848 (operator<<(long long)): Same.
2849 (_S_pad_char): Actually treat ios_base::internal as something
2850 worth doing correctly. Remove const designation on ios argument.
2851 * testsuite/27_io/ios_manip_basefield.cc (test02): Add tests.
2852 * testsuite/27_io/ostream_inserter_arith.cc (test03): Add tests.
2853
28541999-12-04 Benjamin Kosnik <bkoz@gnu.org>
2855
2856 * bits/std_sstream.h (streambuf::underflow): Check for mode == in.
2857
28581999-12-03 Benjamin Kosnik <bkoz@gnu.org>
2859
2860 * bits/locale_facets.tcc (num_put::do_put(bool): Fix.
2861
2862 * bits/sstream.tcc (streambuf::seekoff): Add parens.
2863 * bits/istream.tcc (istream::get(sb)): Handle exceptional events.
2864 (operator>>(istream, _CharT*)): Change streamsize to int_type.
2865 (operator>>(istream, _CharT&)): Fix typedef'd type to be _CharT.
2866 * bits/ostream.tcc (ostream::operator<<(const char*)): Stub out
2867 unused argument.
2868 (ostream::operator<<(_CharT)): Fix.
2869
2870 * bits/std_sstream.h: Temporarily disable including sstream.tcc to
2871 see if this will increase compile speed.
2872 * bits/std_ostream.h: Likewise. . .
2873 * bits/std_istream.h: And here.
2874 * bits/std_fstream.h: And here.
2875 * src/misc-inst.cc: Add relevant header file includes for
2876 instantiation purposes.
2877 * src/string-inst.cc: And here.
2878 * testsuite/27_io/ostream_inserter_arith.cc: Add test case.
2879
28801999-12-02 Benjamin Kosnik <bkoz@gnu.org>
2881
2882 * testsuite/27_io/istream_unformatted.cc (test03): Add tests.
2883 * bits/istream.tcc (get(streambuf)): More fixes.
2884 (istream::ignore): Get specific about numeric_limits<int>::max()
2885 requirements.
2886
2887 * bits/fstream.tcc (filebuf::open): Tweaks for _M_last_overflowed.
2888 (filebuf::close): Same.
2889 * testsuite/27_io/filebuf.cc: Add tests for ios_base::ate.
2890
28911999-12-01 Phil Edwards <pedwards@jaj.com>
2892
2893 * mkcheck: Support for compilation/execution timing.
2894 * testsuite/printnow.c: New file.
2895
28961999-12-01 Phil Edwards <pedwards@jaj.com>
2897
2898 * bits/std_cwchar.h: Test for _GLIBCPP_USE_WCHAR_T.
2899 * configure.in: Test for presence of wchar.h before testing
2900 for any of its features.
2901 * configure: Regenerate.
2902
29031999-11-30 Benjamin Kosnik <bkoz@gnu.org>
2904
2905 Preliminary istream validations complete.
2906 * bits/istream.tcc (istream::getline): Fixes. Tweaks to make
2907 formatting more consistent. Removal of if-statements inside of for
2908 loops.
2909 (ignore): Fix.
2910 (get): Same.
2911 (putback): Same.
2912 * bits/std_istream.h: Same.
2913 * bits/sstream.tcc (stringbuf::pbackfail): Fix.
2914 * testsuite/27_io/stringbuf.cc: Tweak.
2915 * testsuite/27_io/istream_unformatted.cc (test02): Mo' tests.
2916
2917 * bits/ostream.tcc (ostream::operator<<(arith)): Set badbit, not
2918 failbit on failure, as per 27.6.2.5.2.
2919
2920 * stl/bits/std_vector.h: Allow bool specializations. Should move
2921 ext/std_bvector to bits, not ext, maybe.
2922
29231999-11-30 Mumit Khan <khan@xraylith.wisc.edu>
2924
2925 * configure.in: Fix checks for mbstate_t and WCHAR_MIN/MAX.
2926 * configure: Regenerate.
2927
2928999-11-29 Benjamin Kosnik <bkoz@gnu.org>
2929
2930 * bits/istream.tcc (get(streambuf, char)): Fix.
2931 * testsuite/27_io/istream_unformatted.cc (test03): Add tests.
2932
29331999-11-29 Scott Snyder <snyder@fnal.gov>
2934
2935 * bits/basic_string.h (append(const _Char*, size_type)): The
2936 length of the appended string is given exactly by the second arg,
2937 regardless of the data in the character array.
2938 * bits/string.tcc (basic_string(const _CharT*, size_type, const
2939 _Alloc&)): Likewise.
2940 * testsuite/21_strings/append.cc (test01): Remove erroneous test
2941 of basic_string::append.
2942
29431999-11-29 Chip Salzenberg <chip@valinux.com>
2944
2945 * Makefile.in: Tweaks for CXXFLAGS.
2946 * */Makefile.in: Same.
2947
29481999-11-29 Mumit Khan <khan@xraylith.wisc.edu>
2949
2950 * conficd bgure.in: Check for wide character support.
2951 * bits/c++config.h.in (_GLIBC_USE_WCHAR_T): Move from here ...
2952 * acconfig.h (_GLIBC_USE_WCHAR_T): to here.
2953 * bits/string.tcc (wstring::_S_find): Guard wchar_t specialization.
2954
29551999-11-29 Mumit Khan <khan@xraylith.wisc.edu>
2956
2957 * acinclude.m4: Fix typo.
2958 * src/complex.cc: Fix macro line continuation.
2959
29601999-11-29 Petter Urkedal <petter@matfys.lth.se>
2961
2962 * src/Makefile.am (CXXFLAGS): Add -Wno-format to allow non-
2963 string literals in format, as used in locale-facets.tcc.
2964
29651999-11-28 Benjamin Kosnik <bkoz@gnu.org>
2966
2967 * testsuite/27_io/istream_unformatted.cc (test03): Add tests.
2968 * bits/istream.tcc (istream::get): Extract to argument minus one.
2969 Various tweaks and fixes.
2970
29711999-11-22 Mumit Khan <khan@xraylith.wisc.edu>
2972
2973 * bits/locale_facets.tcc: Workaround for compiler crash on
2974 ix86-*-mingw32.
2975
29761999-11-21 Mumit Khan <khan@xraylith.wisc.edu>
2977
2978 * acinclude.m4: New file. New _GLIBCPP_CHECK_FLOAT_SUPPORT macro.
2979 * configure.in: Use.
2980 * acconfig.h: New _GLIBCPP_BUGGY_FLOAT_COMPLEX macro.
2981 * src/complexf.cc: New _GLIBCPP_FLOAT_SPECIALIZATION macro.
2982 * bits/std_complex.h: Use.
2983 * src/complex.cc: Use.
2984
29851999-11-19 Mumit Khan <khan@xraylith.wisc.edu>
2986
2987 * testsuite/18_support/numeric_limits.cc: Add missing std:: prefix.
2988 * testsuite/21_strings/inserters_extractors.cc: Likewise.
2989 * testsuite/22_locale/ctype.cc: Likewise.
2990 * testsuite/23_containers/multiset.cc: Likewise.
2991 * testsuite/23_containers/vector_ctor.cc: Likewise.
2992 * testsuite/26_numerics/binary_closure.cc: Likewise.
2993 * testsuite/27_io/fpos.cc: Likewise.
2994 * testsuite/27_io/ios_base_callbacks.cc: Likewise.
2995 * testsuite/27_io/istream_extractor_arith.cc: Likewise.
2996 * testsuite/27_io/istream_extractor_char.cc: Likewise.
2997 * testsuite/27_io/istream_extractor_other.cc: Likewise.
2998 * testsuite/27_io/istream_sentry.cc: Likewise.
2999 * testsuite/27_io/ostream_inserter_char.cc: Likewise.
3000 * testsuite/27_io/ostream_inserter_other.cc: Likewise.
3001 * testsuite/27_io/streambuf.cc: Likewise.
3002 * testsuite/27_io/stringstream.cc: Likewise.
3003
30041999-11-19 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
3005
3006 * bits/valarray_meta.h: Don't forget to define tanh
3007
30081999-11-18 Philip Martin <pm@corris.dircon.co.uk>
3009
3010 * src/stl-inst.cc: Use typedef to refer to iterator
3011 * stl/bits/stl_algobase.h: Add traits based dispatch for
3012 __normal_iterator in the copy()algorithm
3013 * stl/bits/type_traits.h: Add _Is_normal_iterator trait support
3014
30151999-11-18 Kevin Ediger <kediger@licor.com>
3016
3017 * src/locale.cc (locale::_Imp::_Imp): Use auto_ptr to make
3018 constructors for locale::_Impl exception safe.
3019
30201999-11-18 Scott Snyder <snyder@fnal.gov>
3021
3022 * stl/bits/stl_queue.h: The C++ standard gives the default for the
3023 _Sequence template argument of priority_queue<> as vector<>, not
3024 deque<>.
3025
30261999-11-18 Benjamin Kosnik <bkoz@gnu.org>
3027
3028 * bits/std_sstream.h (stringbuf::_M_really_sync): Add __iend as a
3029 parameter.
3030 * bits/sstream.tcc: Adjust here too.
3031
30321999-11-17 Benjamin Kosnik <bkoz@gnu.org>
3033
3034 * bits/sbuf_iter.h (istreambuf_iter::equal): Tweak.
3035 * bits/istream.tcc (operator>>): Replace iostate(0) with
3036 iostate(ios_base::goodbit), which is the same thing, but hopefully
3037 a bit clearer.
3038 * bits/locale_facets.tcc (do_get(bool)): Streamline, deal with
3039 libraries issue list 17.
3040 (do_gets): Don't set goodbit explicitly, instead only set on
3041 failures as good bit is the default setting.
3042 * bits/ios_base.h (setf): Set correctly.
3043 * bits/fstream.tcc: Tweak.
3044 * bits/std_sstream.h (_M_really_sync): Fix ibuffer positioning for
3045 in|out bufs that are empty. . .
3046 * testsuite/27_io/istream_extractor_arith.cc (test03): Add.
3047
30481999-11-16 Benjamin Kosnik <bkoz@gnu.org>
3049
3050 * testsuite/27_io/streambuf.cc (class testbuf): Don't set _M_buf_size.
3051 * bits/std_streambuf.h (setp): Set _M_buf_size, _M_mode.
3052 Add comments "all about _M_buf."
3053 (setg): Set _M_mode.
3054
30551999-11-16 Kevin Ediger <kediger@licor.com>
3056
3057 * bits/locale_facets.tcc (_S_build_float_format): New function.
3058 (_S_output_float): New function.
3059 (num_put::do_put(double)): Use 'em.
3060 (num_put::do_put(long double)): Use 'em.
3061 * testsuite/27_io/ostream_inserter_arith.cc: New file.
3062
30631999-11-15 Scott Snyder <snyder@fnal.gov>
3064
3065 * bits/basic_file.h: Type of __off parm should be __c_streampos, to
3066 match how libio is calling us.
3067 * src/basic_file.cc (sys_seek): Likewise.
3068 * bits/std_fstream.h (basic_filebuf::sync): Restore sync call.
3069
30701999-11-15 Benjamin Kosnik <bkoz@gnu.org>
3071
3072 * docs/17_intro/contribute.html: Add link to assignment form.
3073 * docs/17_intro/libstdc++-assign.txt: New file.
3074
3075 * mkcheck (TESTS_FILE): Move a copy of test files as well as
3076 output files.
3077
3078 * bits/std_streambuf.h (_M_buf_bump): New function.
3079 * bits/streambuf.tcc: Mods to support _M_buf_bump.
3080 (xsputn): Here. Also add checks for output valid.
3081 (xsgetn): Add checks for input valid.
3082 (sputc): Here.
3083 (sgetc): Set _M_in_end to _M_buf + _M_buf_end.
3084 * bits/std_sstream.h (_M_really_sync): Set _M_buf.
3085 Set _M_out_end to variable-length-end.
3086 * bits/sstream.tcc (overflow): Use _M_buf_bump.
3087 (seekpos): Same.
3088 (seekoff): Same.
3089 * bits/fstream.tcc (std): Tweak formatting.
3090 (filebuf::overflow): Simplify.
3091 (filebuf::showmanyc): Same.
3092 (filebuf::underflow): Same.
3093 * testsuite/27_io/filebuf.cc: Fix.
3094 * testsuite/27_io/ostream_inserter_other.cc: Fix.
3095 * testsuite/27_io/ostream_inserter_other-2.tst: New file.
3096 * testsuite/27_io/stringbuf.cc: Tweak.
3097 * testsuite/27_io/streambuf.cc: Tweak.
3098 * testsuite/27_io/istream_extractor_other.cc: Fix.
3099
31001999-11-11 Matthias Klose <doko@cs.tu-berlin.de>
3101
3102 * stl_deque.h: Use static_casts<size_type>(signed_type).
3103
31041999-11-11 Benjamin Kosnik <bkoz@gnu.org>
3105
3106 Cleanups for callbacks, more regression hunting. Remaining
3107 failures (1) due to last unresolved stringstream issues, not
3108 regressions per se.
3109 * bits/std_fstream.h: Revert. Disable call to _M_file->sync as
3110 killing 27_io/filebuf.cc tests. . . need another solution.
3111
3112 * bits/streambuf.tcc (_S_copy_streambufs): Fix.
3113 * testsuite/27_io/istream_extractor_other.cc: Tweak comments.
3114
3115 * bits/basic_ios.h: Add cached facets here. UGH. The standard
3116 foils all attempts at a graceful, minimal implementation.
3117 * bits/basic_ios.tcc: Tweaks.
3118 * bits/istream.tcc: Fix.
3119 * bits/ostream.tcc: Fix.
3120 * bits/std_istream.h: Fix.
3121 * bits/std_ostream.h: Fix.
3122 * src/ios.cc (ios_base::imbue): Set _M_locale_ios before calling
3123 callbacks.
3124 * bits/locale_facets.tcc (std): Minor, minor formatting tweak.
3125 (_S_pad_numeric): Make comprehensible.
3126
31271999-11-10 Benjamin Kosnik <bkoz@cygnus.com>
3128
3129 * bits/std_ostream.h: Add callbacks for _M_fnumput.
3130 (_S_ostream_fcache): New function.
3131 Move functions out-of-line.
3132 * bits/ostream.tcc: Put here.
3133
3134 * bits/std_istream.h: Add callbacks for _M_fnumget.
3135 (_S_istream_fcache): New function.
3136 Move functions out-of-line.
3137 * bits/istream.tcc: Put here.
3138
3139 * bits/basic_ios.tcc (basic_ios::imbue): Tweaks, remove call to
3140 _M_call_callbacks(), as ios_base::imbue does this already.
3141 * src/ios.cc (register_callback): Clean.
3142 (_M_call_callbacks): Same.
3143 * bits/ios_base.h: Callback work.
3144 * testsuite/27_io/ios_base_callbacks.cc (test01): New file.
3145
31461999-11-10 Benjamin Kosnik <bkoz@cygnus.com>
3147 Matthias Klose <doko@cs.tu-berlin.de>
3148
3149 * stl/ext/stl_rope.h: Fix initialization order.
3150
31511999-11-09 Scott Snyder <snyder@fnal.gov>
3152
3153 * bits/std_fstream.h (basic_filebuf::sync): Unconditionally call
3154 _M_file->sync() so that redirection works correctly.
3155
31561999-11-09 Benjamin Kosnik <bkoz@gnu.org>
3157
3158 * bits/istream.tcc: Re-order.
3159 * bits/std_istream.h: Fix getline problems.
3160 * testsuite/27_io/istream_unformatted.cc: New tests.
3161
3162 Clean up regressions.
3163 * bits/std_sstream.h: Set initial stringbufs correctly.
3164
31651999-11-09 Scott Snyder <snyder@fnal.gov>
3166
3167 * stl_vector.h (_M_range_insert): Fix mixing pointers and
3168 vector::iterator.
3169 * testsuite/23_containers/vector_modifiers.cc (test01): New file,
3170 tests.
3171
31721999-11-09 Benjamin Kosnik <bkoz@cygnus.com>
3173
3174 * src/Makefile.am (CXXFLAGS): Add -Winline.
3175 * src/Makefile.in: Regenerate.
3176
31771999-11-05 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
3178
3179 * bits/valarray_meta.h (_DEFINE_EXPR_UNARY_FUNCTION): When
3180 building meta-expressions don't forget to take the contained
3181 closures.
3182
31831999-11-02 Benjamin Kosnik <benjamin@cygnus.com>
3184
3185 * configure: Regenerate.
3186
31871999-11-02 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
3188
3189 * bits/valarray_meta.h (_Expr<>::sum): Tweak. Use copy-initialization
3190 syntax.
3191 * bits/valarray_meta.h (min): Likewise.
3192 * bits/valarray_meta.h (max): Likewise.
3193
31941999-11-01 Benjamin Kosnik <bkoz@cygnus.com>
3195
3196 * bits/std_sstream.h (_M_really_sync): Take into account in | out bufs.
3197 * bits/std_streambuf.h (_S_copy_streambufs): New function.
3198 * bits/streambuf.tcc: Define.
3199 * bits/istream.tcc (istream::operator>>(streambuf)): Rewrite.
3200 * bits/ostream.tcc (ostream::operator<<(streambuf)): Rewrite.
3201 * testsuite/27_io/ostream_inserter_other.cc: Add tests.
3202 * testsuite/27_io/ostream_inserter_other-1.tst: New file.
3203
3204 * bits/basic_string.h: Explicitly cast npos to unsigned type,
3205 reported by Richard Atterer.
3206 * bits/char_traits.h: For consistency's sake, here too.
3207
3208 * configure.in: Bump version to 2.90.7.
3209
32101999-10-31 Benjamin Kosnik <bkoz@cygnus.com>
3211
3212 * testsuite/27_io/ostream_inserter_char-1.tst: Check file output.
3213 * testsuite/27_io/ostream_inserter_char.cc (test05, test01): Add tests.
3214 * bits/streambuf.tcc (xsputn): Treat--size const char for long loops.
3215 (xsgetn): Same.
3216 * bits/sstream.tcc (seekpos): Tricks, mostly: check _M_mode before
3217 writing into buffer.
3218 (seekoff): Same.
3219
32201999-10-29 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
3221
3222 * bits/valarray_array.h (__valarray_sum): New function.
3223 * bits/valarray_array.h (__valarray_product): Same.
3224
3225 * bits/std_valarray.h (valarray<T>::product): Comment out.
3226 * bits/std_valarray.h (valarray<T>::sum): Use __valarray_sum
3227 instead of accumulate.
3228
3229 * src/valarray-inst.cc: Remove explicit intantiation of
3230 class multiplies<size_t>, accumulate, valarray<size_t>::product.
3231 * src/valarray-inst.cc (__valarray_product): Instantiate
3232 explicitly.
3233 * src/valarray-inst.cc (__valarray_product(const
3234 valarray<size_t>&)): New function.
3235 * src/valarray-inst.cc (gslice::_Indexer::_Indexer): Don't use
3236 valarray<size_t>::product. Use __valarray_product instead.
3237
3238
32391999-10-25 Benjamin Kosnik <bkoz@cygnus.com>
3240
3241 * bits/std_ostream.h (ostream.inserters.char): Correctly pad output.
3242 (_S_pad_char): New function. Not done: ios_base::internal.
3243 * bits/ostream.tcc: Clean for above.
3244 * bits/locale_facets.tcc (_S_fill): Remove ostreambufiterator
3245 specialization that was commented out, as ostreams now have to
3246 correctly deal with padding.
3247 * testsuite/27_io/ostream_inserter_char.cc (main): Add tests.
3248
3249 * testsuite/21_strings/ctor_copy_dtor.cc(test02): Add test case
3250 from mailing list. This is a bug, and should be fixed.
3251 * testsuite/21_strings/inserters_extractors.cc (main): Tweak, fix typo.
3252
32531999-10-22 Petter Urkedal <petter@matfys.lth.se>
3254
3255 * stl/bits/stl_numeric.h (__power): Replaced argument name `__opr'
3256 to avoid conflict with gcc name mangling.
3257 * stl/bits/stl_algo.h (__transform): Same.
3258
32591999-10-21 Benjamin Kosnik <bkoz@cygnus.com>
3260
3261 * bits/ios_base.h: Change argument names.
3262 * docs/17_intro/BADNAMES: Add __opr.
3263
32641999-10-20 Benjamin Kosnik <bkoz@decepticon.cygnus.com>
3265
3266 Work on compilation slowdowns from 10-5 to 10-12, which are
3267 related to the _Callback_list inlining/merge-ifcation, which is
3268 still a pending issue, but this stuff is necessary cleanup anyway.
3269
3270 * src/ios.cc: Re-arrange.
3271 * bits/ios_base.h: Tweak.
3272 * bits/basic_ios.tcc: Move out of line definitions here, move
3273 small out-of-line definitions inline.
3274 * bits/basic_ios.h: From here.
3275
3276 * bits/streambuf.tcc (pbackfail, overflow): Move back inline.
3277 * bits/std_streambuf.h: From here.
3278
32791999-10-19 Benjamin Kosnik <bkoz@cygnus.com>
3280
3281 * testsuite/27_io/istream_extractor_char.cc: Add tests.
3282 * bits/std_istream.h: Tweaks--set eofbit on eof condition.
3283 * bits/istream.tcc (operator>>(istream&, string&): Remove
3284 vestigial issspace hacks and use ctype::is instead.
3285 (getline): Remove unnecessary loops, fortify and pasteurize.
3286 (ws): Same.
3287
32881999-10-18 Benjamin Kosnik <bkoz@cygnus.com>
3289
3290 * bits/istream.tcc (operator>>): Tweak.
3291 * bits/std_istream.h: Fix according to library issues list 68.
3292 Add typedefs.
3293
3294 * bits/locale_facets.h: Fix table_size to be non-zero.
3295
32961999-10-18 Vadim Egorov <egorovv@HotPOP.com>
3297
3298 * src/basic_file.cc: ifdef instead of comment for binary mode
3299
33001999-10-18 Russell Davidson <russell@qed.econ.queensu.ca>
3301
3302 * bits/std_sstream.h: Stringbuf initialization based on actual,
3303 not allocated, size.
3304 * testsuite/21_strings/inserters_extractors.cc (test06): Add test
3305 case.
3306
33071999-10-17 Benjamin Kosnik <bkoz@cygnus.com>
3308
3309 * testsuite/26_numerics/c_math.cc (test03): Tweak.
3310 * testsuite/27_io/istream_manip.cc (test01): Corrections due to
3311 sentry change.
3312 * testsuite/21_strings/inserters_extractors.cc (test01): Same.
3313
33141999-10-14 Benjamin Kosnik <bkoz@cygnus.com>
3315
3316 * bits/std_istream.h: Tweaks.
3317 * bits/istream.tcc (istream::sentry::sentry()): Simplify, correct
3318 as per issues list addition--set failbit, eof on empty buffers.
3319 * testsuite/27_io/istream_sentry.cc: New file.
3320
33211999-10-12 Chris Prince <prince@wcug.wwu.edu>
3322
3323 * bits/std_cstdio.h: Remove Solaris hacks.
3324
33251999-10-12 Phil Edwards <philip.edwards@sn.wpafb.af.mil>
3326
3327 * docs/index.html: Fix minor typos and tweaks.
3328 * docs/17_intro/contribute.html: Ditto.
3329 * docs/*/howto.html: Ditto. More "EGCS"->"GCC" conversion, notes on
3330 thread safety and binary I/O, links to external sites.
3331 * docs/faq/index.html: EGCS/GCC cleanup, new entries for Cygwin
3332 and MT.
3333
33341999-10-12 Petter Urkedal <petter@matfys.lth.se>
3335
3336 * bits/std_cmath.h (abs(float)): When ::absf is not present, call
3337 ::fabs(double) rather than ::abs(int).
3338
33391999-10-11 Benjamin Kosnik <bkoz@milou.cygnus.com>
3340
3341 * bits/std_streambuf.h: Fix minor blip--should explicitly return
3342 *gptr(), not the result of underflow.
3343 (pbackfail): Conform to default behavior.
3344 (overflow): Same.
3345 * bits/streambuf.tcc: Add out-of-line streambuf members.
3346 (xsputn): Tweak.
3347 (xsgetn): Tweak.
3348 * testsuite/27_io/streambuf.cc: New file.
3349 * testsuite/27_io/filebuf.cc: Correct test.
3350
33511999-10-08 Benjamin Kosnik <bkoz@haight.constant.com>
3352
3353 * bits/std_cmath.h: Correctly cast int to double.
3354 * testsuite/26_numerics/c_math.cc: Add test.
3355
3356 * mknumeric_limits (OUT_C): Tweaks.
3357 * src/gen-num-limits.cc: Checks for WCHAR_MIN, WCHAR_MAX before
3358 trying to instantiate type_traits<wchar_t>.
3359 * acconfig.h: Add _GLIBCPP_HAS_WCHAR_MIN_MAX.
3360 * configure.in (LIBS): Plus checks for WCHAR_MIN, WCHAR_MAX.
3361 * configure: Regenerate.
3362
33631999-10-06 Benjamin Kosnik <bkoz@milou.cygnus.com>
3364
3365 * bits/streambuf.tcc (streambuf::xsgetn): Rewrite.
3366 (streambuf::xsputn): Put in break.
3367 Aiming for parity between these two (mostly) similar functions.
3368 Need to re-write tests.
3369
3370 * bits/ios_base.h (ios_base::_M_copy_base): Remove declaration.
3371 Make data members protected, not private.
3372 * src/ios.cc (ios_base::_M_copy_base): Move _Callback_list into
3373 ios_base.h. As called only once, collapse into . . .
3374 * bits/basic_ios.h (basic_ios::copyfmt): Fix.
3375 (basic_ios::clear): Throw ios_base::failure on occasion.
3376 (basic_ios::exceptions): Fix.
3377 * testsuite/27_io/ios_members.cc (test02): Add tests.
3378
3379 * bits/fpos.h: Default initialize.
3380 * testsuite/27_io/fpos.cc (test03): Add test.
3381
33821999-10-04 Russell Davidson <russell@qed.econ.queensu.ca>
3383
3384 * src/basic_file.cc: Fix open modes.
3385
33861999-10-04 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
3387
3388 * bits/locale_facets.tcc (num_get<>::do_get): Fix typo.
3389
33901999-09-23 Benjamin Kosnik <bkoz@milou.cygnus.com>
3391
3392 * bits/streambuf.tcc: Yea. Fix this for real.
3393 * testsuite/27_io/ostream_inserter_other.cc: Add file.
3394 * src/Makefile.*: Regenerate.
3395
33961999-09-22 Benjamin Kosnik <bkoz@milou.cygnus.com>
3397
3398 * bits/std_cstdlib.h: Add more linux-specif hacks to the header
3399 files so that stdtof and strtold will be declared. Some hacks
3400 already exits in bits/std_cctype.h -- these should all be removed
3401 at a later date.
3402 * bits/locale_facets.tcc: Add cstring.h include.
3403 _S_format_long: Use long, not int.
3404 Add std_limits.h include, for numeric_limits.
3405 * testsuite/27_io/istream.cc: Make instantiations work when using
3406 -fhonor-std.
3407 * testsuite/27_io/ostream.cc: Same.
3408
34091999-09-21 Benjamin Kosnik <bkoz@milou.cygnus.com>
3410
3411 * bits/fpos.h (fpos::operator streamoff): Make const, don't return
3412 a reference. Same for operators == and !=.
3413 * testsuite/27_io/fpos.cc: Add tests.
3414
34151999-09-21 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
3416
3417 * bits/valarray_array.h: Fix typo.
3418
3419 * mknumeric_limits: Make sure we are regenerating things from
3420 scratch. Otherwise things get redefined. Not good.
3421
34221999-09-20 Benjamin Kosnik <bkoz@milou.cygnus.com>
3423
3424 * bits/std_ostream.h: Fix typo.
3425 * bits/std_istream.h: Same.
3426 * bits/std_iomanip.h: Same.
3427
3428 * bits/istream.tcc (sentry::sentry()): Remove optional tie with
3429 ostream, as happens with underflow anyway.
3430 * testsuite/27_io/istream.cc (main): New file.
3431 * testsuite/27_io/ostream.cc (main): New file.
3432 * testsuite/27_io/istream_unformatted.cc: Add tests.
3433
3434 * src/Makefile.am (headers): Add new file.
3435 * src/Makefile.in (headers): Regenerated.
3436
3437 * bits/basic_ios.h: Remove local-related files.
3438 * bits/basic_ios.tcc: New file, add locale-related items.
3439 * src/misc-inst.cc: Add include of basic_ios.tcc, as a hack for now.
3440 * testsuite/27_io/ios_members_static.cc: Change to
3441 * testsuite/27_io/ios_base_members_static.cc: This.
3442 * testsuite/27_io/ios_members.cc: New file.
3443 * testsuite/27_io/stdios_basefield_manip: Change to
3444 * testsuite/27_io/ios_manip_basefield.cc: This.
3445 * testsuite/27_io/stdios_fmtflags_manip: Change to
3446 * testsuite/27_io/ios_manip_fmtflags.cc: This.
3447
3448 * bits/fpos.h: Fix discarding qualifiers on this when
3449 using _M_position with a const fpos.
3450 * bits/std_iosfwd.h: Tweak.
3451 * testsuite/27_io/fpos.cc: New file.
3452
34531999-09-17 Benjamin Kosnik <bkoz@milou.cygnus.com>
3454
3455 * bits/streambuf.tcc (streambuf::xsputn): Tweak.
3456 * bits/ostream.tcc: Tweak.
3457 * testsuite/21_strings/inserters_extractors.cc (test04, test05):
3458 Add new regressions.
3459
34601999-09-16 Benjamin Kosnik <bkoz@milou.cygnus.com>
3461
3462 * bits/basic_ios.h: Inline, tweak.
3463 * bits/fstream.tcc (basic_filebuf::_M_really_overflow): Tweak,
3464 pass back accurate return value to basic_filebuf::overflow.
3465 * bits/streambuf.tcc (streambuf::xsputn): Fix overflow accounting.
3466 This fixes sstream problems reported in libstdc++/9, but screws up
3467 filebufs. That solution is pending.
3468
34691999-09-15 Vadim Egorov <egorovv@1c.ru>
3470
3471 * bits/streambuf.tcc (basic_streambuf::xsputn): Add check for
3472 zero count puts.
3473 * testsuite/21_strings/inserters_extractors.cc (test01): Add test.
3474
34751999-09-08 Benjamin Kosnik <bkoz@milou.cygnus.com>
3476
3477 * bits/c++config.h.in: Add emacs hints.
3478
3479 * stl/bits/stl_range_errors.h: Don't define here, for now define
3480 in stdexcept.cc along with string inlines __length_error, etc.
3481 * src/stdexcept.cc: Define here.
3482 * stl/bits/stl_config.h (__STL_CAN_THROW_RANGE_ERRORS): Enable, so
3483 at(size_t) will be declared/defined.
3484 (__STL_THREADS): Fix mess surrounding use of this, enable.
3485
34861999-08-31 Benjamin Kosnik <bkoz@milou.cygnus.com>
3487
3488 * testsuite/27_io/istream_extractor_arith.cc: Fix.
3489 * src/localename.cc: Tweak formatting, fix assignment to
3490 const compiler errors.
3491
34921999-08-25 Benjamin Kosnik <bkoz@cygnus.com>
3493
3494 * acconfig.h: Add absf, cosf.
3495 * configure.in (use_builtin_sinf): Same.
3496 * configure: Regenerate.
3497 * bits/std_cmath.h: Add mess of defines.
3498 * testsuite/26_numerics/modf_float.cc: Change to
3499 * testsuite/26_numerics/c_math.cc: This.
3500
3501 * src/locale.cc: Change.
3502 * bits/locale_facets.h: Fix.
3503 * testsuite/22_locale/ctype.cc: Add temporary tests.
3504
35051999-08-24 Benjamin Kosnik <bkoz@cygnus.com>
3506
3507 * bits/fpos.h: Test.
3508
3509 * docs/index.html: Add powerpc-linux-gnu results with gcc-2.95.1.
3510 Fix database name for "libstdc++".
3511
35121999-08-23 Benjamin Kosnik <bkoz@cygnus.com>
3513
3514 * mknumeric_limits (numeric_limits): Add default definitions to
3515 member functions.
3516 * testsuite/18_support/numeric_limits.cc: New file.
3517
35181999-08-18 Benjamin Kosnik <bkoz@cygnus.com>
3519
3520 * bits/std_istream.h: Correct initialization.
3521 * bits/std_ostream.h: Likewise.
3522 * bits/std_sstream.h: Likewise.
3523 * bits/std_fstream.h: Likewise.
3524 * testsuite/27_io/stringstream.cc: Add test case.
3525
3526 * bits/std_sstream.h: Replace ____string_type with __string_type.
3527 * bits/basic_ios.h (basic_ios::rdbuf(sb*): Call clear(), as required.
3528 * bits/std_ostream.h: Tweak dtor.
3529
35301999-08-17 Benjamin Kosnik <bkoz@decepticon.cygnus.com>
3531
3532 * src/Makefile.am (CXXFLAGS): Add -O2.
3533 * src/Makefile.in: Likewise.
3534
3535 * src/gen-num-limits.cc: Conditionally allow wchar_t. See what
3536 this breaks. . .
3537 * mknumeric_limits (numeric_limits): Uglify.
3538
3539 * bits/std_istream.h: Fix warnings.
3540 * bits/locale_facets.tcc: Collateral damage from
3541 char_traits<char>::int_type change.
3542
3543 * testsuite/27_io/istream_extractor_char.cc: Terminate strings.
3544
35451999-08-17 Benjamin Kosnik <bkoz@decepticon.cygnus.com>
3546
3547 * docs/index.html: Add mailing list form.
3548 * docs/27_io/howto.html: Add link to iostreams_hierarchy.pdf.
3549
35501999-08-16 Benjamin Kosnik <bkoz@cygnus.com>
3551
3552 * bits/streambuf.tcc (streambuf::xsputn): Allow copies to continue
3553 if overflow successfully allocates more space.
3554 * bits/std_sstream.h: Adjust comments.
3555 * bits/sstream.tcc (stringbuf::overflow): Copy buffer into string
3556 before overflow forces a resize.
3557 * testsuite/27_io/ostream_inserter_char.cc: New file.
3558
3559 * bits/std_fstream.h: Remove declaration.
3560 * bits/fstream.tcc: Move uflow.
3561 * bits/std_streambuf.h: To here.
3562 * bits/streambuf.tcc: Make consistent.
3563
3564 * src/Makefile.am (WERROR): Enable.
3565 * src/Makefile.in: Regenerate.
3566 * bits/sbuf_iter.h: Tweak.
3567 * bits/char_traits.h: (char_traits<wchar_t>::eof): Use WEOF.
3568 Use unsigned int as char_traits<char>::int_type.
3569
3570 * bits/ostream.tcc (ostream::putc(char)): Tweak.
3571 * testsuite/27_io/iostream_objects.cc: Terminate string.
3572 Move cin::operator>>(char*) test to extractor_char.cc.
3573 * testsuite/27_io/stringstream.cc: Add stringstream instantiation.
3574 * bits/std_istream.h (basic_iostream): Make explicit definition
3575 for default ctor.
3576 * bits/std_sstream.h: Fix typos.
3577 * bits/fstream.tcc (_M_init_filebuf): Set to indeterminate for
3578 basic_filebuf ctor with fileno open arguments. Thus, filebufs are
3579 initialized in a consistent manner, no matter if the underlying
3580 FILE/bit bucket is a tty or a text file or some other imaginary
3581 construct. This and setting _M_buf_size to 1 for cin allows
3582 istream::get(char) to work in a manner consistent with what others
3583 expect.
3584
3585 * docs/index.html: Link Stroustrup's C++ page.
3586
35871999-08-12 Michael Cook <cook@sightpath.com>
3588
3589 * bits/fstream.tcc: Fix signed/unsigned -Wall warning.
3590 * bits/istream.tcc: ditto.
3591 * bits/sbuf_iter.h: ditto.
3592 * bits/std_istream.h: ditto.
3593 * src/Makefile.am: Add -Wall to CXXFLAGS.
3594 * src/Makefile.in: ditto.
3595
35961999-08-12 Benjamin Kosnik <bkoz@tintin.cygnus.com>
3597 Russell Davidson <russell@ehess.cnrs-mrs.fr>
3598
3599 * bits/locale_facets.tcc (_M_extract): Finish off patch from yesterday.
3600 * src/Makefile.am (myinstallheaders): Tweak, remove PHONY.
3601
36021999-08-11 Benjamin Kosnik <bkoz@tintin.cygnus.com>
3603
3604 * testsuite/27_io/istream_unformatted.cc: New file.
3605
3606 * testsuite/27_io/istream_extractor_arith.cc (test02): Add more
3607 elaborate tests for int types with noskipws.
3608
3609 * testsuite/27_io/istream_extractor_other-1.txt: New file.
3610 * testsuite/27_io/istream_extractor_other-1.tst: New file.
3611 * testsuite/27_io/istream_extractor_other-2.tst: New file.
3612 * testsuite/27_io/istream_extractor_other.cc: Add tests.
3613 * bits/istream.tcc: Fix operator>>(streambuf*).
3614
3615 * testsuite/23_containers/vector_ctor.cc (test01): Add.
3616
3617 * docs/index.html: Remove references to egcs.
3618 * docs/17_intro/DESIGN: Same.
3619 * docs/17_intro/contribute.html: Same.
3620 * docs/17_intro/RELEASE-NOTES: Ditto.
3621 * docs/17_intro/howto.html: Same here.
3622
3623 Russell Davidson <russell@ehess.cnrs-mrs.fr>
3624 * stl/bits/stl_vector.h (_M_insert_aux):
3625 * bits/locale_facets.tcc (_M_extract): Tweaks for preliminary
3626 decimal/floating point support.
3627 * bits/locale_facets.h: Change _M_extract prototype.
3628 * bits/char_traits.h (char_traits::to_int_type): Cast to unsigned.
3629 * bits/std_istream.h (istream::read(char_type, streamsize)): Fix.
3630
36311999-08-10 Michael Cook <cook@sightpath.com>
3632
3633 * bits/fstream.tcc: Fix for unused variable warning (-Wall).
3634 * bits/ios_base.h: ditto.
3635 * bits/istream.tcc: ditto.
3636 * bits/locale_facets.h: ditto.
3637 * bits/locale_facets.tcc: ditto.
3638 * bits/std_streambuf.h: ditto.
3639 * src/basic_file.cc: ditto.
3640 * src/locale.cc: ditto.
3641 * src/localename.cc: ditto.
3642
36431999-08-10 Kirat Singh <singhki@jany.gs.com>
3644
3645 * bits/std_iomanip.h: Inline.
3646
36471999-08-10 Alfred Minarik <a8601248@unet.univie.ac.at>
3648
3649 * bits/std_streambuf.h: Correct member initialization order.
3650 * src/ios.cc: Add definitions for ios_base data members.
3651
36521999-08-06 Phil Edwards <pedwards@ball.com>
3653
3654 * docs/index.html: Seventh snapshot updates. Minor tweaks.
3655 * docs/faq/index.html: Ditto. Removed bugs sections that have
3656 been fixed for a long time... Lots of "egcs" references still
3657 exist.
3658 * docs/faq/index.txt: Regenerated.
3659
36601999-08-05 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
3661 Andreas Amann <amann@physik.tu-berlin.de>
3662
3663 * testsuite/26_numerics/binary_closure.cc (main): new test.
3664
36651999-07-29 Andreas Amann <amann@physik.tu-berlin.de>
3666
3667 * bits/valarray_meta.h: (_BinClos<>::_Binclos): fix typo causing
3668 segmentation fault.
3669
36701999-08-04 Benjamin Kosnik <bkoz@decepticon.cygnus.com>
3671
3672 * docs/index.html (host): Put in testing status.
3673
36741999-08-03 Benjamin Kosnik <bkoz@cygnus.com>
3675
3676 * docs/index.html: Update for libstdc++-2.90.6 release.
3677 * docs/17_intro/RELEASE-NOTES (New): Update.
3678 * docs/17_intro/BUGS: Update.
3679 * bits/c++config.h.in (__GLIBCPP__): Bump version number.
3680 * README (file): Update.
3681
36821999-08-03 Benjamin Kosnik <bkoz@cygnus.com>
3683
3684 * src/Makefile.am (generated_headers): Remove bits/c++config.h as
3685 a target.
3686 ($(generated_headers)): Same.
3687 * src/gen-c++config.cc: Remove, rename to
3688 * bits/c++config.h.in: New file. Bump version number.
3689 * configure.in: Generate bits/c++config.h at configure time.
3690 * math/mathconf.h: include bits/c++config.h, not config.h.
3691
3692 * bits/std_cmath.h: Fix remaining link error for solaris shared
3693 builds. _GLIBCPP_HAS_BUILTIN_SINF has to be disabled for the time
3694 being, as on Solaris this silently calls sinf, which does not
3695 exist.
3696
3697 * src/complex.cc: More tweaks.
3698
36991999-08-03 Benjamin Kosnik <bkoz@cygnus.com>
3700
3701 * src/complex.cc: Same.
3702 * math/complex-stub.h: Change.
3703 * math/c_log10*.c: Change back to clog10*.c.
3704
3705 * configure.in (NEED_C_LOG10): Delete.
3706 * configure: Regenerate.
3707 * math/Makefile.am: Change.
3708
37091999-07-30 Benjamin Kosnik <bkoz@cygnus.com>
3710
3711 * math/Makefile.am: Fix, for real.
3712 * configure.in (use_builtin_sinf): Ok, make autoconf solution.
3713 * math/clog.c: Move to c_log.c.
3714 * math/clog*: Ditto.
3715 * math/c_log10l.c (c_log10l): Change function name.
3716 * math/c_log10f.c (c_log10f): Change function name.
3717 * math/c_log10.c (c_log10): Change function name.
3718
3719 * math/complex-stub.h: Change to c_log* variants.
3720 * src/complex.cc: And here.
3721
37221999-07-29 Benjamin Kosnik <bkoz@cygnus.com>
3723
3724 * testsuite/27_io/istream_extractor_other.cc: Correct last test.
3725 * bits/sstream.tcc (stringbuf::overflow): Don't update the input
3726 sequence, just the output sequence.
3727 * bits/std_sstream.h (stringbuf::str()): Only in stringbufs return
3728 the original string, all others use complicated heuristic.
3729
3730 * src/complex.cc: Assume c_log10.
3731 * math/Makefile.am (EXTRA_yes): Fix c_log/c_logf unresolved
3732 symbols in shared libraries by making c_log/c_log10 part of the
3733 "must cmpile" sources. This may not work on solaris, must check.
3734
37351999-07-29 Benjamin Kosnik <bkoz@cygnus.com>
3736
3737 * bits/istream.tcc (operator>>(streambuf*)): Re-do.
3738 * bits/std_istream.h: Fix char extractors.
3739 * testsuite/27_io/istream_extractor_char.cc: Change.
3740 * testsuite/27_io/istream_extractor_other.cc: Add tests.
3741
37421999-07-28 Benjamin Kosnik <bkoz@cygnus.com>
3743
3744 * bits/std_cctype.h: Fix for solaris2.6 builds.
3745
3746 * bits/istream.tcc: Fix, thanks Alfred.
3747 * bits/std_istream.h: Formatting changes.
3748
3749 * libio/Makefile.am (libio_la_SOURCES): Remove cleanup.c, so that
3750 _IO_cleanup will not be undefined.
3751 * libio/*: Regenerate.
3752
3753 * bits/basic_string.h: More namespace-safety stuff.
3754 * testsuite/27_io/istream_extractor_char.cc: Fix.
3755 * testsuite/27_io/istream_extractor_arith.cc: Fix.
3756 * testsuite/27_io/iostream_objects.cc: Fix.
3757 * testsuite/27_io/ios_ctor.cc: Fix.
3758 * testsuite/27_io/istream_manip.cc: Make namespace safe.
3759 * testsuite/27_io/istream_extractor_other.cc: New file.
3760
3761 * mkcheck (TESTS_FILE): Tweaks.
3762
37631999-07-27 Benjamin Kosnik <bkoz@cygnus.com>
3764
3765 * src/gen-c++config.cc: Note here, change version.
3766 * acconfig.h( _GLIBCPP_USE_CTYPE_ISBIT): New macro.
3767 * src/locale.cc: Used here.
3768 * configure.in (use_builtin_sinf): Check for _ISBit using autoconf.
3769
3770 * aclocal.m4: Regenerate by running `aclocal -I m4.`
3771
3772 * bits/istream.tcc: Fix.
3773 * bits/std_istream.h: More changes to extractors.
3774
3775 * testsuite/27_io/istream_extractor_char.cc: More.
3776 * testsuite/21_strings/inserters_extractors.cc (test01): Fix logic
3777 error in testsuite construction.
3778
3779 * bits/std_istream.h: Partially revert.
3780 * bits/std_ostream.h: Same.
3781 * bits/std_sstream.h: Revert.
3782
37831999-07-26 Benjamin Kosnik <bkoz@cygnus.com>
3784
3785 * bits/std_sstream.h: Change initialization.
3786 * bits/std_ostream.h: Make default ctor/assign/operator= private.
3787 * bits/std_istream.h: Same, also correct sentry args.
3788 * bits/istream.tcc: Add correct sentry args.
3789
3790 * testsuite/27_io/istream_extractor_char.cc: New file.
3791 * testsuite/27_io/istream_extractor_arith.cc: New file, old file,
3792 name changes making me dizzy.
3793
37941999-07-26 Ulrich Drepper <drepper@happy.cygnus.com>
3795 Benjamin Kosnik <bkoz@cygnus.com>
3796
3797 * aclocal.m4, config.guess, config.sub, ltconfig ltmain.sh: Update
3798 to libtool 1.3.3.
3799
38001999-07-26 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
3801
3802 * bits/std_complex.h: Tweak. Make the primary template class
3803 complex work with user-defined numerical types. Provide member
3804 definitions. Restructure.
3805 (class complex<float>): Uglify. Remove __value(). Rename __val
3806 to _M_value. Rename __complex_value_type to _ComplexT. Make it
3807 private. Remove dependency on __value(). Fix various explicit
3808 specialization syntax. Declare a some functions friend. Now the
3809 implementation is nearly comforming.
3810 (class complex<double>): Likewise.
3811 (class complex<long double>): Likewise.
3812
3813 * src/complex.cc: Tweak. Remove dependency on complex::__value().
3814 (sin, sinh, tan, than): Fix call to corresponding C9x function
3815 syntax.
3816
38171999-07-24 Benjamin Kosnik <bkoz@fidel.cygnus.com>
3818
3819 * bits/istream.tcc (ws): Fix error with failbit being set.
3820
3821 Disabled due to egcs/gcc-2_95 internal compiler errors.
3822 * src/Makefile.am (CXXFLAGS): Add -fsquangle -fhonor-std
3823 -fnew-exceptions. Compiling with namespaces enabled will now be
3824 the default.
3825 * mkcheck (CXX_FLAG): Same.
3826 * src/gen-c++config.cc (_GLIBCPP_USE_NAMESPACES): Yup. New macro.
3827 * bits/std_cctype.h: Not enough to just define in namespace std if
3828 ctype-isms are macros. Need to also define in namespace std:: if
3829 the C functions are just plain functions.
3830
3831 * src/gen-num-limits.cc: Fix spelling inconsistencies.
3832
38331999-07-24 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
3834
3835 * docs/18_support/howto.html: Start documentation. Need to keep
3836 track of the ongoing discussion in th LWG reflector.
3837
3838 * src/gen-num-limits.cc: Tweak.
3839 (class predicate): New class.
3840 (class value): Likewise.
3841 Make the whole machinery more flexible. Add comments.
3842
38431999-07-23 Benjamin Kosnik <bkoz@fidel.cygnus.com>
3844
3845 * bits/ios_base.h: Move state/exception functions into basic_ios.
3846 * bits/basic_ios.h: Same.
3847 * src/ios.cc: And here. Callbacks don't attempt to reset
3848 state now.
3849
3850 * bits/std_streambuf.h: Separate ios and streambuf locale data
3851 members and cached facets. Using this convention: _M_locale_buf for
3852 the streambuf-related classes, and _M_locale_ios for the ios
3853 hierarchy.
3854 * bits/fstream.tcc: And here.
3855 * bits/basic_ios.h: And here. Also, add cached ctype.
3856 * src/ios.cc: Ditto.
3857 * bits/ios_base.h: Ditto.
3858 * bits/std_istream.h: Use cached ctype facet.
3859 * docs/27_io/iostreams_hierarchy.pdf: Update for new data member
3860 arraignment.
3861
3862 * testsuite/27_io/ios_ctor.cc: New file.
3863 * src/ios.cc: Move _M_state init to basic_ios::init().
3864 * bits/basic_ios.h: To here.
3865
3866 Attempt for some consistency in naming for testsuite/27_io/*.cc.
3867 * testsuite/27_io/boolfmt.cc: Rename to stdios_fmtflags_manip.cc
3868 * testsuite/27_io/octfmt.cc: Rename to stdios_basefield_manip.cc
3869 * testsuite/27_io/istream_manip.cc: Rename to istringstream_manip.cc.
3870 * testsuite/27_io/ostream_manip.cc: Rename to ostringstream_manip.cc.
3871
38721999-07-22 Benjamin Kosnik <bkoz@fidel.cygnus.com>
3873
3874 * src/ios.cc: Tweak initializations of standard iostream
3875 objects to closely match the standard. Tie cin/wcin, set flags on
3876 cerr/wcerr
3877 * bits/char_traits.h: Change from size_t to int_type, as per
3878 standard. As per wide streams.
3879 * bits/basic_ios.h: Infect with __ctype_type, as a preparation
3880 for caching a bunch of ctype info. For instance, ctype_base::space
3881 info needs to be stored somewhere, somehow.
3882 * bits/std_istream.h: Also here.
3883 * bits/std_ostream.h: Ditto.
3884 * bits/std_istream.h (operator>>(istream, char): Aggh. Fixup.
3885 * testsuite/27_io/iostream_objects.cacc (test01): Oh yeah. Fix
3886 stream states.
3887
3888 * bits/istream.tcc (ws): Fix.
3889 * testsuite/27_io/istream_manip.cc: New file, test ws.
3890 * testsuite/27_io/ostream_manip.cc: New file, test endl, ends, flush.
3891
3892 * bits/basic_string.h: Provide a specialized member function for
3893 _S_find<char> using strchr.
3894 * src/string-inst.cc: Put specializations here.
3895 * bits/string.tcc: Small fix for find, remove typo.
3896 * testsuite/21_strings/find.cc (test01): Add tests to catch this
3897 find bug. . .
3898
38991999-07-20 Benjamin Kosnik <bkoz@decepticon.cygnus.com>
3900
3901 * bits/basic_ios.h: Put into basic_ios namespace.
3902 Tweak widen/narrow.
3903
39041999-07-19 Benjamin Kosnik <bkoz@decepticon.cygnus.com>
3905
3906 * bits/std_sstream.h (stringbuf::sync): Change to _M_really_sync,
3907 adjust _M_*_cur pointers inside the function, so callee doesn't
3908 have to adjust.
3909 * bits/sstream.tcc (stringbuf::overflow): Tweak.
3910
3911 * mkcheck: Tweak. Add execution time field, even though it is not
3912 implemented yet. Simplify pass/fail status notation.
3913
39141999-07-18 Mumit Khan <khan@xraylith.wisc.edu>
3915
3916 * configure.in: Check for float.h and underscored version of
3917 math functions.
3918 * acconfig.h: Add @BOTTOM@ section for handling underscored
3919 math functions.
3920 * configure: Regenerate.
3921 * config.h.in: Regenerate.
3922 * math/mathconf.h (float.h): Include conditionally.
3923 (M_PI): Define conditionally.
3924 (INFINITE_P): Define for Mingw.
3925 * bits/locale_facets.tcc: Workaround for compiler crash on
3926 ix86-*-mingw32.
3927 * bits/std_cwchar.h (bits/std_cstddef.h): Include.
3928 * src/locale.cc (bits/std_istream.h): Include.
3929 (bits/std_ostream.h): Likewise.
3930
39311999-07-18 Phil Edwards <pedwards@ball.com>
3932
3933 * docs/faq/index.html: Updated __black_count notes, fixed typos.
3934 * docs/faq/index.txt: Regenerated.
3935
39361999-07-15 Benjamin Kosnik <bkoz@decepticon.cygnus.com>
3937
3938 * testsuite/27_io/stringbuf.cc: Cccchanges, latent bugs.
3939
3940 * bits/sstream.tcc (stringbuf::overflow): Modify accounting of
3941 newly-allocated buffer.
3942 * bits/streambuf.tcc (streambuf::xsgetn): Aaaaaah. Fix final
3943 overflow condition bits.
3944
39451999-07-14 Benjamin Kosnik <bkoz@cygnus.com>
3946
3947 * bits/std_sstream.h (stringbuf::_M_init_stringbuf): Set
3948 _M_buf_size to initial _M_string.size(), even though for
3949 ostringstreams it is pretty pointless. It's necessary for
3950 istringstreams.
3951 (stringbuf::str()): Adjust.
3952 (stringbuf::str()): Adjust, call _M_init_stringbuf.
3953 * bits/streambuf.tcc (streambuf::xsgetn): Adjust return value for
3954 overflow's possible success.
3955 (streambuf::xsputn): Adjust.
3956
3957 * testsuite/27_io/filebuf.cc: Adjust for the xsgetn re-write from
3958 yesterday.
3959 * testsuite/27_io/stringbuf.cc: Tweak.
3960 * testsuite/21_strings/inserters_extractors.cc (test01): Remove
3961 notes to myself.
3962 * testsuite/23_containers/vector_cons.cc: Rename to be consistent
3963 with other constructor tests to. . .
3964 * testsuite/23_containers/vector_ctor.cc: New file.
3965
39661999-07-14 Alfred Minarik <a8601248@unet.univie.ac.at>
3967
3968 * testsuite/*: Changes to make the testsuit compilable with
3969 -fhonor-std. Contains direct qualification of library names with
3970 std::.
3971
39721999-07-13 Benjamin Kosnik <bkoz@decepticon.cygnus.com>
3973
3974 * bits/streambuf.tcc: Tweaks.
3975 (streambuf::xsputn): Optimize, fix for sstreams.
3976 (streambuf::xsgetn): Same.
3977 * bits/sstream.tcc (stringbuf::overflow): Adjust _M_buf_size
3978 correctly, handle overflow/reallocate conditions correctly.
3979 * bits/std_sstream.h: Fix typo.
3980 _M_init_stringbuf(): Fix _M_buf_size initialization.
3981 (stringbuf::str()): Construct return string if output has occurred.
3982
3983 * bits/basic_string.h: Fix typo from yesterday's patch.
3984
39851999-07-12 Ryszard Kabatek <kabatek@chemie.uni-halle.de>
3986
3987 * bits/string.tcc: _M_mutate - clear _M_state again.
3988 * bits/basic_string.h: In the three functions that return
3989 an iterator set _M_state to -1 before return.
3990 Also optimized two cases of operator+.
3991
39921999-07-12 Phil Edwards <pedwards@ball.com>
3993
3994 * docs/index.html: Expand egcs-1.1.2 notes/links.
3995 * docs/faq/index.html: And here. Add links to LWG issues-list.
3996 * docs/faq/index.txt: Regenerate. (lynx rocks)
3997 * docs/21_strings/howto.html: Fix notes on case conversion.
3998 * docs/21_strings/stringtok_h.txt: Goodly spelling...
3999 * docs/23_containers/howto.html: Stub for bitmasks.
4000 * docs/27_io/howto.html: Add section on buffering, stub binary.
4001
40021999-07-12 Nathan Myers <ncm@cantrip.org>
4003
4004 * stl/bits/stl_tree.h (__black_count): Optimize.
4005
40061999-07-09 Vadim Egorov <egorovv@1c.ru>
4007
4008 * src/basic_file.cc: Cleanup in __basic_file destructor.
4009
40101999-07-08 Benjamin Kosnik <bkoz@cygnus.com>
4011
4012 * bits/std_streambuf.h: Changes. . .
4013 * bits/streambuf.tcc: Merge xsputn from filebuf into xsputn in
4014 basic_streambuf, to be used for both filebufs and streambufs.
4015 * bits/std_fstream.h (_M_init_filebuf): New function.
4016 Take out specialized xsputn, put into basic_streambuf.
4017 * bits/fstream.tcc: Define, call from both ctors.
4018 * bits/std_sstream.h (_M_init_stringbuf): New function.
4019 * bits/sstream.tcc: Tweak.
4020
4021 * docs/27_io/iostreams_heirarchy.pdf: New file.
4022
4023 * docs/17_intro/CHECKLIST (basic_string<char>): Validation and
4024 acceptance. Wooo-hoo!
4025
4026 * bits/char_traits.h: Change int_type for char_traits general
4027 template, so that 21_strings/capacity.cc will compile.
4028 * testsuite/21_strings/capacity.cc: Add operators.
4029
4030 * bits/string.tcc (string::compare): Clean up, re-implement.
4031 * testsuite/21_strings/compare.cc: Tweak.
4032
4033 * bits/string.tcc (string:_M_mutate): Keep leaked value in
4034 _M_state, which means that whenever begin() or end() has been
4035 called, the string is unshareable, period. By doing this, insert
4036 and erase member functions that return iterators can remain
4037 footloose and fancy free.
4038 * testsuite/21_strings/invariants.cc: Update.
4039
4040 * bits/basic_string.h (string::append): Fix self-referential
4041 problems, ie when "this" is also an argument to a member function.
4042 * bits/string.tcc: Tweak, same.
4043 * testsuite/21_strings/append.cc: New file.
4044
40451999-07-07 Benjamin Kosnik <bkoz@cygnus.com>
4046
4047 * bits/char_traits.h: Tweaks.
4048 * bits/basic_string.h: Tweak.
4049 * bits/fstream.tcc: Remove warning for _M_buf_size assignment.
4050
40511999-07-06 Benjamin Kosnik <bkoz@cygnus.com>
4052
4053 * bits/std_streambuf.h: Absorb/acquire data members previously
4054 working in basic_filebuf.
4055 * bits/streambuf.tcc: Tweaks.
4056 * bits/fstream.tcc: Adjust.
4057 * bits/std_fstream.h: Move and rename the following functions:
4058 _M_set_ideterminate, _M_is_indeterminate, _M_set_determinate are
4059 now declared and defined in the base class, basic_streambuf. Oh
4060 fuck it, move data members _M_buf, and _M_buf_size into
4061 basic_streambuf as well.
4062
4063 * bits/ostream.tcc: Tweak.
4064 * bits/locale_facets.tcc: Fix typo in comments.
4065
4066 * testsuite/21_strings/inserters_extractors.cc (test01): Change
4067 state from good to not good, as eof() is set.
4068
40691999-07-05 Benjamin Kosnik <bkoz@cygnus.com>
4070
4071 * bits/char_traits.h (char_traits::compare). Fix.
4072
4073 * config.guess, config.sub: Update.
4074
40751999-07-02 Ryszard Kabatek <kabatek@chemie.uni-halle.de>
4076
4077 * bits/string.tcc: Check the __res_arg for a length error.
4078
40791999-07-01 Benjamin Kosnik <bkoz@nabi.net>
4080
4081 * bits/std_streambuf.h: Tweaks. Need to move _M_is_indeterminate
4082 and related functions into basic_streambuf, from basic_filebuf to
4083 take care of ostringstreams and empty strings. So that's groovy,
4084 or will be groovy.
4085 * bits/std_istream.h: Tweaks.
4086 * bits/istream.tcc: Implement ws, getline, operator>> for string.
4087 * bits/std_ostream.h: And here.
4088 * bits/ostream.tcc: Same.
4089 * src/misc-inst.cc: Add instantiations for ws.
4090
4091 * src/string-inst.cc: Add instantiations for inserters and
4092 extractors (operators << and >>, getline).
4093
4094 * testsuite/21_strings/inserters_extractors.cc: Amazingly enough,
4095 a testcase for getline and operators << and >>. Ostream tests are
4096 failing right now, but istream tests should work. . .
4097
4098 * bits/string.tcc: Change _S_max_size, as GNU malloc won't budge.
4099 * bits/std_sstream.h: Revert.
4100
4101 * testsuite/17_intro: header_[iosfwd, ios, iostream, iomanip,
4102 istream, ostream, streambuf, fstream, sstream].cc: New files.
4103
41041999-06-30 Ryszard Kabatek <kabatek@chemie.uni-halle.de>
4105
4106 * bits/std_sstream.h (stringbuf::sync): Don't use string::begin()
4107 and string::end().
4108
4109 * bits/basic_string.h (basic_string<>::_S_copy_chars): Add
4110 specializations for _CharT*, iterator and const_iterator.
4111 * src/string-inst.cc: Remove explicit instantiation, as
4112 now explicitly specialized.
4113
4114 * bits/basic_string.h: Add a size_type parameter to _M_clone with
4115 a default value set to 0.
4116 * bits/string.tcc: In _M_clone by the call of _S_create add the
4117 value of the new parameter to _M_length. In reserve check
4118 _M_state and use _M_clone instead of _M_mutate.
4119
41201999-06-30 Benjamin Kosnik <bkoz@happy.cygnus.com>
4121
4122 * bits/basic_string.h: Fix _S_max_size.
4123 * bits/string.tcc: Add def here.
4124 * testsuite/21_strings/insert.cc: Fix.
4125
4126 * bits/sbuf_iter.h: Remove detritus.
4127 * testsuite/24_iterators/istreambuf_iterator.cc: Add tests.
4128
4129 * src/locale-inst.cc: Elaborate iterator/locale instantiations
4130 to resolve alpha-osf4 build problems.
4131
41321999-06-29 Benjamin Kosnik <bkoz@happy.cygnus.com>
4133
4134 * bits/string.tcc: Fix signed/unsigned issues in compares.
4135 * stl/bits/stl_deque.h: And here.
4136 * stl/bits/stl_string_fwd.h: Remove __get_c_string.
4137
41381999-06-29 Ryszard Kabatek <kabatek@chemie.uni-halle.de>
4139
4140 * bits/string.tcc: New implementation and interface of _M_mutate.
4141 Adapt the change in all functions that call _M_mutate.
4142 * bits/basic_string.h: And here.
4143
41441999-06-29 Benjamin Kosnik <bkoz@happy.cygnus.com>
4145
4146 * testsuite/21_strings/capacity.cc (test01): Fix.
4147
41481999-06-29 Phil Edwards <pedwards@ball.com>
4149
4150 * mknumeric_limits: Exit script if gen-num-limits isn't built.
4151
41521999-06-29 Andreas Gruenbacher <agruenba@pent224.infosys.tuwien.ac.at>
4153
4154 * stl/bits/stl_vector.h: Fix.
4155 * testsuite/23_containers/vector_cons.cc: Add.
4156
41571999-06-29 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
4158
4159 * mknumeric_limits (LDFLAGS): fix.
4160
41611999-06-29 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
4162
4163 * mknumeric_limits (LDFLAGS): set it according to the system.
4164
4165 * math/mathconf.h (NAN): Check whether host is running under
4166 Cygwin and make the appropriate definition.
4167 * math/complex-stub.h (nan): protect declaration.
4168
41691999-06-28 Benjamin Kosnik <bkoz@haight.constant.com>
4170
4171 * bits/sbuf_iter.h: Rename internal data structure to prevent
4172 confusion between basic_ios and istreambuf_iterators internal
4173 basic_streambuf data member.
4174 * testsuite/24_iterators/istreambuf_iterator.cc: New file.
4175
4176 * bits/basic_string.h: Remove conditionals, add input_iterator
4177 version of S_construct again.
4178 * bits/string.tcc: Same.
4179 * src/string-inst.cc: And add explicit instantiation here.
4180
4181 * src/gen-c++config.cc (_GNU_SOURCE): Take out both _GNU_SOURCE
4182 and __USE_GNU macro defines, as single __USE_GNU use leading to
4183 confusion on glibc2.1 systems (ie, RedHat 6.0).
4184
4185 * src/Makefile.am (headers): Add std_utility to installed headers.
4186
41871999-06-25 John Potter <jpotter@eagle.lhup.edu>
4188
4189 * stl/bits/stl_tree.h (insert_unique): Revert, just fix insert_equal.
4190
41911999-06-25 Gilles Zunino <Gilles.Zunino@hei.fr>
4192
4193 * mknumeric_limits (LDFLAGS): Swap -lc and -lgcc.
4194
41951999-06-24 Benjamin Kosnik <bkoz@tintin.cygnus.com>
4196
4197 * src/gen-c++config.cc (_GLIBCPP_*): Change all
4198 macros to include _GLIBCPP as a distinct namespace.
4199 * bits/*: And here.
4200 * src/*: And here.
4201
4202 * stl/bits/std_stdexcept.h: Forward-declare __Named_exception ctor.
4203 * bits/basic_string.h: Remove __get_c_string.
4204 * src/stdexcept.cc: Define ctor here.
4205 * bits/ios_base.h: And fix ios_base::failure as well.
4206 * src/ios.cc: Define here.
4207
4208 * bits/std_streambuf.h: Add a private copy ctor and assignment
4209 operator wrapped in _G_RESOLVE_LIB_DEFECTS.
4210 * bits/ios_base.h: And here too.
4211
4212 * bits/basic_string.h: Tweak.
4213 * testsuite/21_strings/nonmember.cc: Add operator+ tests.
4214
4215 * src/valarray.cc: Rename to. . .
4216 * src/valarray-inst.cc: This.
4217 * src/Makefile.am (sources): Change here.
4218 * src/Makefile.in: Regenerated.
4219
42201999-06-24 Vadim Egorov <egorovv@1c.ru>
4221
4222 * bits/string.tcc(basic_string<>::_Rep::_S_create): Fixed
4223 allocated size
4224
42251999-06-24 Benjamin Kosnik <bkoz@tintin.cygnus.com>
4226 Tom Tromey <tromey@cygnus.com>
4227
4228 * configure.in (use_glibc2): Eek, correct for non-glibc systems.
4229 Use AM_CONDITIONAL to get us out of this jam. .
4230 * libio/Makefile.am: Same.
4231 * */Makefile: Regenerated.
4232
42331999-06-24 Benjamin Kosnik <bkoz@tintin.cygnus.com>
4234 John Potter <jpotter@eagle.lhup.edu>
4235
4236 * stl/bits/stl_tree.h (insert_equal): Fix.
4237 * testsuite/23_containers/multiset.cc: New file.
4238
42391999-06-23 Benjamin Kosnik <bkoz@cygnus.com>
4240
4241 * configure.in (test for glibc2): Correct AC_TRY_COMPILE so that
4242 this works correctly on glibc-2 systems. This should allow
4243 simplified linking on these systems, and successful linking on Red
4244 Hat 6.0 systems.
4245 * configure, Makefile: Regenerate.
4246
4247 * bits/std_cwctype.h: Add missing 'w' to _S_iswpunct_helper name.
4248
4249 * testsuite/ext: New directory.
4250 * testsuite/ext/headers.cc: New file.
4251
42521999-06-23 Vadim Egorov <egorovv@1c.ru>
4253
4254 * stl/ext/hash_set: include missing headers
4255 * stl/ext/hash_map: Same
4256 * stl/ext/slist: Same
4257
42581999-06-17 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
4259
4260 * bits/std_cmath.h: comment out modf. Kills build on hpux10.20
4261
42621999-06-15 Benjamin Kosnik <bkoz@cygnus.com>
4263
4264 * src/Makefile.am (sources): Regenerate.
4265 * mkcheck: Add TESTS_FILE as a way of controlling what testcases
4266 are run.
4267
42681999-06-14 Benjamin Kosnik <bkoz@cygnus.com>
4269
4270 * src/string-inst.cc: Change _S_construct signature, to
4271 track requested allocation size versus valid input iterator range.
4272 * bits/basic_string.h: Here too.
4273 * bits/string.tcc: And here.
4274
42751999-06-12 Benjamin Kosnik <bkoz@cygnus.com>
4276
4277 * mkcheck (LOG_FILE): Correctly append errors.
4278
4279 * stl/bits/stl_iterator.h: Revert previous, delirious, change.
4280
4281 * bits/basic_string.h: Change _Rep::_M_data to _Rep::_M_refdata,
4282 to clarify differences between basic_string::_M_data() calls and
4283 _Rep::_M_data() calls.
4284 * bits/std_string.h: Fix.
4285 Put in check for out_of_range in substr.
4286 * bits/string.tcc: Fix for _S_find.
4287
4288 * testsuite/21_strings/compare.cc: Add tests.
4289 * testsuite/21_strings/find.cc: New file.
4290 * testsuite/21_strings/substr: New file.
4291 * testsuite/21_strings/replace.cc: New file.
4292
42931999-06-11 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
4294
4295 * bits/valarray_array.h: __restrict__ify pointers.
4296
4297 * bits/std_valarray.h: Tweak.
4298 (valarray<T>::cshift, valarray<T>::shift): use __builtin_alloca.
4299
4300 * bits/gslice_array.h: Tweak. Reflect changes in bits/gslice.h
4301
4302 * bits/gslice.h: Tweak.
4303 (class gslice::_Indexer): new class.
4304 (gslice::gslice(const gslice&)): implement copy-ctor to support
4305 ref-counted index.
4306 (gslice::operator=(const gslice&)): support ref-counted index.
4307 (gslice::_M_convert_to_index): delete.
4308
4309 * src/valarray.cc: New file.
4310 (__gslice_to_index): turn a gslice into a valarray<size_t>
4311 (ctor gslice::_Indexer::_Indexer): implement.
4312
4313 * src/Makefile.am (sources): add valarray.cc
4314 * src/Makefile.in: regenerate.
4315
43161999-06-08 Benjamin Kosnik <bkoz@cygnus.com>
4317
4318 * stl/bits/stl_iterator.h (__normal_iterator::const_iterator
4319 ctor): Put in a const_cast.
4320
4321 * testsuite/21_strings/invariants.cc: New file.
4322
4323 * testsuite/21_strings/insert.cc: Add exception handling bits.
4324 * testsuite/21_strings/ctor_copy_dtor.cc: Same.
4325
4326 * src/wstring-inst.cc: Add c++config.h include.
4327
4328 * bits/basic_string.h: Fix const operator[] for size == pos.
4329 Add _M_leak for rbegin, non-const.
4330 Add _M_leak for rend, non-const.
4331 Make member function at standards conformant.
4332 Add _S_terminal to _Rep for operator[] const, add this into
4333 c_str() as well.
4334 * bits/string.tcc: Add static member definition here,
4335 temporarily.
4336
4337 * testsuite/21_strings/element_access.cc: Add tests.
4338
43391999-06-08 Vadim Egorov <egorovv@1c.ru>
4340
4341 * bits/fstream.tcc (_M_really_overflow): Fixed size of
4342 conversion buffer.
4343
43441999-06-08 Phil Edwards <pedwards@ball.com>
4345
4346 * bits/fstream.tcc (basic_filebuf::xsputn): Fix off-by-one count
4347 caused when __testinit is true.
4348 * bits/ostream.tcc (basic_ostream::op<<(streambuf*)): Write buffer
4349 using rdbuf()->sputn rather than _M_fnumput->put.
4350
43511999-06-08 Benjamin Kosnik <bkoz@tintin.cygnus.com>
4352
4353 * testsuite/23_containers/bitset_ctor.cc: New file.
4354 * stl/bits/std_bitset.h (__BITSET_WORDS): Fix integration bug.
4355
43561999-06-08 Phil Edwards <pedwards@ball.com>
4357
4358 * bits/fstream.tcc (basic_filebuf::underflow): Fix, rename local vars.
4359
43601999-06-07 Benjamin Kosnik <bkoz@tintin.cygnus.com>
4361
4362 * testsuite/21_strings/element_access.cc: Finish off these tests.
4363 * testsuite/21_strings/insert.cc (test01): Uncomment.
4364 * testsuite/21_strings/ctor_copy_dtor.cc (test01): Finish off ctors.
4365 * bits/basic_string.h: Tweak, okay, fix for real this time.
4366 * bits/string.tcc: Same.
4367 * bits/char_traits.h: Tweak.
4368
43691999-06-07 Benjamin Kosnik <bkoz@tintin.cygnus.com>
4370
4371 * bits/std_cmath.h: Example of how to use the generated macro.
4372 * acconfig.h: Add macro for sinf here.
4373 * configure.in (LIBS): Add test for builtin math function sinf.
4374 * configure: Regenerated.
4375
4376 * bits/basic_string.h: Fix _S_max_size.
4377
43781999-06-06 Benjamin Kosnik <bkoz@tintin.cygnus.com>
4379
4380 * bits/basic_string.h: Fixes for out-of-memory segv for large strings.
4381 Remove _S_construct signature for forward_iterator_tag and
4382 input_iterator_tag.
4383 Clean _M_fold.
4384 * src/string-inst.cc: Same, tweaks.
4385 * bits/string.tcc: Same, tweaks.
4386
4387 * testsuite/21_strings/ctor_copy_dtor.cc: Add/clarify tests.
4388 * mkcheck (LOG_FILE): Fix filebuf-[2,3].tst checks.
4389 * mknumeric_limits (LD_FLAGS): Add -nodefaultlibs -lc -lgcc as per
4390 Gaby.
4391
4392 * src/locale.cc: Final separation for char/wchar_t bits.
4393
43941999-06-05 Phil Edwards <pedwards@ball.com>
4395
4396 * docs/index.html: Added link to book upon request'n'agreement.
4397 * docs/23_containers/wrappers_h.txt: Added.
4398 * docs/{23_containers,27_io}/howto.html: Added sections.
4399
4400 * bits/std_fstream.h: Tweak.
4401
44021999-06-05 Benjamin Kosnik <bkoz@tintin.cygnus.com>
4403
4404 * src/ios.cc: Same here.
4405 * bits/std_iosfwd.h: More wchar_t defines.
4406
4407 * bits/basic_string.h: Tweaks.
4408 * bits/string.tcc: Tweak. Fix _S_construct to check for max_size
4409 when doing error checking, as per LWG defect #83.
4410
4411 * src/gen-c++config.cc: Fix comment.
4412
4413 * testsuite/21_strings/ctor_copy_dtor.cc: New file, checks ctors,
4414 assignments, dtors.
4415 * testsuite/21_strings/element_access.cc: New file, checks for
4416 operator[], at(...).
4417 * testsuite/21_strings/insert.cc: New file, tests string::insert.
4418 * testsuite/21_strings/char_traits.cc: New file, tests
4419 for char_traits<char>.
4420
4421 * bits/utility.h: Remove, again.
4422 * src/Makefile.am (std_headers): Remove utility.h.
4423 * src/Makefile.in (std_headers): Regenerate.
4424
4425 Alfred Minarik <a8601248@unet.univie.ac.at>
4426 * bits/basic_string.h: Move __out_of_range and __length_error into
4427 namespace std.
4428
44291999-06-05 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
4430
4431 * testsuite/26_numerics/modf_float.cc: New file.
4432
4433 * bits/std_cmath.h (modf(float, float*)): Fix signature. Correct
4434 typo: use ::modff, not ::modf.
4435
44361999-06-03 Vadim Egorov <egorovv@1c.ru>
4437
4438 * bits/string.tcc (basic_string::_M_mutate): Fixed memory
4439 allocation error
4440 * testsuite/21_strings/capacity.cc (test01): Test.
4441
44421999-06-03 Phil Edwards <pedwards@ball.com>
4443
4444 * bits/fstream.tcc: Re-order inits to stop warnings. Comment/move
4445 unused variables to within #if 0 blocks to do the same.
4446 * bits/std_fstream.h: Fix typos (one prevents compilation).
4447
44481999-06-03 Benjamin Kosnik <bkoz@pacifica.cygnus.com>
4449
4450 * src/wstring-inst.cc: Fix.
4451
44521999-06-02 Benjamin Kosnik <bkoz@madcow.cygnus.com>
4453
4454 * bits/char_traits.h: Add _G_USE_WCHAR_T macro guards.
4455 * stl/bits/stl_string_fwd.h: Same.
4456 * bits/locale_facets.h: Same.
4457 * bits/locale_facets.tcc: Same.
4458 * src/wstring-inst.cc: And here.
4459
4460 * src/gen-c++config.cc: Comment _G_USE_WCHAR_T. Leading to
4461 problems on HPUX 10.20.
4462 * your-build-directory-here/bits/c++config.h: Just kidding, do it
4463 here as a temporary hack till the compiler/host problems get
4464 worked out.
4465
4466 * bits/locale_facets.tcc (num_get::do_get): Change from ifdef
4467 HAVE_STRTOLD to HAVE_STRTOLD && !(__hpux). Apparently, problems
4468 converting "long double" to struct long_double. Probably should be
4469 done with one macro (HAVE_STRTOLD) at configure time.
4470
4471 * bits/std_cmath.h: Comment out pow(double, int) defintion as
4472 gives re-declaration under hpux10.20. Revert previous change, as
4473 kills linux/x86, solaris 2.7, hpux builds. These should be done
4474 using autoconf, see std_cctype.h and the solutions started in
4475 configure.in (see config.h for the generated file.)
4476
4477 * mknumeric_limits (LDFLAGS): Remove '-nodefaultlibs -lc', as
4478 -nodefaultlibs prevents linking under HPUX 10.20 as __main is not
4479 defined.
4480
4481 * docs/index.html: Add some useful links.
4482 * docs/17_intro/contribute.html: Fix broken links.
4483
44841999-06-02 Benjamin Kosnik <bkoz@rhino.cygnus.com>
4485
4486 * mkcheck (LOG_FILE): Add !/bin/bash instead of cygnus-style
4487 paths. The rest of the world should be able to run this script
4488 now.
4489
4490 * src/Makefile.am ($(generated_headers)): Remove comment.
4491 * Makefile*: Regenerate.
4492
4493 * bits/std_locale.h: Remove detritus.
4494 * bits/localefwd.h: Add <cctype> include to undefine the isspace
4495 macro.
4496
44971999-06-01 Benjamin Kosnik <bkoz@tintin.cygnus.com>
4498
4499 * src/gen-c++config.cc: New file. Making c++config.h at configure
4500 time by catting this file (nee bits/config.h) with the build
4501 directories config.h. This is not a complete or perfect solution
4502 but is better than what was in place previously.
4503 * bits/c++config.h: Rename/move to above.
4504 * src/Makefile.am (headers): Remove c++config.h.
4505 (myinstallheaders). Add.
4506 * Makefile*: Regenerated.
4507
4508 * bits/std_cwchar.h: Add include of c++config.h for HAVE_*
4509 definitions, so that wmemcmp, wcslen, wmemchr, etc are properly
4510 declared only if not present in the host's wchar.h.
4511
4512 * bits/locale_facets.tcc (std): Change _G_USE_STRTO* to HAVE_STRTO*.
4513
4514 * bits/std_cmath.h: Define out, for the moment. Linux has no
4515 __buitin_fsqrtl? Probably need some kind of configure trickery
4516 here as well.
4517
4518 * src/Makefile.*: Regenerate.
4519 * bits/c++config.h: Add config.h include.
4520
4521 * bits/std_cwchar.h: Remove remaining #error guard.
4522
4523 * acconfig.h: Add bits for HAVE_LC_MESSAGES.
4524
4525 * configure.in (LIBS): Replace previous effort for mbstate_t and
4526 strtold/strtof with this implementation.
4527
45281999 06-01 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
4529
4530 * bits/std_cmath.h: Tweak. Add more functions. Use __builtin_xxx
4531 whenever possible.
4532
45331999-05-28 Benjamin Kosnik <bkoz@cygnus.com>
4534
4535 * bits/locale_facets.tcc (std): Eek: this left in. Autoconf bits
4536 for determining mbstate_t differences across various hosts not
4537 finished.
4538
45391999-05-26 Benjamin Kosnik <bkoz@nabi.net>
4540
4541 * bits/locale_facets.tcc: Change to ifdef.
4542
4543 * bits/std_sstream.h (stringbuf::setbuf): Remove dynamic_cast.
4544 * bits/std_fstream.h (filebuf::setbuf): Same.
4545
4546 * bits/std_istream.h: Add ws declaration.
4547 * bits/istream.tcc: Stub out definition.
4548
4549 * docs/index.html: Fix broken link for design.txt.
4550
4551 * configure.in: Test for mbstate_t. If wchar.h doesn't have it,
4552 then set _G_NEED_MBSTATE_T.
4553 * configure: Regenerate.
4554 * bits/c++config.h: Move mbstate_t define.
4555 * bits/std_cwchar.h: To here.
4556
45571999-05-25 Ryszard Kabatek <kabatek@chemie.uni-halle.de>
4558
4559 * bits/std_sstream.h:
4560 basic_stringbuf<>::basic_stringbuf: fix.
4561 basic_stringbuf<>::setbuf:
4562 remove the temporary __string_type object,
4563 remove the unnecessary dynymic_cast in the return value,
4564 change the type of the returned value from __streambuf_type*
4565 to basic_stringbuf<_CharT, _Traits, _Alloc>*.
4566
45671999-05-25 Phil Edwards <pedwards@ball.com>
4568
4569 * bits/std_streambuf.h (streambuf::setbuf): Always return streambuf*.
4570
45711999-04-25 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
4572
4573 * bits/std_cmath.h: Tweak. Add float versions of the math functions
4574 in <math.h>. <cmath> still incomplete and incorrekt.
4575
45761999-05-24 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
4577
4578 * mknumeric_limits (LDFLAGS): set appropriate link flags.
4579
45801999-05-23 Phil Edwards <pedwards@ball.com>
4581
4582 * docs/17_intro/howto.html: Added links to text docs,
4583 e.g., BUGS.
4584 * docs/21_strings/howto.html: Updated sections and links.
4585 * docs/21_strings/{gotw29a.txt,stringtok_h.txt}: Added.
4586 * docs/faq/index.html: Updated what-works for sixth
4587 snapshot. Also a number of "internal" links have been
4588 fixed, now that the web pages are the docs directory...
4589 * docs/faq/index.txt: Regenerated.
4590
45911999-05-21 Benjamin Kosnik <bkoz@tintin.cygnus.com>
4592
4593 * bits/basic_string.h: Add Nathan's documentation on the string class.
4594
4595 * testsuite/27_io/ios_members_static.cc: New file, for testing
4596 ios_base::sync_with_stdio.
4597
45981999-05-21 Benjamin Kosnik <bkoz@tintin.cygnus.com>
4599
4600 * bits/std_locale.h: Simplify includes.
4601 * bits/loccore.h: Delete.
4602 * bits/localefwd.h: Renamed, trimmed.
4603 * bits/locfacets.h: Delete.
4604 * bits/locale_facets.h: Rename, expanded.
4605 * bits/loccore.tcc: Deleted.
4606 * bits/locfacets.tcc: Deleted.
4607 * bits/locale_facets.tcc: Resultant merge.
4608 * bits/std_fstream.h: Modify include.
4609 * bits/ostream.tcc: Same.
4610 * bits/istream.tcc: Same.
4611
4612 * src/locale-inst.cc: And here.
4613 * src/locale.cc: Ditto.
4614 * src/Makefile.am: Updated.
4615 * src/Makefile.in: Rengenerated.
4616
4617 * bits/std_istream.h: Move istream::sentry ctor definition.
4618 * bits/istream.tcc: Move istream::sentry ctor here.
4619 Add more detailed locale include here for ctype member functions.
4620 * bits/ostream.tcc (std): And here.
4621
4622 * bits/sbuf_iter.h: Include std_streambuf.h
4623
4624 * bits/locfacets.h: Start separating this into a localeimp.h file.
4625 * bits/loccore.h: Start separating this into a localefwd.h file.
4626 Add std_climits for CHAR_BIT.
4627
4628 * bits/ios_base.h (ios_base::sync_with_stdio): Stub in.
4629
4630 * bits/char_traits.h: Tweak.
4631
4632 * bits/ios_base.h: Remove INT_MAX, use 1<<16.
4633
4634 * bits/std_ostream.h: Remove c++config.h include.
4635 * bits/std_istream.h: Same.
4636 * bits/std_streambuf.h: Same.
4637 * bits/std_fstream.h: Same.
4638 * bits/std_sstream.h: And here.
4639
4640 * bits/std_iosfwd.h: Add _G_RESOLVE_LIB_DEFECTS here for streampos.
4641 * bits/char_traits.h: Add include of std_cwchar.h for mbstate_t.
4642 * bits/fpos.h: Tweak, format.
4643
4644 * std/ciso646: New file.
4645 * bits/std_ciso646.h: New file.
4646 * src/Makefile.am (std_headers): Add ciso646.
4647 (headers): Add bits/std_ciso646.h.
4648 * src/Makefile.in: Regenerate.
4649 * testsuite/17_intro/header_ciso646.cc: New file, disable
4650 equivalance tests.
4651
4652 * bits/fpos.h: Remove libio.h include.
4653 * bits/basic_file.h: And here.
4654 * bits/std_ios.h: Put here.
4655
4656 * src/ios.cc: Simplify includes, tweak.
4657 * bits/std_ios.h: Simplify include order.
4658 * bits/ios_base.h: Modify ios_base::failure.
4659
4660 * stl/bits/std_numeric.h: Change include from stl_iterator to
4661 std_iterator.
4662
46631999-05-19 Benjamin Kosnik <bkoz@tintin.cygnus.com>
4664
4665 * std/iostream: Remove static member __ioint.
4666 * bits/std_iostream.h: Put here.
4667
4668 * stl/bits/std_numeric.h: Remove unneccessary std_iostream.h include.
4669 * stl/bits/stl_algobase.h: Same.
4670 * testsuite/27_io/iostream_objects.cc: Regression tests.
4671 * testsuite/27_io/hello.cc: Remove, subset of above.
4672
46731999-05-19 Phil Edwards <pedwards@ball.com>
4674
4675 * docs/index.html: Tweak, update.
4676
46771999-05-18 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
4678
4679 * docs/17_intro/RELEASE-NOTES: remove outdated
4680 documentation about numeric_limits. Correct CXXINCLUDE setting
4681 documentation.
4682
46831999-05-18 Phil Edwards <pedwards@ball.com>
4684
4685 * docs/{17_intro,18_support,19_diagnostics,20_util,21_strings,
4686 22_locale,23_containers,24_iterators,25_algorithms,26_numerics,
4687 27_io}/howto.html: Created, with some initial entries.
4688 * docs/faq/index.html: Fixed some links.
4689 * docs/faq/index.txt: Regenerated.
4690
46911999-05-18 Benjamin Kosnik <bkoz@tintin.cygnus.com>
4692
4693 * bits/c++config.h (__GLIBCPP__): Set version to 19990518.
4694
4695 * docs/17_intro/RELEASE-NOTES: Update.
4696 * docs/index.html: Correct link to mailing list help page, update News.
4697 * docs/faq/index.html: Change fifth to sixth for snapshot.
4698
4699 * src/Makefile.am (myinstallheaders): Bring over Gaby's changes to
4700 install $(top_builddir)/bits/std_limits.h into
4701 $(myincludepfx)/bits. This was mistakenly omitted from yesterday's
4702 Makefile.am changes.
4703 * *Makefile*: Regenerate using automake.
4704
4705 * mkcheck (LOG_FILE): Fix filebuf directory oddness.
4706 * testsuite/27_io/filebuf.cc: Same.
4707
47081999-05-18 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
4709
4710 * docs/17_intro/CHECKLIST: update.
4711 * docs/17_intro/TODO: update.
4712
47131999-05-17 Phil Edwards <pedwards@ball.com>
4714
4715 * docs/{17_intro,18_support,19_diagnostics,20_util,21_strings,
4716 22_locale,23_containers,24_iterators,25_algorithms,26_numerics,
4717 27_io}/howto.html: Created, with some initial entries.
4718 * docs/faq/index.html: Fixed some links.
4719 * docs/faq/index.txt: Regenerated.
4720
47211999-05-17 Benjamin Kosnik <bkoz@unhappy.cygnus.com>
4722
4723 * src/Makefile.am (myinstallheaders): Missed removing missing.h.
4724 * Makefile.in*: Regenerate.
4725
47261999-05-17 Benjamin Kosnik <bkoz@happy.cygnus.com>
4727
4728 * bits/std_streambuf.h: Same.
4729
4730 * bits/loccore.h (_Bad_use_facet): Remove bits warned about.
4731 * bits/locfacets.h (std): Same.
4732 * bits/sstream.tcc: Same.
4733 * testsuite/27_io/stringstream.cc: Tweak.
4734
4735 * testsuite/27_io/filebuf.cc: Adjust.
4736 * testsuite/21_strings/capacity.cc (test01): Add more
4737 string::reserve tests.
4738
4739 * bits/c++config.h: Remove broken CCTYPE.
4740 * bits/std_cctype.h: Tweak, remove de-macroization, enable
4741 sequestered topper implementation.
4742 * bits/std_cwctype.h: Same.
4743
4744 * bits/missing.h: Remove.
4745 * bits/std_locale.h: Remove missing.h include.
4746
4747 * stl/bits/std_bitset.h (bitset::bitset(string): Tweak to compile.
4748
4749 * src/Makefile.am (headers): Add bits/std_cwctype.h.
4750 INCLUDES: Add top_builddir.
4751 * src/Makefile.in: Regenerate.
4752
4753 * Makefile.am: Add check and check-install as new targets.
4754 * testsuite/make_check_libfree++: Move to. . .
4755 * mkcheck: Here.
4756 * configure.in: Tweak versions.
4757 * mknumeric_limits: Set paths correctly.
4758
47591999-05-17 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
4760
4761 * src/Makefile.in (myinstallheaders): add rule to install
4762 std_limits.h.
4763
4764 * bits/slice.h (class slice): don't const-qualify data members
4765 since the copy and assignment operator is implicitly used. The
4766 valarray specification is definitively a bad one.
4767
4768 * Makefile.in (generate-limits-sources): fix typo.
4769
4770 * docs/text/TODO: update.
4771 * docs/text/CHECKLIST: update.
4772
4773 * bits/gslice.h (gslice): fix bugglet.
4774 (gslice::gslice): set _M_index_size to 0 whenever given lengths
4775 (lj) of size zero.
4776
4777 * src/Makefile.am (libstdc___la_SOURCES): add gen-num-limits.
4778 * src/Makefile.in (libstdc___la_SOURCES): keep in sync.
4779 [Note: **/Makefile.in should be generated from the corresponding
4780 Makefile.am. The current situation is a litte chaotic. ]
4781
47821999-05-16 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
4783
4784 * mknumeric_limits: tweak.
4785
4786 * Makefile.in (all): add target generate-limits-sources.
4787 (generate-limits-sources): make a directory bits/ in top_builddir
4788 where the generated std_limits.h is put; generate limitsMEMBERs.cc
4789 directly under $(top_builddir)/src. Remains to put the appropriate
4790 rule for installing std_limits.h.
4791
4792 * src/Makefile.in (headers): remove bits/std_limits.h to this list.
4793 (INCLUDES): add -I$(top_builddir) for bits/std_limits.h which is
4794 now generated at build-time in the build directory
4795 (libstdc___la_SOURCES): remove limitsMEMBERS.cc form this list
4796 * src/Makefile.am: reflect changes in src/Makefile.in
4797
47981999-05-12 Phil Edwards <pedwards@ball.com>
4799
4800 * docs/faq/index.html: Add more entries (5.4,5.5), finish
4801 all but one empty entry. Add links for HOWTOs, but no files yet.
4802 (Corrected HOWTO links are for bkoz's new scheme.)
4803 * docs/faq/index.txt: Regenerated.
4804
48051999-05-12 Benjamin Kosnik <bkoz@happy.cygnus.com>
4806
4807 * testsuite/17_intro/headers.cc: New file.
4808 * stl/bits/std_queue.h: Change stl_bvector.h include path.
4809 * bits/std_cwctype.h: New file.
4810
4811 * testsuite/27_io/filebuf.cc: Need to tweak directory structure.
4812
48131999-05-11 Benjamin Kosnik <bkoz@loony.cygnus.com>
4814
4815 * stl/bits/stl_config.h (__USE_MALLOC): Change underlying allocator.
4816 Check __USE_MALLOC before defining specializations containing
4817 __default_alloc_template.
4818 * src/stl-inst.cc: Here too.
4819
4820 * bits/basic_string.h: Change.
4821
4822 * testsuite/make_check_libfree++: More tweaks.
4823 * testsuite/21/capacity.cc: New file.
4824
4825 * src/string.cc: Rename to be consistent with other inst files.
4826 Rename to string-inst.cc.
4827 * src/string*.cc: Change include.
4828 * src/wstring.cc: Rename to wstring-inst.cc.
4829 * src/wstring*.cc: Ditto.
4830 * src/Makefile.in: Also here.
4831 * src/Makefile.am: Ditto.
4832
4833 * src/traits.cc: Remove.
4834 * src/wtraits.cc: Same.
4835
4836 Try a new way of organizing documentation, one with synchronicity
4837 between testsuites and docs subdirectories, and see who yelps.
4838 * docs/html: Remove, use chapter and subject specific directories
4839 instead of forcing things immediately into format of
4840 documentation.
4841 * docs/text: Same.
4842 * docs/image: Same.
4843 * docs/faq/text, docs/faq/html: Remove, put in the docs/faq
4844 directory and sort by filename and extension.
4845 * docs/17_intro, 18_support, 19_diagnostics, 20_util, 21_strings,
4846 22_locale, 23_containers, 24_iterators, 25_algorithms,
4847 26_numerics, 27_io: Add.
4848 * docs/17_intro/*: Populate with all the text files. . .
4849 * docs/index.html: Construct.
4850
4851 * testsuite/*: Update with same names as the docs subdir.
4852 * testsuite/results: Where to stash conformance results for the
4853 different snapshots, so that progress/size/speed issues can be
4854 tracked over time.
4855
48561999-05-10 Benjamin Kosnik <bkoz@loony.cygnus.com>
4857
4858 * src/string.cc: Add _S_copy_chars instantiation, as well as
4859 string::binary operators !=, ==, etc.
4860
4861 * src/Makefile.am (CXXFLAGS): Remove -fvtable-thunks.
4862 * src/Makefile.in (CXXFLAGS): Same here.
4863 * testsuite/make_check_libfree++ (CXX_FLAG): And here.
4864
48651999-05-07 Benjamin Kosnik <bkoz@cygnus.com>
4866
4867 * src/string.cc: Add missing member functions to instantiation list.
4868
48691999-05-07 Benjamin Kosnik <bkoz@cygnus.com>
4870
4871 * src/misc-inst.cc: Remove unused string instantiations.
4872
4873 * bits/string.tcc: Tweak, fix.
4874 * bits/basic_string.h: Format. Fix reported error with c_str().
4875
4876 * testsuite/make_check_libfree++: Tweak for shared builds.
4877 * testsuite/21/operations.cc: New file for testing c_str() etc.
4878
48791999-05-06 Benjamin Kosnik <bkoz@cygnus.com>
4880 Ryszard Kabatek <kabatek@chemie.uni-halle.de>
4881
4882 * stl/bits/stl_vector.h: Fix the code of vector<> for usage with
4883 an iterator class. Delineate pointer versus iterator differences
4884 in implementation.
4885 * 23/vector_capacity.cc: New file, tests for above.
4886
48871999-05-06 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
4888
4889 * mknumeric_limits: Fix typo. 'unsigned lont' should read
4890 'unsigned long'.
4891 * src/Makefile.am (libstdc___la_SOURCES): add limitsMEMBERS.cc,
4892 generated by mknumeric_limits to the list. Now std_limits.h is
4893 basically working.
4894 * src/Makefile.in (generate-numeric-limits): new target to handle
4895 automatic generation of bits/std_limits.h and src/limitsMEMBERS.cc.
4896 (all): add target generate-numeric-limits.
4897 (libstdc___la_OBJECTS): add limitsMEMBERS.lo
4898 (libstdc___la_SOURCES): add limitsMEMBERS.cc
4899
49001999-05-05 Benjamin Kosnik <bkoz@cygnus.com>
4901
4902 Irix build issues.
4903 * bits/c++config.h (_G_USE_CTYPE_ISBIT): Defines new macro for
4904 mask values in ctype_base. Move hacks for _ISBit to locfacets.h.
4905 * bits/locfacts.h: Here.
4906
49071999-05-05 Benjamin Kosnik <bkoz@cygnus.com>
4908 Ulrich Drepper <drepper@cygnus.com>
4909
4910 Solaris build issues.
4911 * bits/c++config.h: Define new macros, _G_USE_STRTOF and
4912 _G_USE_STRTOLD.
4913
4914 * bits/locfacets.tcc (num_get::do_get): Tweak long double and
4915 float overloads to use the above macros. Account for the lack of
4916 strtold on some systems, and revert back to using sscanf.
4917
49181999-05-04 Ryszard Kabatek <kabatek@chemie.uni-halle.de>
4919
4920 * bits/locfacets.tcc (num_get::do_get): Check the errno variable.
4921 Use strtoul/strtoull for unsigned types. Check the ranges for
4922 short/unsigned short and if necessary for int/unsigned int.
4923
49241999-05-04 Benjamin Kosnik <bkoz@cygnus.com>
4925
4926 * src/gen-num-limits.cc (round_style): Need to use mknumericlimits
4927 to generate bits/std_limits.h now, as the SGI std_limits.h is
4928 being depricated. Not done, but should be done immediately: need
4929 to make sure this script is run as part of the configuration
4930 process, because without it "make" in a configured build directory
4931 will fail. Also tweaked: added a space for float_round_style, and
4932 used static_cast of zero to default-initialize, which should be ok
4933 according to the standard. (see 8.5 p5 and 20.1.3).
4934 * mknumeric_limits (OUT_C): Need this for x86 long
4935 double extensions.
4936
4937 * bits/basic_file.h: Include libio.h, not libioP.h.
4938 * src/basic_file.cc: And add libioP.h include here, so that
4939 _IO_init, et. al are well-declared.
4940
4941 * testsuite/make_check_libfree++ (LIB_PATH): Test installed
4942 headers, not source directory headers.
4943
4944 * src/Makefile.am (headers): Add stl_range_errors.h, also adjust
4945 for ext/*. Also add basic_file.h.
4946 * src/Makefile.in (headers): Same.
4947
4948 * bits/std_string.h: Reduce dependencies for faster
4949 pre-processing. Move istream and ostream specific defines into
4950 istream.tcc and ostream.tcc respectively.
4951 * bits/string.tcc: And here.
4952 * bits/basic_string.h: Move getline inline out-of-line, and to
4953 istream.tcc.
4954 * bits/istream.tcc: Move string::getline and operator>> here.
4955 * bits/ostream.tcc: And here too.
4956
4957 * bits/utility.h: Remove, as clashes with a standard header. Put
4958 __OUTOFRANGE and __LENGTHERROR macros into string.tcc for the time
4959 being, until this can be combined with SGI's approach.
4960 * bits/string.tcc: Add macros, as above.
4961 * bits/loccore.h: Add _Count_ones defines.
4962 * bits/std_string.h: And here too.
4963 * bits/std_locale.h: And here.
4964 * bits/std_ios.h: Take out include here.
4965 * src/Makefile.am (headers): Remove utility.h
4966 * src/Makefile.in (headers): Remove utility.h
4967
4968 * stl/bits/*: Update to SGI STL 3.20.
4969 * stl/ext/pthread_alloc: Delete this file.
4970
49711999-05-04 Phil Edwards <pedwards@ball.com>
4972
4973 * docs/faq/html/index.html: Add more entries
4974 * docs/faq/html/index.txt: regenerated.
4975
49761999-05-04 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
4977
4978 * src/gen-num-limits.cc (DO_DEFINE_MIN_MAX): fix typo.
4979
49801999-04-29 Benjamin Kosnik <bkoz@haight.cygnus.com>
4981
4982 * bits/locfacets.tcc (num_get::do_get): Re-implement, with input
4983 from Ulrich and Nathan. Remove extraneous string class usage,
4984 tweak, clean, simplify and consolidate with a eye towards removing
4985 duplcate code. Use strto[l, ll, f, d, ld] instead of sscanf.
4986 Not done: dealing with leading zeros, wchar_t work.
4987 * bits/locfacets.h: And here too.
4988
4989 * doc: Remove.
4990
49911999-04-29 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
4992
4993 * docs/: add a FAQ.
4994 * docs/faq/: New directory.
4995 * docs/faq/html/: Likewise.
4996 * docs/faq/text/: Likewise.
4997 * docs/faq/html/index.html: New file.
4998 * docs/faq/html/index.txt: Likewise. Generated from
4999 docs/faq/html/index.html by lynx.
5000
50011999-04-28 Benjamin Kosnik <bkoz@happy.cygnus.com>
5002 Ryszard Kabatek and Branko Cibej
5003
5004 * bits/locfacets.tcc: Modify.
5005
50061999-04-27 Benjamin Kosnik <bkoz@happy.cygnus.com>
5007
5008 * bits/sbuf_iter.h: Clean, fix istreambuf_iterator, make
5009 conformant to 14882, wrap non-standard extensions with
5010 _G_RESOLVE_LIB_DEFECTS, remove detritus and cruft, rennovate.
5011 * bits/locfacets.tcc (num_get::do_get(bool)): Return correct iterator.
5012
5013 * testsuite/27/istringstream_formatted.cc: Add tests.
5014
5015 * bits/locfacets.h: Remove cruft from _Format_cache, continue
5016 commenting, simplify.
5017 * bits/locfacets.tcc: Same.
5018
5019 1999-04-27 Ryszard Kabatek <kabatek@chemie.uni-halle.de>
5020 * bits/locfacets.tcc (num_get::do_get):
5021 Fix the sscanf format parameter
5022 for long long 'll' (as in C9X) instead of 'l'.
5023 Fix the order of sscanf format parameters: "%dl" --> "%ld".
5024 Change the type of the local variable '__conv' from 'string'
5025 to 'const char*' and adapt the change.
5026
50271999-04-26 Benjamin Kosnik <bkoz@happy.cygnus.com>
5028
5029 * bits/locfacets.h: Document _Format_cache, and name data members
5030 after the corresponding functions in numpunct. For instance:
5031 _M_grsep -> _M_thousands_sep, and _M_decsep -> _M_decimal_point.
5032 Break apart _M_boolnames{2] into _M_truename and _M_falsename.
5033 * bits/locfacets.tcc: Same.
5034
5035 * bits/locfacets.h (num_get::_M_extract): Don't allow groupings to
5036 stop parsing--store for later analysis.
5037 * testsuite/27/istringstream_formatted.cc: Add cases.
5038
50391999-04-25 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
5040
5041 * bits/valarray_meta.h: tweak.
5042 (_UnFunBase, _BinFunBase, _BinFunBase1, _BinFunBase2, _BinBase1,
5043 _BinFunBase2): rename typedef-name _Tp to _Vt to keep the compiler
5044 happy -- boggus warning.
5045 * bits/std_valarray.h: Fix.
5046 (valarray<T>::shift): Fix. Update comment.
5047 (valarray<T>::cshift): Fix.
5048
50491999-04-23 Benjamin Kosnik <bkoz@cygnus.com>
5050
5051 * testsuite/27filebuf-2.txt: Delete.
5052 * testsuite/27/filebuf.cc: Put output files directly into the
5053 correct subdirectory (27).
5054
5055 Alexandre Petit-Bianco <apbianco@cygnus.com>
5056 * testsuite/make_check_libfree++: Check generated (*.txt) file
5057 against stored results file (*.tst).
5058
50591999-04-22 Benjamin Kosnik <bkoz@nabi.net>
5060
5061 * bits/locfacets.tcc: Fix.
5062
5063 * bits/fstream.tcc (filebuf::seekoff): Output current out pointer.
5064 (filebuf::overflow): Simplify.
5065 (filebuf::xsputn): Correctly handle indeterminate state.
5066
5067 * testsuite/27/istringstream_formatted.cc: Tweak.
5068 * testsuite/27/filebuf.cc: Tweak.
5069 * testsuite/27/filebuf-3.tst: Correct: this is the canonical
5070 results file, please use this in the future to guarantee filebuf
5071 positioning accuracy.
5072 * testsuite/27/filebuf-2.tst: Same.
5073
50741999-04-21 Benjamin Kosnik <bkoz@cygnus.com>
5075
5076 * bits/fstream.tcc (filebuf::xsputn): Add.
5077 * bits/std_fstream.h: Declare.
5078
5079 * src/basic_file.cc (__basic_file::open): Add O_CREAT to open
5080 calls using ios_base::trunc.
5081
5082 * bits/sstream.tcc (streambuf::overflow): Fix crasher.
5083
5084 * testsuite/make_check_libfree++ (LOG_FILE): Ugh. Another fix.
5085 * testsuite/27/27stringstream.cc: Same.
5086 * testsuite/27/27stringbuf.cc: More tweaks.
5087 * testsuite/27/27filebuf-2.txt: Remove.
5088
5089 * testsuite/27/27filebuf-1.tst: Append, to force byte size over
5090 BUFSIZE so that overflows/underflow can be tested with default
5091 buffer setting.
5092 * testsuite/27/27filebuf-1.tst: Add.
5093
5094 * testsuite/*/*: Remove pre-pended chapter names, as they
5095 duplicate the chapter info contained in the enclosing directory
5096 anyway.
5097
50981999-04-20 Benjamin Kosnik <bkoz@cygnus.com>
5099
5100 * bits/streambuf.tcc (streambuf::xsputn): Re-implement to conform
5101 to sputc conditions.
5102
5103 * bits/ios_base.h: Define here.
5104 * src/ios.cc (ios_base::_M_clear): Remove hack.
5105 * bits/basic_ios.h: Fix rdstate().
5106
5107 * bits/sstream.tcc (streambuf::seekoff): Fix.
5108 * bits/fstream.tcc (filebuf::seekoff): Tweak comments.
5109
5110 * testsuite/make_check_libfree++ (LOG_FILE): More c-c-c-changes.
5111 * testsuite/24/24iterator.cc: Add/Fixes for DEBUG_ASSERT.
5112 * testsuite/27/27stringstream.cc: Same.
5113 * testsuite/27/27stringbuf.cc: Same.
5114 * testsuite/27/27istringstream_formatted.cc: Same.
5115 * testsuite/27/27filebuf.cc: Same.
5116
5117 * bits/locfacets.h: Remove specializations for messages<char> and
5118 messages<wchar_t> ctors. Same for moneypunct. Not required, not used.
5119 * src/locale.cc: Remove definitions for above.
5120 * src/misc-inst.cc: Revert, take out iomanip.h include.
5121 * bits/std_iomanip.h: Tweak, format.
5122
51231999-04-19 Benjamin Kosnik <bkoz@cygnus.com>
5124
5125 * bits/loccore.h: Format, move inline.
5126 * bits/locfacets.tcc: Same.
5127 * bits/locfacets.h: Same.
5128
5129 Ulrich Drepper <drepper@cygnus.com>
5130 * aclocal.m4: Re-generate.
5131 * configure, configure.in: Same.
5132 * m4/lc_messages.m4: New file.
5133
51341999-04-18 Benjamin Kosnik <bkoz@cygnus.com>
5135
5136 * bits/std_ostream.h: Fix typedef for wchar_t instantiations.
5137 * bits/sstream.tcc: Tweak.
5138
5139 * std/iostream: Put __ioinit inside macro guards.
5140
5141 * src/stlinst.cc: Delete and move to . . .
5142 * src/stl-inst.cc: New file, plus wrapping in namespace std.
5143 * src/Makefile.in: Change.
5144 * src/Makefile.am: Same.
5145 * src/misc-inst.cc: Add istringstream/ostringstream instantiations.
5146
5147 * testsuite/make_check_libfree++: Efficiently format for minimal
5148 space. Enforce stricter execution tests by enabling
5149 -DDEBUG_ASSERT.
5150
51511999-04-16 Benjamin Kosnik <bkoz@cygnus.com>
5152
5153 * docs/text/RELEASE-NOTES: Fix include typo.
5154
5155 * src/Makefile.am (headers): Add istream.tcc.
5156 * src/Makefile.in (headers): Add istream.tcc.
5157
5158 * ltconfig, ltmain.sh, libtool: Update to libtool-1.2g.
5159
51601999-04-16 Benjamin Kosnik <bkoz@cygnus.com>
5161
5162 * bits/locfacets.tcc (num_get::do_get(long)): Finish roughing in.
5163 * bits/locfacets.h (num_get::_M_extract): New functin:
5164 consolidate logic for do_get(...) members.
5165
5166 * bits/sbuf_iter.h (istreambuf_iterator::operator++()): Fix.
5167 * testsuite/27/27istringstream_formatted.cc: Add.
5168
51691999-04-16 Martin v. Loewis <martin@mira.isdn.cs.tu-berlin.de>
5170
5171 * src/basic_file.cc (__basic_file::open): Fix thinko in
5172 _G_HAVE_IO_FILE_OPEN bits.
5173 * bits/std_istream.h (sentry::sentry(istream, bool)): Fix isspace bug.
5174 * bits/std_cmath.h: Add stdlib.h include for ldiv_t.
5175 * src/complex.cc (FCT): Qualify all functions with global namespace.
5176 * src/locale.cc: Don't qualify memcpy and setlocale.
5177 * src/stdexcept.cc (__out_of_range): Qualify out_of_range with std::.
5178 (__length_error): Likewise, for length_error.
5179 * src/stlinst.cc: Qualify instantiations with std::.
5180
51811999-04-15 Benjamin Kosnik <bkoz@cygnus.com>
5182
5183 * C++STYLE: Add ChangeLog guidelines for member functions.
5184
5185 * doc/* : Delete.
5186 * BADNAMES, BUGS, C++STYLE, CHECKLIST, COPYING,
5187 DESIGN, HEADER_POLICY, PROBLEMS, RELEASE-NOTES, TODO: Moved into
5188 docs/text and made less strident.
5189
5190 * bits/fstream.tcc: Change non-standard ctor to match Sun's sematics.
5191 * bits/std_fstream.h: Same.
5192 * src/ios.cc: Same.
5193
5194 * bits/locfacets.h: Touch.
5195
51961999-04-15 Ulrich Drepper <drepper@cygnus.com>
5197
5198 * math/cexp.c (cexp): Use NAN instead of nan("").
5199 Reported by joel reed <joelreed@yahoo.com>.
5200
5201 * libio/libioP.h: Define _IO_seek_fpos_t and _IO_seek_off_t based on
5202 _G_IO_IO_FILE_VERSION. Use these types in the prototypes.
5203 * libio/fileops.c: Use _IO_seek_fpos_t and _IO_seek_off_t types
5204 instead of #if cascades.
5205 * libio/genops.c: Likewise.
5206 * libio/ioseekoff.c: Likewise.
5207 * libio/ioseekpos.c: Likewise.
5208 * libio/strops.c: Likewise.
5209 Patch by Chip Salzenberg <chip@perlsupport.com>.
5210
52111999-04-15 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
5212
5213 * docs: New directory.
5214 * docs/html: Likewise.
5215 * docs/text: Likewise.
5216 * docs/image: Likewise.
5217
5218 * bits/std_cmath.h: Add new functions.
5219 (abs): overload for long and double.
5220 (div): overload for long.
5221
5222 * bits/valarray_array.h: Fix.
5223 * bits/gslice.h: Adjust friend.
5224 * bits/slice_array.h: likewise.
5225 * bits/valarray_meta.h: likewise.
5226
52271999-04-13 Benjamin Kosnik <bkoz@tintin.cygnus.com>
5228
5229 * bits/locfacets.h: More changes, for num_get for insertion
5230 operators for integral types. Comment fields in _Format_cache.
5231 * bits/locfacets.tcc: And here too: add preliminary long version.
5232 * testsuite/27/27istringstream_formatted.cc: Add cases.
5233
52341999-04-13 Mark Elbrecht <snowball3@usa.net>
5235
5236 * configure.in: Add locale.h to AC_CHECK_HEADERS argument. Call
5237 AC_LC_MESSAGES macro.
5238 * aclocal.m4 (AC_LC_MESSAGES): New. Determines if a target
5239 supports LC_MESSAGES.
5240 * config.h.in: Add entry for HAVE_LC_MESSAGES.
5241 * src/locale.cc (locale::_S_normalize_category): Use the
5242 HAVE_LC_MESSAGES macro to check for LC_MESSAGES support instead of
5243 _G_NO_CLOCALE_HAS_MESSAGES.
5244 * aclocal.m4 (AM_PROG_LD): For DOS style paths, simplify test to
5245 '?:' from '?:\\' so any path beginning with a drive name matches.
5246
52471999-04-12 Mark Elbrecht <snowball3@usa.net>
5248
5249 * src/basic_file.cc(sys_open) [O_BINARY]: Declare __testb.
5250
52511999-04-12 Benjamin Kosnik <bkoz@tintin.cygnus.com>
5252
5253 * bits/locfacets.h: Tweak.
5254 * bits/locfacets.tcc(do_get): Clean/fix bool method.
5255
5256 * testsuite/21/21nonmember.cc: Same.
5257 * testsuite/21/21compare.cc: Fix license.
5258 * testsuite/27/27istringstream_formatted.cc: New file.
5259
52601999-04-12 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
5261
5262 * bits/valarray_meta.h: _BinFunBase1, _BinFunBase2, _BinBase1,
5263 _BinBase2: new template classes; put in there to work around a
5264 compiler limitation. The whole valarray architecture is now
5265 working.
5266
52671999-04-08 Benjamin Kosnik <bkoz@haight.constant.com>
5268
5269 * bits/locfacets.tcc: Fix, format.
5270 * bits/locfacets.h: Fix.
5271 * src/locale.cc: Same, plus format.
5272
5273 * bits/basic_string.h: Re-add definition here.
5274 * src/string.cc: Take out.
5275
52761999-04-08 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
5277
5278 * bits/std_valarray.h: tweak.
5279 * bits/valarray_array.h tweak. use _Expr.
5280 * bits/slice_array.h: likewise.
5281 * bits/gslice_array.h: likewise.
5282 * bits/mask_array.h: likewise.
5283 * bits/indirect_array.h: likewise.
5284 * bits/valarray_meta.h: tweak.
5285 _UnFunBase, _UnFunClos, _BinFunBase, _FunBase, _ValFunClos,
5286 _RefFunClos, _UnBase, _UnClos, _BinBase, _BinClos, _SClos, _GClos,
5287 _IClos: new template classes.
5288 _Meta: renamed to _Expr. Made template with args.
5289 _Constant: made template with two args.
5290
52911999-04-05 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
5292
5293 * bits/valarray_array.h: tweak.
5294
52951999-04-06 Benjamin Kosnik <bkoz@cygnus.com>
5296
5297 * bits/basic_string.h: Whoops--fix blip.
5298
52991999-04-06 Benjamin Kosnik <bkoz@cygnus.com>
5300
5301 Update to SGI STL 3.13
5302 * bits/basic_string.h: Add __get_c_string definition.
5303 * stl/bits/stl_range_errors.h: New file.
5304 * stl/bits/std_bvector.h: Same.
5305 * stl/bits/*: Update.
5306
53071999-04-04 1999 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
5308
5309 * bits/slice_array.h: tweak.
5310 * bits/gslice_array.h: tweak.
5311 * bits/mask_array.h: tweak.
5312 * bits/indirect_array.h: tweak.
5313 * bits/valarray_array.h: tweak.
5314 (__valarray_copy): replace copy with memcpy.
5315 * bits/std_valarray.h: use __valarray_copy whenever possible.
5316 use __valarray_fill instead of fill.
5317
53181999-04-02 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
5319
5320 * src/gen-num-limits.cc: new file
5321 * mknumeric_limits: Ditto.
5322
53231999-03-30 Benjamin Kosnik <bkoz@cygnus.com>
5324
5325 * bits/locfacets.tcc: Do a stub version of num_get for short, int,
5326 and long types.
5327 * bits/locfacets.h: Add num_get::get methods overloaded for int
5328 and short, to resolve ambiguous overloads in istream insertion
5329 operators.
5330
53311999-03-30 Benjamin Kosnik <bkoz@cygnus.com>
5332
5333 * bits/std_istream.h: Fix.
5334 * bits/istream.tcc: Fix.
5335
53361999-03-30 Philip Martin <pm@corris.dircon.co.uk>
5337
5338 * testsuite/24/24iterator.cc: fix ++/-- tests
5339
53401999-03-29 Benjamin Kosnik <bkoz@cygnus.com>
5341
5342 * bits/std_ostream.h: Looks like this, actually: Fix up eh-isms.
5343 * bits/ostream.tcc: Same.
5344
5345 * bits/std_istream.h: Bring over ostream changes, implement member
5346 functions. Baseline.
5347 * bits/istream.tcc: New file.
5348
53491999-03-26 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
5350
5351 * bits/gslice.h (class gslice): fix friends template.
5352
53531999-03-23 Benjamin Kosnik <bkoz@cygnus.com>
5354
5355 * bits/std_ostream.h: Fix sentry objects, implement seekp, tellp,
5356 delete cruft, etc.
5357 * bits/ostream.tcc: Same.
5358
5359 * bits/std_istream.h: Minor tweaks.
5360
53611999-03-18 Benjamin Kosnik <bkoz@cygnus.com>
5362
5363 * src/locale-inst.cc: Remove duplicate instantiations.
5364 * bits/locfacets.tcc: Tweak definitions of static member.
5365
53661999-03-18 Benjamin Kosnik <bkoz@cygnus.com>
5367
5368 * bits/std_fstream.h: Format: prepend "__" in front of
5369 non-standard typedefs.
5370 * bits/fstream.tcc: Match.
5371 * bits/std_streambuf.h: Format: prepend "__" in front of
5372 non-standard typedefs.
5373
5374 * bits/sstream.tcc: Match.
5375 * bits/std_istream.h: Format.
5376 * src/locale-inst.cc: Add num_get instantiations.
5377
5378 * bits/std_sstream.h: Fix crash in stringstreams. Remove member
5379 _M_sb, a basic_stringbuf object, and use the basic_ios pointer
5380 _M_streambuf instead. Make initializations sane. Fix
5381 allocation/deallocation of _M_streambuf.
5382 * bits/std_ostream.h: Fix initialization code.
5383 (ctor): Eliminate redundant this->init(), let base class initialize.
5384 (default ctor): New. Assume base classes already initialzed.
5385 * bits/std_istream.h: Parallel work to ostream.
5386 (ctor): Eliminate redundant this->init(), let base class initialize.
5387 (default ctor): New. Assume base classes already initialzed.
5388 Fix initialization of basic_iostream.
5389
5390 * bits/std_fstream.h: While we're at it, make initializations sane
5391 here too. Now matches sstream.h.
5392
5393 * bits/string.tcc: Fix crash in basic_string::compare.
5394 * bits/basic_string.h: And here.
5395 * bits/c++config.h: Add comment about _G_USE_EXCEPTIONS.
5396
5397 * testsuite/make_check_libfree++: Check shared as well.
5398 * testsuite/27/27stringstream.cc: Add bits.
5399 * testsuite/27/27boolfmt.cc: Add bits.
5400 * testsuite/27/27octfmt.cc: Add bits.
5401
54021999-03-17 Benjamin Kosnik <bkoz@happy.cygnus.com>
5403
5404 * configure.in (USE_LONG_DOUBLE): signbitl link error.
5405
5406 * bits/locfacets.h: Fix errors that cause build problems
5407 with current egcs (template parameters have class scope).
5408 * bits/locfacets.tcc: Same.
5409 * src/locale-inst.cc: Same, clean.
5410 * src/misc-inst.cc: Same, clean.
5411
54121999-03-17 Ryszard Kabatek <kabatek@chemie.uni-halle.de>
5413
5414 * stl/bits/std_memory.h: Modify auto_ptr::reset to reflect the
5415 standard. Re-apply this previous patch.
5416
54171999-03-17 Philip Martin <pm@corris.dircon.co.uk>
5418
5419 * bits/basic_string.h: Use __normal_iterator<> for iterators.
5420 * bits/std_sstream.h: Support __normal_iterator<> iterators.
5421 * bits/string.tcc: Ditto.
5422 * src/misc-inst.cc: Ditto.
5423 * src/locale-inst.cc: Ditto.
5424 * stl/bits/stl_iterator.h: Add __normal_iterator<>.
5425 * stl/bits/stl_vector.h: Use __normal_iterator<> for iterators.
5426 * testsuite/24/24iterator.cc: Add test cases for basic_string and
5427 vector iterators.
5428
54291999-03-16 Benjamin Kosnik <bkoz@cygnus.com>
5430
5431 * bits/locfacets.tcc: Remove macro hack.
5432 * bits/locfacets.h: Tweaks.
5433 * src/misc-inst.cc: Weed out locale-related instantiations.
5434 * src/locale-inst.cc: Same.
5435
5436 * RELEASE-NOTES: Make more changes.
5437 * bits/c++config.h: Bump version number.
5438
5439 * testsuite/make_check_libfree++: Collect diagnostics.
5440
5441 * bits/std_ostream.h: Fix ostream initialization/destruction
5442 problem, related to dtor cleanup and new cached facets, agggggggh.
5443 * bits/ostream.tcc: Tweak.
5444 * bits/locfacets.h: Remove all friends of iostream classes.
5445 * bits/ios_base.h: Same.
5446 * bits/streambuf.tcc: Tweak.
5447 * bits/std_streambuf.h: Tweak.
5448 * bits/std_fstream.h: Tweak.
5449 * bits/fstream.tcc: Tweak.
5450 * src/stdstreams.cc: Tweak.
5451 * src/ios.cc: Close streams.
5452
5453 * math/Makefile.in: Add missing files for shared link errors.
5454 * math/Makefile.am: Same.
5455
54561999-03-15 Benjamin Kosnik <bkoz@cygnus.com>
5457
5458 * src/locale-inst.cc: More wchar_t instantiations.
5459 * src/misc-inst.cc: Missed a few bits.
5460 * testsuite/make_check_libfree++: Add static and shared runs.
5461 * src/ios.cc: Add clarity to ios_base::Init::~Init().
5462
54631999-03-15 Benjamin Kosnik <bkoz@cygnus.com>
5464
5465 * bits/std_ostream.h: Format, expunge, simplify. Add cached
5466 facets. Resolve link errors.
5467 * bits/ostream.tcc: Same.
5468 * src/misc-inst.cc: Add ostream, wostream instantiations.
5469 * src/Makefile.am: Add missing bits for stdstreams.cc.
5470 * src/Makefile.in: Same.
5471 * bits/std_iosfwd.h: Format.
5472 * bits/locfacets.h (num_put): Add basic_ostream as a friend to
5473 num_put so that cached _M_fnumput pointer can be deleted in
5474 basic_ostream's dtor. Now everybody plays nice.
5475
54761999-03-12 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
5477
5478 * bits/gslice.h (class gslice): Make friends valarray,
5479 gslice_array and _GliceExpression.
5480
54811999-03-11 Benjamin Kosnik <bkoz@cygnus.com>
5482
5483 * RELEASE-NOTES: Update.
5484 * src/ios.cc: Use do proper init.
5485 * bits/std_streambuf.h: Tweak.
5486 * bits/std_iostream.h: Take out static member.
5487 * std/iostream: Put here.
5488 * bits/std_ostream.h: Non-default ctor shouldn't smash _M_streambuf.
5489 * bits/std_istream.h: Ditto.
5490 * bits/basic_ios.h: Format.
5491 * bits/ostream.tcc(write): Fix.
5492 * bits/fstream.tcc: Fix stdstreams ctor to do a proper
5493 initialization of the fstream class.
5494 * src/stdstreams.cc: I'm baaaaaaaack.
5495
54961999-03-10 Benjamin Kosnik <bkoz@rhino.cygnus.com>
5497
5498 * bits/ios_base.h: Correct comments. Add ios_base::init()
5499 functionality. Format, tweak, expunge, clean, bathe, and hang to dry.
5500 * src/misc-inst.cc: Add instantiations here.
5501 * src/ios.cc: Clean.
5502 * bits/std_iostream.h: Add wrappers, global ios_base::Init object.
5503 * src/stdstreams.cc: Delete this file, as now unnecessary.
5504 * bits/fstream.tcc: Add missing initialization bits for ctor.
5505 * src/Makefile.am (libstdc___la_SOURCES): Delete here as well.
5506 * src/Makefile.in (libstdc___la_OBJECTS): And here.
5507
5508 * bits/streambuf.tcc: Tweak.
5509 * bits/sstream.tcc: Here too.
5510
5511 * bits/fstream.tcc: And change definition as well.
5512 * bits/std_fstream.h: Change ctor.
5513 * src/basic_file.cc (sys_open): Add call that opens a specific fileno.
5514 * bits/basic_file.h: Add declarations.
5515
5516 * testsuite/27/27hello.cc: New file.
5517
5518 * bits/std_ostream.h: Move flush() inline.
5519 * bits/ostream.tcc: From here.
5520
5521 * bits/char_traits.h: Add include of fpos.h for streamoff/streampos.
5522 * bits/std_ios.h: Change include libio to only when necessary.
5523 * bits/fpos.h: Like here.
5524 * ios_base.h: And here.
5525
5526 * bits/locfacets.h: Change _Iostate to _Ios_Iostate.
5527 * bits/locfacets.tcc: Same.
5528 * bits/std_locale.h: Include std_ios.h not std_iosfwd.h.
5529 * bits/std_iosfwd.h: Move _Ios_Iostate to ios_base.h
5530
55311999-03-09 Benjamin Kosnik <bkoz@rhino.cygnus.com>
5532
5533 * bits/basic_ios.h: Change _M_ctype to _M_fctype.
5534
5535 * bits/std_streambuf.h: Clean, tweak.
5536 * bits/std_fstream.h: Same.
5537 * bits/std_sstream.h: Same.
5538 * bits/streambuf.tcc: Move most member functions out-of-line.
5539 * bits/fstream.tcc: Same.
5540 * bits/streambuf.tcc: Same.
5541
5542 * bits/basic_file.h(filepos_cur): Set correctly.
5543 (filepos_beg): Same.
5544 (seekpos): Change to __c_streampos.
5545 * src/basic_file.cc (std): Change to __c_streampos.
5546
5547 * testsuite/27/27filebuf.cc: Round one is finished.
5548 * testsuite/27/27filebuf-2.tst: New file, final output should match.
5549 * testsuite/27/27filebuf-3.tst: Same.
5550
55511999-03-08 Benjamin Kosnik <bkoz@rhino.cygnus.com>
5552
5553 * bits/basic_file.h: Fix typo, add comments about what to expect
5554 from the various member functions in __basic_file.
5555
5556 * bits/std_fstream.h: Re-do sync/underflow to work
5557 together. Change from sys_read to xsgetn and from sys_write to
5558 xsputn. As it should have been from the beginning. . .
5559
55601999-03-06 Benjamin Kosnik <bkoz@haight.constant.com>
5561
5562 * bits/c++config.h (__GLIBCPP__): Add versioning macro.
5563
5564 * bits/basic_file.h(file_beg): New function.
5565 (file_cur): Ditto.
5566
5567 * testsuite/27/27filebuf.cc: Test in, out, in | out.
5568 * bits/std_fstream.h: More _M_mode refinements.
5569 (synch): Add bits for out mode only.
5570 * bits/std_streambuf.h(xsputn): Correct for filebufs.
5571 * bits/std_sstream.h: Ditto.
5572
55731999-03-03 Benjamin Kosnik <bkoz@cygnus.com>
5574
5575 * bits/std_fstream.h: Fix _M_mode AND with ios_base::openmode.
5576 * testsuite/27/27filebuf.cc: Modify.
5577 * bits/c++config.h: Fix.
5578
55791999-03-02 Benjamin Kosnik <bkoz@tintin.cygnus.com>
5580
5581 * bits/c++config.h: New macro, _G_RESOLVE_LIB_DEFECTS, used to put
5582 code in place that diverges from the final standard, but has been
5583 brought up on the library mailing list.
5584
5585 * bits/std_fstream.h(underflow): Position all three internal
5586 buffer pointers at the same initial position. Re-implement with
5587 basic_filebuf abstraction.
5588 (overflow): Ditto.
5589 (seekoff): Ditto.
5590 (seekpos): Ditto.
5591 * bits/std_sstream.h: Move _M_mode down into base class
5592 basic_streambuf.
5593 * bits/sstream.tcc: Ditto.
5594 * bits/std_streambuf.h: Ditto.
5595
5596 * testsuite/27/27filebuf.cc: Tweak.
5597
55981999-02-27 Benjamin Kosnik <bkoz@slap-happy.cygnus.com>
5599
5600 * bits/std_sstream.h: Ditto.
5601 * bits/std_fstream.h: Fix blip.
5602
56031999-02-26 Benjamin Kosnik <bkoz@happy.cygnus.com>
5604
5605 * C++STYLE: Add cases.
5606 * bits/std_fstream.h: Format.
5607 * bits/std_streambuf.h: Ditto.
5608 * bits/std_sstream.h: Ditto.
5609
5610 * src/basic_file.cc(sys_seek): Fix stack delirium, by keeping
5611 return type for _IO_file_seek and __basic_file::seek the same size.
5612 * bits/basic_file.h: Ditto.
5613
56141999-02-26 Benjamin Kosnik <bkoz@happy.cygnus.com>
5615
5616 * bits/fstream.tcc: Add include guards.
5617 * src/misc-inst.cc: Add instantiations for shared libes.
5618 * src/locale-inst.cc: Add instantiaions for use_facet.
5619 * bits/loccore.h: Remove specialization foward decls for
5620 use_facet<ctype>: perhaps add the whole lot of them later on.
5621 * bits/std_fstream.h: Fix.
5622 * bits/locfacets.h: Ditto.
5623 * src/stdstreams.cc: Disable wide streams for now.
5624
5625 * src/Makefile.am (CXXFLAGS): Change up.
5626 * src/Makefile.in (CXXFLAGS): Ditto.
5627
56281999-02-25 Benjamin Kosnik <bkoz@happy.cygnus.com>
5629
5630 * src/basic_file.cc: Change to ios_base::seekdir from int.
5631 * bits/basic_file.h: Ditto.
5632 * bits/locfacets.h : Fix blip with new guard macros.
5633
56341999-02-25 Benjamin Kosnik <bkoz@cygnus.com>
5635
5636 * stl/bits/stl_config.h (__STL_USE_STD_ALLOCATORS): Minor tweaking.
5637 * bits/c++config.h: Clean. Remove _G_NO_STREAMBUF_ITERATORS and
5638 _G_USE_NAMESPACE.
5639 * amm1/locale: Remove unused defines.
5640 * generic/locale: Ditto.
5641 * src/ios.cc: Ditto.
5642 * src/locale.cc: Ditto.
5643 * src/locale-inst.cc: Ditto.
5644 * src/localename.cc: Ditto.
5645 * src/stdstreams.cc: And here.
5646
5647 * bits/c++config.h (_G_USE_WCHAR_T): Fix.
5648 * bits/loccore.h: Simplify, clean, add wchar_t guards.
5649 * bits/loccore.tcc: Ditto.
5650 * bits/locfacets.h: Ditto.
5651 * src/locale-inst.cc: Ditto.
5652 * bits/locfacets.tcc: Add do_put long long here.
5653
56541999-02-24 Benjamin Kosnik <bkoz@cygnus.com>
5655
5656 * bits/std_streambuf.h: Add cached ctype facet, _M_ctype.
5657 * bits/basic_ios.h: Clean. Replace _M_strbuf with
5658 _M_streambuf. Use cached _M_cvt in basic_streambuf.
5659 * bits/std_istream.h: Replace _M_strbuf with _M_streambuf.
5660 * bits/std_fstream.h: Tweak.
5661
5662 * bits/char_traits.h: Remove fpos definitions from here. . .
5663 * bits/fpos.h: New file, put them here. Eventually, this may allow
5664 the severing of char_traits and fpos dependancies.
5665 * src/Makefile.in: Add fpos.h.
5666 * src/Makefile.am: Ditto.
5667 * bits/std_string.h: Add fpos.h include here.
5668 * bits/std_ios.h: And here.
5669
5670 * bits/std_streambuf.h: Change _M_init to _M_initialized.
5671 * bits/ios_base.h: Remove cstdio include.
5672 * bits/std_ios.h: ... Place here.
5673
56741999-02-23 Benjamin Kosnik <bkoz@loony.cygnus.com>
5675
5676 * src/Makefile.in (CXXFLAGS): Re-add -fvtable-thunks.
5677 * src/Makefile.am (CXXFLAGS): Re-add -fvtable-thunks.
5678
5679 * bits/basic_file.h: Comment, adjust arguments.
5680 * src/basic_file.cc: Ditto.
5681
5682 * bits/std_fstream.h(seekoff): Error is of fpos type, not integral
5683 type: check and convert accordingly. Re-interpet "resultant stream
5684 position" to indicate external byte sequence location, not internal
5685 buffer info.
5686
56871999-02-22 Benjamin Kosnik <bkoz@loony.cygnus.com>
5688
5689 * mkcshadow: And change copyright here.
5690 * src/Makefile.am (CXXFLAGS): Add -g -O2. Add new header
5691 dependencies for stl_pthread_alloc.h, pthread_allocimpl.h,
5692 stl_thread.h, and stl_iterator_base.h.
5693 * src/Makefile.in (CXXFLAGS): Ditto.
5694 * stl/backward/pthread_alloc.h: Remove.
5695
56961999-02-19 Benjamin Kosnik <bkoz@loony.cygnus.com>
5697
5698 * bits/std_streambuf.h (sungetc): Use standard defs for putback
5699 position.
5700 * bits/std_fstream.h (pbackfail): Correct.
5701 (sungetc): Test.
5702 (seekoff): Implement.
5703 (seekpos): Re-do.
5704 * testsuite/27/27filebuf.cc: Add test cases.
5705
57061999-02-18 Benjamin Kosnik <bkoz@loony.cygnus.com>
5707
5708 * bits/std_fstream.h: Go with basic_file's interfaces for dealing
5709 with the external buffers, and stop mucking around with setting
5710 and re-setting the external buf's pointers. Aka, clarity and
5711 simplicity rule the day.
5712 * src/locale.cc: Use memcpy in codecvt::do_in and codecvt::do_out.
5713 Remove partial result and support code.
5714
57151999-02-18 Ulrich Drepper <drepper@cygnus.com>
5716
5717 * configure.in: Add hypot, hypotf, atan2f, expf, and copysignf to
5718 list of function which have to be replaced.
5719 Remove expf from list of functions to test for.
5720 Define USE_LONG_DOUBLE in case the libm has partial support for long
5721 doubles.
5722 * Makefile.in: Regenerated.
5723 * config.h.in: Likewise.
5724 * configure: Likewise.
5725 * libio/Makefile.am (LIBIO_SRCS): Add missing backslash.
5726 * libio/Makefile.in: Regenerated.
5727 * src/Makefile.in: Regenerated.
5728 * string/Makefile.in: Regenerated.
5729 * math/Makefile.am (EXTRA_DIST): Add hypot.c, hypotf.c, hypotl.c,
5730 atan2f.c, expf.c, and $(EXTRA_yes).
5731 (EXTRA_yes): Add signbitl.c mycabsl.c.
5732 (libmath_la_LIBADD): Add $(EXTRA_$(USE_LONG_DOUBLE)).
5733 (libmath_la_SOURCES): remove long double versions.
5734 * math/Makefile.in: Regnerated.
5735 * math/atan2f.c: New file.
5736 * math/copysignf.c: New file.
5737 * math/expf.c: New file.
5738 * math/hypot.c: New file.
5739 * math/hypotf.c: New file.
5740 * math/hypotl.c: New file.
5741 * math/cargf.c: Use correct function and macro names.
5742 * math/ccos.c: Likewise.
5743 * math/ccosh.c: Likewise.
5744 * math/ccoshf.c: Likewise.
5745 * math/ccoshl.c: Likewise.
5746 * math/cexp.c: Likewise.
5747 * math/cexpf.c: Likewise.
5748 * math/cexpl.c: Likewise.
5749 * math/clog.c: Likewise.
5750 * math/clog10.c: Likewise.
5751 * math/clog10f.c: Likewise.
5752 * math/clog10l.c: Likewise.
5753 * math/clogf.c: Likewise.
5754 * math/clogl.c: Likewise.
5755 * math/copysignf.c: Likewise.
5756 * math/csin.c: Likewise.
5757 * math/csinf.c: Likewise.
5758 * math/csinh.c: Likewise.
5759 * math/csinhf.c: Likewise.
5760 * math/csinhl.c: Likewise.
5761 * math/csinl.c: Likewise.
5762 * math/csqrt.c: Likewise.
5763 * math/csqrtf.c: Likewise.
5764 * math/csqrtl.c: Likewise.
5765 * math/ctan.c: Likewise.
5766 * math/ctanf.c: Likewise.
5767 * math/ctanh.c: Likewise.
5768 * math/ctanhf.c: Likewise.
5769 * math/ctanhl.c: Likewise.
5770 * math/ctanl.c: Likewise.
5771
57721999-02-17 Benjamin Kosnik <bkoz@cygnus.com>
5773
5774 * testsuite/27/27filebuf.cc: Add cases.
5775 * testsuite/27/27filebuf-1.txt: Remove inadvertent garbage.
5776 * bits/std_streambuf.h: Simplify, always have one return statement.
5777 * bits/std_fstream.h: Tweak comments in underflow.
5778
57791999-02-17 Ulrich Drepper <drepper@cygnus.com>
5780
5781 * ltmain.sh: Update from libtool 1.2d and fix Solaris problems.
5782 * ltconfig: Likewise.
5783
57841999-02-16 Christophe Pierret <cpierret@businessobjects.com>
5785
5786 * src/locale.cc: Fix assert.
5787
57881999-02-16 Benjamin Kosnik <bkoz@cygnus.com>
5789
5790 FIXME: Still need some kind of solution for undefined math symbols.
5791 * src/Makefile.in (locale-inst.lo): Compile with
5792 -fimplicit-templates to fix Solaris link problem.
5793 * src/Makefile.am: Ditto.
5794 * libio/Makefile.in: Add stdfiles.c so that _IO_list_all is defined.
5795 * libio/Makefile.am: Ditto.
5796 * src/locale.cc: Provide some kind of def for _S_tolower.
5797 * bits/locfacets.h: Fix declarations of ctype<wchar_t> to
5798 match ctype<char> for _S_tolower, _S_toupper, _S_table.
5799
58001999-02-10 Benjamin Kosnik <bkoz@cygnus.com>
5801
5802 * bits/loccore.tcc: Move member-template ctor inline...
5803 * bits/loccore.h: ...here.
5804 * src/locale-inst.cc: Add instantiation here.
5805
5806 * testsuite/27/27stringstream.cc: Tweak.
5807
5808 * bits/ostream.tcc: Include sbuf_iter.h.
5809
5810 * bits/ostream.tcc: Convert *this to ostreambuf_iterator before
5811 passing to num_put, as num_put's first argument is an interator,
5812 not basic_ostream.
5813
5814 * testsuite/make_check_libfree++: New file, runs through the
5815 existing test files in the testsuite directory and makes sure
5816 they link.
5817
58181999-02-10 Brendan Kehoe <brendan@cygnus.com>
5819
5820 * testsuite/21/21compare.cc: Fix typo.
5821 * src/locale.cc (ctype<wchar_t>::_S_{toupper,tolower,table}):
5822 Don't try to provide non-linux versions, since it's impossible to
5823 initialize their const references with the integer 0, no matter
5824 how we try to cast it.
5825
58261999-02-10 Benjamin Kosnik <bkoz@cygnus.com>
5827
5828 * bits/std_locale.h: Move std_vector.h dependency.
5829 * bits/std_ios.h: ...from here.
5830 * bits/std_string.h: ...and here.
5831 * src/locale.cc: ..to here.
5832 * bits/loccore.h: Ditto, add vector forward declaration,
5833 make locale::_Impl data members pointers not containers.
5834 * bits/loccore.tcc: Move out-of-line for now.
5835 * bits/locfacets.h: Move vector dependency from here...
5836 * bits/locfacets.tcc: ...to here.
5837 * src/localename.cc: ..and here.
5838 * src/locale-inst.cc: Add include of locfacets.tcc here.
5839
5840 * stl/bits/stl_string_fwd.h: Make __get_c_string non-static.
5841 * bits/basic_string.h: Can't use sizeof on an incomplete type.
5842 * bits/string.tcc: Tweak.
5843 * src/string.cc: And add __get_c_string def here.
5844
5845 * bits/std_fstream.h: Yeah, comment the fill_n idea out as impractical.
5846
5847 * src/stlinst.cc: Add include of stl_config.h.
5848
58491999-02-09 Benjamin Kosnik <bkoz@cygnus.com>
5850
5851 * stl/bits/std_bitset.h: Update to SGI STL 3.12.
5852 * stl/bits/stl_config.h: Tweak, update.
5853 * stl/bits/std_stdexcept.h: Ditto, change stl_exception to
5854 std_exception.
5855 * stl/bits/std_memory.h: Reconstructed auto_ptr, Ditto.
5856 * stl/bits/std_functional.h: Ditto.
5857
5858 * stl/bits/stl_string.h: New file, SGI's string
5859 implementation. For reference only, corresponding to string in
5860 3.12 source.
5861 * stl/bits/stl_char_traits.h: As above.
5862
5863 * stl/bits/pthread_allocimpl.h: New file corresponding to
5864 pthread_alloc.
5865 * stl/bits/stl_pthread_alloc.h: New file corresponding to
5866 pthread_alloc.h
5867 * stl/bits/stl_threads.h: New file.
5868
5869 Note that SGI STL 3.12's file iterator.h is not used.
5870 * stl/bits/std_iterator.h: Ditto.
5871 * stl/bits/stl_iterator.h: Drop in replace.
5872 * stl/bits/stl_iterator_base.h: New file, drop in replace.
5873
5874 * stl/bits/stl_queue.h, stl_rope.h, stl_set.h, stl_stack.h,
5875 stl_string_fwd.h, stl_tempbuf.h, stl_tree.h, stl_vector.h,
5876 stl_pair.h, stl_multimap.h, stl_multiset.h, stl_list.h,
5877 stl_hashtable.h, stl_hash_set.h, stl_hash_map.h, stl_function.h,
5878 stl_deque.h, stl_alloc.h, stl_algo.h, stl_algobase.h, ropeimpl.h:
5879 Drop-in replace (ie, stop changing __SGI_STL_* to _CPP_BITS_* for
5880 preprocessor guards, but fixup include paths and names according
5881 to new directory layout).
5882
58831999-02-05 Benjamin Kosnik <bkoz@cygnus.com>
5884
5885 * bits/std_fstream.h: Remove _M_open data member.
5886 * bits/fstream.tcc: Ditto.
5887
5888 * src/locale.cc: Tweak.
5889
5890 * bits/std_sstream.h: Simplify.
5891
5892 * bits/std_streambuf.h: Simplify.
5893 (sputc): Use correct definition of "write area."
5894
5895 * bits/std_fstream.h: Fix uflow.
5896 * src/basic_file.cc: Tweak.
5897 * testsuite/27/27filebuf.cc: Add tests.
5898 * testsuite/27/27filebuf-3.txt: Rename to *-2.txt.
5899
59001999-02-02 Ryszard Kabatek <kabatek@chemie.uni-halle.de>
5901
5902 * bits/ios_base.h: Make protected.
5903
59041999-02-01 Ryszard Kabatek <kabatek@chemie.uni-halle.de>
5905
5906 * bits/ios_base.h: Changes in the class ios_base:
5907 Rename _M_exceptions member to _M_exceptions_data.
5908 Make the member functions rdstate(), clear(), exceptions()
5909 and exceptions(iostate) protected and add the "_M_" prefix.
5910 * src/ios.cc: Ditto.
5911 * bits/basic_ios.h: Adapt the changes from ios_base.
5912
59131999-01-29 Benjamin Kosnik <bkoz@cygnus.com>
5914
5915 * bits/std_fstream.h: Remove _M_flags, _M_equilibrate as unnecessary.
5916 * bits/fstream.tcc: Ditto.
5917
5918 * bits/std_fstream.h (underflow): Resize deallocates memory and
5919 resets pointers in the internal cache according to new _M_buf. . dooh!
5920 * src/locale.cc: Mas changes with codecvt::do_in, do_out.
5921
59221999-01-29 Ryszard Kabatek <kabatek@chemie.uni-halle.de>
5923
5924 * stl/bits/std_memory.h: Modify auto_ptr::reset to reflect the
5925 standard.
5926
59271999-01-28 Benjamin Kosnik <bkoz@cygnus.com>
5928
5929 * src/locale.cc (codecvt::do_in): Finer-grained tuning to take
5930 into account partial returns.
5931 (codecvt::do_out): Likewise.
5932
5933 * bits/char_traits.h: Change streamsize to be a signed type, as
5934 required by 27.4.1 Types p 2. (Changing to _IO_ssize_t.)
5935 * bits/std_streambuf.h: Make
5936 in_avail() and showmanyc() have streamsize as return types, so
5937 that showmanyc()'s return of eof won't underflow in_avail's return
5938 value and give a bogus result.
5939 * src/misc-inst.cc: And more changes. . .
5940
5941 * bits/std_streambuf.h (basic_streambuf): Add _M_buf_unified to keep
5942 track of joint in/out pointers into the internal buffer.
5943 (sbumpc): Add check for _M_buf_unified.
5944 (sputbackc): Ditto.
5945 (sungetc): Ditto.
5946
5947 * testsuite/27/27filebuf.cc: Add cases.
5948 * testsuite/27/27stringbuf.cc: Add showmanyc case.
5949
5950 * bits/std_fstream.h (close): Fix logic error.
5951 (open): Initialize internal pointers based on _M_buf and _M_buf_size.
5952 (showmanyc): Add underflow component, to match the standard.
5953
5954 * bits/fstream.tcc: Ditto.
5955
59561999-01-27 Benjamin Kosnik <bkoz@cygnus.com>
5957
5958 * bits/basic_file.h: Match vtables w/ _IO_FILE_plus.
5959 * src/basic_file.cc: Ditto.
5960 * src/Makefile.in: Add -fvtable-thunks to CXXFLAGS: preferred
5961 format for dealing with _IO_file in libio.
5962
59631999-01-27 Ulrich Drepper <drepper@cygnus.com>
5964
5965 * src/basic_file.cc: Include fcntl.h.
5966
59671999-01-27 Benjamin Kosnik <bkoz@cygnus.com>
5968
5969 * libio/Makefile.in: Add fileops.lo, genops.lo to objects to debug
5970 libio calls.
5971 * bits/std_streambuf.h: Redefine read posion.
5972
5973 * bits/std_fstream.h: Temporary hack to get vtables working again.
5974 * bits/basic_file.h: Revert.
5975 * src/basic_file.cc: Ditto.
5976 * testsuite/27/27filebuf.cc: Tweak.
5977
59781999-01-26 Benjamin Kosnik <bkoz@cygnus.com>
5979
5980 * bits/basic_file.h: Add showmanyc, underflow. .
5981 * src/basic_file.cc: Ditto.
5982
5983 * bits/std_fstream.h (showmanyc): Add bits to ping libio to see if more
5984 chars can be read.
5985
5986 * testsuite/27/27filebuf.cc: Add testcases.
5987 * src/basic_file.cc: Add O_CREAT to open calls with
5988 ios_base::trunc as part of the open mode.
5989
59901999-01-26 Ryszard Kabatek <kabatek@chemie.uni-halle.de>
5991
5992 * bits/basic_ios.h: fix basic_ios::exceptions(iostate)
5993
59941999-01-25 Benjamin Kosnik <bkoz@nabi.net>
5995
5996 * src/ios.cc (clear): Correct typo.
5997 * bits/ios_base.h: Tweak spacing.
5998
59991999-01-25 Ryszard Kabatek <kabatek@chemie.uni-halle.de>
6000
6001 * bits/basic_ios.h: fix basic_ios::fail()
6002
60031999-01-25 Benjamin Kosnik <bkoz@loony.cygnus.com>
6004
6005 * bits/basic_file.h: Include libioP.h from libio instead of here.
6006 * bits/iolibio.h: Remove.
6007 * bits/libio.h: Remove.
6008
60091999-01-22 Benjamin Kosnik <bkoz@lunatic.cygnus.com>
6010
6011 * bits/std_fstream.h: Tweak cvt-> in call for newer egcs compilers.
6012
60131999-01-22 Ulrich Drepper <drepper@cygnus.com>
6014
6015 * Makefile.am (SUBDIRS): Add libio.
6016 * configure.in: Add rule to test for glibc2.
6017
6018 * src/Makefile.am (INCLUDES): Add -I to libio subdir.
6019 (libstdc___la_LIBADD): Add libio.la.
6020
60211999-01-21 Benjamin Kosnik <bkoz@cygnus.com>
6022
6023 * bits/basic_file.h: Make new abstraction for underlying C library
6024 FILE, named __basic_file.
6025 * src/basic_file.cc: New file.
6026 * bits/os_raw.h: Delete.
6027 * src/os_raw.cc: Delete.
6028 * src/Makefile.in: Tweak.
6029 * src/Makefile.am: Tweak.
6030 * bits/iolibio.h: Add this here, for the time being.
6031 * bits/libioP.h: Ditto.
6032
6033 * bits/ios_base.h: Delete unused defines.
6034 * src/locale.cc (codecvt<char, char, mbstate_t>::do_in): Use
6035 strcpy to copy between the two buffers.
6036
6037 * testsuite/27/27stringbuf.cc: Change license, fix in_avail tests.
6038 * testsuite/27/27filebuf.cc: New file.
6039 * testsuite/27/27filebuf-1.txt: Data file for above test.
6040 * testsuite/27/27filebuf-2.txt: Ditto.
6041
6042 * bits/std_streambuf.h (uflow): Re-implement default.
6043 * bits/std_fstream.h: Set _M_buf_size based on cstdio's BUFSIZ.
6044 Re-implement virtual functions.
6045 * bits/fstream.tcc: Delete unused mf's.
6046
60471998-12-31 Benjamin Kosnik <bkoz@lunatic.cygnus.com>
6048
6049 * bits/fstream.tcc: Add fstream ctor for cin/cout/etc.
6050 * bits/std_fstream.h: Ditto.
6051 * src/stdstreams.cc: Ditto.
6052
6053 * math/cpowl.c: Fix header typo with last change.
6054
60551998-12-31 Benjamin Kosnik <bkoz@loony.cygnus.com>
6056
6057 * COPYING: New file (GPL v 2).
6058 * LICENSE.STD: Remove.
6059 * ./*: Change license.
6060
60611998-12-30 Benjamin Kosnik <bkoz@haight.constant.com>
6062
6063 * bits/std_streambuf.h (std): Remove static on _M_init.
6064 * bits/streambuf.tcc (std): Ditto.
6065
6066 * bits/std_fstream.h: Add changes as discussed with Nathan, including
6067 state_type and codecvt_type members, the allocation of an internal
6068 buffer, the streamlined codecvt calls, etc.
6069
60701998-12-21 Benjamin Kosnik <bkoz@haight.constant.com>
6071
6072 * bits/std_sstream.h: Tweak.
6073 * bits/fstream.tcc: Remove unused stubs.
6074 * bits/std_fstream.h: Tweak.
6075
60761998-12-17 Benjamin Kosnik <bkoz@tintin.cygnus.com>
6077
6078 * bits/std_streambuf.h: Move _IO_file_flags into basic_filebuf.
6079 Remove unused _IO_* members, possibly put into filebuf, which may
6080 need them.
6081 * bits/std_fstream.h: Add _M_flag.
6082 * bits/sbuf_iter.h: Tweak.
6083
6084 * bits/std_cstdio.h: Add SEEK_SET, SEEK_END, SEEK_CUR.
6085 * bits/ios_base.h: Use.
6086
6087 * src/stdstreams.cc: Modify to reflect standard ctors for
6088 filebuf.
6089 * src/misc-inst.cc: Ditto.
6090
6091 * bits/os_raw.h: Wrap in std namespace. Model parameters on
6092 underlying C library calls instead of the underlying unix
6093 filesystem.
6094 * src/os_raw.cc (_S_os_open): Use fopen, and compute a mode
6095 string as per p.659.
6096 (_S_os_close): Model on fopen.
6097 (_S_os_read): Model on fread.
6098 (_S_os_write): Model on fwrite.
6099 (_S_os_seek): Model on fseek.
6100
6101 * bits/ios_base.h: Tweak.
6102 * bits/std_iosfwd.h: Wrap libio.h include with extern "C".
6103 * bits/std_sstream.h: Tweak.
6104 * bits/sstream.tcc: Remove old, uncalled code.
6105 * bits/std_fstream.h: Major reconstruction.
6106 * bits/fstream.tcc: Disable for the time being.
6107
61081998-12-11 Benjamin Kosnik <bkoz@haight.constant.com>
6109
6110 * bits/basic_string.h: Fix insert method.
6111 * stl/bits/stl_iterator.h: Remove previous hack.
6112 * bits/std_streambuf.h (sbumpc): Correct increment/return oddness.
6113 * bits/std_sstream.h: Fix more regressions.
6114 * testsuite/27/27stringbuf.C: Add (almost) complete tests.
6115
61161998-12-09 Benjamin Kosnik <bkoz@loony.cygnus.com>
6117
6118 * bits/basic_string.h: Tweak.
6119
6120 * stl/bits/stl_iterator.h: Specialize iterator_traits for int so
6121 that string::append can be instantiated. HACK--checkin
6122 basic_string::iterator class.
6123
61241998-12-07 Benjamin Kosnik <bkoz@haight.constant.com>
6125
6126 * bits/std_sstream.h: Tweak.
6127 * bits/sstream.tcc: Tweak ctors.
6128
6129 FIXME invalid friend defs. . WHERE ARE THEY??
6130
6131 * bits/sbuf_iter.h (istreambuf_iterator::equal): Change to new
6132 names for basic_streambuf data members.
6133
6134 * bits/std_streambuf.h: Add getloc() initialization bits.
6135 basic_streambuf(): Initialize with global locale data.
6136 imbue(): Set _M_init.
6137
6138 * bits/std_streambuf.h(seekoff, seekpos): Complete with invalid
6139 stream pos == pos_type(off_type(-1)).
6140 in_avail(): Complete default implementation.
6141 snextc, sbumpc, sputbackc, sungetc, sputc, setg, xsputn,
6142 underflow, uflow, xsgetn, showmany, sync: Ditto.
6143
6144 * bits/std_streambuf.h: _M_snextc_helper(): Remove.
6145
6146 * bits/streambuf.tcc (sputbackc): Temporarily remove, need to
6147 re-populate with in-line member functions that are too big. Add
6148 initialization for _M_init.
6149
61501998-12-03 Benjamin Kosnik <bkoz@cygnus.com>
6151
6152 * bits/sstream.tcc: Convert _Allocator to _Alloc. Add typedefs
6153 for basic_string and basic_streambuf. Scope _IO_buf_* pointers to
6154 streambuf_type.
6155
6156 * src/stdstreams.cc (std): Disable wchar_t instantiations.
6157
6158 * bits/c++config.h (_G_DEPRICATED): Add.
6159 (_G_USE_WCHAR_T): Add.
6160 * bits/std_streambuf.h: Radical reconstruction of basic_streambuf.
6161 Take out _Streambuf_base. Put _IO_FILE data member in basic_filebuf.
6162 * bits/streambuf.tcc (sputbackc): Remove ctor anti-def, Tweak.
6163 * bits/std_fstream.h: Add comment for implementation.
6164 * src/streambuf.cc: Remove.
6165 * src/Makefile.in: Remove streambuf.lo.
6166 * src/misc-inst.cc: Tweak.
6167
61681998-12-02 Benjamin Kosnik <bkoz@cygnus.com>
6169
6170 * bits/std_sstream.h: Add const_cast to rdbuf returns.
6171 * testsuite/27stringstream.C: Modify.
6172
61731998-11-25 Benjamin Kosnik <bkoz@haight.constant.com>
6174
6175 * src/Makefile.in (libstdc___la_OBJECTS): Add streambuf.lo.
6176 (libstdc___la_SOURCES): Ditto.
6177
6178 * bits/streambuf.tcc: Tweak.
6179
6180 * src/streambuf.cc: New file, add out-of-line definitions for
6181 _Streambuf_base.
6182
6183 * src/misc-inst.cc: Remove _Streambuf_base instantiations.
6184 Comment out wchar_t versions of the buffer instantiations, for now.
6185
6186 * bits/std_streambuf.h: Wrap libio.h include with extern "C".
6187 Remove template wrapper around _Streambuf_base.
6188 Move IO_* data members into _Streambuf_base.
6189 Move _Streambuf_base members into streambuf.tcc.
6190
6191 * bits/c++config.h (_G_USE_LIBIO): Enable.
6192
61931998-11-02 Nathan Myers <ncm@cantrip.org>
6194
6195 * CHECKLIST: downgrade iterator implementations
6196 * DESIGN: fill out notes about unimplemented features
6197
61981998-10-31 Nathan Myers <ncm@cantrip.org>
6199
6200 * CHECKLIST: itemized list of all interfaces, and status of each.
6201
62021998-10-30 Nathan Myers <ncm@cantrip.org>
6203
6204 * RELEASE-NOTES: add notes about optional includes, linking, running
6205 * src/Makefile.am: handle header installs properly
6206 * src/Makefile.in: regenerate from new src/Makefile.am
6207
62081998-10-30 Benjamin Kosnik <bkoz@loony.cygnus.com>
6209
6210 * bits/basic_string.h: Revert npos pending ciso646.
6211 * src/Makefile.am: Revert CXX flags for now.
6212 * src/Makefile.in: Ditto.
6213
62141998-10-30 Brendan Kehoe <brendan@cygnus.com>
6215
6216 * bits/std_sstream.h: Re-order ctors to put base before member
6217 inits.
6218
62191998-10-30 Ryszard Kabatek <kabatek@chemie.uni-halle.de>
6220
6221 * stl/bits/std_memory.h: Fix typo.
6222
62231998-10-30 Nathan Myers <ncm@cantrip.org>
6224
6225 * src/string[A-Z]+.cc: change back to include "string.cc".
6226 * src/Makefile.am: revert filename changes. We need a different
6227 way to keep filenames in std/ from confusing Make.
6228 * bits/basic_string.h: define _S_max_size right, return it from
6229 string::max_size(); churn definition of npos again.
6230 * bits/string.tcc: fix _S_frob_size to avoid uint overflow.
6231 * bits/ios.cc: remove #ifdef on ios_base locale member initialization
6232 * BUGS: clear cruft.
6233 * C++STYLE: Touchup for release.
6234 * CHECKLIST: Touchup for release.
6235 * DESIGN: New file.
6236 * LICENSE.STD: Add requirement to retain copyrights and to provide
6237 the license with any copies.
6238 * README: Update for release.
6239 * TODO: Minor touchup for release.
6240 * RELEASE-NOTES: prepare for release
6241
62421998-10-29 Ulrich Drepper <drepper@cygnus.com>
6243
6244 * src/string[A-Z]+.cc: Include stdstring.cc, not string.cc.
6245
6246 * src/Makefile.am (CXXFLAGS): Define _GNU_SOURCE.
6247
6248 * src/Makefile.am (CXXLINK): New variable. Make sure we don't use
6249 CXX to generate the shared object.
6250
6251 * src/Makefile.am (headers): Remove duplicated char_traits.h.
6252
62531998-10-29 Brendan Kehoe <brendan@cygnus.com>
6254
6255 * bits/basic_string.h (basic_string<>::max_size): Subtract 1, not
6256 2, from npos, solving infinite loop problems.
6257
62581998-10-29 18:41 Ulrich Drepper <drepper@cygnus.com>
6259
6260 * src/Makefile.am: Add rules to install headers.
6261
62621998-10-29 Nathan Myers <ncm@cantrip.org>
6263
6264 * bits/std_ostream.h: Remove #ifdef on operator<< for long double
6265 * bits/ostream.tcc: Remove #ifdef on operator<< for long double
6266 * shadow/libio.h:
6267 * shadow/unistd.h:
6268 * shadow/bits/wrap_libio.h:
6269 * shadow/bits/wrap_unistd.h: New files.
6270
62711998-10-29 Brendan Kehoe <brendan@cygnus.com>
6272
6273 * bits/ostream.tcc (operator<<): Wrap with #ifdef
6274 _G_HAVE_LONG_DOUBLE_IO, to match bits/std_ostream.h.
6275
62761998-10-29 Ulrich Drepper <drepper@cygnus.com>
6277
6278 * src/Makefile.am: Add temporarily rules to make sure misc-inst.cc
6279 is not compiled with -fno-implicit-templates in effect.
6280
6281 * src/Makefile.am (EXTRA_SOURCES): Add string.cc and wstring.cc here.
6282 (libstdc___la_SOURCES): Add all the string*.cc and wstring*.cc files.
6283 * src/stringADDCS.cc: Wrapper around string.cc to define individual
6284 function.
6285 * src/stringADDPS.cc: Likewise.
6286 * src/stringADDSC.cc: Likewise.
6287 * src/stringADDSP.cc: Likewise.
6288 * src/stringADDSS.cc: Likewise.
6289 * src/stringBIST.cc: Likewise.
6290 * src/stringBOST.cc: Likewise.
6291 * src/stringCHTR.cc: Likewise.
6292 * src/stringEQPS.cc: Likewise.
6293 * src/stringEQSP.cc: Likewise.
6294 * src/stringEQSS.cc: Likewise.
6295 * src/stringEXTRA.cc: Likewise.
6296 * src/stringGEPS.cc: Likewise.
6297 * src/stringGESP.cc: Likewise.
6298 * src/stringGESS.cc: Likewise.
6299 * src/stringGETLI.cc: Likewise.
6300 * src/stringGTPS.cc: Likewise.
6301 * src/stringGTSP.cc: Likewise.
6302 * src/stringGTSS.cc: Likewise.
6303 * src/stringINSER.cc: Likewise.
6304 * src/stringLEPS.cc: Likewise.
6305 * src/stringLESP.cc: Likewise.
6306 * src/stringLESS.cc: Likewise.
6307 * src/stringLTPS.cc: Likewise.
6308 * src/stringLTSP.cc: Likewise.
6309 * src/stringLTSS.cc: Likewise.
6310 * src/stringMAIN.cc: Likewise.
6311 * src/stringNEPS.cc: Likewise.
6312 * src/stringNESP.cc: Likewise.
6313 * src/stringNESS.cc: Likewise.
6314 * src/stringSCOPY.cc: Likewise.
6315 * src/wstringADDCS.cc: Wrapper around wstring.cc to define individual
6316 functions.
6317 * src/wstringADDPS.cc: Likewise.
6318 * src/wstringADDSC.cc: Likewise.
6319 * src/wstringADDSP.cc: Likewise.
6320 * src/wstringADDSS.cc: Likewise.
6321 * src/wstringBIST.cc: Likewise.
6322 * src/wstringBOST.cc: Likewise.
6323 * src/wstringCHTR.cc: Likewise.
6324 * src/wstringEQPS.cc: Likewise.
6325 * src/wstringEQSP.cc: Likewise.
6326 * src/wstringEQSS.cc: Likewise.
6327 * src/wstringEXTRA.cc: Likewise.
6328 * src/wstringGEPS.cc: Likewise.
6329 * src/wstringGESP.cc: Likewise.
6330 * src/wstringGESS.cc: Likewise.
6331 * src/wstringGETLI.cc: Likewise.
6332 * src/wstringGTPS.cc: Likewise.
6333 * src/wstringGTSP.cc: Likewise.
6334 * src/wstringGTSS.cc: Likewise.
6335 * src/wstringINSER.cc: Likewise.
6336 * src/wstringLEPS.cc: Likewise.
6337 * src/wstringLESP.cc: Likewise.
6338 * src/wstringLESS.cc: Likewise.
6339 * src/wstringLTPS.cc: Likewise.
6340 * src/wstringLTSP.cc: Likewise.
6341 * src/wstringLTSS.cc: Likewise.
6342 * src/wstringMAIN.cc: Likewise.
6343 * src/wstringNEPS.cc: Likewise.
6344 * src/wstringNESP.cc: Likewise.
6345 * src/wstringNESS.cc: Likewise.
6346 * src/wstringSCOPY.cc: Likewise.
6347 * src/string.cc: Remove now unneeded #defines now.
6348
63491998-10-29 Nathan Myers <ncm@cantrip.org>
6350
6351 * bits/locfacets.tcc: Define num_put::put(... const void*), improve
6352 integer formatting.
6353 * bits/ostream.tcc: Delete cruft, rewrite various op<< as members,
6354 add definitions for double, long double, const void*.
6355 * bits/std_ostream.h: Move op<<'s back into class ostream,
6356 define some in-line.
6357 * bits/string.tcc: fix unnecessary-copying bug in op[], typos in
6358 string construction from input iterators that Brendan reported.
6359
6360
63611998-10-28 Brendan Kehoe <brendan@cygnus.com>
6362
6363 * stl/bits/stl_pair.h (op!=, op>, p<=, op>=): Add missing definitions.
6364
6365 * bits/valarray_meta.h (class _Constant): Move declaration to the
6366 top, so the rest of the file can grok it.
6367 (_ApplyBinaryFunction::operator[]): Add missing parenthesis.
6368
6369 * bits/std_sstream.h (basic_ostringstream::str): Fix typo of extra
6370 semicolon.
6371 (basic_stringstream::str, both instances): Likewise.
6372
63731998-10-28 Nathan Myers <ncm@cantrip.org>
6374
6375 * bits/locfacets.h: fix num_put<>::falsename()
6376 * bits/locfacets.tcc: fix _Format_cache<>::_M_populate bool name init
6377 * testsuite/27/27octfmt.C, testsuite/27/27octfmt.C: new tests
6378 * bits/locfacets.tcc: touch up _S_group_digits.
6379 * src/misc-inst.cc: adjust _S_group_digits insts to match.
6380
63811998-10-27 Nathan Myers <ncm@cantrip.org>
6382
6383 * stl/bits/stl_config.h: Turn off long long support, for now.
6384 * src/locale-inst.cc: Instantiate num_put<> only for
6385 ostreambuf_iterator, num_get only for istreambuf_iterator.
6386 * src/misc-inst.cc: Delete duplicate locale-related instantiations,
6387 add lots of new instantiations for num_put support function templates;
6388 remove junk about __match_parallel for ostreambuf_iterator.
6389
63901998-10-27 Nathan Myers <ncm@cantrip.org>
6391
6392 * bits/locfacets.tcc: Make num_put's digit grouping work.
6393 * bits/string.tcc: More uglification.
6394 * src/ios.cc: initialize format cache right
6395
63961998-10-26 Nathan Myers <ncm@cantrip.org>
6397
6398 * bits/basic_string.h: Uglify more names.
6399 * bits/fstream.tcc: Rewrite some filebut output handling.
6400 * bits/ios_base.h: Cosmetic.
6401 * bits/locfacets.h: Changes to _Format_cache for support of num_put.
6402 Also, specialize its default ctor for optimal default case.
6403 #ifdef out "long long" prototypes for now.
6404 * bits/locfacets.tcc: Do complete, optimized num_put<>::do_put
6405 implementation for integer types. (Still needs optimized
6406 std::copy() applied to ostreambuf_iterator to be optimal.)
6407 * bits/ostream.tcc: Write operator<< for long, bool types.
6408 Make other operators<< non-members, per spec. (Many still
6409 not implemented.) Identify those that fail to create a sentry.
6410 * bits/sbuf_iter: Cosmetic.
6411 * bits/std_fstream.h: Add some filebuf members.
6412 * bits/std_locale.h: Include <limits> for use in bits/locfacets.h
6413 * bits/std_ostream.h: Make member operators<< global, per spec.
6414 (Should do the same in std_istream.h.)
6415 * bits/std_string.h: Include <limits> for use in bits/locfacets.h
6416 * bits/string.tcc: Uglify names
6417 * shadow/bits/std_cstdlib.h: Optimize std::div and std::ldiv.
6418 * src/ios.cc: Specialize _Format_cache<> for char and wchar_t,
6419 for optimal default behavior.
6420
64211998-10-26 Benjamin Kosnik <bkoz@loony.cygnus.com>
6422
6423 * src/Makefile.in (libstdc___la_SOURCES): Add misc-inst.cc again.
6424
64251998-10-21 Nathan Myers <ncm@cantrip.org>
6426
6427 * src/locale.cc: make ctype operations actually work for glibc
6428 * CHECKLIST: add a comprehensive (i.e. huge) implementation
6429 checklist of stdlib facilities. Not filled in yet.
6430
64311998-10-20 Nathan Myers <ncm@cantrip.org>
6432
6433 * bits/string.tcc: fix patching NULs on string ends.
6434
64351998-10-19 Nathan Myers <ncm@cantrip.org>
6436
6437 * bits/std_iosfwd.h: eliminate "basic_" prefix on streambuf
6438 iterator forward declarations
6439 * bits/sbuf_iter.h: eliminate default template argument definitions
6440 on streambuf iterators (rely on <iosfwd> decls).
6441 * TODO: add note about lazy facet construction
6442 * bits/basic_ios.h: hit operator void* again. This should be the
6443 last time we need to touch it.
6444 * bits/basic_ios.h: copyfmt now returns *this.
6445 * bits/basic_string.h: fix npos again. npos cannot be defined as zero.
6446 * bits/basic_string.h: put back overloaded constructors; adjust
6447 behavior for default allocator on copy constructor.
6448 * bits/char_traits.h: make not_eof return correct type.
6449 * bits/loccore.h: remove call to bits/std_stdexcept.h; subincludes
6450 cannot be in non-standard headers or we get include loops (bad)
6451 * bits/loccore.h: delete ifdef'd out workarounds for old compiler bugs.
6452 * bits/loccore.h: add apparatus to support lazy construction of
6453 facets.
6454 * bits/locfacets.tcc: Uglify names in __match_parallel decl.
6455 * bits/std_ios.h: add include of <typeinfo> to get bad_cast for
6456 locale use_facet<> failure.
6457 * bits/std_locale.h: same.
6458 * bits/std_string.h: same.
6459 * bits/std_stdexcept.h: change exception member __msg from a
6460 reference to a regular object.
6461 * bits/string.tcc: add pasting a NUL on the end of strings after
6462 each operation. We had already left room for it, but previously
6463 plugged it only on a call to c_str(), but the WG changed the
6464 requirement when I wasn't looking. (Can't leave them alone for
6465 a second without they break something else.)
6466 * bits/valarray_meta.h: add Gaby's changes from 981018.
6467 * src/locale.cc: add new type _Bad_use_facet to be thrown on
6468 failure of use_facet<>().
6469 * src/stdexcept.cc: remove pragma, remove bkoz's #if 0,
6470 comment out leftover member definitions
6471
64721998-10-16 Ulrich Drepper <drepper@cygnus.com>
6473
6474 * string/Makefile.am: Revert last change.
6475 * math/Makefile.am: Likewise.
6476
64771998-10-15 Benjamin Kosnik <bkoz@haight.constant.com>
6478
6479 * bits/std_sstream.h: Fix typo.
6480
64811998-10-15 Benjamin Kosnik <bkoz@haight.constant.com>
6482
6483 * src/Makefile.am (libstdc___la_SOURCES): Add misc-inst.cc.
6484
6485 * bits/std_sstream.h: Add typedefs, member definitions. Clean.
6486 * bits/std_stdexcept.h: Remove.
6487
64881998-10-15 Benjamin Kosnik <bkoz@haight.constant.com>
6489
6490 * src/misc-inst.cc: Tweak again.
6491
6492 * bits/std_sstream.h: Move out-of-line definitions to sstream.tcc.
6493 * bits/sstream.tcc: New file.
6494
64951998-10-15 Ulrich Drepper <drepper@cygnus.com>
6496
6497 * configure.in: Test for machine/param.h, sys/machine.h and fp.h.
6498 Don't run AC_C_BIGENDIAN if machine/param.h or sys/machine.h are
6499 available.
6500
6501 * math/mathconf.h: Include sys/machine.h, machine/param.h and fp.h
6502 if available.
6503 (INFINITE_P): Use IS_INF macro if available.
6504
65051998-10-15 Ulrich Drepper <drepper@cygnus.com>
6506
6507 * math/Makefile.am (EXTRA_LTLIBRARIES): Renamed from
6508 noinst_LTLIBRARIES.
6509 * string/Makefile.am: Likewise.
6510
65111998-10-15 Ulrich Drepper <drepper@cygnus.com>
6512
6513 * configure.in (AC_CHECK_FUNCS): Add finite, qfinite, fpclass, and
6514 qfpclass.
6515 (AC_CHECK_HEADERS): Add machine/endian.h. If no header specifying
6516 endianess is available run AC_C_BIGENDIAN.
6517
6518 * math/clog10l.c: Add ugly hack around bug in Irix 6.2 header until
6519 fixincludes is fixed.
6520 * math/clogl.c: Likewise.
6521 * math/csqrtl.c: Likewise.
6522 * math/mycabsl.c: Likewise.
6523
6524 * math/mathconf.h: Include machine/endian.h if possible. If no
6525 header describing endianess is available rely on WORDS_BIGENDIAN
6526 macro.
6527 (FINITE_P, FINITEF_P, FINITEL_P): Use finite functino if available.
6528 (INFINITE_P, INFINITEF_P, INFINITEL_P): Use fpclass function if
6529 available.
6530
6531 * src/complex.cc (polar): Don't use sincos on OSF machines.
6532
65331998-10-09 Benjamin Kosnik <bkoz@loony.cygnus.com>
6534
6535 * src/locale-inst.cc: Don't instantiate time_get for
6536 ostreambuf_iterators as time_get::do_get_weekday and
6537 time_get::do_get_monthname use __match_parallel, which is illegal
6538 for ostreambuf_iterators to use, as they don't have operator== or
6539 operator!=.
6540 * bits/std_stdexcept.h: Add dtor definitions.
6541 Use stl/bits/std_stdexcept.h instead of this file?
6542 * bits/sbuf_iter.h : Tweak.
6543 * src/misc-inst.cc: Tweak.
6544
65451998-10-09 Benjamin Kosnik <bkoz@haight.constant.com>
6546
6547 * bits/std_stdexcept.h: New file.
6548 * src/stdexcept.cc: Define the following:
6549 logic_error::what()
6550 runtime_error::what()
6551
6552 * src/misc-inst.cc: New file.
6553 * src/Makefile.in (libstdc___la_SOURCES): Add misc-inst.cc.
6554 (libstdc___la_OBJECTS): Add misc-inst.lo.
6555
6556 * bits/basic_string.h: Disable non-standard ctor declarations.
6557 * bits/string.tcc: Disable definitions as well.
6558 * src/string.cc: Disable <ios> dependancies.
6559 * bits/sbuf_iter.h (std): Add default to template parameter for
6560 ostreambuf_iterator and istreambuf_iterator.
6561 * bits/std_iosfwd.h: Change istreambuf_iterator to
6562 basic_istreambuf_iterator. Likewise for ostreambuf.
6563 * bits/locfacets.tcc (__match_parallel): Fix typo.
6564 * src/ios.cc (imbue): Remove the _G_HAVE_LOCALE guards around
6565 ios_base::imbue.
6566 * bits/std_streambuf.h: Define _Streambuf_base::getloc().
6567 * bits/std_istream.h: Define the following:
6568 get (basic_streambuf<char_type,_Traits>& __sb, char_type __delim)
6569 get (char_type* __s, streamsize __n, char_type __delim);
6570 getline (char_type* __s, streamsize __n, char_type __delim)
6571 * bits/loccore.h : FIXME friend template code for use_facet.
6572 Add std_stdexcept.h include so that range_error will be defined.
6573 Add explicit conversion to string for range_error throws. (HACK?)
6574
65751998-10-8 Ulrich Drepper <drepepr@cygnus.com>
6576
6577 * configure.in: Check for sincos, sincosf, and sincosl.
6578 * src/complex.cc (polar): Use sincos if available.
6579
6580 * bits/c++config.h: Fix hack to get LONG_LONG* definitions on Linux.
6581 * stl/bits/std_limits.h: Include bits/c++config.h. HACK!!!
6582
6583 * math/clog10.c: Fix typo (FP_INIFITE_P -> INFINITE_P).
6584
6585 * math/cpow.c: Use c_log, not clog.
6586 * math/cpowf.c: Likewise.
6587 * math/cpowl.c: Likewise.
6588
6589 * math/cexp.c: Remove unused fpclassify calls. Use FINITE_P instead
6590 of isfinite call.
6591
6592 * math/mathconf.h (FINITE_P, FINITEF_P, FINITEL_P): Define using
6593 isfinite macro if it is available.
6594 (INFINITE_P, INFINITEF_P, INFINITEL_P): Define using isinf macro.
6595
6596 * math/ccosf.c: Use appropriate test macros for this type.
6597 * math/ccoshf.c: Likewise.
6598 * math/ccoshl.c: Likewise.
6599 * math/ccosl.c: Likewise.
6600 * math/cexpf.c: Likewise.
6601 * math/cexpl.c: Likewise.
6602 * math/clog10f.c: Likewise.
6603 * math/clog10l.c: Likewise.
6604 * math/clogf.c: Likewise.
6605 * math/clogl.c: Likewise.
6606 * math/csinf.c: Likewise.
6607 * math/csinhf.c: Likewise.
6608 * math/csinhl.c: Likewise.
6609 * math/csinl.c: Likewise.
6610 * math/csqrtf.c: Likewise.
6611 * math/csqrtl.c: Likewise.
6612 * math/ctanf.c: Likewise.
6613 * math/ctanhf.c: Likewise.
6614 * math/ctanhl.c: Likewise.
6615 * math/ctanl.c: Likewise.
6616
66171998-10-06 Benjamin Kosnik <bkoz@bliss.nabi.net>
6618
6619 * bits/basic_ios.h: Fix previous change.
6620
66211998-10-06 Benjamin Kosnik <bkoz@bliss.nabi.net>
6622
6623 * bits/basic_ios.h: Add const_cast<basic_ios&>
6624 (operator void*): As per 5.2.9 p 2, make sure static_cast is
6625 well-formed.
6626 * bits/char_traits.h: No _CharT for specialization, change to 0.
6627 * bits/basic_string.h: As per 9.4.2 p4, initialize with
6628 constant-initializer.
6629 * bits/locfacets.tcc: Add template parameter to initialization list.
6630
66311998-10-02 Benjamin Kosnik <bkoz@loony.cygnus.com>
6632
6633 * bits/basic_string.h: Should just be <, not <=.
6634
66351998-10-01 Benjamin Kosnik <bkoz@bliss.nabi.net>
6636
6637 * bits/string.tcc (compare): Fix for strings that are similar, but
6638 not the same length.
6639
66401998-09-04 Brendan Kehoe <brendan@cygnus.com>
6641
6642 * bits/c++config.h: For __linux__, define _GNU_SOURCE. This is
6643 required for us to get LONG_LONG_{MIN,MAX} out of gcc's limits.h.
6644 We can't check for __GLIBC__ here, since this header can be read
6645 before any system one (that would lead to features.h) being used.
6646
6647 * stl/bits/stl_config.h (__STL_LONG_LONG): Re-enabled
6648
6649 * stl/bits/std_limits.h [__STL_LONG_LONG]: Fix usage to use
6650 LONG_LONG_MIN, LONG_LONG_MAX, and ULONG_LONG_MAX.
6651
6652 * stl/bits/stl_config.h: Don't do __STL_LONG_LONG, it uses
6653 LONGLONG_{MIN,MAX} which I can't find the origin of.
6654
66551998-09-03 Brendan Kehoe <brendan@cygnus.com>
6656
6657 * stl/bits/stl_iterator.h: Add extern decl of cin for now; where
6658 should this come from, if not iostream.h?
6659 (class istream_iterator): Make the new operator!= a friend also.
6660
6661 * stl/bits/stl_config.h: Define __STL_HAS_WCHAR_T,
6662 __STL_MEMBER_TEMPLATE_CLASSES, and __STL_LONG_LONG. Don't include
6663 _G_config.h like the egcs one does.
6664
66651998-09-01 Brendan Kehoe <brendan@cygnus.com>
6666
6667 * bits/string.tcc: Call `_M_destroy' instead of `destroy'.
6668
6669 * bits/valarray_meta.h: Throughout, rename _Expr typedefs to be
6670 _Expr1 (or _Expr_def if it's taken), and change definitions.
6671 Avoids redecl of the template parm.
6672
6673 * bits/string.tcc (basic_string copy ctor): Fix typo in declaration.
6674 (operator>>): Initialize __ERROR with ios_base::goodbit, not 0.
6675
6676 * bits/std_streambuf.h (_POSIX_SOURCE): Only define if it's not
6677 already done.
6678
6679 * src/locale-inst.cc: New file, **TOTAL HACK**. There has GOT to
6680 be a better way to do this.
6681
6682 * src/stlinst.cc: New file.
6683
6684 * BUGS: New file, with various discovered bugs that need to be
6685 fixed.
6686
6687 * Makefile.in, math/Makefile.in, string/Makefile.in,
6688 src/Makefile.in: Reran automake.
6689
6690 Workarounds, these may not all be the final fixes:
6691
6692 * bits/basic_ios.h (class basic_ios): Make _M_strbuf be protected,
6693 not private, for basic_istream::get() in std_istream.h to be able
6694 to use it.
6695 (basic_ios::operator void*): Don't use static_cast for the false
6696 case.
6697 (basic_ios::copyfmt): Fix `rhs.except' to be `rhs.exceptions ()'.
6698 This appears to have been in sep94, but didn't get corrected
6699 afterwards.
6700
6701 * bits/basic_string.h (npos): Don't init here.
6702 * bits/string.tcc: Instead, do initialization here, to -1 instead
6703 of the size_type destructor.
6704
6705 * src/traits.cc, src/wtraits.cc: New files.
6706 * bits/char_traits.h: For char_traits<char> and
6707 char_traits<wchar_t>, declare static, but define over in the src
6708 files.
6709
6710 * bits/gslice.h: Comment out forward decls of _Array, valarray,
6711 gslice_array, and _GsliceExpression.
6712
6713 * bits/std_cstdio.h [__sparc__ && __svr4__]: #undef all of
6714 clearerr, feof, ferror, getc, getchar, putc, putchar, stdin,
6715 stdout, and stderr. Note we do get unresolved refs to stdin, but
6716 that'll get fixed by the "true" solution.
6717
6718 * bits/std_ios.h: Include <bits/std_streambuf.h> to get the
6719 definition of basic_streambuf.h, which is used in basic_ios.h to
6720 call pubimbue.
6721
6722 * bits/std_streambuf.h: Don't include libio.h for now.
6723 (class basic_streambuf): Define missing methods pubimbue and
6724 getloc.
6725
6726 * src/Makefile.am (libstdc___la_SOURCES): Add stdexcept.cc,
6727 ios.cc, os_raw.cc, stdstreams.cc, locale.cc, localename.cc,
6728 locale-inst.cc, stlinst.cc, traits.cc, wtraits.cc.
6729
6730 * src/ios.cc: Instantiate basic_ios<char> and basic_ios<wchar_t>.
6731
6732 * src/locale.cc: Come up with munged versions of _S_toupper,
6733 _S_tolower, and _S_table instead of the glibc-specific ones, so
6734 they're at least defined, if not necessarily usable. The glibc
6735 ones on any other system will yield unresolved refs to
6736 __ctype_{b,toupper,tolower}.
6737
6738 * src/string.cc: Define all of ADDCS, ADDPS, et al. Add
6739 basic_ios, basic_istream, basic_ostream. Don't do char_traits
6740 anymore cuz of the explicit specialization in char_traits.h.
6741 Also add _S_string_copy, but this doesn't fix it -- cf the BUGS
6742 file for the details.
6743
6744 * stl/bits/stl_algobase.h (equal): Fix to do `! (x==y)'.
6745 * stl/bits/stl_iterator.h (__distance): Likewise.
6746
6747 * stl/bits/stl_iterator.h: As with 8/18 set, define missing op!=,
6748 op>, op<=, and op>= for reverse_iterator. Also add op!= for
6749 istream_iterator.
6750
67511998-08-26 Brendan Kehoe <brendan@cygnus.com>
6752
6753 * bits/string.tcc (basic_string::compare (const char*)): Fix to
6754 return 0, not 1.
6755
67561998-08-25 Brendan Kehoe <brendan@cygnus.com>
6757
6758 This should really be fixed with __asm__ directives renaming the
6759 symbol, but keeping the function.
6760 * math/clogf.c (c_logf): Renamed from `clogf'.
6761 * math/clogl.c (c_logl): Renamed from `clogl'.
6762 * math/complex-stub.h (c_logf, c_logl): Change decls.
6763
6764 * bits/locfacets.h (class _Numeric_get): For friend decls, rename
6765 _CharT and _InIter parms, since they duplicate the enclosing ones.
6766
67671998-08-19 Brendan Kehoe <brendan@cygnus.com>
6768
6769 Deal with conflict of the iostreams `clog' and our internal
6770 complex number `clog'.
6771 * src/complex.cc: Call `c_log' instead of `clog'.
6772 * math/clog.c (c_log):: Renamed from clog.
6773 * math/complex-stub.h (c_log): Renamed from clog decl.
6774
6775 * bits/locfacets.h (class _Numeric_get): Tweak fwd decls of the
6776 get/put classes.
6777 (num_put::put): #if 0 long long version, since we don't declare or
6778 define the long long version of do_put.
6779
67801998-08-18 Nathan Myers <ncm@cantrip.org>
6781
6782 * bits/basic_string.h: add basic_string<>::push_back(), fix return
6783 type of get_allocator (thanks to Ryszard Kabatek).
6784 * bits/char_traits.h: make init order of fpos<> members
6785 match decl order.
6786 * bits/ios_base.h: fix decls of ios_base bitmask & enum types, add
6787 flags _S_fd_in etc. for special filebuf ctor.
6788 * bits/locfacets.h: make _Numeric_get and _Format_cache public
6789 to work around problems in friend declarations.
6790 * bits/locfacets.tcc: qualify _S_get_cache in num_get<>::get(..bool&),
6791 fix random type errors & typos
6792 * bits/std_fstream.h: major refitting to bypass libio (for now),
6793 instrument to use bits/fstream.tcc template definitions
6794 * bits/std_iosfwd.h: mess with wrappers
6795 * bits/std_istream.h: remove meaningless comment
6796 * bits/std_ostream.h: instrument to work with ostream.tcc.
6797 * bits/std_streambuf.h: instrument to work with streambuf.tcc
6798 * bits/fstream.tcc: template defs for <fstream>
6799 * bits/ostream.tcc: template defs for <ostream>
6800 * bits/streambuf.tcc: template defs for <streambuf>
6801 * bits/os_raw.h: thin OS interface wrapper, to bypass libio (for now).
6802 * Delete .cc files, replace with bits/*.tcc
6803 src/fstream.cc
6804 src/istream.cc
6805 src/ostream.cc
6806 src/streambuf.cc
6807 * Add files:
6808 src/os_raw.cc: thin interface to OS, to bypass libio (for now).
6809 src/stdstreams.cc: cout, cin, etc. definitions
6810 (these still need work: must be init'd before user statics.)
6811
6812
68131998-08-18 Brendan Kehoe <brendan@cygnus.com>
6814
6815 Sent to SGI before checkin:
6816 * stl/bits/stl_vector.h (operator!=, operator>, operator<=,
6817 operator>=): Define.
6818 * stl/bits/stl_bvector.h (vector<bool>::flip): Define method.
6819 * stl/bits/stl_deque.h (operator!=, operator>, operator<=,
6820 operator>=): Define.
6821 (operator==, operator<): Add inline.
6822 * stl/bits/stl_map.h (operator!=, operator<, operator<=,
6823 operator>=): Define.
6824 * stl/bits/stl_multimap.h (operator!=, operator<, operator<=,
6825 operator>=): Define.
6826 * stl/bits/stl_list.h (operator!=, operator<, operator<=,
6827 operator>=): Define.
6828 * stl/bits/stl_set.h (operator!=, operator<, operator<=,
6829 operator>=): Define.
6830 * stl/bits/stl_multiset.h (operator!=, operator<, operator<=,
6831 operator>=): Define.
6832
6833 * bits/std_valarray.h (_Shift_left, _Shift_right): Inherit from
6834 unary_function.
6835
68361998-08-15 Nathan Myers <ncm@cantrip.org>
6837
6838 * bits/ios_base.h: change nominal bitmask and enum types to real enums
6839 * bits/locfacets.h: make _Format_cache bool names usable by num_get
6840 * bits/locfacets.tcc: make num_get<>::get(... bool&) use _Format_cache
6841 * bits/std_fstream.h: minor cleanups: ctors delegate to open()
6842 * bits/std_iosfwd.h: more bitmask changes, for ios_base::iostate
6843 * bits/std_sstream.h: formatting cleanups
6844
68451998-08-14 Nathan Myers <ncm@cantrip.org>
6846
6847 * bits/locfacets.tcc: implement num_get<>::do_get(..., bool&)
6848 * bits/locfacets.tcc: implement time_get<>::do_get_weekday
6849 * bits/locfacets.tcc: implement time_get<>::do_get_monthname
6850 * bits/locfacets.h: fix missing argument in do_get_monthname
6851 (this is a bug in the standard, ref. 36 in my list.)
6852 * bits/locfacets.h: make month and day name caches mutable
6853 * bits/locfacets.tcc: various typos in get() functions
6854 * bits/sbuf_iter.h: fix omission in istreambuf_iterator::op++().
6855 * bits/std_streambuf.h: fix typo in sgetn (Brendan)
6856
68571998-08-12 Nathan Myers <ncm@cantrip.org>
6858 * move streambuf iterators to bits/sbuf_iter.h
6859 * optimize streambuf iterators
6860 * begin generalizing streambuf
6861 * begin implementing num_get<>::get (starting with bool)
6862 * patch stl/bits/stl_config.h so that relops operators are
6863 contained properly, out of the way.
6864
68651998-07-24 Nathan Myers <ncm@cantrip.org>
6866 * Fold in SGI 3.11 changes (uglified names, some algorithm
6867 improvements, very minor bug fixes.)
6868 * Uglify names elsewhere to match (s/_T/_Tp/).
6869 * Begin work on optimized streambuf
6870 * Put complex.cc in namespace std:: (thanks Martin)
6871
68721998-07-17 Nathan Myers <ncm@cantrip.org>
6873
6874 * bits/char_traits.h: add _Char_traits_match template.
6875 * bits/string.tcc: fix bugs in various find_last* members.
6876 * bits/basic_string.h: redeclare member _S_find.
6877 * stl/bits/stl_iterator.h: change member names in nonstandard
6878 templates bidirectional_reverse_iterator and
6879 random_access_reverse_iterator to match expected changes
6880 in upstream source.
6881 * src/string.cc: fix definitions of stream operators.
6882
68831998-07-14 16:06 Ulrich Drepper <drepper@cygnus.com>
6884
6885 * Makefile.am (SUBDIRS): Add string.
6886
6887 * configure.in: Test for long double functions separately. Test for
6888 ISO C 89 float functions. Test for endian.h and sys/isa_defs.h.
6889 Generate string/Makefile.
6890
6891 * bits/c++config.h: Define mbstate_t for Solaris.
6892
6893 * bits/char_traits.h: Remove unused #if.
6894
6895 * bits/std_cwchar.h: Declare wide char string functions.
6896
6897 * m4/stringfcts.m4: New file.
6898
6899 * math/complex-stub.h: Declare nan.
6900 * math/nan.c: New file.
6901
6902 * math/mathconf.h: Hack around missing endian.h file.
6903 Handle missing NAN definition.
6904 Handle missing float math functions.
6905
6906 * src/Makefile.am (libstdc___la_LIBADD): Add libstring.la.
6907 (libstdc___la_LDFLAGS): Set version information.
6908
6909 * src/complexl.cc: Don't compile any code if no long double functions
6910 are available.
6911
6912 * string/Makefile.am: New file.
6913 * string/dummy.c: New file.
6914 * string/wmemchr.c: New file.
6915 * string/wmemcmp.c: New file.
6916 * string/wmemcpy.c: New file.
6917 * string/wmemmove.c: New file.
6918 * string/wmemset.c: New file.
6919
69201998-07-14 10:45 Ulrich Drepper <drepper@cygnus.com>
6921
6922 * configure.in: Make it work.
6923 * install-sh: New file.
6924 * missing: New file.
6925 * mkinstalldirs: New file.
6926 * m4/mathfcts.m4: New file.
6927 * math/Makefile.am: New file.
6928
6929 * bits/std_complex.h (conj): Mark specializations as inline.
6930
6931 * math/carg.c: New file.
6932 * math/cargf.c: New file.
6933 * math/cargl.c: New file.
6934 * math/mycabs.c: New file.
6935 * math/mycabsf.c: New file.
6936 * math/mycabsl.c: New file.
6937 * math/signbit.c: New file.
6938 * math/signbitf.c: New file.
6939 * math/signbitl.c: New file.
6940
6941 * math/ccos.c: Avoid ISO C 9x functionality.
6942 * math/ccosf.c: Likewise.
6943 * math/ccosh.c: Likewise.
6944 * math/ccoshf.c: Likewise.
6945 * math/ccoshl.c: Likewise.
6946 * math/ccosl.c: Likewise.
6947 * math/cexp.c: Likewise.
6948 * math/cexpf.c: Likewise.
6949 * math/cexpl.c: Likewise.
6950 * math/clog.c: Likewise.
6951 * math/clog10.c: Likewise.
6952 * math/clog10f.c: Likewise.
6953 * math/clog10l.c: Likewise.
6954 * math/clogf.c: Likewise.
6955 * math/clogl.c: Likewise.
6956 * math/cpow.c: Likewise.
6957 * math/cpowf.c: Likewise.
6958 * math/cpowl.c: Likewise.
6959 * math/csin.c: Likewise.
6960 * math/csinf.c: Likewise.
6961 * math/csinh.c: Likewise.
6962 * math/csinhf.c: Likewise.
6963 * math/csinhl.c: Likewise.
6964 * math/csinl.c: Likewise.
6965 * math/csqrt.c: Likewise.
6966 * math/csqrtf.c: Likewise.
6967 * math/csqrtl.c: Likewise.
6968 * math/ctan.c: Likewise.
6969 * math/ctanf.c: Likewise.
6970 * math/ctanh.c: Likewise.
6971 * math/ctanhf.c: Likewise.
6972 * math/ctanhl.c: Likewise.
6973 * math/ctanl.c: Likewise.
6974
6975 * math/complex-stub.h: New file.
6976
6977 * math/mathconf.h: New file.
6978
6979 * src/Makefile.am: New file.
6980
6981 * src/complex.cc: Use mathconf.h instead of complex.h.
6982 Don't use cabs, always use __mycabs.
6983
69841998-02-13 Brendan Kehoe <brendan@cygnus.com>
6985
6986 * iterator (class reverse_iterator): Do some tweaks to be in sync
6987 w/ the FDIS.
This page took 0.887226 seconds and 5 git commands to generate.