configure.target (hpux): Set os_include_dir.
[gcc.git] / libstdc++-v3 / ChangeLog
1 Tue Dec 5 20:24:15 2000 Jeffrey A Law (law@cygnus.com)
2
3 * configure.target (hpux): Set os_include_dir.
4 * config/os/hpux/bits/ctype_base.h: New file
5 * config/os/hpux/bits/ctype_inline.h: New file
6 * config/os/hpux/bits/ctype_noinline.h: New file
7 * config/os/hpux/bits/os_defines.h: New file
8
9 2000-12-05 Alexandre Petit-Bianco <apbianco@redhat.com>
10
11 * src/Makefile.am (libstdc++.INC): Revert for libjava builds.
12 * src/Makefile.in: Regenerate.
13
14 2000-12-05 Benjamin Kosnik <bkoz@haight.redhat.com>
15
16 * acinclude.m4 (EXTRA_CXX_FLAGS): And here.
17 * include/c/bits/std_cstdlib.h (std ): Change macro to
18 _GLIBCPP_NEED_LLDIV_T.
19 * acconfig.h: Remove unused MBSTATE_T bits.
20 * configure.in: Same.
21 * aclocal.m4: Regenerate.
22 * configure: Regenerate.
23 * config.h.in: Regenerate.
24
25 2000-12-05 Benjamin Kosnik <bkoz@fillmore.redhat.com>
26
27 * acinclude.m4: Change up to reflect new directory organization.
28 Add in bits for NetBSD.
29 * aclocal.m4: Regenerate.
30 * configure: Regenerate.
31 * config/os/bsd: New directory.
32 * config/os/netbsd: Move to...
33 * config/os/bsd/netbsd: ...here.
34 * config/os/freebsd: Move to...
35 * config/os/bsd/freebsd: ...here.
36
37 2000-12-05 Benjamin Kosnik <bkoz@haight.redhat.com>
38
39 * acinclude.m4 (GLIBCPP_ENABLE_LONG_LONG): Check for
40 lldiv_t. Allow the use of os-specific defines while checking for
41 long-long functions by the inclusion of os_defines.h.
42 * aclocal.m4: Regenerate.
43 * configure.in: Add comments.
44 * configure: Regenerate.
45 * acconfig.h: Add _GLIBCPP_HAVE_LLDIV_T.
46 * config.h.in: Regenerate.
47 * config/os/gnu-linux/bits/os_defines.h: Fix typos and
48 duplications in comments.
49
50 2000-12-05 Richard Earnshaw <rearnsha@arm.com>
51
52 * config/os/freebsd/bits/ctype_base.h: Update comments about other
53 BSD variants.
54
55 2000-12-05 Richard Earnshaw <rearnsha@arm.com>
56
57 * config/os/freebsd/bits/*.h: Move here from config/os/bsd/bits.
58 * aclocal.m4: Adjust accordingly.
59 * configure.target: Likewise.
60 * configure: Regenerate.
61
62 2000-12-05 Richard Earnshaw <rearnsha@arm.com>
63
64 * config/cpu/arm/bits/atomicity.h: Add support for compiling Thumb
65 code.
66
67 2000-12-05 Richard Earnshaw <rearnsha@arm.com>
68
69 Support for NetBSD.
70 * aclocal.m4: Add test for NetBSD's ctype support.
71 * configure: Regenerate.
72 * configure.target: Support NetBSD.
73 * config/os/netbsd/bits/ctype_base.h: New file.
74 * config/os/netbsd/bits/ctype_inline.h: New file.
75 * config/os/netbsd/bits/ctype_noinline.h: New file.
76 * config/os/netbsd/bits/os_defines.h: New file.
77
78 2000-12-05 Gabriel Dos Reis <gdr@codesourcery.com>
79
80 * src/complex.cc (pow): Remove definitions for explicit
81 specializations.
82 * libmath/mathconf.h: Remove declarations for c_log, c_logf,
83 c_logl.
84 * libmath/complex-stub.h: Remove declarations for cpow, cpowf,
85 cpowl.
86 * libmath/cpow.c: Remove.
87 * libmath/cpowf.c: Remove.
88 * libmath/cpowl.c: Remove.
89 * libmath/Makefile.am (EXTRA_LONG_DOUBLE_yes): Remove c_logl,
90 cpowl,
91 (EXTRA_DIST): Remove c_log, c_logf, carg, cargf.
92 * libmath/Makefile.in: Regenarate.
93 * libmath/c_log.c: Remove
94 * libmath/c_logf.c: Likewise.
95 * libmath/c_logl.c: Likewise.
96 * libmath/carg.c: Likewise.
97 * libmath/cargf.c: Likewise.
98 * libmath/cargl.c: Likewise.
99 * include/bits/std_complex.h (pow): Define primary templates.
100 (complex<>): Remove friend declarations for pow<>().
101 * acinclude.m4: Remove check for c_log, c_logf, c_logl, carg,
102 cargf.
103 * aclocal.m4: Regenarate.
104 * configure: Regenarate.
105
106 2000-12-03 Joseph S. Myers <jsm28@cam.ac.uk>
107
108 * docs/configopts.html, docs/documentation.html,
109 docs/install.html, docs/17_intro/BADNAMES,
110 docs/17_intro/contribute.html, docs/17_intro/howto.html,
111 docs/18_support/howto.html, docs/19_diagnostics/howto.html,
112 docs/20_util/howto.html, docs/21_strings/howto.html,
113 docs/22_locale/howto.html, docs/23_containers/howto.html,
114 docs/24_iterators/howto.html, docs/25_algorithms/howto.html,
115 docs/26_numerics/howto.html, docs/27_io/howto.html,
116 docs/ext/howto.html, docs/faq/index.html, docs/faq/index.txt: Sync
117 with wwwdocs.
118
119 2000-12-01 Phil Edwards <pme@sources.redhat.com>
120
121 * docs/download.html: Remove.
122 * docs/footer.ihtml: Remove.
123 * docs/header.ihtml: Remove.
124 * docs/index.html: Remove.
125 * docs/links.html: Remove.
126 * docs/mail.html: Remove.
127 * docs/status.html: Remove.
128 * docs/thanks.html: Remove.
129
130 2000-12-01 Phil Edwards <pme@sources.redhat.com>
131
132 * mkcheck.in: Count static and shared results separately.
133
134 2000-12-01 Loren J. Rittle <ljrittle@acm.org>
135
136 * mkcheck.in: Correct typo.
137
138 2000-12-01 Gabriel Dos Reis <gdr@codesourcery.com>
139
140 * src/cmath.cc: Remove.
141 * src/Makefile.am (c_base_headers): Add bits/cmath.tcc.
142 (sources): Remove cmath.cc
143 * src/Makefile.in: Regenerate.
144
145 * include/c/bits/std_cmath.h (__cmath_power<>): Declare.
146 (__cmath_abs<>): New function.
147 (abs, fabs): Use __cmath_abs when no direct support is available.
148 (__pow_helper<>): New function.
149 (pow): Define here. Use __pow_helper<>.
150
151 * include/c/bits/cmath.tcc: New file.
152
153 2000-11-29 Benjamin Kosnik <bkoz@redhat.com>
154
155 Fixes for build directories with colons, AIX build problems.
156 * src/Makefile.am: Cleanups, add documentation.
157 (libstdc++.INC): Simplify rule.
158 (myinstallheaders): Consolidate install rules.
159 (myinstalldirs): New, make directores.
160 (base_headers): Subdivide based on install directory.
161 (ext_headers): New.
162 (backward_headers): New.
163 (headers): Remove.
164 (c_headers): Remove, unused.
165 (c_shadow_headers): Split up, deal with conditional usage in a
166 sane manner.
167 * src/Makefile.in: Regenerate.
168
169 2000-11-29 Phil Edwards <pme@sources.redhat.com>
170
171 Sync with the documentation from wwwdocs.
172 * docs/Makefile: New file (rebuilds FAQ text version).
173 * docs/configopts.html: Update.
174 * docs/documentation.html: Update.
175 * docs/download.html: Update.
176 * docs/index.html: Update.
177 * docs/install.html: Update.
178 * docs/links.html: Update.
179 * docs/mail.html: Update.
180 * docs/status.html: Update.
181 * docs/thanks.html: Update.
182 * docs/27_io/howto.html: Update.
183 * docs/faq/index.html: Update for 2.91.
184 * docs/faq/index.txt: Update for 2.91.
185 * docs/footer.html: Removed.
186 * docs/footer.ihtml: New file.
187 * docs/gccrebuild.html: Removed.
188 * docs/header.html: Removed.
189 * docs/header.ihtml: New file.
190
191 2000-11-29 Loren J. Rittle <ljrittle@acm.org>
192
193 * tests_flags.in: Correct typo.
194
195 2000-11-29 Gabriel Dos Reis <gdr@codesourcery.com>
196
197 * tests_flags (SH_FLAGS, ST_FLAGS): Move them back to ...
198 * mkcheck.in (SH_FLAGS, ST_FLAGS): ...here
199
200 2000-11-29 Gabriel Dos Reis <gdr@codesourcery.com>
201
202 * src/Makefile.am (sources): Add bitset.cc
203 * src/Makefile.in: Regenrate.
204
205 * include/bits/std_bitset.h (_GLIBCPP_BITSET_BITS_PER_WORD): New
206 macro. Replace __BITS_PER_WORDS throughout.
207 (__BITS_PER_WORDS): Remove.
208 (bitset<>::_M_do_find_first, bitset<>::_M_do_find_next): Move
209 definitions to src/bitset.cc.
210
211 * src/bitset.cc (bitset<>::_M_do_find_first,
212 bitset<>::_M_do_find_next): Define here.
213 (_Bit_count<>::_S_bit_count, _Find_one<>::_S_first_one): Define
214 here. Explicitly instantiate definitions.
215
216 2000-11-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
217
218 * config/cpu/powerpc/bits/atomicity.h (__exchange_and_add): Silence
219 preprocessor multi-line string warnings.
220 (__atomic_add): Likewise.
221 (__compare_and_swap): Likewise.
222 (__always_swap): Likewise.
223 (__test_and_set): Likewise.
224 * config/cpu/arm/bits/atomicity.h (__exchange_and_add): Likewise.
225 (__atomic_add): Likewise.
226 (__compare_and_swap): Likewise.
227 (__always_swap): Likewise.
228 (__test_and_set): Likewise.
229
230 2000-11-28 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
231
232 Update for 2.91 release.
233 * include/bits/c++config (__GLIBCPP__): Update.
234 * docs/17_intro/RELEASE-NOTES: Update.
235 * docs/status.html: Update, remove bogus autotools disinformation.
236
237 2000-11-27 Benjamin Kosnik <bkoz@redhat.com>
238
239 * tests_flags.in (LTCXX): Change CXX_FLAG to CXXFLAGS.
240
241 * testsuite/22_locale/ctor_copy_dtor.cc: Adjust formatting.
242 * testsuite/27_io/istream_extractor_arith.cc (test11): New
243 testcase, based on libstdc++/90.
244
245 2000-11-27 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
246
247 * config/cpu/arm/bits/atomicity.h (__exchange_and_add): Add
248 __volatile__ to asm.
249 (__atomic_add): Likewise.
250 (__compare_and_swap): Likewise.
251 (__always_swap): Likewise.
252 (__test_and_set): Likewise.
253
254 * config/cpu/powerpc/bits/atomicity.h: Replace '__ATOMICITY_INLINE'
255 with 'inline'.
256 (__exchange_and_add): Add __volatile__ to asm.
257 (__atomic_add): Likewise.
258 (__compare_and_swap): Likewise.
259 (__always_swap): Likewise.
260 (__test_and_set): Likewise.
261
262 2000-11-27 Gabriel Dos Reis <gdr@codesourcery.com>
263
264 * tests_flags.in: Update documentation to reflect the change
265 below.
266
267 2000-11-26 Benjamin Kosnik <bkoz@fillmore.constant.com>
268
269 * tests_flags.in: Export CXX, CXXFLAGS.
270 * mkcheck.in: Grab them.
271
272 2000-11-26 David Billinghurst <David.Billinghurst@riotinto.com>
273 Benjamin Kosnik <bkoz@redhat.com>
274
275 * mkcheck.in: Add exe extension to printnow executable, abstract
276 out call to this with TIMER_COMMAND.
277 * configure.target (l_glibcpp_cxxflags): Add cygwin support.
278 * acinclude.m4 (GLIBCPP_CHECK_CTYPE_SUPPORT): Correct paths.
279 * aclocal.m4: Regenerate.
280 * configure: Regenerate.
281
282 2000-11-26 Benjamin Kosnik <bkoz@redhat.com>
283
284 * testsuite/27_io/istream_unformatted.cc (test05): Fixup.
285
286 2000-11-26 Benjamin Kosnik <bkoz@redhat.com>
287
288 * acinclude.m4: Only sanity check for compiler version when
289 configuring. More fixes for 'make clean'.
290 * aclocal.m4: Regenerate.
291 * configure: Regenerate.
292
293 2000-11-26 Gabriel Dos Reis <gdr@codesourcery.com>
294
295 * libmath/Makefile.am (EXTRA_LONG_DOUBLE_yes): Remove cabsl.c
296 * libmath/Makefile.in: Regenerate.
297 * libmath/cabs.c: Remove.
298 * libmath/cabsf.c: Likewise.
299 * libmath/cabsl.c: Likewise.
300 * libmath/complex-stub.h: Remove declarations for cabs*.
301
302 * acinclude.m4: Remove check for cabs*.
303 * aclocal.m4: Regenerate.
304
305 * Makefile.in: Regenerate.
306
307 2000-11-26 Gabriel Dos Reis <gdr@codesourcery.com>
308
309 * tests_flags.in: New file. Split out of ...
310 * mkcheck.in: ... this. Move flags computation into
311 tests_flags.in.
312 * configure.in: Add support for tests_flags.
313 * confiigure: Regenerate.
314
315 2000-11-25 Joseph S. Myers <jsm28@cam.ac.uk>
316
317 * acinclude.m4: Change C9X references to refer to C99.
318 * aclocal.m4, configure: Regenerate.
319 * config/os/gnu-linux/bits/os_defines.h, src/complex.cc,
320 testsuite/22_locale/codecvt_wchar_t_char.cc,
321 include/bits/stl_config.h, include/c/bits/std_cwchar.h,
322 libmath/mathconf.h: Change C9X references to refer to C99.
323
324 2000-11-25 Benjamin Kosnik <bkoz@redhat.com>
325 Richard Earnshaw <rearnsha@arm.com>
326
327 * src/Makefile.am (INCLUDES): Remove unconditional use of
328 _GNU_SOURCE and _ISOC99_SOURCE macros.
329 * src/Makefile.in: Regenerate.
330
331 2000-11-24 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
332
333 * testsuite/22_locale/codecvt_wchar_t_char.cc (main): Add
334 _GLIBCPP_USE_WCHAR_T guards.
335
336 * configure.in (AC_OUTPUT_COMMANDS): Remove, just run scripts as
337 is, so that checks for existence of generated files actually work.
338 * configure: Regenerate.
339
340 2000-11-23 Hans-Peter Nilsson <hp@bitrange.com>
341
342 * config/os/gnu-linux/bits/os_defines.h: Include <features.h>.
343 If not glibc 2.1 or higher, include <gnu/types.h> and define
344 __off64_t as __loff_t and #define __THROW as empty.
345
346 * libio/libio.h [__P]: Move __THROW and __PMT into their own
347 ifndef:s.
348
349 2000-11-23 David Edelsohn <edelsohn@gnu.org>
350
351 * porting.texi: Expand libtool information.
352
353 2000-11-23 Gabriel Dos Reis <gdr@codesourcery.com>
354
355 * include/bits/ios_base.h (ios_base::failure::~failure,
356 ios_base::failure::what): Move defintion to ...
357
358 * src/ios.cc (ios_base::failure::~failure): ... here.
359 src/ios.cc (ios::failure::what): Likewise.
360
361 2000-11-22 Benjamin Kosnik <bkoz@redhat.com>
362
363 Make deprecated strstream header consistent with new and new.h.
364 * include/backward/strstream.h: Add. Use using declarations to
365 scope strstreambuf, istrstream, ostrstream, strstream to global
366 scope.
367 * include/backward/strstream: Remove using declarations.
368 * src/Makefile.am (base_headers): Add strstream.
369 * src/Makefile.in: Regenerate.
370
371 * include/backward/new.h (_CPP_BACKWARD_NEW_H): Change macro guard
372 to be consistent with other headers.
373
374 2000-11-22 Richard Henderson <rth@redhat.com>
375
376 * config/os/bsd/bits/ctype_inline.h (is): Fix order of expressions.
377
378 2000-11-22 Phil Edwards <pme@sources.redhat.com>
379
380 * porting.texi: Minor tweaks to vocabulary.
381
382 2000-11-22 Loren J. Rittle <ljrittle@acm.org>
383
384 * include/backward/strstream.h: Reinstate the `using'
385 statements.
386
387 2000-11-22 Loren J. Rittle <ljrittle@acm.org>
388
389 * src/Makefile.am (base_headers): Add missing backwards headers.
390 * src/Makefile.in: Regenerate.
391
392 2000-11-21 scott snyder <snyder@fnal.gov>
393
394 * config/c_io_stdio.cc (seekoff): Fix return value.
395 (seekpos): Likewise.
396 (sys_seek): Likewise.
397
398 2000-11-21 Loren J. Rittle <ljrittle@acm.org>
399
400 * mkcheck.in (explanation): Retain output of all failing
401 compiles. Don't add gratuitous space to the log file.
402
403 2000-11-21 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
404
405 * src/strstream.cc: Adjust includes.
406 * src/Makefile.am (base_headers): Remove std_strstream.h, add
407 backwards/strstream.h.
408 (std_headers): Remove strstream.
409 * src/Makefile.in: Regenerate.
410 * libsupc++/Makefile.am (headers): Remove new.h
411 * libsupc++/Makefile.in: Regenerate.
412 * include/std/strstream: Remove.
413 * include/backward/strstream.h: Replace with...
414 * include/bits/std_strstream.h: ...this. Move.
415 * include/backward/complex.h: Remove SGIisms.
416 * include/backward/streambuf.h: Same.
417 * include/backward/stream.h: Same.
418 * include/backward/ostream.h: Same.
419 * include/backward/istream.h: Same.
420 * include/backward/iostream.h: Same.
421 * include/backward/iomanip.h: Same.
422 * include/backward/fstream.h: Same.
423 * libsupc++/new.h: Add using declarations for bad_alloc,
424 nothrow_t, and nothrow, move to ...
425 * include/backward/new.h: ...here.
426
427 2000-11-21 Mark Mitchell <mark@codesourcery.com>
428
429 * porting.texi: New file.
430
431 2000-11-21 Branko Cibej <brankoe@xbc.nu>
432
433 * config/os/solaris/solaris2.6/bits/os_defines.h: Define
434 _XOPEN_SOURCE, _LARGEFILE64_SOURCE, __EXTENSIONS__, __off_t,
435 __off64_t and __ssize_t.
436 * config/os/solaris/solaris2.5/bits/os_defines.h: For now, use the
437 same configuration as above.
438
439 2000-11-21 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
440
441 * acinclude.m4 (AC_LC_MESSAGES): Check for locale.h.
442 * aclocal.m4: Regenerate.
443 * configure: Renerate.
444
445 2000-11-20 Benjamin Kosnik <bkoz@redhat.com>
446
447 * mkcheck.in (explanation): Don't paste output of passing compiles
448 into log file. Use -static. Get version info.
449
450 * testsuite/23_containers/vector_ctor.cc (test02): Fix thinko.
451
452 2000-11-20 Gabriel Dos Reis <gdr@codesourcery.com>
453
454 * include/bits/std_complex.h (complex<double>): Constructor
455 complex<double>::complex(const complex<float>&) is not explicit;
456 since it is a promotion.
457 (complex<long double>): Constructors taking complex<float> and
458 complex<double> are not explicit.
459
460 2000-11-20 Benjamin Kosnik <bkoz@redhat.com>
461
462 * include/bits/std_complex.h: Tweaks, include cmath for abs overloads.
463 * src/complex.cc: Remove cmath include, formatting tweaks, remove
464 dead code.
465 * include/c/bits/std_cmath.h: Formatting tweaks.
466 * testsuite/26_numerics/complex_value.cc: New file, for catching
467 bits gleaned from libstdc++/106.
468
469 * testsuite/23_containers/vector_ctor.cc (test02): Add test from
470 libstdc++/102.
471
472 2000-11-20 Joseph S. Myers <jsm28@cam.ac.uk>
473
474 * include/bits/c++config, include/bits/ios_base.h,
475 include/bits/std_streambuf.h: Correct spelling of "deprecated".
476
477 2000-11-19 Mark Mitchell <mark@codesourcery.com>
478
479 * libsupc++/exception_support.cc (__throw_bad_cast): Name it
480 __cxa_bad_cast under the new ABI.
481 (__throw_bad_typeid): Name it __cxa_bad_typeid under the new ABI.
482 * libsupc++/pure.cc (__pure_virtual): Name it __cxa_pure_virtual
483 under the new ABI.
484
485 2000-11-18 Mark Mitchell <mark@codesourcery.com>
486
487 * libsupc++/exception_support.h: New header file.
488 * libsupc++/vec.cc: Include it.
489 (__cxa_vec_new2): Recatch exceptions before rethrows.
490 (__cxa_vec_new3): Likewise.
491 (__cxa_vec_ctor): Likewise.
492 (__cxa_vec_cctor): Likewise.
493 (__cxa_vec_dtor): Likewise.
494 (__cxa_vec_delete2): Likewise.
495 (__cxa_vec_delete3): Likewise.
496
497 2000-11-17 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
498
499 * include/bits/stl_tree.h: Overload operators == and != to be able
500 to handle the case (const_iterator,iterator) and
501 (iterator,const_iterator), thus fixing libstdc++/737 and the like.
502 * testsuite/23_containers/map_operators.cc (test02): New tests.
503
504 2000-11-17 Loren J. Rittle <ljrittle@acm.org>
505
506 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Correct last patch
507 to ``make --enable-cstdio=stdio the default''.
508 * libstdc++-v3/aclocal.m4: Rebuilt.
509 * libstdc++-v3/configure: Rebuilt.
510
511 2000-11-17 Phil Edwards <pme@sources.redhat.com>
512
513 * acinclude.m4 (GLIBCPP_ENABLE_ATOMICITY): Move switch statement
514 contents to...
515 * configure.target: ...here. Enable generic atomic ops, and warn.
516 * aclocal.m4: Regenerated.
517 * configure: Ditto.
518 * Makefile.in: Ditto.
519 * libio/Makefile.in: Ditto.
520 * libmath/Makefile.in: Ditto.
521 * libsupc++/Makefile.in: Ditto.
522 * src/Makefile.in: Ditto.
523
524 2000-11-16 Loren J. Rittle <ljrittle@acm.org>
525
526 * include/bits/locale_facets.tcc (num_get<_CharT,
527 _InIter>::do_get(...)): Add missing typename keyword.
528
529 2000-11-16 Mark Mitchell <mark@codesourcery.com>
530
531 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Make
532 --enable-cstdio=stdio the default. Disable wide character support
533 in that event.
534 * configure.in: Move GLIBCPP_ENABLE_C_MBCHAR after
535 (GLIBCPP_ENABLE_CSTDIO).
536 * config/c_io_stdio.h: Don't include <libio.h>, don't define
537 __c_wfile_type.
538 * aclocal.m4: Regenerated.
539 * configure: Likewise.
540 * Makefile.in: Likewise.
541 * libio/Makefile.in: Likewise.
542 * libmath/Makefile.in: Likewise.
543 * libsupc++/Makefile.in: Likewise.
544 * src/Makefile.in: Likewise.
545
546 2000-11-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
547
548 * config/c_io_stdio.h: Include stddef.h.
549
550 2000-11-16 Mark Mitchell <mark@codesourcery.com>
551
552 * config/c_io_stdio.h (streamsize): Make it a typedef for
553 ptrdiff_t.
554 (wstreamsize): Likewise.
555
556 * config/c_io_stdio.h: Include libio.h.
557
558 2000-11-15 Mark P Mitchell <mark@codesourcery.com>
559
560 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Substitute libio_la.
561 * src/Makefile.am (libstdc___la_LIBADD): Use it.
562 * aclocal.m4: Regenerated.
563 * configure: Likewise.
564 * Makefile.in: Likewise.
565 * libio/Makefile.in: Likewise.
566 * libmath/Makefile.in: Likewise.
567 * libsupc++/Makefile.in: Likewise.
568 * src/Makfile.in: Likewise.
569
570 2000-11-15 Mark Mitchell <mark@codesourcery.com>
571
572 * mkcheckin.in: Move check for bash version 2 later in the file.
573
574 * include/bits/basic_string.h (basic_string::_Rep::_S_max_size):
575 Make it const.
576 (basic_string::_Rep::_S_terminal): Likewise.
577 * include/bits/string.tcc (basic_string::_Rep::_S_max_size):
578 Likewise.
579 (basic_string::_Rep::_S_terminal): Likewise.
580
581 2000-11-15 David Billinghurst <David.Billinghurst@riotinto.com>
582
583 * mkcheck.in: Add function size_command() for irix.
584
585 2000-11-14 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
586
587 * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPOR): Set LIBS back to
588 initial value.
589 (GLIBCPP_EXPORT_INCLUDES): Only export TOPLEVEL_INCLUDES if
590 building a canadian cross. This should fix the remaining java
591 build issues.
592 * aclocal.m4: Regenerate.
593 * configure: Regenerate.
594
595 * include/bits/c++config (__GLIBCPP__): Set release version for 2.91.
596
597 2000-11-14 Phil Edwards <pme@sources.redhat.com>
598
599 * mkcheck.in: On a platform where we don't know how to extract
600 section sizes, just set them to zero. Use old method of reading
601 file contents.
602
603 2000-11-13 Loren J. Rittle <ljrittle@acm.org>
604
605 * config/c_io_stdio.h: Don't define __c_wfile_type
606 when _GLIBCPP_USE_WCHAR_T is not defined.
607
608 2000-11-13 Phil Edwards <pme@sources.redhat.com>
609
610 * acinclude.m4 (GLIBCPP_CHECK_TARGET): New macro, replacing
611 GLIBCPP_CHECK_CPU and GLIBCPP_CHECK_OS, sourcing configure.target.
612 (GLIBCPP_CONFIGURE): Call new macro here.
613 * configure.host: Cleanup.
614 * configure.in: Remove those two macros.
615 * configure.target: New file.
616 * aclocal.m4: Regenerated.
617 * configure: Ditto.
618 * Makefile.in: Ditto.
619 * libio/Makefile.in: Ditto.
620 * libmath/Makefile.in: Ditto.
621 * libsupc++/Makefile.in: Ditto.
622 * src/Makefile.in: Ditto.
623
624 * mkcheck.in: Use libtool. Split things out into functions.
625
626 2000-11-12 Alexandre Petit-Bianco <apbianco@cygnus.com>
627
628 * Makefile.am (tmp-libstdsc++.INC:): Do not use -I$(top_builddir).
629 * Makefile.in: Regenerate.
630
631 2000-11-12 David Edelsohn <edelsohn@gnu.org>
632
633 * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Add test for
634 libiconv.a providing wchar_t support functions.
635 * aclocal.m4: Regenerate.
636
637 2000-11-12 Loren J. Rittle <ljrittle@acm.org>
638
639 * acinclude.m4 (GLIBCPP_ENABLE_ATOMICITY): Handle FreeBSD.
640 * aclocal.m4, configure: Rebuilt.
641
642 2000-11-12 Brent Verner <brent@rcfile.org>
643
644 * include/c_std/bits/wrap_langinfo.h: New file.
645 * include/c_std/langinfo.h: New file.
646 * include/bits/codecvt.h (__enc_trants::__enc_traits()): Bring in
647 CODESET from _C_legacy::CODESET if using shadow headers.
648 * src/Makefile.am: Add new files.
649 * src/Makefile.in: Regenerate.
650
651 2000-11-12 Mark Mitchell <mark@codesourcery.com>
652
653 * include/c/bits/std_cmath.h (abs): Change extern "C" declaration
654 of `abs (double)' to ...
655 (fabs): this.
656
657 * config/os/solaris/solaris2.7/bits/os_defines.h: Define
658 __EXTENSIONS__.
659
660 2000-11-11 Mark P Mitchell <mark@codesourcery.com>
661
662 * include/bits/basic_file.h (__basic_file): Don't use __c_wfile_type
663 when _GLIBCPP_USE_WCHAR_T is not defined.
664
665 2000-11-10 Phil Edwards <pme@sources.redhat.com>
666
667 * include/bits/codecvt.h (__iconv_adaptor): New adaptor function,
668 courtesy of Alexandre Oliva, to handle const/non-const signatures.
669 (codecvt::do_out): Use.
670 (codecvt::do_in): And here.
671
672 2000-11-10 Gabriel Dos Reis <gdr@codesourcery.com>
673
674 * include/bits/cpp_type_traits.h: Fix typos. Adjust formatting.
675
676 2000-11-10 Gabriel Dos Reis <gdr@codesourcery.com>
677
678 * include/bits/localefwd.h (_Count_ones<>::_S_halfcount,
679 _Count_ones<>::_S_count): Turn into enumerators.
680
681 2000-11-08 Mark Mitchell <mark@codesourcery.com>
682
683 * include/bits/codecvt.h (codecvt::do_out): Make it const-correct.
684 (codecvt::do_in): Likewise.
685
686 2000-11-08 David Edelsohn <edelsohn@gnu.org>
687
688 * src/locale-inst.cc: Add explicit instantiations of
689 _M_fill_insert and fill_n<..., unsigned long,...> .
690
691 2000-11-06 Gabriel Dos Reis <gdr@codesourcery.com>
692
693 * include/bits/std_complex.h (conj): Undo double removal.
694
695 2000-11-06 Alexandre Oliva <aoliva@redhat.com>
696
697 * acinclude.m4 (LIB_AC_PROG_CXX): Remove CXX from the list of
698 alternatives for CXX_libstdcxx, now that it is useless.
699 * aclocal.m4, configure: Rebuilt.
700
701 2000-11-04 Mark Mitchell <mark@codesourcery.com>
702
703 * acinclude.m4 (LIB_AC_PROG_CXX): Set CXX_libstdcxx from CXX.
704 * aclocal.m4: Regenerated.
705 * configure: Likewise.
706
707 * acinclude.m4 (GLIBCPP_CHECK_CTYPE_SUPPORT): Fix punctuation in
708 use of `test'.
709 * aclocal.m4: Regenerated.
710 * configure: Likewise.
711
712 2000-11-04 Alexandre Oliva <aoliva@redhat.com>
713
714 * acinclude.m4 (CXX): Prevent it from being cached.
715 * aclocal.m4, configure, */Makefile.in: Rebuilt.
716
717 2000-11-03 David Edelsohn <dje@watson.ibm.com>
718
719 * acinclude.m4 (GLIBCPP_CHECK_OS): Add AIX target selecting threads
720 flag based on multilib definition of $CXX.
721 * mknumeric_limits (LDFLAGS): Add AIX target linking with pthreads
722 based on multilib definition of $CXX.
723 * config/os/aix/bits/os_defines.h (_G_USING_THUNKS): Define as 0.
724
725 2000-11-03 Phil Edwards <pme@sources.redhat.com>
726
727 * acinclude.m4: Cleanups.
728 * aclocal.m4: Regenerated.
729 * configure: Ditto.
730 * Makefile.in: Ditto.
731 * libio/Makefile.in: Ditto.
732 * libmath/Makefile.in: Ditto.
733 * libsupc++/Makefile.in: Ditto.
734 * src/Makefile.in: Ditto.
735
736 * docs/install.html: Removal of EGCS.
737 * docs/23_containers/wrappers_h.txt: Likewise.
738 * docs/faq/index.html: Likewise.
739 * docs/faq/index.txt: Regenerated.
740 * docs/thanks.html: More people.
741
742 2000-11-03 David Edelsohn <edelsohn@gnu.org>
743
744 * include/c/bits/std_cwchar.h: Undefine macro that conflicts
745 with function name defined in this file.
746
747 Thu Nov 2 23:19:20 2000 Mark P Mitchell <mark@codesourcery.com>
748
749 * include/c/bits/std_cctype.h: Undefine macros that conflict
750 with function names defined in this file.
751 * include/c/bits/std_cstdio.h: Likewise.
752
753 2000-11-02 Mark Mitchell <mark@codesourcery.com>
754
755 * acinclude.m4 (GLIBCPP_CHECK_CTYPE_SUPPORT): Fix typo.
756
757 Thu Nov 2 10:11:45 2000 Mark P Mitchell <mark@codesourcery.com>
758
759 * acinclude.m4 (GLIBCPP_CHECK_CTYPE_SUPPORT): Add support for IRIX.
760 * aclocal.m4: Regenerated.
761 * Makefile.in: Regenerated.
762 * libio/Makefile.in: Likewise.
763 * libmath/Makefile.in: Likewise.
764 * libsupc++/Makefile.in: Likewise.
765 * src/Makefile.in: Likewise.
766 * configure: Likewise.
767 * config/os/irix/bits/ctype_base.h: Revise.
768 * config/os/irix/bits/ctype_inline.h: Likewise.
769 * config/os/irix/bits/ctype_noninline.h: Likewise.
770
771 * testsuite/22_locale/codecvt_unicode_char.cc: Don't run it
772 if not _GLIBCPP_USE_WCHAR_T.
773 * testsuite/22_locale/codecvt_unicode_wchar_t.cc: Likewise.
774 * testsuite/22_locale/ctor_copy_dtor.cc: Likewise.
775 * testsuite/22_locale/ctype_wchar_t_members.cc: Likewise.
776
777 * mkcheck.in: Fix echoing of -rpath option.
778
779 * config/os/irix/bits/atomicity.h (_Atomic_word): Make it a
780 signed type.
781 (__exchange_aand_add): Adjust accordingly.
782 (__atomic_add): Likewise.
783
784 2000-11-02 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
785
786 * src/locale.cc: Match orderings for static members.
787 * include/bits/fstream.tcc: Fixes for cin.
788
789 2000-11-02 Gabriel Dos Reis <gdr@codesourcery.com>
790
791 * include/bits/std_complex.h (complex<>): Remove (cos<>, cosh<>,
792 exp<>, log<>, log<>, sin, sinh<>) friend declarations.
793 (cos, cosh, sin, sinh): Define primary templates.
794
795 * src/complex.cc (cos<>, cosh<>, sin<>, sinh<>): Comment out
796 definitions.
797
798 2000-11-01 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
799
800 * bits/basic_file.h (_M_open_mode): Change signature, move
801 specializations to..
802 * config/c_io_libio.cc: ...here.
803 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Add sdtio option, remove wince.
804 * aclocal.m4: Regenerate.
805 * configure: Regenerate.
806 * config/c_io_stdio.h: New file.
807 * config/c_io_stdio.cc: New file.
808 * docs/configopts.html: Modify documentation.
809
810 2000-10-31 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
811
812 * include/c/bits/std_cwctype.h: Add more undefs.
813
814 2000-10-31 Gabriel Dos Reis <gdr@codesourcery.com>
815
816 * include/bits/std_complex.h (norm): Forward declare.
817 (complex<>): Comment out friend declaration of conj<>.
818 (conj<>): Comment out specialization.
819 (exp, log, log10): Define primary templates.
820
821 * src/complex.cc (exp<>, log<>, log10<>): Comment out
822 specializations.
823
824 2000-10-31 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
825
826 * include/bits/std_complex.h: Remove duplicate definition of conj.
827 * include/c/bits/std_cwctype.h: Consistent placement of undefs.
828
829 2000-10-31 Gabriel Dos Reis <gdr@codesourcery.com>
830
831 * src/complex.cc (arg, polar): Comment out specializations.
832
833 * include/bits/std_complex.h (complex<>): Remove arg<> friend
834 declaration.
835 (arg): Define primary template.
836 (polar): Likewise.
837 (conj): Likewise.
838
839 2000-10-31 Gabriel Dos Reis <gdr@codesourcery.com>
840
841 * include/c/bits/std_cwctype.h: #undef possible function-like
842 macro definitions of iswxxx functions, which might be brought in
843 by <wctype.h>. Those macro definitions prevent build on some
844 linux-based systems.
845
846 * include/bits/std_complex.h (complex<>): Comment out friend
847 declarations of abs<> specializations.
848 (abs): Define primary template.
849
850 * src/complex.cc (abs): Comment out specialization definition.
851
852 2000-10-30 Phil Edwards <pme@sources.redhat.com>
853
854 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Raise debugging level from
855 the default of 2 to 3.
856 * configure.in: Fix minor typos. SUBST the values of enable_shared
857 and enable_static so that mkcheck will be aware of them. Put the
858 test for gconv.h in with all the other header tests.
859 * aclocal.m4: Regenerate.
860 * configure: Ditto.
861 * Makefile.in: Ditto.
862 * libio/Makefile.in: Ditto.
863 * libmath/Makefile.in: Ditto.
864 * libsupc++/Makefile.in: Ditto.
865 * src/Makefile.in: Ditto.
866
867 * config/os/solaris/solaris2.7/bits/os_defines.h: Define
868 _G_USING_THUNKS to 0.
869
870 2000-10-30 Benjamin Kosnik <bkoz@redhat.com>
871
872 * src/complex_io.cc : Remove ancient defines.
873 * config/os/gnu-linux/bits/os_defines.h: Add defines.
874 * libsupc++/tinfo2.cc: Change to cstddef.
875
876 * include/bits/codecvt.h: Add include of c++config.h, so that
877 __USE_GNU gets defined. (Important for alpha.)
878
879 * include/c/bits/std_cwctype.h: Same.
880 * include/c/bits/std_ctime.h: And here.
881 * include/c/bits/std_cstdarg.h: Same.
882 * include/c/bits/std_csignal.h: Same.
883 * include/c/bits/std_csetjmp.h: Same.
884 * include/c/bits/std_clocale.h: Same.
885 * include/c/bits/std_climits.h: Touch.
886 * include/c/bits/std_cfloat.h: Same.
887 * include/c/bits/std_cerrno.h: Same.
888 * include/c/bits/std_cwchar.h: Same.
889 * include/c/bits/std_cassert.h: Same.
890 * include/c/bits/std_cctype.h: Same.
891 * include/c/bits/std_cstddef.h: And here.
892 * include/c/bits/std_cstdlib.h: And here.
893 * include/c/bits/std_cstdio.h: Same.
894 * include/c/bits/std_cstring.h: Add names to namespace std::.
895
896 * include/bits/c++config (_GNU_SOURCE): Move linux-specific macros
897 from here...
898 (_ISOC99_SOURCE): And this one....
899 * config/os/gnu-linux/bits/os_defines.h: ...to here.
900
901 * include/bits/codecvt.h (codecvt<_InternT, _ExternT,
902 __enc_traits>::do_in): Don't cast to const, this is a bug in glibc
903 prior to 2.2.
904 (codecvt<_InternT, _ExternT, __enc_traits>::do_out): Same.
905 * include/c/bits/std_cwchar.h: Add using declarations for mbstate_t.
906
907 2000-10-30 Steven King <sxking@uswest.net>
908
909 * include/bits/codecvt.h: Add cast.
910 * include/c_std/stdio.h: Re-add printf using declaration.
911 * include/c_std/bits/std_cstdio.h: Same
912 * testsuite/22_locale/codecvt_wchar_t_char.cc: Fixup testsuite.
913 * testsuite/22_locale/ctor_copy_dtor.cc: Same.
914 * testsuite/22_locale/facet.cc: Same.
915 * testsuite/22_locale/global_templates.cc: Same.
916 * testsuite/22_locale/operators.cc: Same.
917 * testsuite/22_locale/static_members.cc: Same.
918 * testsuite/26_numerics/c_math.cc: Same.
919 * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
920 * testsuite/27_io/fpos.cc: Same.
921 * testsuite/27_io/istream_extractor_arith.cc: Same.
922 * testsuite/27_io/istream_unformatted.cc: Same.
923 * testsuite/27_io/ostream_inserter_arith.cc: Same.
924 * testsuite/27_io/streambuf.cc: Same.
925
926 2000-10-30 Mark Mitchell <mark@codesourcery.com>
927
928 * acinclude.m4 (GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT): Check
929 for cabs, cabsf, and cabsl, too.
930 * aclocal.m4: Regenerated.
931 * config.h.in: Likewise.
932 * configure: Likewise.
933 * libmath/Makefile.am (libmath_la_SOURCES): Remove cabs.c and
934 cabsf.c.
935 * libmath/Makefile.in: Regenerated.
936 * libmath/complex-stub.h (cabs): Don't declare if the system
937 already provides this function.
938 (cabsf): Likewise.
939 (cabsl): Likewise.
940 * src/complex.cc (abs): Directly use `hypot' since we can't call
941 cabs on IRIX.
942
943 2000-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
944
945 * acinclude.m4: Update URL on egcs.cygnus.com to point to
946 gcc.gnu.org.
947 * aclocal.m4, configure: Regenerate.
948 * src/gen-num-limits.cc, include/bits/c++config,
949 include/bits/stl_config.h: Remove EGCS references.
950
951 2000-10-29 Mark Mitchell <mark@codesourcery.com>
952
953 * mkcheck.in (test_file): Use -rpath, rather than --rpath, when
954 building shared executables.
955
956 2000-10-29 Mark Harig <mharig@landmark.com>
957
958 * src/Makefile.am: Change logic for include dir options.
959 * src/Makefile.in: Regenerate.
960 * libsupc++/Makefile.am: Ditto.
961 * libsupc++/Makefile.in: Regenerate.
962
963 2000-10-29 Benjamin Kosnik <bkoz@redhat.com>
964
965 * configure.in: Simplify use of AC_CACHE_SAVE. Put linked files
966 in $(top_builddir)/include/bits, not $(top_builddir)/bits, to help
967 with libgcj build issues and improve consistency with the source
968 directory's include directory setup.
969 * configure: Regenerate.
970 * acinclude.m4: Same here.
971 * aclocal.m4: Regenerate.
972 * mknumeric_limits (OUT_H): Also change paths here.
973 * mkcheck.in (C_DIR): And here.
974 * mkc++config (OUT_H): And here.
975 * libmath/Makefile.am (INCLUDES): And here.
976 * src/Makefile.am (INCLUDES): Change to $(top_builddir)/include.
977 * libio/Makefile.am: Ditto.
978 * libsupc++/Makefile.am (INCLUDES): Ditto.
979
980 2000-10-29 Mark Mitchell <mark@codesourcery.com>
981
982 * config/c_io_libio.cc (basic_file<char>::__basic_file):
983 Don't pass a NULL _IO_wide_data to _IO_no_init when
984 _GLIBCPP_USE_WCHAR_T is not defined.
985 * config/c_io_libio.h (_IO_codecvt): Don't declare when
986 _GLIBCPP_USE_WCHAR_T is not defined.
987 * config/c_io_libio_codecvt.c: Don't compile it
988 when _GLIBCPP_USE_WCHAR_T is not defined.
989 * include/bits/codecvt.h (codecvt<_InternT, _ExternT, __enc_traits):
990 Don't define this specialization when _GLIBCPP_USE_WCHAR_T
991 is not defined.
992 * include/bits/locale_facets.h (<bits/std_cwctype.h>): Don't
993 include it when _GLIBCPP_USE_WCHAR_T is not defined.
994 * src/codecvt.cc (__enc_traits::_S_max_size): Don't define
995 when _GLIBCPP_USE_WCHAR_T is not defined.
996 * src/localename.cc (locale::_Impl::_M_construct_collate):
997 Don't call wide-character functions when _GLIBCPP_USE_WCHAR_T is
998 not defined.
999 (locale::_Impl::_M_construct_ctype): Likewise.
1000 (locale::_Impl::_M_construct_monetary): Likewise.
1001 (locale::_Impl::_M_construct_numeric): Likewise.
1002 (locale::_Impl::_M_construct_time): Likewise.
1003 (locale::_Impl::_M_construct_messages): Likewise.
1004
1005 * acinclude.m4 (GLIBCPP_ENABLE_ATOMICITY): Handle IRIX.
1006 * aclocal.m4: Regenerated.
1007 * configure: Likewise.
1008 * config/os/irix/bits/atomicity.h: New file.
1009 * config/os/irix/bits/os_defines.h (_POSIX_SOURCE): Undefine.
1010 (__off_t): Define.
1011 (__off64_t): Likewise.
1012 (__ssize_t): Likewise.
1013 (_G_USING_THUNKS): Define to zero.
1014
1015 2000-10-28 Mark Mitchell <mark@codesourcery.com>
1016
1017 * src/string-inst.cc (basic_string<C>::npos): Explicitly
1018 instantiate it.
1019
1020 2000-10-26 Benjamin Kosnik <bkoz@redhat.com>
1021
1022 * include/c/bits/std_cmath.h: Fix double declarations in namespace std.
1023
1024 Clean up naming, consistency in "C" library autoconf testing.
1025 * acinclude.m4 (GLIBCPP_CHECK_CTYPE): For consistency, change to
1026 GLIBCPP_CHECK_CTYPE_SUPPORT.
1027 (GLIBCPP_CHECK_STDLIB_SUPPORT): Add.
1028 * aclocal.m4: Regenerate.
1029 * configure.in: And here.
1030 Add call to GLIBCPP_CHECK_STDLIB_SUPPORT.
1031 * configure: Regenerate.
1032
1033 2000-10-26 David Edelsohn <edelsohn@gnu.org>
1034
1035 * acinclude.m4 (GLIBCPP_CHECK_STDLIB_DECL_AND_LINKAGE_2): New macro.
1036 (GLIBCPP_CHECK_MATH_SUPPORT): Use it to test for strtold.
1037
1038 2000-10-26 Phil Edwards <pme@sources.redhat.com>
1039 David Edelsohn <dje@watson.ibm.com>
1040
1041 * acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES): Comment out
1042 --gc-sections stuff entirely to avoid misleading people.
1043 (GLIBCPP_ENABLE_CSTDIO): Merge need_libio and need_xtra_libio.
1044 * libio/Makefile.am (LIBIO_SRCS,LIBIO_WSRCS,LIBIO_XTRA_SRCS):
1045 Rearrange and merge.
1046 * libio/libio.h: Simplify, make fewer assumptions. Define those
1047 macros which must be defined.
1048 * config/os/solaris/solaris2.7/bits/os_defines.h: Simplify as a
1049 result.
1050
1051 2000-10-26 Mark Mitchell <mark@codesourcery.com>
1052
1053 * include/backward/streambuf.h: New file.
1054
1055 2000-10-26 David Edelsohn <dje@watson.ibm.com>
1056
1057 * config/os/aix/bits/ctype_inline.h (is): Use __OBJ_DATA directly.
1058 * config/os/aix/bits/ctype_noninline.h (do_tolower): Fix typo.
1059 * config/os/aix/bits/os_defines.h: Add AIX defines.
1060
1061 2000-10-26 Benjamin Kosnik <bkoz@redhat.com>
1062
1063 * acinclude.m4 (GLIBCPP_ENABLE_LONG_DOUBLE): Remove.
1064 * aclocal.m4: Regenerate.
1065 * configure.in: Remove GLIBCPP_ENABLE_LONG_DOUBLE.
1066 * configure: Regenerate.
1067 * docs/configopts.html: Remove.
1068 * src/complexl.cc: Revert.
1069 * config.h.in: Remove.
1070 * include/c_std/bits/std_cmath.h: Remove guards based on
1071 _GLIBCPP_USE_LONG_DOUBLE.
1072 * include/c/bits/std_cmath.h: Same. Format. Match c_std behavior
1073 with respect to long double signatures.
1074
1075 * config/os/aix/bits/ctype_noninline.h (ctype): Remove throw
1076 specification.
1077 * config/os/newlib/bits/ctype_noninline.h (ctype): And here.
1078 * config/os/solaris/solaris2.6/bits/ctype_noninline.h (ctype): Same.
1079 * config/os/solaris/solaris2.5/bits/ctype_noninline.h (ctype): Same.
1080 * config/os/generic/bits/ctype_noninline.h (ctype): Same.
1081 * config/os/bsd/bits/ctype_noninline.h (ctype): Same.
1082
1083 2000-10-26 Gabriel Dos Reis <gdr@codesourcery.com>
1084
1085 * include/bits/std_valarray.h (valarray::valarray): Fix thinko.
1086 Use __valarray_copy_construct only where appropriate.
1087
1088 2000-10-25 Mark Mitchell <mark@codesourcery.com>
1089
1090 * Makefile.in (check): Don't make mkcheck executable.
1091 (check-install): Likewise.
1092 * configure.in (AC_OUTPUT): Make mkcheck executable.
1093 * mkcheck.in (top_srcdir): New variable.
1094 (INC_PATH): Set the path to the backward and ext directories
1095 correctly.
1096
1097 2000-10-25 Phil Edwards <pme@sources.redhat.com>
1098
1099 * configure.in: Check for gconv.h.
1100 * libio/wfileops.c: Wrap gconv.h in HAVE_GCONV_H.
1101
1102 * config/c_io_libio_codecvt.c: Change __mbstate_t to __c_mbstate_t.
1103 * libio/_G_config.h: And here.
1104 * libio/iofwide.c: And here.
1105 * libio/libio.h: And here.
1106
1107 * config/os/solaris/solaris2.7/bits/ctype_noninline.h: Remove
1108 exception specification to match declaration.
1109 * include/bits/locale_facets.tcc: Include bits/std_clocale.h.
1110
1111 2000-10-24 Mark Harig <mharig@landmark.com>
1112
1113 * docs/configopts.html: Added documentation for the
1114 "--enable-version-specific-runtime-libs" and
1115 "--with-gxx-include-dir" configuration switches.
1116
1117 2000-10-24 Benjamin Kosnik <bkoz@redhat.com>
1118
1119 * include/bits/stl_pair.h (make_pair): Add LWG solution.
1120
1121 * testsuite/21_strings/compare.cc (test01): Inject namespace std
1122 into the mix.
1123
1124 * mkcheck.in (MAX_MEM_USAGE): Bump up to 3072. Strangely enough,
1125 this works.
1126
1127 2000-10-24 Levente Farkas <lfarkas@mindmaker.hu>
1128
1129 * include/bits/std_bitset.h (_M_do_find_next): Fix typo.
1130
1131 2000-10-24 Phil Edwards <pme@sources.redhat.com>
1132
1133 * acconfig.h: List _GLIBCPP_USE_THREADS.
1134 * acinclude.m4: General formatting cleanup (tabs/spaces), typo
1135 correction, etc. Add comments about following *real* changes
1136 where they are used.
1137 (GLIBCPP_ENABLE_C_MBCHAR): New test...
1138 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): ...results used here.
1139 (GLIBCPP_ENABLE_CSTDIO): Define need_wlibio iff wide characters
1140 are requested.
1141 (GLIBCPP_ENABLE_THREADS): If threads are used, define new
1142 macro _GLIBCPP_USE_THREADS in c++config.h.
1143 (GLIBCPP_ENABLE_SHADOW): For C_INCLUDE_DIR, change () to {} as
1144 this is used in both makefiles and shell scripts (mkcheck).
1145 * configure.in: Call GLIBCPP_ENABLE_C_MBCHAR.
1146
1147 * libio/_G_config.h: Wrap _IO_MTSAFE_IO in _GLIBCPP_USE_THREADS.
1148 * config/c_io_libio.h: In nonthreaded case, typedef __c_lock to
1149 something harmless, like int.
1150
1151 * config/os/aix/bits/os_defines.h: Guard with _GLIBCPP_OS_DEFINES,
1152 add comment/instructions.
1153 * config/os/bsd/bits/os_defines.h: Ditto.
1154 * config/os/generic/bits/os_defines.h: Ditto.
1155 * config/os/gnu-linux/bits/os_defines.h: Ditto.
1156 * config/os/irix/bits/os_defines.h: Ditto.
1157 * config/os/newlib/bits/os_defines.h: Ditto.
1158 * config/os/solaris/solaris2.5/bits/os_defines.h: Ditto.
1159 * config/os/solaris/solaris2.6/bits/os_defines.h: Ditto.
1160
1161 * mkcheck.in: Limit the available heap size for testsuite
1162 binaries, initially at 2MB.
1163
1164 2000-10-23 Benjamin Kosnik <bkoz@redhat.com>
1165
1166 * testsuite/21_strings/compare.cc (test01): Add using declarations.
1167
1168 * include/c_std/bits/std_cerrno.h: And here.
1169 * include/c_std/bits/std_cassert.h: Tweaks.
1170
1171 * mkcheck.in: Simplify.
1172
1173 * acinclude.m4 (GLIBCPP_ENABLE_LONG_DOUBLE): Simplify.
1174 (GLIBCPP_ENABLE_LONG_LONG): Same.
1175 * aclocal.m4: Regenerate.
1176
1177 * src/Makefile.am (c_shadow_headers): Add features.h,
1178 bits/wrap_features.h.
1179 * src/Makefile.in: Regenerate.
1180 * include/c_std/features.h: New file.
1181 * include/c_std/bits/wrap_features.h (_CPP_WRAP_FEATURES_H): New
1182 file. Need to have c++config.h included before this file so
1183 _ISOC99_SOURCE around.
1184
1185 * include/c_std/sys/cdefs.h: Hack.
1186 * include/c_std/stdlib.h: Same, use c++config.h.
1187 * include/c_std/bits/std_cstdlib.h: Use _GLIBCPP_HAVE_STRTOLD.
1188
1189 * include/c_std/bits/std_cassert.h: Fix.
1190 * include/c_std/bits/std_cerrno.h: Make consistent.
1191
1192 * include/c_std/bits/std_csetjmp.h (setjmp): Unscope global
1193 declaration from ::_C_legacy to _C_legacy.
1194
1195 * include/c_std/bits/std_cstdio.h: same with printf.
1196 * include/c_std/stdio.h: And here.
1197
1198 * include/c_std/bits/std_cstdlib.h: abort, exit comment.
1199 * include/c_std/stdlib.h: Same here.
1200
1201 2000-10-23 Benjamin Kosnik <bkoz@redhat.com>
1202
1203 * testsuite/21_strings/compare.cc (test01): Add using declarations.
1204
1205 * include/c_std/bits/std_cerrno.h: And here.
1206 * include/c_std/bits/std_cassert.h: Tweaks.
1207
1208 * mkcheck.in: Simplify.
1209
1210 * acinclude.m4 (GLIBCPP_ENABLE_LONG_DOUBLE): Simplify.
1211 (GLIBCPP_ENABLE_LONG_LONG): Same.
1212 * aclocal.m4: Regenerate.
1213
1214 * src/Makefile.am (c_shadow_headers): Add features.h,
1215 bits/wrap_features.h.
1216 * src/Makefile.in: Regenerate.
1217 * include/c_std/features.h: New file.
1218 * include/c_std/bits/wrap_features.h (_CPP_WRAP_FEATURES_H): New
1219 file. Need to have c++config.h included before this file so
1220 _ISOC99_SOURCE around.
1221
1222 * include/c_std/sys/cdefs.h: Hack.
1223 * include/c_std/stdlib.h: Same, use c++config.h.
1224 * include/c_std/bits/std_cstdlib.h: Use _GLIBCPP_HAVE_STRTOLD.
1225
1226 * include/c_std/bits/std_cassert.h: Fix.
1227 * include/c_std/bits/std_cerrno.h: Make consistent.
1228
1229 * include/c_std/bits/std_csetjmp.h (setjmp): Unscope global
1230 declaration from ::_C_legacy to _C_legacy.
1231
1232 * include/c_std/bits/std_cstdio.h: same with printf.
1233 * include/c_std/stdio.h: And here.
1234
1235 * include/c_std/bits/std_cstdlib.h: abort, exit comment.
1236 * include/c_std/stdlib.h: Same here.
1237
1238 2000-10-21 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
1239
1240 * acinclude.m4 (GLIBCPP_ENABLE_LONG_DOUBLE): New macro.
1241 * aclocal.m4: Regenerate.
1242 * configure.in: Use it.
1243 * configure: Regenerate.
1244 * src/complexl.cc: Fixup.
1245 * include/c_std/bits/std_cmath.h: Fixup.
1246 * include/c/bits/std_cmath.h: Fixup.
1247 * docs/configopts.html: Add docs.
1248
1249 * docs/links.html: Add links to defects list, standards FAQ.
1250
1251 * testsuite/21_strings/ctor_copy_dtor.cc (test01): Disable tests
1252 with string creation that allocate huge ammounts of memory.
1253
1254 * include/c/bits/std_cstddef.h: Put size_t, ptrdiff_t in
1255 namepace std.
1256
1257 2000-10-21 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
1258
1259 * libsupc++/exception.cc: Use namespace std.
1260 * libsupc++/new: DITTO.
1261 * libsupc++/new_op.cc: DITTO.
1262 * libsupc++/new_opnt.cc: DITTO.
1263 * libsupc++/new_opv.cc: DITTO.
1264 * libsupc++/new_opvnt.cc: DITTO.
1265 * libsupc++/tinfo.cc: DITTO.
1266 * libsupc++/tinfo.h: DITTO.
1267 * libsupc++/vec.cc: DITTO.
1268 * libsupc++/Makefile.am: Blank lines removal.
1269
1270 2000-10-21 Joseph S. Myers <jsm28@cam.ac.uk>
1271
1272 * docs/configopts.html, docs/install.html, docs/17_intro/BADNAMES,
1273 docs/17_intro/howto.html, docs/18_support/howto.html,
1274 docs/19_diagnostics/howto.html, docs/20_util/howto.html,
1275 docs/21_strings/howto.html, docs/22_locale/howto.html,
1276 docs/23_containers/howto.html, docs/24_iterators/howto.html,
1277 docs/25_algorithms/howto.html, docs/26_numerics/howto.html,
1278 docs/27_io/howto.html, docs/ext/howto.html, docs/faq/index.html:
1279 Remove many EGCS references; use current absolute URLs on
1280 gcc.gnu.org or sources.redhat.com for messages in list archives.
1281 * docs/faq/index.txt: Regenerate.
1282
1283 2000-10-19 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
1284
1285 * testsuite/22_locale/codecvt_unicode_char.cc (test01): Adjust
1286 creation of state_type for unicode_codecvt to take into account
1287 the byte order markings. Add distinct tests for UCS-2BE and UCS-2LE.
1288 * testsuite/22_locale/codecvt_unicode_wchar_t.cc (test01): Same.
1289 * include/bits/codecvt.h (__enc_traits): Add support for encodings
1290 that need a byte order marker. Needed for correct unicode support.
1291
1292 * src/locale.cc: Remove explicit qualification std::.
1293 (locale::locale(const char* __name)): Revert, as named locale
1294 support not finished.
1295 * src/localename.cc (locale::_Impl:: _Impl(size_t __numfacets,
1296 size_t __refs, bool __has_name = false, string __name): Move
1297 default argument...
1298 * include/bits/localefwd.h: Here.
1299
1300 2000-10-18 Chip Salzenberg <chip@valinux.com>
1301
1302 * libio/libio.h (_IO_USER_LOCK): Define.
1303
1304 2000-10-18 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
1305
1306 * libsupc++/Makefile.am (exception): Change exception.cc to
1307 exception_support.cc.
1308 (CXXLINK): Remove bogus --tag CC.
1309 * libsupc++/Makefile.in: Regenerate.
1310 * libsupc++/exception.cc: Move to...
1311 * libsupc++/exception_support.cc: ...here.
1312
1313 * src/Makefile.am: Remove bogus --tag CC.
1314 * src/Makefile.in: Regenerate.
1315
1316 * include/bits/locale_facets.tcc (use_facet): Simplify.
1317 * include/bits/locale_facets.h (use_facet<ctype<char> >): Correct
1318 use_facet declaration. Replace 'const ctype<T>' with ctype<T>.
1319 (use_facet<ctype<wchar_t> >): Same.
1320 * src/locale-inst.cc: Remove explicit instantiation.
1321 * src/locale.cc: Correct signature here too.
1322 (_Bad_use_facet::what()): Correct error string.
1323 * include/bits/localefwd.h: Correct comment.
1324
1325 * mkcheck.in (C_DIR): Change libsupc++/include to libsupc++.
1326
1327 2000-10-17 Martin Buchholz <martin@xemacs.org>
1328
1329 * testsuite/27_io/istream_seeks.cc: Fix spelling typo.
1330 * testsuite/27_io/ostream_seeks.cc: Similarly.
1331
1332 2000-10-17 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
1333
1334 via Alexandre Oliva <aoliva@redhat.com>
1335 * libsupc++/Makefile.am: Add --tag CXX, --tag CC, comments.
1336 * libsupc++/Makefile.in: Regenerate.
1337 * src/Makefile.am: Duplicate code.
1338 * src/Makefile.in: Regenerate.
1339
1340 * acinclude.m4 (GLIBCPP_ENABLE_RELIBGCC): Take this out.
1341 * aclocal.m4: Regenerate.
1342 * configure.in: And here.
1343 * configure: Regenerate.
1344
1345 * acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES): Disable
1346 test for SECTION_LDFLAGS.
1347
1348 2000-10-16 Benjamin Kosnik <bkoz@gnu.org>
1349
1350 Shadow headers would work if libsupc++ was strict about namespaces.
1351 This only possible if g++ maps std::size_t -> size_t. (Hint hint.)
1352 * include/c_std/assert.h: Add guards.
1353 * include/c_std/bits/std_climits.h: Correct typo.
1354 * include/c_std/ctype.h: Remove #error.
1355
1356 * libio/libioP.h: Break up extern "C" bits around includes.
1357 * libio/libio.h: Only include C headers, or else _C_legacy namespaces
1358 will be nested.
1359 * libio/libioP.h: Same here.
1360
1361 2000-10-15 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
1362
1363 * include/c_std/unistd.h: Define some types only when defined in
1364 the original unistd.h.
1365 * include/c_std/bits/std_cstddef.h: Explicitly ask for the
1366 definition of size_t, ptrdiff_t and NULL.
1367 * include/c_std/bits/wrap_unistd.h: Blank lines removal.
1368
1369 2000-10-15 Phil Edwards <pme@sources.redhat.com>
1370
1371 * docs/configopts.html: Remove libgcc-rebuild; HTML formatting.
1372
1373 2000-10-13 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
1374 Mark Harig <markh@landmark.com>
1375
1376 * src/Makefile.am (toolexeclibdir): Add support fo
1377 VERSION_SPECIFIC_LIBS and --with-gxx-include-dir.
1378 * src/Makefile.in: Regenerate.
1379 * libsupc++/Makefile.am: Same.
1380 (glibcppinstalldir): Adjust.
1381 * libsupc++/Makefile.in: Regenerate.
1382 * Makefile.am: Remove gxx_include_dir. Remove INCLUDE.
1383 * Makefile.in: Regenerate.
1384 * docs/configopts.html: Add descriptions of flags.
1385
1386 2000-10-11 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
1387
1388 * libsupc++/Makefile.am: Use it.
1389 * libio/Makefile.am: Use it.
1390 * libmath/Makefile.am: Use it.
1391 * src/Makefile.am: Use it.
1392 * Makefile.am (AM_MAKEFLAGS): Remove includes.
1393
1394 * acinclude.m4 (GLIBCPP_EXPORT_INCLUES): Move include macros here.
1395 (GLIBCPP_EXPORT_FLAGS): Move CXX flag setting here.
1396 * configure.in: Use it.
1397
1398 * mkcheck.in (SRC_DIR): Use C_INCLUDE_DIR.
1399
1400 * src/Makefile.am (CXXCOMPILE): Remove.
1401 * src/Makefile.in: Regenerate.
1402 * libsupc++/Makefile.am (CXXCOMPILE): Same here.
1403 * libsupc++/Makefile.in: Regenerate.
1404
1405 * include/c_std/*: Merge with shadow.
1406 * include/c_std/bits/*: Same.
1407
1408 * shadow: Remove directory.
1409 * shadow/*: De-populate.
1410
1411 2000-10-11 Phil Edwards <pme@sources.redhat.com>
1412
1413 * acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES): Comment out
1414 exception-throwing code for linker test.
1415 * aclocal.m4: Regenerate.
1416 * configure: Regenerate.
1417
1418 2000-10-10 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
1419
1420 * Makefile.am (LIBSUPCXX_INCLUDES): Adjust.
1421 * libsupc++/include: Remove
1422 * libsupc++/include/*: Move to ...
1423 * libsupc++: Here.
1424 * libsupc++/Makefile.am (glibcppinstall_HEADERS): Install headers.
1425 (glibcppinstalldir): New.
1426
1427 * src/Makefile.am (c_base_headers): New.
1428 (c_shadow_headers): New
1429 (c_headers): New.
1430 (myinstallheaders): Correct install issues.
1431 * src/Makefile.in: Regenerate.
1432
1433 * Makefile.am (CSHADOW_INCLUDES): Simplify.
1434 * Makefile.in: Regenerate.
1435 * acinclude.m4 (GLIBCPP_ENABLE_SHADOW): Add c_include_dir.
1436 * aclocal.m4: Regenerate.
1437 * mkcheck.in (SRC_DIR): Use it.
1438
1439 * include/bits/std_stdexcept.h: And here.
1440 * include/bits/std_ios.h: Change std_exception.h to exception.
1441 * src/locale.cc: And here.
1442 * src/locale-inst.cc: And here.
1443
1444 * include/bits/valarray_array.h: And here.
1445 * include/bits/stl_alloc.h: And here.
1446 * include/bits/stl_algobase.h: And here.
1447 * include/bits/pthread_allocimpl.h: And here.
1448 * include/bits/stl_construct.h: Change to std_new.h to new.
1449
1450 * include/bits/locale_facets.h: Change std_typeinfo.h to typeinfo.
1451
1452 * src/Makefile.am (INCLUDES): Add LIBSUPCXX_INCLUDES.
1453 (headers): Remove duplicated headers.
1454 (std_headers): And here.
1455 * src/Makefile.in: Regenerate.
1456 * libsupc++/Makefile.am (LIBSUPCXX_INCLUDES): Remove.
1457 * libsupc++/Makefile.in: Regenerate.
1458 * Makefile.am (LIBSUPCXX_INCLUDES): Add here.
1459 (AM_MAKEFLAGS): And here.
1460 * Makefile.in: Regenerate.
1461 * include/bits/std_typeinfo.h: Remove.
1462 * include/bits/std_new.h: Remove
1463 * include/bits/std_exception.h: Remove.
1464 * std/new: Remove.
1465 * std/typeinfo: Remove.
1466 * std/exception: Remove.
1467
1468 * libio/_G_config.h (__need_ptrdiff_t): Add.
1469
1470 * libsupc++/include/new: Change stddef.h to cstddef.
1471 * libsupc++/tinfo.h: Change limits.h to climits.
1472 * libsupc++/pure.cc: Comment out _GNU_LIBRARY_ bits, as this
1473 renders the file uncompilable. Add copyright.
1474
1475 * include/c_std/bits/std_cstddef.h: Don't bring wchar_t into std
1476 namespace, as it is a fundamental type.
1477
1478 2000-10-09 Richard Henderson <rth@cygnus.com>
1479
1480 * libsupc++/pure.cc: New file.
1481 * libsupc++/Makefile.am (INCLUDES): Add top_builddir.
1482 (sources): Add pure.cc.
1483 * libsupc++/Makefile.in: Regenerate.
1484
1485 2000-10-09 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
1486
1487 * docs/configopts.html: Edit.
1488
1489 * libio/Makefile.am (INCLUDES): Remove duplicates, simplify.
1490 * libio/Makefile.in: Regenerate.
1491 * libmath/Makefile.am (INCLUDES): Remove duplicates, simplify.
1492 * libmath/Makefile.in: Regenerate.
1493 * libsupc++/Makefile.am (INCLUDES): Remove duplicate.
1494 * libsupc++/Makefile.in: Regenerate.
1495
1496 * Makefile.am (AM_MAKEFLAGS): Add GLIBCPP_INCLUDES,
1497 TOPLEVEL_INCLUDES, LIBMATH_INCLUDES, LIBIO_INCLUDES,
1498 CSHADOW_INCLUDES up here.
1499 * Makefile.in: Regenerate.
1500 * src/Makefile.am (CSHADOW_INCLUDES): Add include/c_std, include/c
1501 for shadow headers.
1502 (myinstallheaders): Change glibcpp_includedir to GLIBCPP_INCLUDES.
1503 Move GLIBCPP_INCLUDES, TOPLEVEL_INCLUDES, LIBMATH_INCLUDES,
1504 LIBIO_INCLUDES, CSHADOW_INCLUDES up Makefile hierarchy.
1505 * src/Makefile.in: Regenerate.
1506
1507 * include/c: New directory.
1508 * include/c/bits/(std_cassert.h, std_cctype.h, std_cerrno.h,
1509 std_cfloat.h, std_climits.h, std_clocale.h, std_cmath.h,
1510 std_csetjmp.h, std_csignal.h, std_cstdarg.h, std_cstddef.h,
1511 std_cstdio.h, std_cstdlib.h, std_cstring.h, std_ctime.h,
1512 std_cwchar.h, std_cwctype.h): Add, moving from...
1513 * include/bits: ...here.
1514 * include/c_std: New directory.
1515 * include/c_std/bits/*: Populate from...
1516 * shadow: ...here. Remove directory.
1517
1518 2000-10-08 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
1519
1520 * libsupc++/Makefile.am (INCLUDES): Add toplevel include directory.
1521 (INCLUDES): Add glibcpp_includedir.
1522 * libsupc++/Makefile.in: Regenerate.
1523
1524 * acinclude.m4 (GLIBCPP_CHECK_OS): Link to os_defines.h.
1525 * aclocal.m4: Regenerate.
1526 * config/os/*/bits/os_defintes: Adjust copyright dates.
1527
1528 2000-10-08 Phil Edwards <pme@sources.redhat.com>
1529
1530 * include/bits/c++config: Include <bits/os_defines.h>
1531 * config/os/aix/bits/os_defines.h: New file.
1532 * config/os/bsd/bits/os_defines.h: Ditto.
1533 * config/os/generic/bits/os_defines.h: Ditto.
1534 * config/os/gnu-linux/bits/os_defines.h: Ditto.
1535 * config/os/irix/bits/os_defines.h: Ditto.
1536 * config/os/newlib/bits/os_defines.h: Ditto.
1537 * config/os/solaris/solaris2.5/bits/os_defines.h: Ditto.
1538 * config/os/solaris/solaris2.6/bits/os_defines.h: Ditto.
1539 * config/os/solaris/solaris2.7/bits/os_defines.h: Ditto.
1540
1541 2000-10-07 David Edelsohn <dje@watson.ibm.com>
1542
1543 * config/os/aix/bits/atomicity.h: New file.
1544
1545 2000-10-07 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
1546
1547 * acinclude.m4: Remove CPU_FLAGS
1548 * libio/Makefile.am: Here too.
1549 * Makefile.am: Here too.
1550
1551 * src/Makefile.am (CONFIG_INCLUDES): Remove.
1552 (INCLUDES): Remove CONFIG_INCLUDES.
1553 (cpu_headers): Remove.
1554 (myinstallheaders): Remove cpu_headers.
1555 (generated_headers): Rename to build_headers.
1556 (build_headers): Add atomicity.h, ctype_base.h,
1557 ctype_specializations.h.
1558
1559 * config/os: New directory.
1560 * config/aix: Move to...
1561 * config/bsd: Move to...
1562 * config/generic: Move to...
1563 * config/gnu-linux: Move to...
1564 * config/irix: Move to...
1565 * config/newlib: Move to...
1566 * config/solaris: Move to...
1567 * config/os/*: Here.
1568
1569 2000-10-07 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
1570
1571 * acinclude.m4: Remove CPU_FLAGS
1572 * libio/Makefile.am: Here too.
1573 * Makefile.am: Here too.
1574
1575 * src/Makefile.am (CONFIG_INCLUDES): Remove.
1576 (INCLUDES): Remove CONFIG_INCLUDES.
1577 (cpu_headers): Remove.
1578 (myinstallheaders): Remove cpu_headers.
1579 (generated_headers): Rename to build_headers.
1580 (build_headers): Add atomicity.h, ctype_base.h,
1581 ctype_specializations.h.
1582
1583 * config/os: New directory.
1584 * config/aix: Move to...
1585 * config/bsd: Move to...
1586 * config/generic: Move to...
1587 * config/gnu-linux: Move to...
1588 * config/irix: Move to...
1589 * config/newlib: Move to...
1590 * config/solaris: Move to...
1591 * config/os/*: Here.
1592
1593 2000-10-06 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
1594
1595 * src/Makefile.am: Remove OPTIMIZE_CXXFLAGS, WARN_CXXFLAGS,
1596 CONFIG_CXXFLAGS from here, and move to...
1597 * src/Makefile.in: Regenerate.
1598 * Makefile.am: ... here. Clean.
1599 (OPTIMIZE_CXXFLAGS): Move up Makefile hierarchy to here.
1600 (WARN_CXXFLAGS): Same.
1601 (CONFIG_CXXFLAGS): Same.
1602 * Makefile.in: Regenerate.
1603 * libsupc++/Makefile.am: Use top-level OPTIMIZE_CXXFLAGS,
1604 WARN_CXXFLAGS, CONFIG_CXXFLAGS as part of local AM_CXXFLAGS.
1605 * libsupc++/Makefile.in: Regenerate.
1606
1607 Change math to libmath.
1608 * math: Move to libmath, delete.
1609 * libmath: New directory.
1610 * libmath/*: Populate.
1611 * src/Makefile.am (LIBMATH_INCLUDES): Change to libmath.
1612 (libstdc___la_LIBADD): Same.
1613 * src/Makefile.in: Regenerate.
1614 * configure.in: Add AC_OUTPUT for libmath/Makefile.
1615 * configure: Regenerate.
1616 * Makefile.am (SUBDIRS): Add libmath.
1617 * Makefile.in: Regenerate.
1618 * README (file): Change name.
1619
1620 2000-10-06 Benjamin Kosnik <bkoz@cygnus.com>
1621 Richard Henderson <rth@cygnus.com>
1622 Alexandre Oliva <aoliva@redhat.com>
1623
1624 * libsupc++: New directory.
1625 * libsupc++/*: Populate.
1626 * libsupc++/Makefile.am (INCLUDES): Add -I../../gcc for
1627 eh-common.h, gansidecl.h.
1628 * configure.in: Add in libsupc++/Makefile to AC_OUTPUT.
1629 * configure: Regenerate.
1630 * Makefile.am (SUBDIRS): Add libsupc++.
1631 * Makefile.in: Regenerate.
1632 * src/Makefile.am (libstdc___la_LIBADD): Add in libsupc++.la
1633 * src/Makefile.in: Regenerate.
1634 * libio/Makefile.am: Remove extraneous, confusing bits.
1635 * libio/Makefile.in: Regenerate.
1636
1637 2000-10-05 Brent Verner <brent@rcfile.org>
1638
1639 * bits/istream.tcc [basic_istream::get(basic_streambuf&)]: Removed
1640 test for _M_gcount < in_avail(), as in_avail() only reports info
1641 for current buffer, causing method to return at end of buffer.
1642 * testsuite/27_io/istream_unformatted.cc [test07()]: New test.
1643 * testsuite/27_io/istream_unformatted-3.txt: New file.
1644 * testsuite/27_io/istream_unformatted-3.tst: New file.
1645
1646 2000-10-05 Benjamin Kosnik <bkoz@fillmore.constant.com>
1647
1648 * README (file): Adjust directory structures.
1649 * mkcheck.in (INC_PATH): Adjust for header changes.
1650
1651 2000-10-05 Phil Edwards <pme@sources.redhat.com>
1652
1653 * acinclude.m4 (GLIBCPP_CHECK_CTYPE): Tweaks to message texts
1654 for public relations purposes.
1655 * aclocal.m4: Regenerated.
1656 * configure: Regenerated.
1657
1658 * docs/ext/howto.html: Additional explanation about hashing.
1659
1660 2000-10-05 Benjamin Kosnik <bkoz@cygnus.com>
1661
1662 * include: New directory.
1663 * include/backward: New directory.
1664 * include/bits: New directory.
1665 * include/ext: New directory.
1666 * include/std: New directory.
1667 * include/*/*: Populate.
1668
1669 * backwards: Move to include/backwards, delete.
1670 * bits: Move to include/bits, delete.
1671 * ext: Move to include/ext, delete.
1672 * std: Move to include/std, delete.
1673
1674 * src/complex.cc: Adjust include of mathconf.
1675
1676 * mkc++config (BASE_H): Add include.
1677
1678 * src/Makefile.am: Support for topleve sources include directory.
1679 (INCLUDES): Add LIBMATH_INCLUDE.
1680 * src/Makefile.in: Regenerate.
1681 * math/Makefile.am (INCLUDES): Append /include.
1682 * math/Makefile.in: Regenerate.
1683 * libio/Makefile.am (INCLUDES): Add glibcpp_includedir.
1684 * libio/Makefile.in: Regenerate.
1685
1686 2000-10-04 Benjamin Kosnik <bkoz@gnu.org>
1687
1688 * libio/_G_config.h : Re-guard the __mbstate_t declaration.
1689
1690 2000-10-03 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
1691
1692 * docs/22_locale/howto.html: Add link to proto-documentation on
1693 locales.
1694 * docs/documentation.html: Rename links for clarity.
1695
1696 * src/Makefile.am (headers): Remove unistd.h, wrap_unistd.h. Add
1697 fcntl.h, iolibio.h, libioP.h, pthread.h, iconv.h.
1698 * src/Makefile.in: Regenerate.
1699
1700 2000-10-02 Steven King <sxking@uswest.net>
1701
1702 * mkcshadow: Fixed script to output proper include guard.
1703 * bits/char_traits.h: Cleaned up types in char_traits<char> functions.
1704 * libio/_G_config.h: Hacked to make work with shadow heraders.
1705 * shadow/*: Hacked to make shadow headers work.
1706
1707 2000-10-02 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
1708
1709 Self-compile with shadow headers.
1710 * acconfig.h (_GLIBCPP_USE_SHADOW_HEADERS): Define. Eventually,
1711 like _GLIBCPP_USE_NAMESPACES before it, this macro will die when
1712 it becomes the default way the library is built.
1713 * acinclude.m4 (GLIBCPP_ENABLE_SHADOW): New macro.
1714 * config/gnu-linux/bits/ctype_base.h (ctype_base): Use it.
1715 * config/gnu-linux/ctype.cc (ctype): Use it.
1716
1717 * src/localename.cc (locale::_Impl::_M_replace_categories): Remove
1718 call to assert.
1719 * src/locale.cc: Explicitly cast mbstate_t to void* in calls to
1720 memset. This should not be necessary, but an ambiguous overload
1721 with it in.
1722
1723 * shadow/bits/std_cwchar.h: Fix.
1724 * shadow/wchar.h: Fix.
1725
1726 * config/gnu-linux/bits/ctype_base.h (ctype_base): Inject ctype
1727 enums into namespace std:: for ctype_base enum. Other OS types
1728 will have to do this as well.
1729 * config/gnu-linux/ctype.cc (ctype): Inject ctype data into
1730 namespace std, in particular __ctype_toupper, __ctype_tolower,
1731 __ctype_b.
1732
1733 * shadow/iolibio.h: New file.
1734 * shadow/bits/wrap_iolibio.h: New file.
1735 * shadow/libioP.h: New file.
1736 * shadow/bits/wrap_libioP.h: New file.
1737 * shadow/bits/wrap_fcntl.h: New file.
1738 * shadow/fcntl.h: New file.
1739 * shadow/iconv.h: New file. Inject iconv names into the global
1740 namespace, unmangled for the moment.
1741 * shadow/bits/wrap_iconv.h: New file.
1742 * shadow/unistd.h: Remove. Useless.
1743 * shadow/bits/wrap_unistd.h: Remove.
1744
1745 * src/Makefile.am: Take out machine-ansi.h, add fcntl.h unistd.h.
1746 * src/Makefile.in: Regenerate.
1747
1748 * config/c_io_libio.h (_IO_codecvt): Change to normal C++ decl.
1749
1750 * shadow/libio.h: Fix.
1751 * shadow/bits/wrap_libio.h: Fix.
1752
1753 * shadow/bits/std_clocale.h: Remove typedef struct construct,
1754 which will not compile.
1755 * shadow/bits/std_ctime.h: Same.
1756
1757 * shadow/pthread.h: New file. Put pthreads types and functions
1758 into global scope, which is probably not the correct long-term
1759 solution but has to be done at the moment before libio wrappers
1760 can even be started.
1761 * shadow/bits/wrap_pthread.h: New file.
1762
1763 * bits/std_ios.h: Formatting tweak.
1764 * shadow/bits/std_cstdio.h: Format. Remove extraneous bits.
1765
1766 * acinclude.m4 (GLIBCPP_CHECK_COMPILER_FEATURES): Add -Werror to
1767 tests for compiler features.
1768 * aclocal.m4: Regenerate.
1769 * configure: Regenerate.
1770
1771 * config/c_io_libio.cc: Remove fcntl.h include, as SEEK_SET
1772 redefined.
1773 * libio/libioP.h: Comment out fcntl.h include.
1774
1775 * shadow/math.h: Add in float and long declarations, as per ISO C9X.
1776
1777 * bits/c++config: Define _ISOC99_SOURCE.
1778
1779 * acinclude.m4 (GLIBCPP_ENABLE_SHADOW): Add -fno-builtins to
1780 CSHADOWFLAGS, as well as _ISOC99_SOURCE.
1781 * aclocal.m4: Regenerate.
1782 * configure: Regenerate.
1783 * src/Makefile.am (CSHADOW_INCLUDES): Enable, again.
1784 (CSHADOW_INCLUDES): Add -I$(top_srcdir)/std before shadow include dir.
1785 (CXXCOMPILE): Remove $(DEFS), which searches $(top_srcdir) before
1786 std or shadow directories.
1787 (LTCXXCOMPILE): Same.
1788 (INCLUDES): Add $(top_builddir) before $(top_srcdir).
1789 (AC_CXXFLAGS): Add CSHADOWFLAGS.
1790 * src/Makefile.in: Regenerate.
1791
1792 * src/complex.cc (FCT): Change ::name to name.
1793 * src/complexl.cc (FCT): Same. Use _GLIBCPP_USE_LONG_LONG here.
1794 * src/complexf.cc (FCT): Same.
1795
1796 * src/complexf.cc: Remove FCT define, as things are properly
1797 overloaded in the std namespace with the shadow headers.
1798 * src/complexl.cc: Same.
1799 * src/complex.cc: Same.
1800
1801 2000-09-25 Phil Edwards <pme@sources.redhat.com>
1802
1803 * docs/documentation.html: Add link to...
1804 * docs/ext/howto.html: ...this. New dir/file, describing library
1805 extensions (both ours and SGI's).
1806 * docs/faq/index.html: Small updates.
1807 * docs/faq/index.txt: Regenerate.
1808
1809 2000-09-25 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
1810
1811 * bits/basic_file.h (_M_open_mode): Remove extra qualifier.
1812
1813 2000-09-25 Levente Farkas <lfarkas@mindmaker.hu>
1814
1815 * ext/stl_hashtable.h (_M_copy_from): Change __copy to __local_copy.
1816
1817 2000-09-19 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
1818
1819 * src/localename.cc (locale::_Imp) : Remove typedefs.
1820 * bits/localefwd.h (locale::locale(const locale& __other, _Facet*
1821 __f): Consistency check, call _Imp ctor with reference argument
1822 of 1.
1823 * bits/localefwd.h: Change _S_num_categories to
1824 _S_categories_num. Add new data member, _S_facets_num, which is
1825 the number of standard facets.
1826
1827 2000-09-19 Phil Edwards <pme@sources.redhat.com>
1828
1829 * docs/21_strings/howto.html: Fix editor lossage from last commit.
1830
1831 2000-09-19 Phil Edwards <pme@sources.redhat.com>
1832
1833 * docs/thanks.html: More thanks.
1834 * docs/18_support/howto.html: Fix thinko.
1835 * docs/21_strings/howto.html: Minor tweaks and updates to URLs.
1836 Redo the string transformation notes and link to...
1837 * docs/22_locale/howto.html: ...here.
1838
1839 2000-09-18 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
1840
1841 * src/locale-inst.cc: Add time_put_byname and
1842 time_get_byname instantiations.
1843 * bits/locale_facets.h: Correct default, private derivation to
1844 public derivation in _byname declarations.
1845 * src/locale.cc (locale::classic()): Simplify.
1846 * src/localename.cc (locale::_Impl:: _Impl(const _Impl& __other,
1847 const string& __name, category __cat, size_t __refs): Re-work for
1848 named locales.
1849 (_M_normalize_category_names): Remove.
1850
1851 * testsuite/22_locale/global_templates.cc (test01): Tweaks.
1852 * testsuite/22_locale/ctor_copy_dtor.cc (test01): More tests.
1853
1854 2000-09-18 Yuri V. Baskakov <yuribsk@lab.sun.mcst.ru>
1855
1856 * bits/std_bitset.h (operator>>): Change to char_type.
1857
1858 2000-09-15 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
1859
1860 * src/locale.cc (locale::locale(const char* __name)): Consolidate
1861 name setting. Add checks for NULL __name pointers. Remove calls to
1862 _S_initialize() as initial locale initialization can either be
1863 assumed, or needs to be made consistent throughout locale
1864 constructors.
1865 (locale::locale(const locale& __other, const char* __name,
1866 category __cat): Add checks for NULL name. Add checks for
1867 assignment to self.
1868 * src/localename.cc (locale::_Impl:: _Impl(const _Impl& __other,
1869 const string& __name, category __cat, size_t __refs)): Set correct
1870 name, has_name values.
1871 * testsuite/22_locale/ctor_copy_dtor.cc (test01): More tests.
1872 * docs/22_locale/locale.html: New file, more unfinished docs...
1873
1874 2000-09-14 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
1875
1876 * src/locale.cc (locale::name()): Implement.
1877 (_Impl(size_t __numfacets, size_t __refs, bool __namep = false,
1878 string __name = "*")): Change signature.
1879 (locale::classic): Initialize the "C" locale as a named locale.
1880 * bits/localefwd.h (locale): Change _M_num_references to
1881 _M_references. Eliminate _M_cached_name_ok. Rename _M_cached_name
1882 to _M_name.
1883 * bits/localefwd.h: Tweaks.
1884 * src/localename.cc: Tweaks.
1885 * testsuite/22_locale/ctor_copy_dtor.cc (test01): Add tests.
1886 (test01): Fix.
1887
1888 * bits/basic_string.h: Consistency check, change _M_state ->
1889 _M_references.
1890
1891 2000-09-14 Brendan Kehoe <brendan@zen.org>
1892
1893 * bits/string.tcc (_Rep::_S_max_size): Use typename for its size_type
1894 return type.
1895
1896 * src/Makefile.an (headers): Also install backward/fstream.h.
1897 * src/Makefile.in: Regenerate.
1898
1899 * bits/char_traits.h (char_traits<_CharT>::get_state,
1900 char_traits<char>::get_state, char_traits<wchar_t>::get_state): Pass
1901 argument in by reference, not by value. Uglify to _S_get_state.
1902 (char_traits<*>::__eos): Uglify to _S_eos.
1903 * bits/std_ostream.h (ends(basic_ostream<_CharT, _Traits>& __os)):
1904 Change __eos to _S_eos.
1905
1906 2000-09-13 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
1907
1908 * testsuite/22_locale/static_members.cc: New file.
1909 * testsuite/22_locale/ctor_copy_dtor.cc: New file.
1910 * src/locale.cc: Minor formatting tweaks.
1911
1912 2000-09-12 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
1913
1914 * testsuite/22_locale/global_templates.cc (test01): Add negative
1915 tests for use_facet.
1916
1917 * bits/localefwd.h (locale::operator()): Minor tweaks.
1918 * bits/locale_facets.tcc (locale::operator()): Same.
1919 * testsuite/22_locale/operators.cc: New file.
1920
1921 * testsuite/22_locale/facet.cc (output_iterator): Remove
1922 gnu_input_iterator, gnu_output_iterator.
1923
1924 2000-09-11 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
1925
1926 * acinclude.m4 (GLIBCPP_CHECK_GNU_MAKE): Remove test != "0".
1927 * aclocal.m4: Regenerate.
1928 * configure: Regenerate.
1929
1930 * bits/c++config (__GLIBCPP__): Update, in the hopes of making a
1931 snapshot release soon.
1932 (_GNU_SOURCE): Define this in the header files, as ISO C99 support
1933 is pretty much assumed.
1934
1935 * testsuite/22_locale/global_templates.cc: New file. Add tests for
1936 use_facet and has_facet.
1937
1938 * bits/codecvt.h (codecvt<_InT, _ExT, __enc_traits>::do_out):
1939 Modify/correct iconv signatures for glibc2.2.
1940
1941 2000-09-10 Branko Cibej <branko.cibej@hermes.si>
1942
1943 * acinclude.m4 (GLIBCPP_CHECK_GNU_MAKE): Replace "grep -q" with
1944 "grep -c".
1945
1946 2000-09-09 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
1947
1948 * bits/localefwd.h (locale::_Impl): Scope out types to public.
1949 (locale): Make _Impl declaration public.
1950
1951 2000-09-08 Felix Natter <fnatter@gmx.net>
1952
1953 * docs/17_intro/porting-howto.html: New version.
1954
1955 2000-09-07 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
1956
1957 * config/cpu/i386/bits/atomicity.h (__exchange_and_add): Change unused
1958 to __unused__.
1959 * config/cpu/ia64/bits/atomicity.h (__exchange_and_add): And here.
1960 * config/cpu/i486/bits/atomicity.h (__exchange_and_add): And here.
1961
1962 2000-09-07 Phil Edwards <pme@sources.redhat.com>
1963
1964 Add bits for --enable-maintainer-mode:
1965 - turns on enable_debug
1966 (doing "--enable-maint --disable-debug" will DTRT)
1967 - turns on -Werror, now off by default
1968 * acinclude.m4: Add bits.
1969 * aclocal.m4: Regenerate.
1970 * configure.in: Add defaults for GLIBCPP_ENABLE_DEBUG.
1971 * configure: Regenerate.
1972
1973 2000-09-07 Benjamin Kosnik <bkoz@cygnus.com>
1974
1975 * bits/std_cwctype.h: Remove yesterday's hacks.
1976
1977 2000-09-07 Brad Garcia <bgarcia@laurelnetworks.com>
1978
1979 * bits/stl_tree.h: Make operators !=, == type safe for map, set.
1980 * testsuite/23_containers/set_operators.cc: New file. Should not
1981 compile.
1982 * testsuite/23_containers/map_operators.cc: New file. Ditto.
1983
1984 2000-09-06 Richard Henderson <rth@cygnus.com>
1985 Benjamin Kosnik <bkoz@cygnus.com>
1986
1987 * acinclude.m4 (GLIBCPP_CHECK_CPU): Add ia64 support.
1988 * aclocal.m4: Regenerate.
1989 * configure: Regenerate.
1990 * config/cpu/ia64: New directory.
1991 * config/cpu/ia64/bits: New directory.
1992 * config/cpu/ia64/bits/atomicity.h: New file.
1993
1994 2000-09-06 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
1995
1996 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Force glibc_satisfactory
1997 to no, so that libstdc++-v3's libio will be built on glibc-2.2
1998 systems.
1999 * aclocal.m4: Regenerate.
2000 * configure: Regenerate.
2001 * */Makefile.in: Regenerate.
2002
2003 * bits/std_cwctype.h: Put in temporary hack to work around -O2 +
2004 glibc 2.1.x unsigned errors. Or disable -Werror by default...
2005
2006 * testsuite/23_containers/vector_element_access.cc: New file.
2007 * bits/stl_config.h (__STL_THROW_RANGE_ERRORS): Define.
2008
2009 2000-09-06 Levente Farkas <lfarkas@mindmaker.hu>
2010
2011 * bits/string.tcc: Fix up more parameter names.
2012
2013 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2014
2015 * configure: Rebuilt with new libtool.m4.
2016
2017 2000-09-01 Benjamin Kosnik <bkoz@cygnus.com>
2018
2019 * src/locale-inst.cc: Remove pre-instantiation of unicode
2020 codecvt types. Now unnecessary, as locale header now correct.
2021
2022 2000-08-31 Benjamin Kosnik <bkoz@cygnus.com>
2023
2024 * bits/locale_facets.tcc (_S_build_float_format): Move ...
2025 * src/locale.cc: Here.
2026 * bits/locale_facets.tcc (num_get::_M_extract): Clean up generic
2027 definition. Move specialization to ...
2028 * src/locale.cc: Here.
2029 * bits/locale_facets.tcc: Move _Format_cache specializations to ...
2030 * src/locale.cc: Here.
2031 * bits/locale_facets.tcc: Move use_facet<ctype> specializations to ...
2032 * src/locale.cc: Here.
2033
2034 * bits/std_locale.h: Note that locale_facets.tcc should be
2035 included here, for standards conformance. It may increase
2036 compile times though. For the time being, enable.
2037 * testsuite/22_locale/facet.cc: New file, some parts commented out
2038 for the time being.
2039
2040 * mkcheck.in: Append total time to test summary file.
2041
2042 * bits/sbuf_iter.h : Formatting tweaks.
2043
2044 Clean up static const data member definitions.
2045 * src/locale.cc: Add definitions for all missing locale,
2046 locale::_Imp, and locale::id static data members.
2047 (ctype<char>): Add table_size define.
2048 (money_base): Add _S_default_pattern, uglify.
2049 * bits/localefwd.h: Add definitions for static members of _Count_ones.
2050 * bits/locale_facets.h: Tweaks.
2051 * bits/locale_facets.tcc: Tweaks.
2052 * bits/string.tcc: Add definition for npos.
2053 * bits/ios_base.h: Tweaks.
2054 * bits/ios_base.h (ios_base::Init::_M_ios_base_init): Change to
2055 _S_ios_base_init.
2056 * src/ios.cc: And here. Add _S_local_words definition.
2057 Add definitions for __ios_flags const static data.
2058 * src/codecvt.cc: Same for __enc_traits.
2059 * src/locale-inst.cc: Remove money_base data member definition
2060 here.
2061
2062 2000-08-30 Benjamin Kosnik <bkoz@redhat.com>
2063
2064 * testsuite/22_locale/ctype_wchar_t_members.cc (test01): New file.
2065
2066 * docs/22_locale/codecvt.html: Re-number.
2067 * docs/22_locale/howto.html: Add entry for ctype
2068 documentation. Add entry for Nathan's introduction to locales
2069 paper.
2070 * docs/22_locale/ctype.html: New file. In progress...
2071
2072 * docs/22_locale/codecvt.html: Formatting cleanups.
2073 * src/locale.cc (ctype<wchar_t>::do_is): Fix thinko.
2074
2075 2000-08-30 Phil Edwards <pme@sources.redhat.com>
2076
2077 * docs/22_locale/codecvt.html: Behind-the-scenes ASCII->HTML
2078 tweaks for certain browsers.
2079
2080 2000-08-29 Benjamin Kosnik <bkoz@redhat.com>
2081
2082 * bits/locale_facets.h (ctype<char>): Remove __table_type.
2083 Add include for bits/std_cwctype.h, for wctype_t.
2084 * src/locale.cc (ctype<wchar_t>): Implement.
2085 * config/gnu-linux/bits/ctype_base.h (ctype_base): Remove mask
2086 typedef, instead name enum.
2087 * config/gnu-linux/bits/ctype_specializations.h: Tweak.
2088 * config/gnu-linux/ctype.cc: Tweak.
2089 * testsuite/22_locale/ctype.cc: Tweak.
2090
2091 * bits/codecvt.h (__enc_traits): Uglify names.
2092
2093 2000-08-28 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
2094
2095 * docs/22_locale/codecvt.html: Add more bits, format.
2096 * bits/codecvt.h: Add copy ctor, rename types.
2097 * testsuite/22_locale/codecvt_unicode_char.cc: Tweak.
2098
2099 * libio/iofwide.c: Tweak.
2100
2101 2000-08-28 Phil Edwards <pme@sources.redhat.com>
2102
2103 * docs/configopts.html: Mention new options.
2104 * docs/install.html: Formatting changes for platform-specific
2105 pre-reqs, previously only Cygwin.
2106 * docs/mail.html: Fix new link.
2107 * docs/thanks.html: A couple more people.
2108 * docs/26_numerics/howto.html: Fix typo.
2109
2110 2000-08-24 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
2111
2112 * docs/22_locale/howto.html: Add notes on codecvt implementation.
2113 * docs/22_locale/codecvt.html: New file. In progress.
2114
2115 2000-08-24 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
2116
2117 * acconfig.h: Revert.
2118 * acinclude.m4: Revert.
2119 * libio/_G_config.h: Revert.
2120 * libio/libio.h: Revert.
2121
2122 2000-08-23 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
2123
2124 * bits/codecvt.h: Tweaks.
2125 * testsuite/22_locale/codecvt_unicode_wchar_t.cc (test01): Fix up
2126 initial string literals for UCS4.
2127
2128 2000-08-23 Phil Edwards <pme@sourceware.cygnus.com>
2129
2130 * acconfig.h: _GLIBCPP_USING_THREADS and some workaround types added.
2131 * acinclude.m4: New macro, GLIBCPP_ENABLE_WCHAR. Set the threads
2132 definition as well, and some minor spelling/spacing fixes. If
2133 building libio, check for certain typedefs.
2134 * libio/_G_config.h: Wrap _IO_MTSAFE_IO in _GLIBCPP_USING_THREADS.
2135 Conditionally define _LARGEFILE64_SOURCE, otherwise the 64-bit types
2136 will never be there.
2137 * libio/libio.h: In the null case, _IO_lock_t can't just be void.
2138 * src/string-inst.cc: Use _GLIBCPP_USE_WCHAR_T.
2139
2140 * configure.in: Update the cache a bit more often.
2141
2142 * mkcheck.in: For check-install, also need to -I the testsuite dir.
2143
2144 2000-08-22 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
2145
2146 * src/locale-inst.cc: Add codecvt<unicode_t, wchar_t,
2147 __enc_traits> instantiations for has_facet and use_facet.
2148 * testsuite/22_locale/codecvt_unicode_wchar_t.cc: New file, for
2149 testing two-byte unicode encodings converted to four-byte UCS4
2150 encodings.
2151
2152 * bits/codecvt.h (codecvt<__enc_traits>): Fix do_unshift.
2153 * testsuite/22_locale/codecvt_unicode_char.cc (test01): Add
2154 correct state/encoding information.
2155
2156 * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Add wcsrtombs,
2157 mbsrtowcs checks as codecvt<wchar_t, char, mbstate_t> needs them
2158 now.
2159 Add checks for langinfo.h, nl_langinfo function call.
2160 * libio/iofwide.c (_IO_fwide): Simplify, as nl_langinfo is assumed.
2161
2162 2000-08-22 Richard B. Kreckel <Richard.Kreckel@Uni-Mainz.DE>
2163
2164 * config/cpu/alpha/bits/atomicity.h: Change __attribute__
2165 ((unused)) to __attribute__ ((__unused__)).
2166 * config/cpu/arm/bits/atomicity.h: Same.
2167 * config/cpu/generic/bits/atomicity.h: Same.
2168 * config/cpu/i386/bits/atomicity.h: Same.
2169 * config/cpu/i486/bits/atomicity.h: Same.
2170 * config/cpu/powerpc/bits/atomicity.h: Same.
2171 * config/cpu/sparc/sparc32/bits/atomicity.h: Same.
2172 * config/cpu/sparc/sparc64/bits/atomicity.h: Same.
2173
2174 2000-08-22 Levente Farkas <lfarkas@mindmaker.hu>
2175
2176 * bits/basic_string.h: Fix up parameter names.
2177
2178 2000-08-22 Brent Verner <brent@rcfile.org>
2179
2180 * src/Makefile.am (INCLUDES): Put $(CSHADOW_INCLUDES) before
2181 $(top_srcdir)
2182 * src/Makefile.in: Regenerate.
2183
2184 2000-08-21 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
2185
2186 * bits/codecvt.h: Implement codecvt<wchar_t, char, mbstate_t>. Fix
2187 up __enc_traits template so as to be marginally useful.
2188 * src/codecvt.cc: And here.
2189 * bits/char_traits: Tweak.
2190 * bits/locale_facets.h: Tweak.
2191 * bits/locale_facets.tcc: Tweak.
2192 * bits/localefwd.h: Tweak.
2193 * src/locale-inst.cc: Add use_facet/has_facet instantiations here.
2194 * testsuite/22_locale/codecvt_wchar_t_cc.cc: New file.
2195 * testsuite/22_locale/codecvt_char_char.cc: New file.
2196 * testsuite/22_locale/codecvt_unicode_char.cc: New file.
2197
2198 2000-08-21 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
2199
2200 * bits/std_cmath.h (std::abs): Overload for int and long.
2201
2202 2000-08-20 Benjamin Kosnik <bkoz@gnu.org>
2203
2204 * src/string-inst.cc: Tweak instantiations for new-gxx-abi.
2205
2206 2000-08-19 Gabriel Dos Reis <gdr@codesourcery.com>
2207
2208 * bits/valarray_array.h (__valarray_min, __valarray_max): Fix
2209 thinko. Diagnostic messages really need to be improved for
2210 template argument deduction.
2211
2212 2000-08-18 Benjamin Kosnik <bkoz@gnu.org>
2213
2214 * bits/valarray_meta.h: Fix typos...
2215
2216 2000-08-18 Gabriel Dos Reis <gdr@codesourcery.com>
2217
2218 * bits/valarray_meta.h (_Expr<>::shift, _Expr::cshift,
2219 _Expr<>::apply): Implement.
2220
2221 2000-08-18 Gabriel Dos Reis <gdr@codesourcery.com>
2222
2223 * bits/valarray_meta.h (_Expr<>::min, _Expr<>::max): Implement.
2224
2225 * bits/valarray_array.h (__valarray_min, __valarray_max): New
2226 function.
2227
2228 2000-08-17 Mark Mitchell <mark@codesourcery.com>
2229
2230 * bits/localefwd.h (std::locale): Use explicit `class' specified
2231 when declaring friends.
2232 * bits/std_fstream.h (std::basic_filebuf): Likewise.
2233
2234 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
2235
2236 * src/Makefile.am (libstdc++.INC): Renamed from INCLUDES.
2237 * src/Makefile.in: Regenerate.
2238
2239 2000-08-15 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
2240
2241 * bits/codecvt.h: New file.
2242 * src/codecvt.cc: New file.
2243 * bits/std_locale.h: Add include here.
2244 * src/Makefile.am (headers): Add codecvt.h
2245 (sources): Add codecvt.cc.
2246 * src/Makefile.in: Regenerate.
2247 * bits/locale_facets.h (codecvt): Re-implement. Rename _Codecvt to
2248 __codecvt_abstract_base in an attempt to point some light this way...
2249 Move __enc_traits and codecvt bits to codecvt.h.
2250 * src/locale-inst.cc: Remove codecvt<wchar_t, wchar_t, mbstate_t>
2251 explicit instantiation. Separate out codecvt instantations, simplify.
2252 * src/locale.cc: Move codecvt bits to codecvt.cc
2253
2254 2000-08-15 Alexandre Oliva <aoliva@redhat.com>
2255
2256 * src/Makefile.am (INCLUDES): New target file, with all -I flags.
2257 * src/Makefile.in: Regenerate.
2258
2259 2000-08-14 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
2260
2261 C/C++ io merge/sync.
2262 * libio/fileops.c
2263 * libio/genops.c
2264 * libio/iofclose.c
2265 * libio/iofopen.c
2266 * libio/iofwide.c
2267 * libio/libio.h
2268 * libio/libioP.h
2269 * libio/stdio.c
2270 * libio/wfileops.c
2271 * libio/wgenops.c
2272 * config/c_io_libio.cc (__basic_file): Add hacky casts to
2273 ((struct _IO_FILE_plus *) in ctors.
2274 (__basic_file<wchar_t>): Adjust _wide_data->_codecvt to just _codecvt.
2275 * libio/Makefile.am: Fix copyright. Remove cleanup.c.
2276 * libio/cleanup.c: Remove.
2277 * libio/filedoalloc.c (_IO_file_doallocate): Don't call
2278 _IO_cleanup_registration_needed, even if not libc.
2279
2280 * testsuite/27_io/stringstream.cc (test02): Fix.
2281
2282 2000-08-14 Brent Verner <brent@rcfile.org>
2283
2284 * testsuite/debug_assert.h: new file
2285 * testsuite/*/*.cc: s/test\s*&=([^;]+);/VERIFY($1);/g
2286 changed conditional #include <c?assert.?h?> to
2287 unconditional #include <debug_assert.h>
2288 * mkcheck.in: added $SRC_DIR/testsuite to include search path
2289 for testsuite compile command.
2290
2291 2000-08-14 Levente Farkas <lfarkas@mindmaker.hu>
2292
2293 * bits/std_fstream.h: Remove duplicate typdefs for ofstream and
2294 wofstream, filebuf, wfilebuf, fstream, wfstream.
2295 * bits/std_streambuf.h: Same for streambuf, wstreambuf.
2296 * bits/std_sstream.h: Same for stringstream and wstringstream.
2297 Same for stringbuf, wstringbuf, istringstream, wistringstream,
2298 ostringstream, wostringstream.
2299
2300 * testsuite/26_numerics/valarray.cc: Add test.
2301
2302 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
2303
2304 * configure: Regenerate after change to ../libtool.m4.
2305
2306 2000-08-10 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
2307
2308 * bits/locale_facets.tcc: Formatting tweaks.
2309 * bits/locale_facets.h (__enc_traits): Start integrating this
2310 into codecvt, ctype. Formatting tweaks.
2311
2312 2000-08-09 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
2313
2314 Preliminary wchar_t implementation, with trivial encodings.
2315 * docs/configopts.html: Add bits about canonical configure option
2316 checking.
2317
2318 * testsuite/27_io/iostream_objects.cc: Replace this file (which
2319 has newly-declared-illegal mixing of wide/narrow stdstreams) with...
2320 * testsuite/27_io/narrow_stream_objects.cc: New file.
2321 * testsuite/27_io/wide_stream_objects.cc: New file.
2322
2323 * bits/fstream.tcc (underflow): Temporarily hack a solution
2324 together that writes from the external file to the internal
2325 buffers. This removes codecvt from the loop, and is incorrect.
2326 (_M_really_overflow): Same here.
2327
2328 * testsuite/21_strings/inserters_extractors.cc (test05): Tweaks.
2329
2330 2000-08-08 Benjamin Kosnik <bkoz@cygnus.com>
2331 Ulrich Drepper <drepper@cygnus.com>
2332
2333 * config/c_io_libio.h: Tweak.
2334 * config/c_io_libio_codecvt.c: New file.
2335 * libio/Makefile.am: Add c_codecvt.c.
2336 * libio/Makefile.in: Regenerate.
2337 * libio/genops.c (_IO_unbuffer_write): Don't call _IO_SETBUF if the
2338 stream is not orientated.
2339
2340 * acinclude.m4: Add config/c_io_libio_codecvt.c dummy file, until
2341 encoding gets fleshed out.
2342
2343 * bits/basic_file.h: Add specialization declarations.
2344 * config/c_io_libio.cc: Add specializations for pbackfail, uflow.
2345
2346 * config/c_io_libio.h: Add __c_wfile_type.
2347 * bits/basic_file.h: Add _M_wfile.
2348
2349 * config/c_io_libio.cc (__basic_file<char>): Initialize the
2350 streams without setting the orientation of the underlying FILE to
2351 either wide or narrow.
2352 (__basic_file<wchar_t>)): Enable tricky wchar_t io bits.
2353
2354 2000-08-07 Felix Natter <fnatter@gmx.net>
2355
2356 * docs/17_intro/porting-howto.html: New version.
2357
2358 2000-08-03 Mark Mitchell <mark@codesourcery.com>
2359
2360 * bits/locale_facets.h (ctype::ctype): Don't name unused
2361 parameters.
2362
2363 2000-08-01 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
2364
2365 * docs/install.html: Edit bits about requiring a special version
2366 of the autotools.
2367
2368 2000-07-31 Benjamin Kosnik <bkoz@cygnus.com>
2369
2370 * libio/fileops.cc: Update to current glibc sources.
2371 * libio/genops.c: Same.
2372 * libio/iofwide.c: Same.
2373 * libio/libio.h: Same.
2374 * libio/libioP.h: Same.
2375 * libio/wfiledoalloc.c: Same.
2376 * libio/wgenops.c: Same.
2377
2378 2000-07-28 Alexandre Oliva <aoliva@redhat.com>
2379
2380 * acinclude.m4: Include ../libtool.m4.
2381 * aclocal.m4, configure: Rebuilt.
2382
2383 2000-07-26 Phil Edwards <pme@sourceware.cygnus.com>
2384
2385 * acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES): Test for GNU ld
2386 before trying to use any of its options.
2387 (CHECK_MATH_DECL*,CHECK_BUILTIN_MATH_DECL*): Cache tests.
2388 * aclocal.m4: Regenerate.
2389 * configure.in: Having found GNU make, name it.
2390 * configure: Regenerate.
2391 * docs/install.html: Mention possible problems with caching.
2392 * src/Makefile.am (CXXLINK): Use new OPT_LDFLAGS.
2393 * src/Makefile.in: Regenerate.
2394 * libio/Makefile.in: Regenerate.
2395 * math/Makefile.in: Regenerate.
2396 * Makefile.in: Regenerate.
2397
2398 2000-07-26 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
2399
2400 * src/misc-inst.cc (std): Remove instantiations.
2401
2402 * acinclude.m4: Add forward-looking bits for autoconf.
2403 * aclocal.m4: Regenerate.
2404
2405 * bits/ostream.tcc (ostream::operator<<): Fix const char* case.
2406
2407 2000-07-25 Benjamin Kosnik <bkoz@gnu.org>
2408
2409 * configure.in: Change AM_PROG_LIBTOOL to AC_PROG_LIBTOOL. Change
2410 it back for current versions of maintainer-tools...
2411 * acinclude.m4: Some cleanups...
2412 * aclocal: Regenerated.
2413 * configure: Regenerated.
2414
2415 * src/Makefile.am (CXXLINK): Add -Wl,-01 to the link line for
2416 optimizing/adapting the hash table using GNU ld.
2417 * src/Makefile.in: Regenerate.
2418
2419 2000-07-24 H.J. Lu <hjl@gnu.org>
2420
2421 * src/Makefile.am (LIBIO_INCLUDES): Set to -I$(top_srcdir)/libio
2422 even if GLIBCPP_NEED_LIBIO is false. The installed glibc header
2423 files don't include private libio header files needed by
2424 libstdc++ v3.
2425 * src/Makefile.in: Rebuild.
2426
2427 2000-07-24 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
2428
2429 * bits/std_fstream.h: Parameterize __basic_file.
2430 * config/c_io_libio.cc: Add wchar_t methods for parameterization.
2431 * bits/basic_file.h: Same here.
2432
2433 * bits/istream.tcc (getline): Tweaks.
2434
2435 * bits/fstream.tcc: Shorten __retval to __ret.
2436 * bits/ostream.tcc: Same.
2437 * bits/sbuf_iter.h: Same.
2438 * bits/sstream.tcc: Same.
2439 * bits/streambuf.tcc: Same.
2440 * bits/std_fstream.h: Same.
2441 * src/string-inst.cc: Same.
2442 * src/ios.cc: Same.
2443 * config/c_io_libio.cc: Same.
2444 * bits/string.tcc: Same.
2445 * bits/std_streambuf.h: Same.
2446
2447 2000-07-23 Brent Verner <brent@rcfile.org>
2448
2449 * bits/istream.tcc: istream::getline(char_type*, streamsize,
2450 char_type) make compliant
2451 * testsuite/27_io/istream_unformatted.cc: test for compliant behavior
2452
2453 2000-07-23 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
2454
2455 * acinclude.m4 (enable_cshadow_headers): Fix problems with blddir
2456 and srcdir used to define CSHADOW_INCLUDES..
2457
2458 * configure.in: For consistency, change .sanity_warned to
2459 stamp-sanity-warned.
2460
2461 * acinclude.m4: Tweak formatting.
2462 * Makefile.am (check): Call mkcheck with full pathname for build
2463 directory...
2464 (check-install): And here.
2465 * Makefile.in: Regenerate.
2466
2467 2000-07-22 Gabriel Dos Reis <gdr@codesourcery.com>
2468
2469 Line up with libstdc++-v2 version of valarray.
2470 * bits/valarray_array.h (__valarray_product): Make inline.
2471 * src/valarray-inst.cc (__valarray_product): Remove explicit
2472 instantiation.
2473
2474 2000-07-21 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
2475
2476 * src/stl-inst.cc: Change __sink_unused_warning to unsigned int
2477 for alpha.
2478
2479 * testsuite/26_numerics/complex_inserters_extractors.cc (testall):
2480 Change return type to void.
2481 * testsuite/25_algorithms/lower_bound.cc: Add return values.
2482 * testsuite/17_intro/header_ciso646.cc: Modify.
2483 * bits/locale_facets.h: Add return values for the generic cases.
2484
2485 2000-07-21 H.J. Lu (hjl@gnu.org)
2486
2487 * acinclude.m4: Include <features.h> for glibc testing.
2488 * aclocal.m4: Likewise.
2489
2490 * configure: Rebuild.
2491
2492 2000-07-20 H.J. Lu (hjl@gnu.org)
2493
2494 * acinclude.m4: Change "#pragma system_header" to
2495 "#pragma GCC system_header".
2496 * aclocal.m4: Likewise.
2497 * bits/std_cmath.h: Likewise.
2498 * bits/std_cassert.h: Likewise.
2499 * bits/std_cctype.h: Likewise.
2500 * bits/std_cerrno.h: Likewise.
2501 * bits/std_cfloat.h: Likewise.
2502 * bits/std_climits.h: Likewise.
2503 * bits/std_clocale.h: Likewise.
2504 * bits/std_cwchar.h: Likewise.
2505 * bits/std_csetjmp.h: Likewise.
2506 * bits/std_csignal.h: Likewise.
2507 * bits/std_cstdarg.h: Likewise.
2508 * bits/std_cstddef.h: Likewise.
2509 * bits/std_cstdio.h: Likewise.
2510 * bits/std_cstdlib.h: Likewise.
2511 * bits/std_cstring.h: Likewise.
2512 * bits/std_ctime.h: Likewise.
2513 * bits/std_cwctype.h: Likewise.
2514 * bits/std_exception.h: Likewise.
2515 * bits/std_new.h: Likewise.
2516 * bits/std_typeinfo.h: Likewise.
2517 * shadow/bits/std_cassert.h: Likewise.
2518 * shadow/bits/std_cctype.h: Likewise.
2519 * shadow/bits/std_cerrno.h: Likewise.
2520 * shadow/bits/std_cfloat.h: Likewise.
2521 * shadow/bits/std_climits.h: Likewise.
2522 * shadow/bits/std_clocale.h: Likewise.
2523 * shadow/bits/std_cmath.h: Likewise.
2524 * shadow/bits/std_csetjmp.h: Likewise.
2525 * shadow/bits/std_csignal.h: Likewise.
2526 * shadow/bits/std_cstdarg.h: Likewise.
2527 * shadow/bits/std_cstddef.h: Likewise.
2528 * shadow/bits/std_cstdio.h: Likewise.
2529 * shadow/bits/std_cstdlib.h: Likewise.
2530 * shadow/bits/std_cstring.h: Likewise.
2531 * shadow/bits/std_ctime.h: Likewise.
2532 * shadow/bits/std_cwchar.h: Likewise.
2533 * shadow/bits/std_cwctype.h: Likewise.
2534 * shadow/bits/wrap_libio.h: Likewise.
2535 * shadow/bits/wrap_unistd.h: Likewise.
2536 * shadow/sys/cdefs.h: Likewise.
2537
2538 * configure: Rebuild.
2539
2540 2000-07-20 Jakub Jelinek <jakub@redhat.com>
2541
2542 * config/cpu/sparc/sparc64/bits/atomicity.h (__exchange_and_add):
2543 Use extended word instructions to match 64bit _Atomic_word.
2544 (__atomic_add): Likewise.
2545 * math/clog10l.c (clog10l): Use M_PIl if defined.
2546 * math/c_logl.c (c_logl): Likewise.
2547 * math/signbitl.c (__signbitl): Adapt for IEEE quad long doubles.
2548 * math/mathconf.h (ieee_quad_double_shape_type): New type.
2549 (GET_LDOUBLE_MSW64): New define.
2550
2551 2000-07-20 Benjamin Kosnik <bkoz@cygnus.com>
2552
2553 * bits/std_streambuf.h: Add bits for pback buffers here, so that
2554 in_avail, etc can use them.
2555 * bits/std_fstream.h: Ditto.
2556 * bits/fstream.tcc: Ditto.
2557 * testsuite/27_io/filebuf.cc: Tweaks.
2558 * testsuite/27_io/filebuf-3.tst: Correct for pbackfail bits.
2559
2560 2000-07-19 Benjamin Kosnik <bkoz@cygnus.com>
2561
2562 * src/localename.cc: Same.
2563 * src/locale.cc: Same.
2564 * bits/localefwd.h: _M_init_facet to _M_facet_init.
2565
2566 * bits/locale_facets.h: _M_init_boolnames to _M_boolnames_init.
2567
2568 * bits/std_sstream.h: Change _M_init_stringbuf to _M_stringbuf_init.
2569
2570 * bits/fstream.tcc: Change _M_init_filebuf to _M_filebuf_init.
2571 * bits/std_fstream.h: Same.
2572
2573 * bits/basic_string.h: Tweaks.
2574
2575 2000-07-19 Phil Edwards <pme@sourceware.cygnus.com>
2576
2577 * docs/18_support/howto.html: Update.
2578
2579 2000-07-19 Benjamin Kosnik <bkoz@milou.soma.redhat.com>
2580
2581 Internal consistency checks.....
2582 * bits/ios_base.h: Change _M_locale_ios to _M_ios_locale.
2583 * src/ios.cc: Same.
2584
2585 * bits/basic_ios.h: Change _M_fctype_ios to _M_ios_fctype.
2586 * bits/basic_ios.tcc: Same.
2587
2588 * bits/std_streambuf.h: Change _M_locale_buf to _M_buf_locale.
2589 Change _M_fctype_buf to _M_buf_fctype.
2590 * bits/fstream.tcc: Same.
2591
2592 * bits/std_streambuf.h: Change _M_buf_bump to _M_out_cur_move.
2593 Change _M_locale_set to _M_buf_locale_init.
2594 * bits/streambuf.tcc: Same.
2595 * bits/sstream.tcc: Same.
2596 * bits/fstream.tcc: Same.
2597
2598 * bits/std_streambuf.h: Make typedefs consistent.
2599 (_M_buf_bump): Be more careful with input sequence.
2600
2601 * bits/std_sstream.h: Same.
2602 * bits/std_fstream.h: Same.
2603
2604 2000-07-18 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
2605
2606 * acinclude.m4: Tweaks.
2607 * config/c_io_libio.cc: Tweaks.
2608 * bits/sstream.tcc (stringbuf::pbackfail): Simplify.
2609 * libio/_G_config.h: Don't define _G_HAVE_ST_BLKSIZE.
2610 * libio/[iofwide.c, wfiledoalloc.c, wfiteopos.c, wgenops.c]: New files.
2611 * libio/iofclose.c iofopen.c, stdio.c: New files.
2612 * libio/Makefile.am: Add files, add flags, etc.
2613 * src/Makefile.am (sources): Add filebuf.cc.
2614 * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT):
2615 (GLIBCPP_ENABLE_CSTDIO): Versioning testing, etc etc.
2616
2617 2000-07-17 Phil Edwards <pme@sourceware.cygnus.com>
2618
2619 * acinclude.m4: Import CHECK_GNU_MAKE from autoconf macro archive.
2620 * configure.in: Use it. Also print reminders one time.
2621 * aclocal.m4: Regenerate.
2622 * configure: Regenerate.
2623
2624 2000-07-15 Gabriel Dos Reis <gdr@codesourcery.com>
2625
2626 * bits/valarray_array.h (__valarray_get_storage): New function.
2627 (_Array<>::Array): Use it.
2628 * bits/std_valarray.h (valarray<>::valarray): Likewise.
2629 (valarray<>::resize): Likewise. Tweak.
2630 * src/valarray-inst.cc (__valarray_product): Tweak.
2631
2632 2000-07-11 Phil Edwards <pme@sourceware.cygnus.com>
2633
2634 * docs: Update sourceware->sources in every HTML file. Minor updates.
2635
2636 2000-07-07 Benjamin Kosnik <bkoz@soma.redhat.com>
2637
2638 Clean up configure/build longstanding issues.
2639 * src/Makefile.am (AC_CXXFLAGS): Don't set @SECTION_LDFLAGS@ here.
2640 (CXXLINK): Add here, instead.
2641
2642 * Makefile.am (check-install): Make sure mkcheck has execute privs.
2643 (check): Same here.
2644 * configure.in (AC_OUTPUT_COMMANDS): Remove hacks here.
2645
2646 * configure.in (AC_OUTPUT_COMMANDS): Link c_io_libio.h and
2647 c_io_libio.cc instead of copying.
2648 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Do link here.
2649
2650 * configure.in (AC_OUTPUT_COMMANDS): Link $THREADS.h and
2651 c++threads.h instead of copying.
2652 * acinclude.m4 (GLIBCPP_ENABLE_THREADS): Do link here.
2653 Tweaks.
2654
2655 * config/c_io_libio.cc (__basic_file::_M_open_mode): Consolidate.
2656 * bits/basic_file.h: Declare.
2657
2658 * mkcheck.in (TESTS_FILE): Use -v instead of --version.
2659
2660 2000-07-07 brent verner <brent@rcfile.org>
2661
2662 * testsuite/27_io/istream_unformatted.cc (test05): New test.
2663
2664 2000-07-07 Benjamin Kosnik <bkoz@gnu.org>
2665
2666 * bits/istream.tcc (istream::getline): Minor tweaks.
2667
2668 2000-07-07 Phil Edwards <pme@sourceware.cygnus.com>
2669
2670 * docs/download.html: Mention gcc_update.
2671 * docs/configopts.html: Minor updates.
2672 * docs/gccrebuild.html: Ditto.
2673 * docs/18_support/howto.html: More tips, explanations, and reminders.
2674 * docs/19_diagnostics/howto.html: Ditto.
2675 * docs/21_strings/howto.html: Ditto.
2676 * docs/24_iterators/howto.html: Ditto.
2677 * docs/25_algorithms/howto.html: Ditto.
2678 * docs/26_numerics/howto.html: Ditto.
2679
2680 2000-07-05 brent verner <brent@rcfile.org>
2681
2682 * testsuite/27_io/ifstream_members.cc (test01): Add tests.
2683 * testsuite/27_io/ofstream_members.cc (test01): Add tests.
2684 * config/c_io_libio.cc (__basic_file::open): Unset
2685 ~_IO_DELETE_DONT_CLOSE.
2686
2687 2000-07-05 Zack Weinberg <zack@wolery.cumb.org>
2688
2689 * bits/gslice_array.h, bits/indirect_array.h, bits/mask_array.h,
2690 bits/slice_array.h, bits/std_valarray.h, bits/valarray_meta.h:
2691 Do not paste anything after 'operator' keyword.
2692
2693 2000-07-03 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
2694
2695 * bits/std_memory.h: Revert.
2696
2697 2000-07-03 Brendan Kehoe <brendan@zen.org>
2698
2699 * bits/std_complex.h: Fix parens. Format.
2700
2701 2000-07-03 scott snyder <snyder@fnal.gov>
2702
2703 * bits/locale_facets.tcc (_M_extract): Only figure out the base
2704 from the input if base == 0.
2705 * testsuite/27_io/istream_extractor_arith.cc: Test reading a
2706 number with a leading `0' in hex mode.
2707
2708 * shadow/bits/std_cmath.h: Fix typo in _GLIBCPP_HAVE_CEILL test.
2709
2710 * mkinclosure: Change `==' to `=' in test.
2711
2712 2000-07-03 Chip Salzenberg <chip@valinux.com>
2713
2714 * src/Makefile.am (libio_headers): _G_config.h is found in srcdir,
2715 not builddir.
2716 * src/Makefile.in: Regenerate.
2717
2718 2000-07-01 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
2719 Ulrich Drepper <drepper@purist.soma.redhat.com>
2720
2721 Sync libio to glibc-2.2 current CVS.
2722 * libio/_G_config.h: New file.
2723 * libio/wfileops.c: New file.
2724 * libio/wfiledoalloc.c: New file.
2725 * libio/wgenops.c: New file.
2726 * libio/iofwide.c: New file.
2727 * libio/Makefile.am: Tweaks.
2728 * libio/Makefile.in: Regenerate.
2729 * libio/gen-params: Remove. Generic replacement for this yet undone.
2730 * libio/[filedoalloc.c, fileops.c, genops.c, iolibio.h, libio.h,
2731 libioP.h, stdfiles.c]: Update.
2732 * config/c_io_libio.cc: Tweaks.
2733 * acinclude.m4: Complete hacks to test wide io.
2734 * aclocal.m4: Regenerate.
2735 * configure: Regenerate.
2736 * src/Makefile.am: Update.
2737 * src/Makefile.in: Regenerate.
2738
2739 * math/cargl.c: Remove underscores.
2740
2741 * bits/locale_facets.h: Tweaks. Start adding iconv details
2742 and notes.
2743 * bits/locale_facets.tcc: Tweaks.
2744 * bits/std_cwchar.h: Tweaks.
2745
2746 2000-06-29 scott snyder <snyder@fnal.gov>
2747
2748 * bits/concept_checks.h
2749 (__less_then_comparable_requirement_violation): Only check for <.
2750 * testsuite/25_algorithms/lower_bound.cc: New file.
2751
2752 2000-06-29 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
2753
2754 * testsuite/27_io/ostream_manip.cc (test02): Add tests.
2755 * bits/ostream.tcc: Tweak.
2756 * bits/std_fstream.h (basic_filebuf::setbuf): Reset
2757 _M_buf_size_opt too.
2758 * bits/std_streambuf.h (basic_streambuf::~basic_streambuf): Zero
2759 out _M_buf_size_opt.
2760 * bits/std_sstream.h (basic_stringbuf::_M_init_stringbuf): Set
2761 _M_buf_size_opt out here.
2762 * bits/char_traits.h (char_traits::eos): Non standard member
2763 function, uglify to __eos. Return char_type().
2764 * bits/std_ostream.h: Change.
2765
2766 * testsuite/27_io/ostream_seeks.cc: New file.
2767 * testsuite/27_io/ostream_seeks-1.tst: New file.
2768 * testsuite/27_io/istream_unformatted.cc (main): Move test04 and
2769 test05 to...
2770 * testsuite/27_io/istream_seeks.cc: New file.
2771
2772 2000-06-29 Branko Cibej <branko.cibej@hermes.si>
2773
2774 * bits/std_memory.h (auto_ptr_ref): Reworked and defined only if
2775 _GLIBCPP_RESOLVE_LIB_DEFECTS.
2776 (auto_ptr): _M_ptr changed to void*.
2777 (suto_ptr::get): Cast _M_ptr to element type.
2778 (auto_ptr::auto_ptr(auto_ptr<Tp1>)): Test implicit convetsion.
2779 (auto_ptr::~auto_ptr): Use this->get() instead of _M_ptr.
2780 (auto_ptr::operator*): Likewise.
2781 (auto_ptr::operator->): Likewise.
2782 (auto_ptr::release): Likewise.
2783 (auto_ptr::reset): Likewise.
2784 (auto_ptr::auto_ptr(auto_ptr_ref)): Initialize from __ref._M_release.
2785 (auto_ptr::operator auto_ptr_rev<_Tp1>): Updated.
2786 Define nested auto_ptr_ref unless _GLIBCPP_RESOLVE_LIB_DEFECTS.
2787 Define operator=(auto_ptr_ref) if _GLIBCPP_RESOLVE_LIB_DEFECTS.
2788
2789 2000-06-28 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
2790
2791 * testsuite/27_io/filebuf.cc: Tweak.
2792 * testsuite/27_io/filebuf_members.cc (test_01): Fix.
2793 * config/c_io_libio.cc (__basic_file::~__basic_file): Match libio
2794 filebuf dtor.
2795 (__basic_file::basic_file): Clean, add calls similar to
2796 _IO_file_attach.
2797 (__basic_file::open): Clean.
2798 (__basic_file::sys_open): Clean.
2799
2800 * bits/std_fstream.h: Revert.
2801 * bits/fstream.tcc (filebuf::close()): Revert.
2802 (filebuf::basic_filebuf()): Revert.
2803
2804 2000-06-27 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
2805
2806 Update to SGI STL 3.3
2807 * ext/hash_map, ext/hash_set, ext/slist, ext/stl_bvector.h,
2808 ext/stl_rope.h, ext/ropeimpl.h: Update.
2809 * bits/std_bitset.h, bits/std_map, bits/std_memory.h,
2810 bits/stl_algo.h, bits/stl_algobase.h, bits/stl_alloc.h,
2811 bits/stl_config.h, bits/stl_construct.h, bits/stl_deque.h,
2812 bits/stl_function.h, bits/stl_heap.h, bits/stl_iterator.h,
2813 bits/stl_iterator_base.h, bits/stl_list.h, bits/stl_map.h,
2814 bits/stl_multimap.h, bits/stl_multiset.h, bits/stl_numeric.h,
2815 bits/stl_queue.h, bits/stl_set.h, bits/stl_stack.h,
2816 bits/stl_string_fwd.h, bits/stl_threads.h, bits/stl_three.h,
2817 bits/stl_uninitialized.h, bits/stl_vectory.h: Update.
2818
2819 * src/Makefile.am (headers): Add new files.
2820 * src/Makefile.in: Regenerate.
2821 * src/stl-inst.cc (std): Add instantiation for __sink_unused_warning.
2822 * bits/concept_checks.h: New file.
2823 * bits/container_concepts.h: New file.
2824 * bits/sequence_concepts.h: New file.
2825
2826 2000-06-27 H.J. Lu <hjl@gnu.org>
2827 Loren J. Rittle <ljrittle@acm.org>
2828
2829 * mkcheck.in: Add support to print standard flags needed to
2830 test g++ in build tree. Enhance command line error checking.
2831
2832 2000-06-27 Phil Edwards <pme@sourceware.cygnus.com>
2833
2834 * docs/install.html: Fix minor typo as reported.
2835
2836 2000-06-26 Brent Verner <brent@rcfile.org>
2837
2838 * bits/string.tcc (string::rfind): Fix.
2839 * testsuite/21_strings/rfind.cc: New file.
2840
2841 2000-06-26 Anthony Williams <anthony@anthonyw.cjb.net>
2842
2843 * testsuite/21_strings/ctor_copy_dtor.cc: Fixed logic error.
2844
2845 2000-06-26 Branko Cibej <branko.cibej@hermes.si>
2846
2847 * testsuite/27_io/filebuf_members.cc (test_01): Fixed typos.
2848
2849 * mkcheck.in: Make the *.txt and *.tst files writable after
2850 copying them to $TEST_DIR.
2851
2852 * testsuite/27_io/ostream_inserter_arith.cc: Renamed
2853 __TEST_NUMPUT_VERBOSE to TEST_NUMPUT_VERBOSE. Define
2854 TEST_NUMPUT_VERBOSE only if DEBUG_ASSERT.
2855
2856 2000-06-23 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
2857
2858 * bits/fstream.tcc (basic_filebuf::basic_filebuf(fd)): Use it.
2859 (basic_filebuf::close): Use it.
2860 * bits/std_fstream.h (basic_filebuf): Remove default arguments for
2861 filebuf ctor.
2862 (basic_filebuf): Add _M_fileno_based data member.
2863 As reported by brent verner <brent@rcfile.org>
2864 * testsuite/27_io/filebuf_members.cc: New file.
2865 * testsuite/27_io/filebuf_members-1.tst: New file.
2866
2867 * bits/std_fstream.h: Formatting tweaks.
2868 * testsuite/27_io/ofstream_members.cc: New file.
2869 * testsuite/27_io/ofstream_members-1.tst: New file.
2870 * testsuite/27_io/ifstream_members.cc: New file.
2871 * testsuite/27_io/ifstream_members-1.tst: New file.
2872
2873 2000-06-23 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
2874 Ulrich Drepper <drepper@cygnus.com>
2875
2876 * acinclude.m4 (GLIBCPP_CHECK_MATH_SUPPORT): Add -D_GNU_SOURCE, so
2877 that all the freaky stuff like sincos will be around...
2878
2879 2000-06-22 Branko Cibej <branko.cibej@hermes.si>
2880
2881 * Makefile.am (AM_MAKEFLAGS): Added WERROR to list of flags.
2882
2883 2000-06-22 Steven King <sxking@uswest.net>
2884
2885 * acinclude.m4: Check for sinl, _sinl using 1 parameter.
2886
2887 2000-06-22 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
2888
2889 * acinclude.m4 (GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT): Redo. Use the
2890 same approach as GLIBCPP_CHECK_MATH_SUPPORT, only don't try to
2891 link against libm and don't use -fno-builtins...
2892 * math/mathconf.h: Change up builtin macros to new schema.
2893 * bits/std_cmath.h: And here. Wheee!
2894 * shadow/bits/std_cmath.h: And here.
2895 * acconfig.h: Change up builtin macros here.
2896 * math/cosf.c: Remove.
2897 * math/fabsf.c: Likewise.
2898 * math/sinf.c: Likewise.
2899 * math/sqrtf.c: Likewise.
2900 * math/Makefile.am (EXTRA_DIST): Remove those four files.
2901 * math/Makefile.in: Regenerate.
2902
2903 2000-06-22 Anthony Williams <anthony@anthonyw.cjb.net>
2904
2905 * testsuite/21_strings/find.cc: Patch.
2906
2907 2000-06-22 Benjamin Kosnik <bkoz@soma.redhat.com>
2908
2909 * acinclude.m4 (GLIBCPP_CHEC_LINKER_FEATURES): Use gcc + -x c++ as
2910 an easy way to get at g++ without having to link in libstdc++.
2911
2912 2000-06-21 Benjamin Kosnik <bkoz@soma.redhat.com>
2913
2914 Fix alpha, powerpc build failures.
2915 * acinclude.m4 (GLIBCPP_CHECK_MATH_SUPPORT): Substantially
2916 re-write. Need to check for both proper declaration when using a
2917 c++ compiler, and "C" linkage when linking. Do both, and if both
2918 exist, then define the HAVE_* bits in config.h.
2919 (GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE): New, uber-macro. Does all.
2920 (GLIBCPP_CHECK_LINKER_FEATURES): Actually link and run this
2921 program, doh.
2922
2923 2000-06-20 Anthony Williams <anthony@anthonyw.cjb.net>
2924
2925 * bits/string.tcc: Fix find.
2926 * testsuite/21_strings/find.cc: Patch.
2927
2928 2000-06-20 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
2929
2930 * docs/install.html: Update where to get automake, where to get
2931 binutils.
2932 * acinclude.m4: Need -fno-builtins too, so gcc doesn't recognize
2933 builtins.
2934
2935 2000-06-19 Benjamin Kosnik <bkoz@soma.redhat.com>
2936
2937 * acinclude.m4 ((GLIBCPP_CHECK_MATH_SUPPORT): Revert last change.
2938 Add -Werror-implicit-function-declaration instead.
2939
2940 Regenerate with fixed maintainer-tools.
2941 * aclocal.m4: Regenerate.
2942 * configure: Regenerate.
2943 * libio/Makefile.in: Regenerate.
2944 * src/Makefile.in: Regenerate.
2945
2946 2000-06-19 Russell Davidson <russell@ehess.cnrs-mrs.fr>
2947
2948 * testsuite/27_io/istream_extractor_arith.cc: Patch.
2949 * bits/locale_factets.tcc: Tweak.
2950
2951 2000-06-19 Raja R Harinath <harinath@cs.umn.edu>
2952
2953 * src/Makefile.am: change @WERROR@ to $(WERROR) so that this can
2954 be overridden on the command line for individual files.
2955
2956 2000-06-19 Benjamin Kosnik <bkoz@soma.redhat.com>
2957
2958 * acinclude.m4 (GLIBCPP_CHECK_MATH_SUPPORT): Can't use
2959 AC_LANG_CPLUSPLUS as this tries to link in libstdc++, which we are
2960 building. Use -x c++ instead, which does not attempt to link
2961 libstdc++.
2962
2963 * acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES): Actually check for
2964 not coring when we hit a try/throw block, which was the problem
2965 with the linker support...
2966
2967 * docs/17_intro/contribute.html: Add bits about getting to the LWG
2968 issues pages.
2969 * docs/documentation.html: Rename link to make more accurate and scary.
2970 * docs/gccrebuild.html: Edit for clarity as these are no longer
2971 separate projects.
2972 * docs/install.html: Add bits about binutils for
2973 -ffunction-sections, -fdata-sections, -Wl,--gc-sections
2974
2975 * configure.in: Add call for GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT.
2976 * math/Makefile.am (EXTRA_DIST): Change USE_LONG_DOUBLE to
2977 USE_COMPLEX_LONG_DOUBLE.
2978 * acinclude.m4 (GLIBCPP_CHECK_MATH_SUPPORT): Break into
2979 GLIBCPP_CHECK_MATH_SUPPORT and GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT.
2980 Works around irregularies in powerpc "C" compiler, but a good idea
2981 anyway.
2982
2983 * acinclude.m4 (GLIBCPP_CHECK_COMPLEX_MATH_COMPILER_SUPPORT):
2984 New. Merge both old compiler bug checks for complex into this.
2985
2986 2000-06-19 Anthony Williams <anthony@anthonyw.cjb.net>
2987
2988 * testsuite/21_strings/find.cc: Empty strings can be found at all
2989 positions. Modified.
2990
2991 2000-06-19 Branko Cibej <branko.cibej@hermes.si>
2992
2993 * testsuite/20_utilities: New directory.
2994 * testsuite/20_utilities/auto_ptr.cc: New file.
2995
2996 2000-06-14 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
2997
2998 * src/Makefile.am (string_sources): Simplify, assuming that with
2999 -ffunction-sections, -fdata-sections, -Wl,--gc-sections, all this
3000 hacking is not necessary.
3001 (wstring_sources): Same.
3002 (OPTIMIZE_CXXFLAGS): Enable -fdata-sections -ffunction-sections
3003 -Wl,--gc-sections.
3004 * src/string-inst.cc: Remove macro blocks.
3005 * mkcheck.in (CXX_FLAG): Add bits here.
3006
3007 * src/string-inst.cc: Remove iostream-related string instantiations.
3008 * src/misc-inst.cc: Add here.
3009
3010 * acinclude.m4 (GLIBCPP_CHECK_COMPILER_VERSION): Change FMTFLAGS
3011 to WFMT_FLAGS.
3012 * aclocal.m4: Regenerate.
3013 * configure.in: Change up.
3014 * configure: Regenerate.
3015
3016 2000-06-13 Steven King <sxking@uswest.net>
3017
3018 * acinclude.m4: Fixup some of the builtin math tests and add tests for
3019 __builtin_fmod* and test libm for fmodf, fmodl or _fmodf, _fmodl.
3020 * acconfig.h: Add entries for fmod*.
3021
3022 2000-06-13 Branko Cibej <branko.cibej@hermes.si>
3023
3024 * bits/std_cmath.h: Fix typos in tests (*_FMODFF -> *_FMODF).
3025 Test *_MODFF not *_MODF for modf(float, float*).
3026 (modf(float, float*)): Remove reference to _C_legacy.
3027
3028 2000-06-13 Benjamin Kosnik <bkoz@redhat.com>
3029
3030 * acinclude.m4 (enable_cshadow_headers): Change CSHADOWFLAGS to
3031 _GNU_SOURCE instead of _ISOC9X_SOURCE, as _GNU_SOURCE is the
3032 superset, and already defined at top level.
3033 * aclocal.m4: Regenerate.
3034 * configure: Regenerate.
3035
3036 * docs/17_intro/contribute.html: Plead with people to use -cp.
3037
3038 2000-06-13 Anthony Williams <anthony@anthonyw.cjb.net>
3039
3040 * testsuite/23_containers/bitset_ctor.cc: Qualify reverse wth std::.
3041
3042 * testsuite/27_io/filebuf.cc: Changed calls to
3043 fpos<>._M_position() to implicit calls to operator streamoff().
3044 * testsuite/27_io/iostream_objects.cc: Removed #include <ciso646>,
3045 as not needed. Revert, as part of standard.
3046 * testsuite/27_io/ostream_inserter_arith.cc: Replaced explicit
3047 call to numpunct<>._M_init() with overrides of the appropriate
3048 virtual functions.
3049
3050 * testsuite/27_io/stringstream.cc: Removed unnecessary char *
3051 pointers from test01, so no need to call base(), which isn't
3052 guaranteed to be implemented as iterators may themselves be pointers
3053 * testsuite/27_io/stringbuf.cc: Removed unnecessary calls to
3054 _M_position() - use implicit conversion to streamoff instead
3055
3056 2000-06-13 Thomas Holenstein <thomas@hex.ch>
3057
3058 * bits/stl_iterator.h: Added inline to operators == to >=.
3059
3060 2000-06-13 Brent Verner <brent@rcfile.org>
3061
3062 * bits/streambuf.tcc: repaired _S_copy_streambufs()
3063 * testsuite/27_io/ostream_inserter_other.cc (test03): Added testcase.
3064
3065 2000-06-12 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
3066
3067 * bits/locale_facets.h (ctype<wchar_t>): Remove unnecessary data
3068 members.
3069 * src/locale.cc: Add cwchar include here. Remove incorrect
3070 definitions, and stub them out.
3071 * config/generic/ctype.cc (ctype): Remove ctype<wchar_t> bits.
3072 * config/solaris/solaris2.7/ctype.cc (ctype): Same.
3073 * config/solaris/solaris2.5/ctype.cc (ctype): Same.
3074 * config/newlib/ctype.cc: Same.
3075 * config/gnu-linux/ctype.cc: Same.
3076 * config/bsd/ctype.cc: Same.
3077 * config/aix/ctype.cc: Same.
3078
3079 2000-06-12 Branko Cibej <branko.cibej@hermes.si>
3080
3081 * config/solaris/solaris2.6/ctype.cc (do_toupper, do_tolower): Use
3082 towupper and towlower to convert wide characters.
3083
3084 2000-06-12 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
3085
3086 * mkcheck.in: Clean up confusion regarding NAME, PRE_NAME.
3087
3088 2000-06-08 Branko Cibej <branko.cibej@hermes.si>
3089
3090 * acinclude.m4 (GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT): Check for
3091 sinf, cosf, fabsf, and sqrtf; add to LIBMATHOBJS if missing.
3092 * aclocal.m4: Regenerate.
3093 * configure: Regenerate.
3094 * math/cosf.c: New file.
3095 * math/fabsf.c: Likewise.
3096 * math/sinf.c: Likewise.
3097 * math/sqrtf.c: Likewise.
3098 * math/Makefile.am (EXTRA_DIST): Add those four files.
3099 * math/Makefile.in: Regenerate.
3100
3101 2000-06-08 Phil Edwards <pme@sourceware.cygnus.com>
3102
3103 * testsuite/26_numerics/complex_inserters_extractors.cc: Need cmath.
3104
3105 2000-06-06 Steven King <sxking@uswest.net>
3106
3107 * acconfig.h: Added defines for HAVE_BUILTIN math functs for float,
3108 double and long double. Added defines for HAVE libm math functs for
3109 float and long double.
3110 * aclocal.m4: Added configure checks for builtin math funcs and libm
3111 support for float and long double versions of the math functions.
3112 * config.h.in: Added undefs for math functs.
3113 * configure: Regenerate.
3114 * math/mathconf: Changed the _GLIBCPP_HAS_BUILTIN_* to
3115 _GLIBCPP_HAVE_BUILTIN_*.
3116 * bits/std_cmath.h: Added long double support. Use builtins for
3117 float, double and long if available, otherwise, use libm versions if
3118 availible, otherwise, punt.
3119 * shadow/bits/std_cmath.h: ditto
3120
3121 2000-06-02 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
3122
3123 * bits/locale_facets.h: Tweak.
3124 * src/locale.cc (codecvt<wchar_t>): Tweak.
3125
3126 * bits/locale_facets.h (_Format_cache): _S_ecks -> _S_x.
3127 * bits/locale_facets.tcc (num_get<char>::_M_extract): Fix for hex.
3128
3129 * bits/basic_string.h: Move data member up.
3130 * src/string-inst.cc: Fix instantiations.
3131 * bits/string.tcc: Fix types.
3132
3133 2000-06-02 Anthony Williams <anthony@anthonyw.cjb.net>
3134
3135 * testsuite/21_strings/replace.cc (test01): Qualify find with std::.
3136
3137 2000-06-01 Benjamin Kosnik <bkoz@gnu.org>
3138
3139 * bits/std_cwctype.h: Clean.
3140 * bits/std_cwchar.h: Clean, remove cruft.
3141
3142 * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Re-work, add bits
3143 for beginning iconv support.
3144 Remove _GLIBCPP_HAS_WCHAR_MIN_MAX, roll into _GLIBCPP_USE_WCHAR_T
3145 macro.
3146 * acconfig.h: Remove _GLIBCPP_HAS_WCHAR_MIN_MAX.
3147 * bits/limits_generic.h: Remove.
3148 * src/gen-num-limits.cc: Same.
3149
3150 * src/locale.cc: Tweaks.
3151
3152 * bits/char_traits.h: Tweaks.
3153
3154 2000-05-31 Russell Davidson <russell@ehess.cnrs-mrs.fr>
3155
3156 * bits/locale_facets.tcc (num_get<char>::_M_extract): Fix signage,
3157 exponent, scientific formatting issues.
3158 * testsuite/27_io/istream_extractor_arith.cc (test09): Add tests.
3159
3160 2000-05-31 Branko Cibej <branko.cibej@hermes.si>
3161
3162 * bits/limits_generic.h (numeric_limits<wchar_t>): Use WCHAR_MIN
3163 and WCHAR_MAX instead of WCHART_MIN and WCHART_MAX.
3164
3165 2000-05-31 Nathan Myers <ncm@cantrip.org>
3166
3167 * docs/thanks.html: edit own credits
3168
3169 2000-05-31 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
3170
3171 * bits/generic_shadow.h: Remaining _C_Shadow -> _C_shadow fix.
3172
3173 * acinclude.m4 (GLIBCPP_ENABLE_LONG_LONG): Add strtoull checks...
3174
3175 * mkcheck.in (SH_FLAG): Add in -Wl,--rpath -Wl,$LIB_PATH. Tweaks.
3176
3177 2000-05-31 Steven King <sxking@uswest.net>
3178
3179 * shadow/time.h: fix typo
3180 * shadow/wchar.h: ifdef __USE_GNU for wcsdup
3181 * shadow/bits/std_cwchar.h: ditto
3182 * shadow/bits/std_cstdlib.h: add overloads of abs and div for long
3183 and long long.
3184
3185 2000-05-26 Phil Edwards <pme@sourceware.cygnus.com>
3186
3187 * acinclude.m4 (GLIBCPP_ENABLE_LONG_LONG): If strtoll isn't
3188 available, force --disable. Need to flesh this out; make smarter.
3189 * aclocal.m4: Regenerate.
3190 * configure: Regenerate.
3191
3192 * mkcheck.in: Minor tweaks.
3193 * docs/download.html: Fix typo.
3194
3195 2000-05-25 Benjamin Kosnik <bkoz@milou.soma.redhat.com>
3196
3197 * inclosure: Change to...
3198 * mkinclosure: This.
3199 Fix paths to bash.
3200 * mkcshadow: Fix paths to bash.
3201
3202 * src/Makefile.am: Tweaks. Do cshadow header trickery at build time.
3203 * src/Makefile.in: Regnerate.
3204 * acinclude.m4 (GLIBCPP_COMPILER_VERSION): Fix typo.
3205 (GLIBCPP_ENABLE_SHADOW): Do a less gross hack.
3206 * aclocal.m4: Regenerate.
3207 * mkcheck.in (INC_PATH): Tweak.
3208
3209 * configure.in: Enable long long by default.
3210 * configure: Regenerate.
3211
3212 * mkcheck.in (LIB_PATH): Revert.
3213
3214 2000-05-24 Nathan "I don't write ChangeLog Entries" Myers <ncm@cantrip.org>
3215
3216 * config/cpu/i486: New directory.
3217 * config/cpu/i486/bits: New directory.
3218 * config/cpu/i486/bits/atomicity.h: New file.
3219 * config/cpu/i386/bits/atomicity.h (__compare_and_swap): Delete
3220 'cmpxchgl' asm.
3221 * acinclude.m4 (GLIBCPP_CHECK_CPU): Enable i386.
3222
3223 2000-05-24 Loren J. Rittle <ljrittle@acm.org>
3224
3225 * backward/alloc.h (__default_alloc_template): Only expose
3226 implementation-specific symbol, if it exists in the
3227 configuration.
3228 * backward/iostream.h (ends): Expose symbol.
3229 * backward/strstream.h: New file.
3230 * backward/stream.h: New file.
3231 * backward/ostream.h: New file.
3232 * backward/istream.h: New file.
3233 * backward/fstream.h: New file.
3234 * backward/complex.h: New file.
3235 * backward/iomanip.h: New file.
3236
3237 * mkcheck.in (LIB_PATH): Add -R bits.
3238
3239 * math/carg.c (carg): Replace __atan2 with atan2.
3240
3241 2000-05-24 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
3242
3243 * Makefile.am (TAGS): Construct.
3244 * Makefile.in: Rengerate.
3245 * src/Makefile.am: Tweak.
3246 * src/Makefile.in: Tweak.
3247 * configure.in: Tweak.
3248
3249 * bits/c++config.h: Rename to ...
3250 * bits/c++config: This.
3251 * mkc++config: Adjust.
3252
3253 * m4: Remove.
3254 * m4/lc_message.m4: Merge into acinclude.m4.
3255 * m4/mathfcts.m4: Same.
3256 * m4/stringfcts.m4: Same.
3257 * acinclude.m4: Add here.
3258 * configure: Regnerate.
3259
3260 * acinclude.m4 (GLIBCPP_CHECK_COMPILER_VERSION): Remove
3261 OPTLEVEL. Add FMTFLAGS.
3262 * aclocal.m4: Regenerate.
3263 * src/Makefile.am (AC_CXXFLAGS): Take out OPTLEVEL, as this has
3264 been disabled due to higher-level Makefiles running amuck over
3265 this bit, and add in FMTFLAGS so that formatting is clear.
3266 * src/Makefile.in: Regenerate.
3267 * configure: Regenerate.
3268
3269 * src/ios.cc (ios_base::sync_with_stdio): Clean up buffers from
3270 initialization.
3271
3272 * docs/download.html: Remove references to Cygwin-specific bits,
3273 as this can now be built natively.
3274 Update with current information.
3275
3276 2000-05-24 Phil Edwards <pme@sourceware.cygnus.com>
3277
3278 * acinclude.m4 (GLIBCPP_CHECK_COMPILER_VERSION): If we can use
3279 -fdiagnostics-show-location=once, do so. Expand AC_LANG_* to
3280 enclose other tests in this macro, including future ones.
3281 * aclocal.m4: Regenerate.
3282 * configure: Regenerate.
3283
3284 * docs/faq/index.html: Update location of libg++ FAQ.
3285 * docs/faq/index.txt: Regenerate.
3286
3287 2000-05-22 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
3288
3289 * docs/17_intro/libstdc++-assign.txt: Change Cygnus to FSF.
3290
3291 2000-05-22 Phil Edwards <pme@sourceware.cygnus.com>
3292
3293 * mkcheck.in: Tweak for Solaris 8. Additional minor output comment.
3294
3295 2000-05-22 Phil Edwards <pme@sourceware.cygnus.com>
3296
3297 * acinclude.m4: If the new pragma isn't supported, don't kill -Werror;
3298 keep -Werror and add -Wno-unknown-pragma. -Werror Is Good.
3299 * aclocal.m4: Regenerate.
3300 * configure: Regenerate.
3301
3302 2000-05-19 Nathan C. Myers <ncm@cantrip.org>
3303
3304 * bits/generic_shadow.h: s/swamp/legacy/
3305
3306 2000-05-19 Phil Edwards <pme@sourceware.cygnus.com>
3307
3308 * acinclude.m4: Clean up comments on newer checks.
3309 (GLIBCPP_CHECK_COMPILER_VERSION): Check for system_header
3310 pragma support. Remove WERRORSUPPRESS variable, add WERROR.
3311 * aclocal.m4: Regenerate.
3312 * configure: Regenerate.
3313 * Makefile.in: Regenerate.
3314 * libio/Makefile.in: Regenerate.
3315 * math/Makefile.in: Regenerate.
3316 * src/Makefile.am: Tell make's WERROR to depend on configure's WERROR.
3317 * src/Makefile.in: Regenerate.
3318 * docs/configopts.html: Document changes to --enable names.
3319
3320 2000-05-18 Chip Salzenberg <chip@valinux.com>
3321
3322 * bits/ostream.tcc (_S_pad_char): Function template should not be
3323 static.
3324 * bits/streambuf.tcc (_S_copy_streambufs): Likewise.
3325 * src/string-inst.cc (__destroy_aux): Instantiate for string*.
3326
3327 2000-05-18 Nathan C. Myers <ncm@cantrip.org>
3328
3329 * mkcshadow: Change C_Swamp to C_legacy.
3330 * shadow/*: Same.
3331 * shadow/bits/*: Same.
3332 s/C_Swamp/C_legacy/g
3333 s/SWAMP/LEGACY/g
3334 s/_Shadow/_shadow/g
3335
3336 2000-05-18 Anthony Williams <anthony@anthonyw.cjb.net>
3337
3338 * bits/locale_facets.tcc (num_get::_M_extract): Change char* to
3339 const char*.
3340 * src/string-inst.cc (string::_S_find): Same.
3341
3342 2000-05-18 Benjamin Kosnik <bkoz@gnu.org>
3343
3344 * acinclude.m4 (GLIBCPP_ENABLE_SHADOW): Change to
3345 --enable-cshadow-headers. Add output messages.
3346 (GCC_ENABLE_LONG_LONG): Change to --enable-long-long, no
3347 underscores (like the rest of the enable options.) Add output messages.
3348 * aclocal.m4: Regenerate.
3349 * configure: Regenerate.
3350 * configure.in: Touch.
3351
3352 2000-05-17 Benjamin Kosnik <bkoz@cygnus.com>
3353
3354 * mkcheck.in: Enable shared library testing.
3355
3356 2000-05-17 Nathan C. Myers <ncm@cantrip.org>
3357
3358 * bits/std_cmath.h: fix sqrt(float)
3359
3360 2000-05-16 Loren J. Rittle <ljrittle@acm.org>
3361
3362 * bits/std_cassert.h: Use system_header pragma.
3363 * bits/std_cctype.h: Likewise.
3364 * bits/std_cerrno.h: Likewise.
3365 * bits/std_cfloat.h: Likewise.
3366 * bits/std_climits.h: Likewise.
3367 * bits/std_clocale.h: Likewise.
3368 * bits/std_cmath.h: Likewise.
3369 * bits/std_csetjmp.h: Likewise.
3370 * bits/std_csignal.h: Likewise.
3371 * bits/std_cstdarg.h: Likewise.
3372 * bits/std_cstddef.h: Likewise.
3373 * bits/std_cstdio.h: Likewise.
3374 * bits/std_cstdlib.h: Likewise.
3375 * bits/std_cstring.h: Likewise.
3376 * bits/std_ctime.h: Likewise.
3377 * bits/std_cwchar.h: Likewise.
3378 * bits/std_cwctype.h: Likewise.
3379 * bits/std_exception.h: Likewise.
3380 * bits/std_new.h: Likewise.
3381 * bits/std_typeinfo.h: Likewise.
3382 * shadow/bits/std_cassert.h: Likewise.
3383 * shadow/bits/std_cctype.h: Likewise.
3384 * shadow/bits/std_cerrno.h: Likewise.
3385 * shadow/bits/std_cfloat.h: Likewise.
3386 * shadow/bits/std_climits.h: Likewise.
3387 * shadow/bits/std_clocale.h: Likewise.
3388 * shadow/bits/std_cmath.h: Likewise.
3389 * shadow/bits/std_csetjmp.h: Likewise.
3390 * shadow/bits/std_csignal.h: Likewise.
3391 * shadow/bits/std_cstdarg.h: Likewise.
3392 * shadow/bits/std_cstddef.h: Likewise.
3393 * shadow/bits/std_cstdio.h: Likewise.
3394 * shadow/bits/std_cstdlib.h: Likewise.
3395 * shadow/bits/std_cstring.h: Likewise.
3396 * shadow/bits/std_ctime.h: Likewise.
3397 * shadow/bits/std_cwchar.h: Likewise.
3398 * shadow/bits/std_cwctype.h: Likewise.
3399 * shadow/bits/wrap_libio.h: Likewise.
3400 * shadow/bits/wrap_unistd.h: Likewise.
3401 * shadow/sys/cdefs.h: Likewise.
3402
3403 2000-05-16 Nathan C. Myers <ncm@cantrip.org>
3404
3405 It appears that gcc-2.96 supports the keyword "and" now.
3406 * bits/std_ciso646.h: remove.
3407 * std/ciso646: gut.
3408 * testsuite/17_intro/header_ciso646.c: enable testing.
3409 * src/Makefile.am, src/Makefile.in: remove mention of
3410 bits/std_ciso646.h
3411
3412 2000-05-16 Nathan C. Myers <ncm@cantrip.org>
3413
3414 * mkcshadow: fix typo s/_C_Swamp_/_C_Swamp/.
3415
3416 2000-05-16 Phil Edwards <pme@sourceware.cygnus.com>
3417
3418 * acinclude.m4: Fix typo, switch to decaf...
3419 * aclocal.m4: Regenerate.
3420 * configure: Regenerate.
3421
3422 2000-05-16 Phil Edwards <pme@sourceware.cygnus.com>
3423
3424 * acinclude.m4 (GLIBCPP_ENABLE_SHADOW): New macro, stub.
3425 * aclocal.m4: Regenerate.
3426 * configure.in: Call.
3427 * configure: Regenerate.
3428 * docs/configopts.html: Stub documentation.
3429
3430 2000-05-14 Nathan Myers <ncm@cantrip.org>
3431
3432 * mkcshadow: build in more-correct directory, create cshadow/
3433 directory if needed, report progress.
3434
3435 2000-05-14 LLeweLLyn Reese <llewelly@dbritsch.dsl.xmission.com>
3436
3437 * src/Makefile.am: Fix tr commands.
3438 * src/Makefile.am: Remove references to [w]stringCTORDUPAL.[lo,cc]
3439 * src/string-inst.cc: Remove extra instantiation of
3440 S::basic_string(S::size_type, C, S::allocator_type const&);
3441 * src/string-inst.cc: Remove extra template keyword.
3442
3443 2000-05-14 Loren J. Rittle <ljrittle@acm.org>
3444
3445 * config/bsd/bits/ctype_base.h: Add support for plain BSD4.4.
3446 * acinclude.m4 (GLIBCPP_CHECK_CTYPE): Enhance bsd tests.
3447 * aclocal.m4: Regenerate.
3448 * configure: Regenerate.
3449 * */Makefile.in: Regenerate.
3450
3451 2000-05-11 Phil Edwards <pme@sourceware.cygnus.com>
3452
3453 * acinclude.m4: Fix minor typo with ctypes, add more sanity to
3454 enable-cxx-flags, and remove GLIBCPP_ENABLE_NAMESPACES altogether.
3455 * aclocal.m4: Regenerate.
3456 * configure.in: Non-blank arguments break fewer Linuxes.
3457 * configure: Regenerate.
3458 * src/Makefile.am: Re-order AC_CXXFLAGS components.
3459 * src/Makefile.in: Regenerate.
3460
3461 2000-05-10 Benjamin Kosnik <bkoz@redhat.com>
3462
3463 * bits/std_cmath.h: Tweaks.
3464 * math/mathconf.h: Tweaks and fixes for HP-UX 11.
3465 (sqrtf): Define away iff !builtin and !in <math.h>.
3466 (sinf): Same.
3467 (cosf): Same.
3468 (fabsf): Same.
3469 At some point this directory should be converted to c++, the
3470 autoconf tests should be run by the c++ compiler (not c), and
3471 <cmath> should be used instead of math.h.
3472 Move declaration of nan() here.
3473 * math/complex-stub.h (cabsl): Remove nan() declaration.
3474
3475 Finish up FreeBSD4.0 support.
3476 * config/bsd/ctype.cc: Scope out toupper, tolower calls.
3477 * config/generic/ctype.cc: And here.
3478 * testsuite/21_strings/char_traits.cc (test02): Guard with
3479 _GLIBCPP_USE_WCHAR_T.
3480
3481 via Phil Edwards <pme@sourceware.cygnus.com>
3482 * bits/std_cctype.h: Remove _GLIBCPP_USE_NAMESPACES.
3483 * acconfig.h: And here.
3484 * acinclude.m4: Same.
3485 * testsuite/27_io/istream.cc: And here.
3486 * testsuite/27_io/ostream.cc: And here.
3487
3488 2000-05-09 Benjamin Kosnik <bkoz@gnu.org>
3489
3490 * acinclude.m4 (GLIBCPP_CHECK_CPU): Change powerpc bits to
3491 -mcpu=powerpc.
3492 * src/Makefile.am: Disable ENABLE_CXX_FLAGS stuff for the moment.
3493
3494 * config/generic/bits/ctype_specializations.h (ctype<char>::is):
3495 Make more generic.
3496
3497 * config/bsd: New directory.
3498 * config/bsd/ctype.cc: New.
3499 * config/bsd/bits/ctype_base.h (ctype_base): New.
3500 * config/bsd/bits/ctype_specializations.h: New.
3501 * acinclude.m4 (GLIBCPP_CHECK_CTYPE): Add bsd tests.
3502
3503 2000-05-09 Phil Edwards <pme@sourceware.cygnus.com>
3504
3505 * acinclude.m4: New macro, GLIBCPP_ENABLE_CXX_FLAGS.
3506 * configure.in: Call.
3507 * src/Makefile.am: Append results of macro to AC_CXXFLAGS.
3508 * aclocal.m4: Regenerate.
3509 * configure: Ditto.
3510 * src/Makefile.in: Ditto.
3511 * docs/configopts.html: Document.
3512 * docs/download.html: Fix typo (close quote).
3513 * docs/footer.html: Update.
3514
3515 2000-05-09 Loren J. Rittle <ljrittle@acm.org>
3516
3517 * backward/iostream.h: Expose endl. Guard wide types.
3518 * src/Makefile.am (headers): Update list to match files.
3519 * src/Makefile.in: Regenerate.
3520
3521 2000-05-09 Vadim Egorov <egorovv@mailandnews.com>
3522 Benjamin Kosnik <bkoz@gnu.org>
3523 Nathan Myers <ncm@cantrip.org>
3524 Dietmar Kuehl <dietmar_kuehl@yahoo.com>
3525
3526 * bits/streambuf.tcc (basic_streambuf::xsgetn): Fix uflow case.
3527 (basic_streambuf::xsputn): Make consistent.
3528 * testsuite/27_io/filebuf.cc: Add tests.
3529
3530 2000-05-08 Steven King <sxking@uswest.net>
3531
3532 * bits/char_traits.h: Use wchar_t utility functions for
3533 char_traits<wchar_t> methods.
3534 * testsuite/21_string/char_traits.cc: New (test02): test
3535 char_traits<wchar_t>
3536
3537 2000-05-08 Benjamin Kosnik <bkoz@cygnus.com>
3538
3539 * acinclude.m4 (GLIBCPP_CXXFLAGS): Add bits for solaris2.8.
3540
3541 * bits/fstream.tcc (filebuf::_M_init_filebuf): Don't set
3542 _M_buf_size based on macro, instead use _M_buf_size_opt.
3543 * bits/std_streambuf.h (basic_streambuf): Add _M_buf_size_opt.
3544 (basic_streambuf()): Set _M_buf_size_opt.
3545 * testsuite/27_io/filebuf.cc (filebuf): Use _M_buf_size_opt
3546 instead of _M_buf_size.
3547
3548 2000-05-04 Branko Cibej <branko.cibej@hermes.si>
3549
3550 * src/complex_io.cc: Don't instantiate inserters and extractors
3551 for wide-character streams unless _GLIBCPP_USE_WCHAR_T is defined.
3552
3553 2000-05-03 Phil Edwards <pme@sourceware.cygnus.com>
3554 Felix Natter <fnatter@gmx.net>
3555
3556 * docs/footer.html: Update to see if it takes effect.
3557 * docs/thanks.html: More people.
3558 * docs/17_intro/headers_cc.txt: Copy from testsuite, since that can't
3559 be seen from the web pages. Rename for browser-friendliness...
3560 * docs/17_intro/howto.html: ...and update here.
3561 * docs/17_intro/porting-howto.html: Changes from Felix.
3562 * docs/gccrebuild.html: Mention v3->egcs move.
3563 * docs/faq/index.html: Ditto. Also misc tweaks and URL updates.
3564 * docs/faq/index.txt: Regenerate.
3565
3566 2000-05-01 Benjamin Kosnik <bkoz@redhat.com>
3567
3568 * config/cpu/powerpc/bits/atomicity.h (__exchange_and_add): More
3569 fixes.
3570
3571 2000-05-01 Vadim Egorov <egorovv@@mailandnews.com>
3572
3573 * bits/char_traits.h: Fix parameter types.
3574 * bits/string.tcc: Avoid traits_type::move.
3575
3576 2000-05-01 Benjamin Kosnik <bkoz@haight.constant.com>
3577
3578 * src/Makefile.am (AC_CXXFLAGS): Add CPUFLAGS here.
3579 * src/Makefile.in: Regenerate.
3580 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Revert.
3581
3582 2000-04-30 Steven King <sxking@uswest.net>
3583
3584 * bits/locale_facets.h: Fix syntax error.
3585 * bits/std_fstream.h: ditto
3586
3587 2000-04-30 Benjamin Kosnik <bkoz@gnu.org>
3588
3589 * config/cpu/powerpc/bits/atomicity.h (__compare_and_swap): Fix typo.
3590
3591 * mknumeric_limits (trait_name): Fix copyright notice.
3592 * src/gen-num-limits.cc: Explicitly instantiate epsilon and
3593 round_error data members of struct value. This works around
3594 weak-linking issues on AIX, HPUX.
3595
3596 2000-04-29 Phil Edwards <pme@sourceware.cygnus.com>
3597
3598 * docs/download.html: Add link to list of mirror sites.
3599
3600 2000-04-28 Loren J. Rittle <ljrittle@acm.org>
3601
3602 * mkcheck.in: Rely on exit status instead of the presence of a
3603 core file. Added comments on how/where to save core and exe
3604 files. Move shell wildcards outside quotes and fix core path.
3605
3606 2000-04-27 scott snyder <snyder@fnal.gov>
3607
3608 * src/misc-inst.cc: Explicitly instantiate ifstream and ofstream
3609 classes.
3610
3611 2000-04-26 Nathan C. Myers <ncm@cantrip.org>
3612
3613 * bits/basic_string.h: include <bits/atomicity.h> instead
3614 of <atomicity.h>, and use the uglified names.
3615 * config/cpu/*/atomicity.h: replace with bits/atomicity.h;
3616 uglify names, eliminate dependence on <inttypes.h>.
3617 * src/Makefile.in, src/Makefile.am: refer to correct place
3618 for atomicity.h header.
3619
3620 2000-04-25 Steven King <sxking@uswest.net>
3621
3622 * bits/basic_string.h: Fix syntax error.
3623
3624 2000-04-25 Benjamin Kosnik <bkoz@redhat.com>
3625
3626 * acinclude.m4 (GLIBCPP_CHECK_MATH_SUPPORT): Improve checks for
3627 USE_LONG_DOUBLE.
3628 (GLIBCPP_ENABLE_DEBUG): If alpha, use -gdwarf-2.
3629 * math/Makefile.am (EXTRA_LONG_DOUBLE_yes): Add all the long
3630 versions to this as copysignl is needed anyway for these targets.
3631 * math/Makefile.in: Regenerate.
3632
3633 * bits/streambuf.tcc (streambuf::xsgetn): Tweak.
3634 * bits/fstream.tcc (underflow): Cast to libio types.
3635 * bits/basic_file.h (seekoff): Fixes for alpha: use __c_streamoff.
3636 * config/c_io_libio.cc (seekoff): And here.
3637
3638 2000-04-24 Loren J. Rittle <ljrittle@acm.org>
3639
3640 * mkcheck.in: Report compiler version used for test. Find
3641 the built _G_config.h instead of any old installed version.
3642
3643 2000-04-24 Loren J. Rittle <ljrittle@acm.org>
3644
3645 * config/generic/ctype.cc (do_toupper): Remove dependence on
3646 non-portable/non-existent lookup table.
3647 (do_tolower): Same.
3648
3649 2000-04-24 Nathan Myers <ncm@cantrip.org>
3650
3651 * src/string-inst.cc: More fixing.
3652
3653 2000-04-24 Benjamin Kosnik <bkoz@gnu.org>
3654
3655 * bits/stl_iterator.h: Pedantic fixing.
3656 * bits/std_sstream.h: And here.
3657 * bits/string.tcc: And here.
3658
3659 2000-04-24 Felix Natter <fnatter@gmx.net>
3660
3661 * docs/17_intro/howto.html: Add bits.
3662 * docs/17_intro/porting-howto.html: New file.
3663
3664 2000-04-24 Branko Cibej <branko.cibej@hermes.si>
3665
3666 * acinclude.m4(GLIBCPP_CHECK_WCHAR_T_SUPPORT): Expand
3667 @libinst_wstring_la@ to libinst-wstring.la when specializing for
3668 wchar_t, to empty string otherwise.
3669 * src/Makefile.am: (EXTRA_LTLIBRARIES): New.
3670 (sources): Remove $(string_sources) and $(wstring_sources).
3671 (libstdc___la_LIBADD): Add libinst-string.la and @libinst_wstring_la@.
3672 (libstdc___la_DEPENDENCIES): New.
3673 (libinst_string_la_SOURCES, libinst_wstring_la_SOURCES): New.
3674
3675 2000-04-20 Benjamin Kosnik <bkoz@redhat.com>
3676
3677 * bits/std_sstream.h: Tweak formatting.
3678 * bits/std_fstream.h: Make types public.
3679
3680 * testsuite/27_io/streambuf.cc: Fix for alpha.
3681
3682 Brad Garcia <bgarcia@laurelnetworks.com>
3683 * bits/locale_facets.h (numpunct::numpunct(size_t)): Fix bool
3684 initialization.
3685 * testsuite/27_io/ios_manip_fmtflags.cc (test02): Add test for
3686 bool formatting.
3687
3688 2000-04-19 Nathan Myers <ncm@cantrip.org>
3689
3690 * src/string-inst: consolidate _S_create,
3691 destroy, leak, clone members into stringMAIN and stringMUTATE
3692 object files.
3693 * src/Makefile.am: Above, and eliminate dependence on
3694 wstring-inst.cc.
3695 * src/wstring-inst.cc: Remove.
3696
3697 2000-04-18 Benjamin Kosnik <bkoz@redhat.com>
3698
3699 * src/Makefile.am (AC_CXXFLAGS): Activate debugging code, again.
3700 Add flags for specialized rules dealing with instantiations.
3701
3702 * src/string-inst.cc: Add instantiations missing from shared
3703 libraries--see stringEQ, stringCONSC.
3704 * src/Makefile.am (wstring_sources): Add.
3705 (string_sources): Same.
3706 * src/Makefile.in: Regenerate.
3707
3708 * stl/*: Integrate contents of this directory into top-level
3709 directories.
3710 * ext/bvector hash_map hash_set rope ropeimpl.h slist
3711 stl_bvector.h stl_hash_fun.h stl_hashtable.h stl_rope.h tree: Add.
3712 * bits/pthread_allocimpl.h std_algorithm.h std_bitset.h
3713 std_deque.h std_functional.h std_iterator.h std_list.h std_map.h
3714 std_memory.h std_numeric.h std_queue.h std_set.h std_stack.h
3715 std_stdexcept.h std_strstream.h std_utility.h std_vector.h
3716 stl_algo.h stl_algobase.h stl_alloc.h stl_config.h stl_construct.h
3717 stl_deque.h stl_function.h stl_heap.h stl_iterator.h
3718 stl_iterator_base.h stl_list.h stl_map.h stl_multimap.h
3719 stl_multiset.h stl_numeric.h stl_pair.h stl_pthread_alloc.h
3720 stl_queue.h stl_range_errors.h stl_raw_storage_iter.h stl_relops.h
3721 stl_set.h stl_stack.h stl_string_fwd.h stl_tempbuf.h stl_threads.h
3722 stl_tree.h stl_uninitialized.h stl_vector.h type_traits.h: Add.
3723 * backward/algo.h algobase.h alloc.h bvector.h defalloc.h deque.h
3724 function.h hash_map.h hash_set.h hashtable.h heap.h iterator.h
3725 list.h map.h multimap.h multiset.h pair.h rope.h set.h slist.h
3726 stack.h tempbuf.h tree.h vector.h: Add.
3727 * README (file): Update.
3728 * docs/documentation.html: README not being found.
3729 * src/Makefile.am (sources): Take out stl directory.
3730 * mkcheck.in (SRC_DIR): And here.
3731 * src/Makefile.in: Regenerate.
3732
3733 2000-04-18 Levente Farkas <lfarkas@mindmaker.hu>
3734
3735 * stl/bits/stl_function.h: Add bits so that const and non-const
3736 both work.
3737
3738 2000-04-18 scott snyder <snyder@fnal.gov>
3739
3740 * stl/bits/stl_map.h (class map): Fix default for _Alloc template
3741 parameter. Get rid of use of __STL_DEFAULT_ALLOCATOR and
3742 __STL_LIMITED_DEFAULT_TEMPLATES macros.
3743 * stl/bits/stl_multimap.h (class multimap): Likewise. Get rid of
3744 use of __STL_DEPENDENT_DEFAULT_TMPL macro.
3745
3746 2000-04-18 scott snyder <snyder@fnal.gov>
3747
3748 * stl/bits/stl_config.h (__STL_DEPENDENT_DEFAULT_TMPL): Deleted
3749 this macro.
3750
3751 * stl/ext/hash_map (class hash_map, class hash_multimap): Get rid
3752 of use of __STL_DEPENDENT_DEFAULT_TMPL macro.
3753 * stl/ext/hash_set (class hash_set, class hash_multiset):
3754 Likewise.
3755 * stl/bits/stl_function.h (struct constant_unary_fun, struct
3756 constant_binary_fun): Likewise.
3757 * stl/bits/stl_queue.h (class queue, class priority_queue): Likewise.
3758 * stl/bits/stl_stack.h (class stack): Likewise.
3759 * stl/bits/stl_set.h (class set): Likewise.
3760 * stl/bits/stl_multiset.h (class multiset): Likewise.
3761
3762 * stl/bits/stl_iterator.h (class reverse_bidirectional_iterator,
3763 class reverse_iterator): Get rid of use of
3764 __STL_LIMITED_DEFAULT_TEMPLATES macro.
3765
3766 * stl/bits/stl_config.h (__STL_DEFAULT_ALLOCATOR): Deleted this
3767 macro.
3768
3769 * stl/bits/stl_deque.h (class deque): Get rid of use of
3770 __STL_DEFAULT_ALLOCATOR macro.
3771 * stl/bits/stl_list.h (class list): Likewise.
3772 * stl/bits/stl_multiset.h (class multiset): Likewise.
3773 * stl/bits/stl_set.h (class set): Likewise.
3774 * stl/bits/stl_string_fwd.h (class basic_string): Likewise.
3775 * stl/bits/stl_tree.h (class _Rb_tree, class rb_tree): Likewise.
3776 * stl/bits/stl_vector.h (class vector): Likewise.
3777 * stl/ext/ropeimpl.h (rotate): Likewise.
3778 * stl/ext/hash_map (class hash_map, class hash_multimap):
3779 Likewise.
3780 * stl/ext/hash_set (class hash_set, class hash_multiset):
3781 Likewise.
3782 * stl/ext/slist (class slist): Likewise.
3783 * stl/ext/stl_bvector.h (class bit_vector): Likewise.
3784 * stl/ext/stl_rope.h (class rope): Likewise.
3785 * src/locale.cc (_Impl): Likewise.
3786 * src/localename.cc (_Impl): Likewise.
3787 * bits/localefwd.h (_Impl): Likewise.
3788
3789 2000-04-18 Phil Edwards <pme@sourceware.cygnus.com>
3790
3791 * docs/install.html: Cleanup, minor changes.
3792 * docs/17_intro/howto.html: Ditto.
3793
3794 2000-04-18 Nathan Myers <ncm@cantrip.org>
3795
3796 * bits/basic_string.h: Remove "inline" from member _S_find.
3797
3798 * src/string-inst.cc: Rewrite to reflect non-inline template
3799 instantiations in string.tcc.
3800
3801 * src/stringADDCS.cc, stringADDPS.cc, stringADDSC.cc, stringADDSP.cc,
3802 stringADDSS.cc, stringBIST.cc, stringBOST.cc, stringCHTR.cc,
3803 stringEQPS.cc, stringEQSP.cc, stringEQSS.cc, stringEXTRA.cc,
3804 stringGEPS.cc, stringGESP.cc, stringGESS.cc, stringGETLI.cc,
3805 stringGTPS.cc, stringGTPS.cc, stringGTSP.cc, stringGTSS.cc,
3806 stringINSER.cc, stringLEPS.cc, stringLESP.cc, stringLESS.cc,
3807 stringLESP.cc, stringLTPS.cc, stringLTPS.cc, stringLTSP.cc,
3808 stringLTSS.cc, stringMAIN.cc, stringNEPS.cc, stringNESP.cc,
3809 stringNESS.cc, stringSCOPY.cc: Remove.
3810 * src/wstringADDCS.cc, etc: Remove.
3811
3812 Benjamin Kosnik <bkoz@haight.constant.com>
3813 * src/Makefile.am: Modify to reflect above.
3814 * src/Makefile.in: Regenerate.
3815
3816 2000-04-17 Benjamin Kosnik <bkoz@cygnus.com>
3817
3818 * docs/install.html (--enable-libstdcxx-v3): Clean up install docs.
3819
3820 2000-04-13 Benjamin Kosnik <bkoz@haight.cygnus.com>
3821
3822 * bits/std_fstream.h (filebuf::sync): Need to use the abstracted
3823 io interface here instead of the libio particulars.
3824
3825 * config/threads-posix.h: Consistency with stl_config.h.
3826
3827 * mkcheck.in (CXX_FLAG): Add DDEBUG_ASSERT back in.
3828
3829 2000-04-13 Loren J. Rittle <ljrittle@acm.org>
3830
3831 * mknumeric_limits: Rename generic type template parameter name
3832 '_T' to '_Tp'.
3833 * stl/bits/type_traits.h: Ditto.
3834
3835 2000-04-06 Benjamin Kosnik <bkoz@decepticon.cygnus.com>
3836
3837 * mkcheck.in (SRC_DIR): Change default mkcheck behavior, so that
3838 it is more useful for --enable-libstdcxx-v3. Use the built
3839 compilers with v3, instead of compilers in PATH, and don't
3840 re-include include directories for checking the install.
3841
3842 2000-04-05 Benjamin Kosnik <bkoz@cygnus.com>
3843
3844 * src/Makefile.am (AM_CXXFLAGS): Disable NAMESPACES, as this is on
3845 by default when using --enable-libstdcxx-v3.
3846 * src/Makefile.in: Regenerate.
3847 * configure.in: Disable GLIBCPP_ENABLE_NAMESPACES,
3848 GLIBCPP_ENABLE_RELIBGCC for --enable-libstdcxx-v3 flag.
3849 * configure: Regenerate.
3850 * mkcheck.in: Deal with NAMESPACES.
3851
3852 2000-04-05 Petter Urkedal <petter@matfys.lth.se>
3853
3854 * src/cmath.cc: New file...
3855 (pow(*, int)): Define functions...
3856 * src/Makefile.am (sources): ...register file.
3857 * src/Makefile.in: Regenerate.
3858 * bits/std_cmath.h (pow): ...declare functions here, and remove
3859 old definitions.
3860
3861 2000-04-04 Benjamin Kosnik <bkoz@redhat.com>
3862
3863 * acinclude.m4 (GCC_OBJDIR): Tweaks
3864
3865 2000-04-03 Benjamin Kosnik <bkoz@redhat.com>
3866
3867 * acinclude.m4 (GLIBCPP_CHECK_CPU): Add arm configure bits.
3868 * config/cpu/arm: New directory.
3869
3870 Jesper Skov <jskov@redhat.com>
3871 * config/cpu/arm/atomicity.h: New file.
3872
3873 2000-03-31 Benjamin Kosnik <bkoz@redhat.com>
3874
3875 * stl/bits/stl_config.h: Make _STL_THREADS depend on _REENTRANT.
3876 Remove unused bits. Clean.
3877
3878 2000-03-29 Benjamin Kosnik <bkoz@cygnus.com>
3879
3880 * testsuite/25_algorithms: New directory.
3881 * testsuite/25_algorithms/min_max.cc: New file.
3882
3883 2000-03-29 scott snyder <snyder@fnal.gov>
3884
3885 * bits/locale_facets.tcc (do_put): Allow a couple extra digits of
3886 precision beyond that which we get from numeric_limits::digits10.
3887
3888 * stl/bits/stl_algobase.h (max, min): Don't use comparison
3889 operator.
3890
3891 * testsuite/23_containers/bitset_shift.cc: Fix.
3892
3893 * testsuite/27_io/ios_manip_fmtflags.cc (test01): Don't give a
3894 temporary to imbue().
3895
3896 * bits/std_fstream.h (sync): Resync libio's idea of the current
3897 file position with the external file.
3898
3899 2000-03-28 Benjamin Kosnik <bkoz@cygnus.com>
3900
3901 * testsuite/27_io/istream_extractor_arith.cc.cvs: Fix merge
3902 mistake.
3903
3904 * bits/std_fstream.h (filebuf::is_open): Check for _M_file before
3905 attempting calls to it.
3906 * bits/fstream.tcc (ctors): Don't call _M_init_filebuf in
3907 ctors. Instead, call _M_init_filebuf ...
3908 (open): Here, as suggested by 27.8.1.3.
3909 * src/ios.cc (ios_base::Init::Init()): Clean up default filebufs
3910 properly when initializing cout/cin/cerr.
3911
3912 2000-03-27 Russell Davidson <russell@ehess.cnrs-mrs.fr>
3913
3914 * testsuite/23_containers/multiset.cc (main): Clean up for namespaces.
3915 * testsuite/22_locale/ctype_char_members.cc: And here.
3916 * testsuite/27_io/streambuf.cc (streambuf): And here.
3917 * testsuite/27_io/ostream_inserter_char.cc (test06): And here.
3918 * testsuite/27_io/istream_unformatted.cc (test05): And here.
3919 * testsuite/27_io/istream_extractor_arith.cc: And here.
3920 * testsuite/27_io/ios_manip_basefield.cc (test02): And here.
3921 * testsuite/27_io/ios_base_members_static.cc: And here.
3922 * bits/std_climits.h (_CPP_CLIMITS): Fix typo.
3923
3924 2000-03-27 Chris Faylor <cgf@cygnus.com>
3925
3926 * configure.in: Remove setting of CXX if canadian cross.
3927 * configure: Regenerate.
3928
3929 2000-03-27 Nathan Myers <ncm@zembu.com>
3930
3931 * bits/sstream.tcc: Optimize.
3932 * bits/basic_string.h(string::append): Don't inline.
3933 * bits/string.tcc: Move out-of-line.
3934
3935 2000-03-27 Phil Edwards <pme@sourceware.cygnus.com>
3936
3937 * acinclude.m4: (GLIBCPP_CHECK_COMPILER_VERSION) When using <2.96,
3938 define WERRORSUPPRESS so that the inlining warnings won't kill us.
3939 * aclocal.m4: Regenerate.
3940 * configure: Regenerate.
3941 * src/Makefile.am: Use WERRORSUPPRESS for the files that need it.
3942 * src/Makefile.in: Regenerate.
3943
3944 * docs/install.html: Almost complete rewrite.
3945
3946 2000-03-25 Phil Edwards <pme@sourceware.cygnus.com>
3947
3948 * docs/install.html: Explain -Werror problem at "#Werror" mark.
3949 * docs/faq/index.html: Testsuite will die horribly if new libgcc.a
3950 not installed.
3951 * docs/faq/index.txt: Regenerate.
3952
3953 2000-03-24 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3954
3955 * src/Makefile.am (libio_headers_install): Fix.
3956 * src/Makefile.in: Regenerate.
3957
3958 2000-03-24 Benjamin Kosnik <bkoz@cygnus.com>
3959
3960 * docs/17_intro/RELEASE-NOTES: Fix typos.
3961 * docs/index.html: Update.
3962 * docs/17_intro/BUGS: Update.
3963 * docs/status.html: Update for 2.90.8 release.
3964
3965 2000-03-23 Phil Edwards <pme@sourceware.cygnus.com>
3966
3967 * Makefile.am: Better error message when missing libgcc2.ready.
3968 * Makefile.in: Regenerate.
3969 * acinclude.m4: Fastidious nitpicking reformatting.
3970 * aclocal.m4: Regenerate.
3971 * configure: Regenerate.
3972 * mkcheck.in: Must use same namespace settings as the library being
3973 tested. Also log ST_FLAG, since it's being passed.
3974 * docs/install.html: Add brief chunk on configuration.
3975 * docs/17_intro/RELEASE-NOTES: Fix minor Cygwin typo.
3976 * docs/23_containers/howto.html: Mention MT-safe string.
3977 * docs/faq/index.html: Minor updates.
3978 * docs/faq/index.txt: Regerarate.
3979
3980 2000-03-22 Benjamin Kosnik <bkoz@cygnus.com>
3981
3982 * bits/sstream.tcc (seekoff): Fix for gptr() null cases.
3983 Return newoff.
3984 * bits/fstream.tcc (seekoff): Sync.
3985 (seekpos): Sync.
3986 * testsuite/27_io/ostream_unformatted.cc: New file.
3987 * testsuite/27_io/stringbuf.cc: Fix.
3988 * testsuite/27_io/istream_unformatted.cc (test04): Fix.
3989
3990 * config/newlib/bits/ctype_base.h (ctype_base): Fix.
3991 * config/newlib/ctype.cc (ctype): Change __ctype -> _ctype_.
3992
3993 * src/complex_io.cc (operator>>complex): Tweak.
3994
3995 * config/cpu/alpha/atomicity.h: Explicitly typedef uint32_t, int32_t if
3996 <inttypes.h> does not exist.
3997 * config/cpu/sparc/sparc64/atomicity.h: Same.
3998 * config/cpu/sparc/sparc32/atomicity.h: Same.
3999 * config/cpu/powerpc/atomicity.h: Same.
4000 * config/cpu/i386/atomicity.h: Same.
4001 * config/cpu/generic/atomicity.h: Same.
4002 * configure.in: Check for inttypes.h.
4003 * configure: Regnerate.
4004
4005 2000-03-21 Benjamin Kosnik <bkoz@cygnus.com>
4006
4007 * bits/std_sstream.h (_M_init_stringbuf): Set initial ate position
4008 correctly.
4009 * testsuite/27_io/ostream_inserter_char.cc (test06): Add tests for ate.
4010
4011 * docs/17_intro/RELEASE-NOTES (New): Add bits.
4012
4013 * configure.in: Move AC_CHECK_HEADERS to a point where we know we
4014 are compiling natively.
4015
4016 * libio/*: Update to CVS libio from egcs.
4017
4018 2000-03-21 Phil Edwards <pme@sourceware.cygnus.com>
4019
4020 * docs/download.html: Document use of -z9 for CVS.
4021 * docs/index.html: Add target date (no link) for future snapshot.
4022
4023 2000-03-21 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
4024
4025 * bits/slice_array.h: Rename generic type template parameter name
4026 '_T' to '_Tp'.
4027 * bits/mask_array.h: Ditto
4028
4029 2000-03-20 Benjamin Kosnik <bkoz@cygnus.com>
4030
4031 * *: Change copyright holder from "Cygnus Solutions" to "Free
4032 Software Foundation, Inc."
4033
4034 * docs/configopts.html: Explain what "hella versions" means.
4035 * docs/install.html: Some tweaks--nice job on this Phil.
4036 * docs/documentation.html: Add a direct link to configuration options.
4037
4038 * src/Makefile.am (OPTIMIZE_CXXFLAGS): Add in extras.
4039 * docs/17_intro/RELEASE-NOTES (New): Add.
4040 * bits/c++config.h (__GLIBCPP__): Bump version.
4041
4042 * config/c_io_libio.cc (__basic__file(__c_lock*)): Change argument
4043 type to match prototype.
4044
4045 2000-03-20 Phil Edwards <pme@sourceware.cygnus.com>
4046
4047 * docs/install.html: Update for new funky build procedure. Move
4048 description of 'configure' options to...
4049 * docs/configopts.html: ...here. New file.
4050 * docs/17_intro/howto.html: Updates for new snapshot.
4051 * docs/20_util/howto.html: Ditto.
4052 * docs/21_strings/howto.html: Ditto.
4053 * docs/21_strings/stringtok_std_h.txt: Fix example typos.
4054 * docs/22_locale/howto.html: Ditto.
4055 * docs/23_containers/howto.html: Ditto.
4056 * docs/faq/index.html: Ditto.
4057
4058 2000-03-18 Petter Urkedal <petter@matfys.lth.se>
4059 Benjamin Kosnik <bkoz@gnu.org>
4060
4061 * acinclude.m4 (GLIBCPP_CHECK_COMPLEX_SUPPORT): Move code for main
4062 to the right place.
4063 * aclocal.m4: Regenerate.
4064 * configure: Regenerate.
4065
4066 2000-03-16 Benjamin Kosnik <bkoz@cygnus.com>
4067 scott snyder <sss@karma.fnal.gov>
4068
4069 * config/c_io_libio.h: Add __c_lock.
4070 * config/threads-no.h: Same here.
4071 * config/threads-posix.h: Add __mutext_type typedef.
4072 * config/c_io_libio.cc: basic_file ctor takes lock arg.
4073 * bits/basic_file.h: Ctor takes lock arg.
4074 * bits/std_fstream.h: Add _M_lock.
4075 * bits/fstream.tcc: Supply it to basic_file ctor.
4076
4077 * mkcheck.in (resultstext): Change [[ to [.
4078
4079 * testsuite/27_io/ostream_inserter_char.cc (test06): Tweak.
4080
4081 * bits/locale_facets.h: Tweak.
4082
4083 * stl/bits/stl_config.h: Fix defines.
4084
4085 2000-03-16 Benjamin Kosnik <bkoz@cygnus.com>
4086
4087 * mkcheck.in (INC_PATH): Add paths from cpu_include_dir to find
4088 atomicity.h
4089 * configure: Regenerate.
4090 * aclocal.m4: Regnerate.
4091
4092 2000-03-16 Nathan Myers <ncm@zembu.com>
4093
4094 * bits/string.tcc: Add MT support.
4095 * bits/basic_string.h: Same.
4096
4097 2000-03-16 Phil Edwards <pme@sourceware.cygnus.com>
4098
4099 * configure.in: Make --enable-namespaces and -libgcc-rebuild=../..
4100 the defaults.
4101 * configure: Regenerate.
4102
4103 * config/solaris/solaris2.7/ctype.cc: Fix unsigned/signed comparison.
4104
4105 2000-03-16 Phil Edwards <pme@sourceware.cygnus.com>
4106
4107 * acinclude.m4 (GLIBCPP_CHECK_CTYPE): If Sol2.5 ctype is found, keep
4108 checking for 2.[67]. (GLIBCPP_ENABLE_RELIBGCC): No longer ignore
4109 any defaults passed in.
4110 * aclocal.m4: Regenerate.
4111
4112 2000-03-16 Phil Edwards <pme@sourceware.cygnus.com>
4113
4114 * mkcheck.in: Report total successes and failures.
4115
4116 2000-03-15 Benjamin Kosnik <bkoz@cygnus.com>
4117
4118 * config/cpu: New directory, intended to be used to provide
4119 cpu-specific configuration files. In particular, assembly language
4120 primitives for thread safety.
4121 * config/cpu/alpha: Populate.
4122 * config/cpu/alpha/atomicity.h: New file.
4123 * config/cpu/arm: Populate.
4124 * config/cpu/generic: Populate.
4125 * config/cpu/generic/atomicity.h: New file.
4126 * config/cpu/hppa: Populate.
4127 * config/cpu/i386: Populate.
4128 * config/cpu/i386/atomicity.h: New file, take from i486.
4129 * config/cpu/m68k: Populate.
4130 * config/cpu/mips: Populate.
4131 * config/cpu/powerpc: Populate.
4132 * config/cpu/powerpc/atomicity.h: New file.
4133 * config/cpu/sparc: Populate.
4134 * config/cpu/sparc/sparc32: Populate.
4135 * config/cpu/sparc/sparc64: Populate.
4136 * config/cpu/sparc/sparc32/atomicity.h: New file.
4137 * config/cpu/sparc/sparc64/atomicity.h: New file.
4138
4139 * src/Makefile.am (myinstallheaders): Add install routines.
4140 * acinclude.m4 (GLIBCPP_CHECK_CPU):Add configuration for the
4141 cpu dir.
4142 * configure.in: Add.
4143
4144 * config/default: Adopt glibc naming conventions, and so move to
4145 * config/generic: Here.
4146 * acinclude.m4 (GLIBCPP_CHECK_CTYPE): Modify default case to generic.
4147
4148 2000-03-15 Bill Thompson <billt@toast.net>
4149
4150 * testsuite/27_io/ostream_inserter_char.cc (test06): Add test.
4151
4152 2000-03-14 Phil Edwards <pme@sourceware.cygnus.com>
4153
4154 * docs/17_intro/howto.html: Add missing "TOC" entry, and new section.
4155
4156 * acinclude.m4 (GLIBCPP_CHECK_CTYPE): Fixup.
4157 * aclocal.m4: Regenerate.
4158 * configure: Regenerate.
4159
4160 2000-03-13 scott snyder <snyder@fnal.gov>
4161 Jason Merrill <jason@cygnus.com>
4162
4163 * bits/locale_facets.h (class ctype, class ctype<char>, class
4164 ctype<wchar_t>): More mask fixes.
4165 * testsuite/22_locale/ctype.cc: Test for the problem.
4166
4167 2000-03-13 Benjamin Kosnik <bkoz@cygnus.com>
4168
4169 * acconfig.h: Add bits.
4170 * configure.in: Move AM_PROG_LIBTOOL up in file.
4171 Tweak cross compiling info.
4172 * configure: Regenerate.
4173
4174 * mknumeric_limits (XCOMPILE): Echo compilation line for
4175 gen-num-limits.cc
4176
4177 * acinclude.m4 (GLIBCPP_CHECK_CTYPE): Add aix checks.
4178 * aclocal.m4: Regenerate.
4179 * configure: Regenerate.
4180 * config/aix/ctype.cc (ctype): Tweak.
4181 * config/aix/bits/ctype_base.h (ctype_base): Tweak.
4182 * config/aix/bits/ctype_specializations.h: New file.
4183
4184 2000-03-10 scott snyder <snyder@fnal.gov>
4185
4186 * stl/bits/stl_vector.h (_M_assign_aux): Fix for __normal_iterator
4187 conversions.
4188 * testsuite/23_containers/vector_modifiers.cc (test01): Add a
4189 regression test for the problem.
4190
4191 2000-03-09 Benjamin Kosnik <bkoz@fidel.cygnus.com>
4192
4193 * testsuite/27_io/streambuf.cc (class testbuf): Same here.
4194 * bits/fpos.h: And here.
4195 * bits/std_ostream.h: Same here.
4196 * bits/std_istream.h: Same here.
4197 * bits/basic_ios.h: Same here.
4198 * bits/std_fstream.h: Same here.
4199 * bits/sbuf_iter.h (std): Here too.
4200 * bits/std_sstream.h: Make types public.
4201
4202 * src/misc-inst.cc: Use size_t instead of unsigned int.
4203 * bits/locale_facets.tcc (_S_format): For now, cast to char. I
4204 suppose this should be ctype::narrow... all the ctype<wchar_t>
4205 stuff needs to be cleaned up.
4206
4207 2000-03-09 Phil Edwards <pme@sourceware.cygnus.com>
4208
4209 * docs/gentop: Remove entire directory, finally.
4210
4211 2000-03-09 scott snyder <snyder@fnal.gov>
4212
4213 * bits/std_cmath.h (modf): Fix pointer overrun.
4214 * testsuite/26_numerics/c_math.cc (test04, main): Add a regression
4215 test for the problem.
4216
4217 2000-03-09 Phil Edwards <pme@sourceware.cygnus.com>
4218
4219 Looks like changes to the #include'd files must be followed by a
4220 change to the #include'ing files to take effect. Caveat emptor.
4221 * docs/header.html: New file, for server-side include.
4222 * docs/footer.html: New file, for server-side include.
4223 * docs/documentation.html: Change to use SSI.
4224 * docs/download.html: Ditto.
4225 * docs/index.html: Ditto.
4226 * docs/mail.html: Ditto.
4227 * docs/status.html: Ditto.
4228 * docs/thanks.html: Ditto, plus minor updates.
4229 * docs/how.html: Remove.
4230
4231 2000-03-09 Benjamin Kosnik <bkoz@gnu.org>
4232
4233 Preliminary alpha-linux support.
4234 * src/locale.cc (ctype<wchar_t>): Use correct types...
4235 * bits/locale_facets.h (ctype<char>): Add __table_type typedef.
4236 (ctype<wchar_t>): Same.
4237 * bits/locale_facets.h (ctype<wchar_t>): Have char and wchar_t
4238 types match for table_size (size_t).
4239
4240 * config/gnu-linux/ctype.cc (ctype): Change char_type to wchar_t
4241 as per char specialization.
4242 * config/*/ctype.cc: Same.
4243
4244 2000-03-09 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
4245
4246 * bits/locale_facets.h (_Ctype<>::mask): Import from base class
4247 _Ctype_nois<>. Template base classes are never examinated in
4248 first-phase name-lookup.
4249
4250 2000-03-08 Benjamin Kosnik <bkoz@gnu.org>
4251
4252 Add Solaris 2.5.1 support.
4253 * config/solaris/solaris2.5/bits/ctype_base.h (ctype_base): And here.
4254 * config/solaris/solaris2.5/ctype.cc: Fixup.
4255 * config/solaris/solaris2.5/bits/ctype_specializations.h: Add.
4256 * acinclude.m4 (GLIBCPP_CHECK_CTYPE): Add bits for solaris2.5.1.
4257 * aclocal.m4: Regenerate.
4258 * configure: Regenerate.
4259
4260 * config/default/ctype.cc (ctype): Fixup.
4261
4262 2000-03-07 Benjamin Kosnik <bkoz@blues.cygnus.com>
4263
4264 * testsuite/27_io/filebuf.cc: Activate init code from yesterday...
4265 * testsuite/27_io/ostream_inserter_arith.cc (testcases): Fix for
4266 non-wchar_t case.
4267
4268 2000-03-07 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
4269
4270 * bits/cpp_type_traits.h: Expand on this file purpose.
4271
4272 2000-03-06 Benjamin Kosnik <bkoz@gnu.org>
4273
4274 * bits/locale_facets.h (ctype<char>): Remove static members, and
4275 re-work initialization code.
4276 (ctype<wchar_t>): Same.
4277 Move _S_touppper to _M_toupper and initialize in ctor.
4278 Move _S_tolower to _M_tolower and initialize in ctor.
4279 Move _S_table to _M_ctable and intialize in ctor.
4280 * bits/locale_facets.h (std): And here.
4281 * src/locale.cc (std): Tweak.
4282 * config/gnu-linux/ctype.cc: Change initialization here.
4283 * config/newlib/ctype.cc: And here.
4284 * config/solaris/solaris2.7/ctype.cc: And here.
4285 * config/solaris/solaris2.6/ctype.cc: And here.
4286
4287 * bits/localefwd.h: Tweak.
4288 * bits/std_streambuf.h: Tweak formatting.
4289
4290 * testsuite/27_io/filebuf.cc: Remove BUFSIZ dependancies.
4291
4292 2000-03-05 Chip Salzenberg <chip@valinux.com>
4293
4294 * src/misc-inst.cc (basic_iostream<>): Instantiate.
4295
4296 2000-03-02 Phil Edwards <pme@sourceware.cygnus.com>
4297 Kevin Atkinson <kevinatk@home.com>
4298
4299 Initial grab of SGI's strstream implementation with minor
4300 modifications.
4301 * src/strstream.cc: New file.
4302 * std/strstream: New file.
4303 * stl/bits/std_strstream.h: New file.
4304 * bits/std_streambuf.h: Add public access.
4305 * src/Makefile.am: Add strstream sources to list of dependancies.
4306 * src/Makefile.in: Regenerate.
4307
4308 2000-03-03 2000 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
4309
4310 * bits/valarray_meta.h: Fix typo.
4311
4312 2000-03-02 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4313 Chip Salzenberg <chip@valinux.com>
4314 Petter Urkedal <petter@matfys.lth.se>
4315
4316 * src/Makefile.am (myinstallheaders): Hack to avoid
4317 `for i in ; do'.
4318 * src/Makefile.in: Regenerate.
4319
4320 2000-03-02 Chip Salzenberg <chip@valinux.com>
4321
4322 * libio/Makefile.an, math/Makefile.an, src/Makefile.am
4323 (LINK): Put quotes around "$(CC)" for libtool link mode,
4324 so libtool will use "-B" options during GCC bootstrap.
4325 * */Makefile.in: Regenerate.
4326
4327 2000-03-02 Petter Urkedal <petter@matfys.lth.se>
4328
4329 * config/c_io_libio.h: Enclose it all in ::std.
4330 * bits/basic_string.h (basic_string<>): Make types and
4331 `npos' public.
4332 * mkc++config: Truncate output file before writing.
4333
4334 2000-03-01 Benjamin Kosnik <bkoz@gnu.org>
4335
4336 * math/cabsf.c (__mycabsf): Rename to cabsf.
4337 * math/cabs.c (__mycabs): Rename to cabs.
4338
4339 2000-02-29 LLeweLLyn Reese <llewelly@198.dsl.xmission.com>
4340
4341 * bits/basic_string.h: Move declarations of __out_of_range(),
4342 __length_error() and accompanying macros ...
4343 * bits/exception_support.h: here. (Newly created file).
4344 * bits/basic_string.h: #include <bits/exception_support.h>
4345 * stl/bits/stl_vector.h: #include <bits/exception_support.h>
4346 * src/Makefile.am (headers): Add.
4347 * src/Makefile.in: Regenerate.
4348
4349 2000-02-29 Benjamin Kosnik <bkoz@cygnus.com>
4350
4351 * bits/cpp_type_traits.h: Rename structs so they don't clash with
4352 type_traits.h.
4353 * bits/valarray_array.h: Synch. Fix typos.
4354
4355 * libio/Makefile.am: Change to only compile source files that
4356 config/c_io_libio.cc actually needs.
4357 * libio/Makefile.in: Regnerate.
4358 * libio/PlotFile.hes SFile.h builtinbuf.h editbuf.h floatconv.c
4359 floatio.h fstream.h indstream.h iofclose.c iofdopen.c iofeof.c
4360 ioferror.c iofflush.c iofgetpos.c iofgets.c iofopen.c iofprintf.c
4361 iofputs.c iofread.c iofscanf.c iofsetpos.c ioftell.c iofwrite.c
4362 iogetc.c iogetdelim.c iogetline.c iogets.c ioignore.c iomanip.h
4363 iopadn.c ioperror.c iopopen.c ioprims.c ioprintf.c ioputc.c
4364 ioputs.c ioscanf.c ioseekoff.c ioseekpos.c iosetbuffer.c
4365 iosetvbuf.c iosprintf.c iosscanf.c iostream.h iostrerror.c
4366 ioungetc.c iovfprintf.c iovfscanf.c iovsprintf.c iovsscanf.c
4367 istream.h list.out ostream.h outfloat.c parsestream.h peekc.c
4368 pfstream.h procbuf.h stdiostream.h stream.h streambuf.h strfile.h
4369 strops.c strstream.h: Delete.
4370
4371 * bits/basic_file.h: Stub out or delete unused bits in this
4372 interface.
4373 (filepos_beg): Remove.
4374 (filepos_cur): Remove.
4375 (filepos_valid): Remove.
4376 * config/c_io_libio.cc: Resynch with the changes to basic_file.
4377
4378 2000-02-29 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
4379
4380 * bits/cpp_type_traits.h: Correct typo.
4381
4382 2000-02-29 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
4383
4384 * bits/cpp_type_traits.h: New file.
4385
4386 * bits/valarray_array.h: Tweak. #include <bits/cpp_type_traits.h>
4387 Improve array construction.
4388 (_Array_default_ctor): New dispatcher class.
4389 (__valarray_default_construct): New function.
4390 (_Array_copy_ctor): New dispatcher class.
4391 (__valarray_copy_construct): New function.
4392 (_Array<>::free_data): Remove.
4393
4394 * src/Makefile.am (headers): Add cpp_type_traits.h
4395 * src/Makefile.in: Regenerate.
4396
4397 2000-02-28 Benjamin Kosnik <bkoz@cygnus.com>
4398
4399 Prune libio directory to match files in libio/Makefile.
4400 * libio/PlotFile.cc,indstream.cc, isgetsb.cc, sbform.cc,
4401 stream.cc, SFile.cc, ioassign.cc, isscan.cc, sbgetline.cc,
4402 streambuf.cc, builtinbuf.cc, ioextend.cc, osform.cc, sbscan.cc,
4403 strstream.cc, editbuf.cc, iomanip.cc, parsestream.cc,
4404 stdiostream.cc, filebuf.cc, iostream.cc, pfstream.cc,
4405 stdstrbufs.cc, fstream.cc, isgetline.cc, procbuf.cc,
4406 stdstreams.cc: Remove.
4407 * libio/floatio.h, iolibio.h, iostdio.h, iostreamP.h: Remove.
4408 * libio/iofflush_u.c: Remove.
4409
4410 * libio/dbz: Remove.
4411 * libio/include: Remove.
4412 * libio/stdio: Remove.
4413 * libio/tests: Remove.
4414 * libio/testsuite: Remove.
4415
4416 * config/c_io_libio.cc: Add fcntl.h include for Solaris.
4417
4418 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Add bits.
4419 * configure.in: Replace 'grep -e' with 'grep' for Solaris.
4420 * configure: Regenerate.
4421
4422 2000-02-25 Benjamin Kosnik <bkoz@gnu.org>
4423
4424 Abstract out the underlying "C" io bits.
4425 * bits/std_new.h: Remove <stl_config> include, as well as <cstddef>.
4426 * stl/bits/stl_string_fwd.h: Remove <stddef> include.
4427 * bits/std_cwchar.h: Wrap with _GLIBCPP_USE_WCHAR_T guards. Don't
4428 include <cstddef>.
4429 * stl/bits/stl_config.h: Don't include _G_config.h.
4430
4431 * bits/basic_file.h: Allow for non-inheritance based __basic_files.
4432 * config/c_io_libio.h (_GLIBCPP_BASIC_FILE_INHERITANCE): Define.
4433 * config/c_io_libio.cc: Tweak.
4434
4435 * src/Makefile.am (TOPLEVEL_INCLUDES): Add includedir.
4436 * src/Makefile.in: Regenerate.
4437 * Makefile.am (AM_MAKEFLAGS): Define includedir so that
4438 prefix/include files will be picked up.
4439 * Makefile.in: Regenerate.
4440 * math/Makefile.am (TOPLEVEL_INCLUDES): And here.
4441 * libio/Makefile.am (TOPLEVEL_INCLUDES): And here.
4442
4443 * bits/std_ios.h: Include <bits/c++io.h> instead of libio.
4444 * bits/fpos.h: And here.
4445 * bits/basic_file.h (get_fileno): Move definition from ...
4446 * src/basic_file.cc (std): To here.
4447 * bits/fpos.h: Move types for streamoff, streampos to..
4448 * bits/basic_file.h: Move __c_file_type and fpos typedefs to...
4449 * config/c_io_libio.h: ...here.
4450 (_GLIBCPP_[BOOLALPHA, HEX, DEC, FIXED, INTERNAL, LEFT, OCT, RIGHT,
4451 SCIENTIFIC, SHOWBASE, SHOWPOINT, SHOWPOS, SKIPWS, UNITBUF,
4452 UPPERCASE, ADJUSTFIELD, BASEFIELD, FLOATFIELD, BADBIT, EOFBIT,
4453 FAILBIT, GOODBIT, APP, ATE, BINARY, IN, OUT, TRUNC): New macros to
4454 abstract out bits in ios_base.
4455 * bits/ios_base.h: Re-macrofy.
4456 * src/basic_file.cc : Rename, move to
4457 * config/c_io_libio.cc: Here.
4458 * config/c_io_libio.h: New file. Include libio.
4459 * bits/c++config.h: Don't define _GLIBCPP_USE_LIBIO.
4460 * configure.in (blddir): Add enabling bits for GLIBCPP_ENABLE_CSTDIO.
4461 * configure: Regenerate.
4462 * src/Makefile.am (sources): Take out basic_file.cc and add c++io.cc.
4463 (generated_headers): Add c++io.h
4464 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): New function to select
4465 underlying "C" io library.
4466 * acinclude.m4 (GLIBCPP_CHECK_LIBIO): Roll functionality into
4467 GLIBCPP_ENABLE_CSTDIO.
4468
4469 * configure.in: Add configure bits for cross compiling non-newlib
4470 targets. .
4471 GLIBCPP_CHECK_COMPILER_VERSION: Take out this test for this
4472 target, as we assume g++ support is not the limiting factor.
4473 GLIBCPP_CHECK_LIBIO: Same, know we don't need libio.
4474 * configure: Regenerate.
4475
4476 2000-02-22 Benjamin Kosnik <bkoz@cygnus.com>
4477
4478 * Makefile.am (INTERFACE): Define.
4479 * Makefile.in: Regenerate.
4480 * libio/ChangeLog: Add entry.
4481
4482 2000-02-21 Benjamin Kosnik <bkoz@cygnus.com>
4483
4484 * docs/install.html: Update install directions.
4485
4486 * docs/status.html: Fix sidebar to be consistent.
4487 * docs/thanks.html: Same.
4488 * docs/links.html: Same.
4489 * docs/mail.html: Same.
4490 * docs/download.html: Same.
4491
4492 * testsuite/27_io/filebuf.cc: Change BUFSIZ to buffer_size, and
4493 kill the macro BUFSIZ. I think the solaris fails lie elsewhere
4494 however, in the ctype_char_members.cc fail (for instance.)
4495 * testsuite/17_intro/headers.cc: Remove extraneous fails for hosts
4496 that do not have wchar_t enabled.
4497 * testsuite/27_io/ostream_inserter_arith.cc (struct _TestCase):
4498 Same here.
4499 * testsuite/27_io/iostream_objects.cc: And here.
4500
4501 * libio/gen-params (CONFIG_NM): Specifically add in nm as the
4502 default CONFIG_NM.
4503
4504 2000-02-18 Benjamin Kosnik <bkoz@haight.constant.com>
4505 Tom Tromey <tromey@cygnus.com>
4506
4507 * configure.in: Manually add MULTISUBDIR.
4508 * configure: Regenerate.
4509 * src/Makefile.am (MULTISUBDIR): Add the lesser evil of Tom's two
4510 "Eww" hacks to get multilib installs working correctly.
4511 ($(headers): Test for MULTISUBDIR before installing.
4512 * Makefile.am (AM_MAKEFLAGS): Don't define MULTISUBDIR, instead
4513 have configure hack it in.
4514 * Makefile.in: Regenerate.
4515 * acinclude.m4 (GLIBCPP_CXXFLAGS): Tweak wording.
4516 Add enabling bits for native Cygwin ctypes, and other newlib-based
4517 Oses.
4518
4519 2000-02-17 Benjamin Kosnik <bkoz@decepticon.cygnus.com>
4520
4521 * mkc++config (OUT_H): Remove EOF in cygwin.
4522 * acinclude.m4 (LIBS): Tweaks to allow cygwin to configure.
4523
4524 Tom Tromey <tromey@cygnus.com>
4525 * src/Makefile.am: Tweaks for installing multilibs.
4526
4527 2000-02-17 Benjamin Kosnik <bkoz@cygnus.com>
4528
4529 * src/Makefile.am:
4530 (toolexeclib_LTLIBRARIES): Use this instead of lib_LTLIBRARIES.
4531 Add USE_LIBDIR bits here, not...
4532 * src/Makefile.in: Regenerate.
4533 * Makefile.am: ...here.
4534 * Makefile.in: Regenerate.
4535
4536 2000-02-17 Benjamin Kosnik <bkoz@gnu.org>
4537
4538 * acinclude.m4 (LIBS): Fix typos.
4539 * configure.in: _GLIBCPP_BUGGY_FLOAT_COMPLEX,
4540 _GLIBCPP_BUGGY_COMPLEX for crosses.
4541 * src/Makefile.am (std_headers): Add libio.h as install include,
4542 as with _G_config.h
4543 * src/Makefile.in: Regenerate.
4544
4545 * mkcheck.in: Add bits to set CXX to cross compiler.
4546
4547 * src/complex_io.cc: Tweak.
4548 * configure.in: _GLIBCPP_BUGGY_COMPLEX for crosses.
4549 * configure: Regenerate.
4550
4551 * config/newlib/ctype.cc: Tweaks.
4552 * config/newlib/bits/ctype_base.h (ctype_base): Set mask to char,
4553 not const char.
4554 * src/complex_io.cc (operator>>(istream, complex): Define out if
4555 BUGGY_COMPLEX.
4556
4557 2000-02-16 Benjamin Kosnik <bkoz@cygnus.com>
4558
4559 * config/newlib/bits/ctype_base.h: Correct _S_table.
4560
4561 Reconfigure ctype support for "C" libraries that don't use arrays.
4562 * testsuite/22_locale/ctype_char_members.cc: New file. Test for
4563 basic ctype<char> functionality.
4564 * src/locale.cc: Move host-specific ctype functions that are not
4565 inlines to config/*/ctype.cc files.
4566 (ctype<char>::do_tolower): For instance.
4567 (ctype<char>::do_toupper): For instance.
4568 (ctype<wchar_t>::do_tolower): For instance.
4569 (ctype<wchar_t>::do_toupper): For instance.
4570 * config/gnu-linux/ctype.cc: Modify.
4571 * config/default/ctype.cc: Modify.
4572 * config/newlib/ctype.cc: Modify.
4573 * config/solaris/solaris2.6/ctype.cc: Modify.
4574 * config/solaris/solaris2.7/ctype.cc: Modify.
4575
4576 * bits/locale_facets.h (ctype<char>::is): Mark inline, move
4577 out-of-line.
4578 (ctype<char>::scan_is): Here too.
4579 (ctype<char>::scan_not): Here too.
4580 Move out of line defs to config/*/bits/ctype_specializations.h.
4581 * config/gnu-linux/bits/ctype_specializations.h: ...here. New file.
4582 * config/default/bits/ctype_specializations.h: ...here. New file.
4583 * config/newlib/bits/ctype_specializations.h: ...here. New file.
4584 * config/solaris/solaris2.6/bits/ctype_specializations.h: New file.
4585 * config/solaris/solaris2.7/bits/ctype_specializations.h: New file.
4586 * src/Makefile.am (headers): Add ctype_specializations.h.
4587 * src/Makefile.in: Regenerate.
4588
4589 Aaron Weiss <weiss@clearway.com>
4590 * Makefile.am (AM_MAKEFLAGS): Add NM_FOR_BUILD, NM_FOR_TARGET, and
4591 CONFIG_NM for Solaris builds.
4592 * Makefile.in: Regenerate.
4593
4594 * src/locale.cc: Tweak formatting.
4595
4596 2000-02-15 Benjamin Kosnik <bkoz@cygnus.com>
4597
4598 Jim Parsons <parsons@clearway.com>
4599 * testsuite/27_io/istream_unformatted.cc (test06): Add test.
4600 * bits/istream.tcc (read): Set failbit if !good(). Don't increment
4601 gcount if eof.
4602 (readsome): Same.
4603
4604 Michel Decima <michel.decima@cnet.francetelecom.fr>
4605 * testsuite/27_io/streambuf.cc: Add test.
4606 * bits/streambuf.tcc (xsgetn): Don't test for valid mode.
4607 (xsputn): Same.
4608
4609 * src/Makefile.am (AM_CXXFLAGS): Pass down AC_CXXFLAGS,
4610 OPTIMIZE_CXXFLAGS, etc. So --enable-debug and --enable-namespaces
4611 will work correctly, for instance.
4612 * src/Makefile.in: Regenerate.
4613
4614 * bits/locale_facets.h: Fix merge error.
4615 (num_put::put(unsigned long long): And here.
4616 * mknumeric_limits (trait_name): Same.
4617
4618 2000-02-15 Chip Salzenberg <chip@valinux.com>
4619
4620 Support 'configure --enable-long-long'.
4621 * bits/c++config.h (_GLIBCPP_USE_LONG_LONG): Remove.
4622 * stl/bits/stl_config.h (__STL_LONG_LONG): Remove '#if 0'.
4623 * acconfig.h (_GLIBCPP_USE_LONG_LONG): Add. Default to undef.
4624 * acinclude.m4 (GLIBCPP_ENABLE_LONG_LONG): Define flag macro.
4625 * configure.in (GLIBCPP_ENABLE_LONG_LONG): Use it.
4626
4627 * aclocal.m4: Regenerate.
4628 * config.h.in: Regenerate.
4629 * configure: Regenerate.
4630
4631 2000-02-15 Chip Salzenberg <chip@valinux.com>
4632
4633 Improve (complete?) 'long long' support.
4634 * mknumeric_limits: Call $CXX with $CPPFLAGS. Define statics
4635 for {,unsigned} long long if the limits header declares them.
4636 * src/gen-num-limits.cc: Include <bits/c++config.h> early.
4637 (__USE_GNU, _GNU_SOURCE): Define if _GLIBC_USE_LONG_LONG.
4638 (long long, unsigned long long): Gen limits if _GLIBC_USE_LONG_LONG.
4639 * bits/locale_facets.h (num_get<>::get(..., long long &)): Define.
4640 (num_put<>::put(..., long long)): Likewise.
4641 (num_put<>::put(..., unsigned long long)): Likewise.
4642 * bits/locale_facets.tcc (_S_format): Rename from _S_format_long.
4643 Templatize last parameter to support 'long long'.
4644 (num_put<>::put(...)): Call _S_format with new name.
4645 (num_put<>::put(..., long long)): Define.
4646 (num_put<>::put(..., unsigned long long)): Likewise.
4647 * src/locale-inst.cc (_S_format): Instantiate under new name.
4648
4649 2000-02-15 Petter Urkedal <petter@matfys.lth.se>
4650
4651 * src/complex.cc (operator<<, operator>>): Moved from here...
4652 * src/complex_io.cc: ...to new file.
4653 (operator>>): Stub replaced by the real thing.
4654 * src/Makefile.am (sources): Inserted complex_io.cc.
4655 * src/Makefile.in: Regenerate.
4656 * testsuite/26_numerics/complex_inserters_extractors.cc: Check it.
4657
4658 2000-02-14 Benjamin Kosnik <bkoz@gnu.org>
4659
4660 Add in ctype information for newlib "C" libraries.
4661 * config/newlib: New directory
4662 * config/newlib/bits/ctype_base.h: New file.
4663 * config/newlib/ctype.cc: New file.
4664
4665 * ctype/config/linux/*: Rename, move to...
4666 * ctype/config/gnu-linux/*: Here.
4667
4668 Finish off multilib work.
4669 * configure.in: Don't set CXX if not Canadian cross.
4670 * configure: Regenerate.
4671 * acinclude.m4 (GLIBCPP_CHECK_LIBIO): Tweak messages.
4672 * aclocal.m4: Regenerate.
4673 * config.h.in: Regenerate.
4674
4675 * install-sh: Remove, as AC_CONFIG_AUX_DIR(..) picks this out of
4676 the top-level gcc directory now.
4677 * mkinstalldirs: Remove.
4678 * missing: Remove
4679 * ltconfig: Remove.
4680 * ltmain.sh: Remove.
4681 * config.guess: Remove.
4682 * config.sub: Remove.
4683
4684 2000-02-13 Benjamin Kosnik <bkoz@cygnus.com>
4685
4686 * configure.in (glibcpp_basedir): Add glibcpp_basedir.
4687 * Makefile.am: Move mutlilib stuff to src/Makefile.am.
4688 * Makefile.in: Regenerate.
4689 * src/Makefile.am: Add multilib bits.
4690 * src/Makefile.in: Regenerate.
4691
4692 2000-02-12 Benjamin Kosnik <bkoz@cygnus.com>
4693
4694 * configure.in: Clean, add some multilib support.
4695 * configure: Regenerate.
4696 * configure.host: New file.
4697
4698 * acinclude.m4: GLIBCPP_CHECK_LIBIO. Take bits from configure.in and
4699 roll a new function, checks for presence of libio.
4700 GLIBCPP_CHECK_COMPILER_VERSION: Same.
4701 GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT: Same.
4702 GLIBCPP_CHECK_MATH_SUPPORT: Same.
4703 GLIBCPP_CHECK_WCHAR_T_SUPPORT: Same.
4704 GLIBCPP_CHECK_LIBIO: Same.
4705 GLIBCPP_CHECK_CTYPE: Same.
4706 * aclocal.m4: Regenerate.
4707 * config.h.in: Regenerate.
4708
4709 * Makefile.am: Tweaks.
4710 * Makefile.in: Regenerate.
4711
4712 2000-02-11 Benjamin Kosnik <bkoz@cygnus.com>
4713
4714 * configure.in: Make outputing the libio/Makefile
4715 conditional. Haha, yeah right. Anyway, we instead do this thing
4716 where if libio is found, then we build a null library, as there is
4717 no point in duplicating the found libio.
4718 * Makefile.am: Tweak.
4719 * Makefile: Regenerate.
4720 * libio/Makefile.am: Add _G_config.h stuff. Now cross compilers
4721 are happy happy happy.
4722 * libio/Makefile.am: Regenerate.
4723 * libio/gen-params: New file.
4724 * src/Makefile.am: Make libio.la non-conditional, as it is now a
4725 null library if it's not needed. At least we are being consistent,
4726 if not as elegant as we could be.
4727 * src/Makefile: Regenerate.
4728
4729 2000-02-10 Benjamin Kosnik <bkoz@gnu.org>
4730
4731 * Makefile.am (SUBDIRS): Add libio again.
4732 * Makefile.in: Regenerate.
4733 * configure.in (BUILD_LIBIO_INCLUDE): And here.
4734 (AC_OUTPUT): Generate libio/Makefile again.
4735 * configure: Regnerate.
4736 * src/Makefile.am (libstdc___la_LIBADD): Change path so that
4737 libio.la is referring back to the libio subdir again.
4738 (LIBIO_INCLUDES): And here.
4739 * src/Makefile.in: Regenerate.
4740
4741 2000-02-09 Benjamin Kosnik <bkoz@decepticon.cygnus.com>
4742
4743 * math/complex-stub.h: Missed one. Change __mycabs* to cabs*.
4744
4745 2000-02-09 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
4746
4747 * bits/valarray_array.h (<bits/std_new.h>): #include.
4748 (__valarray_get_memory): New function.
4749 (__valarray_release_memory): Likewise.
4750 (__valarray_default_construct): New functions.
4751 (__valarray_fill_construct): New function.
4752 (__valarray_copy_construct): New funstions.
4753 (__valarray_destroy_elements): New function.
4754
4755 * bits/valarray_array.tcc (__valarray_copy_construct): New
4756 functions.
4757
4758 * bits/std_valarray.h (valarray<>::valarray): Use
4759 __valarray_get_memory and __valarray_fill_construct,
4760 __valarray_copy_construct, __valarray_default_construct to
4761 properly construct valarrays.
4762 (valarray<>::~valarray): Use __valarray_destroy_elements to
4763 destroy elements and __valarray_release_memory to return memory.
4764 (valarray<>::shift): Tweak.
4765 (valarray<>::cshift): Likewise.
4766 (valarray<>::resize): Robustify.
4767
4768 2000-02-09 Benjamin Kosnik <bkoz@cygnus.com>
4769
4770 * mknumeric_limits (XCOMPILE): Add support for cross compiling.
4771 * bits/limits_generic.h: New file, defaults.
4772 * src/limits_generic.cc: New file, defaults.
4773 * configure.in (LIBS): Run mknumeric_limits at configure time.
4774 * acconfig.h: Remove PACKAGE VERSION HAVE_COMPLEX
4775 HAVE_LC_MESSAGES, tidy, clean, etc.
4776 * src/Makefile.am (geberated_sources): Remove.
4777
4778 * bits/fpos.h: Use _GLIBCPP_USE_LIBIO guards for libio typenames
4779 (_IO_off_t, _IO_ssize_t)
4780
4781 * src/complex.cc: Use glibc's <complex.h> if
4782 possible. . . apparently this was not being done before. Include
4783 tweaks.
4784 (abs): Enable cabs if it's around, instead of mycabs.
4785 * src/complexf.cc (FCT): Add global scope to match complex.cc.
4786 * src/complexl.cc (FCT): Same.
4787 * math/Makefile.am (EXTRA_LONG_DOUBLE_yes): Change mycabsl to cabsl.
4788 (libmath_la_SOURCES): And here.
4789 * math/(mycabs.c, mycabsf.c, mycabsl.c): Move to. . .
4790 * math/(cabs.c, cabsf.c, cabsl.c): . . . Here.
4791 * math/complex-stub.h: Move c_log declarations into. . .
4792 * math/mathconf.h: Here. This is because glibc's <complex.h>
4793 declares cclog, not c_log. The case of the dueling standards. . .
4794 * math/mathconf.h: Add _GLIBCPP_HAVE_* to macros.
4795 * math/Makefile.am: Change.
4796 * math/nan.c (nan): Change signature.
4797 * math/mathconf.h (NAN): Same.
4798 * math/complex-stub.h (nan): And here.
4799
4800 * Makefile.am (rebuild-stamp): Remove libio and libio
4801 dependancies. Plan to take out libio subdir and just merge with
4802 libio in top level gcc directory. Of course, this assumes there is
4803 a libio in the top level directory (ie ../src_dir). This will
4804 probably change the way this library is configured by default.
4805 * libio/*: Remove.
4806
4807 2000-02-09 Chip Salzenberg <chip@valinux.com>
4808
4809 * localefwd.h (locale): Make public: facet, id, category.
4810
4811 2000-02-09 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
4812
4813 * testsuite/26_numerics/buggy_complex.cc: Fix Origin:.
4814
4815 * acinclude.m4: Patch only once!
4816
4817 2000-02-09 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
4818
4819 * testsuite/26_numerics/buggy_complex.cc: New file.
4820
4821 2000-02-05 Petter Urkedal <petter@matfys.lth.se>
4822
4823 * acinclude.m4: New GLIBCPP_CHECK_COMPLEX_SUPPORT macro. Based
4824 on the 1999-11-21 entries by Mumit Khan.
4825 * configure.in: Use.
4826 * acconfig.h: New _GLIBCPP_BUGGY_COMPLEX macro.
4827 * bits/std_complex.h: Use.
4828
4829 2000-02-04 Philip Martin <pm@corris.dircon.co.uk>
4830
4831 * stl/bits/stl_algobase.h: Add traits based dispatch for
4832 __normal_iterator in the copy_backward()algorithm
4833 * stl/bits/stl_vector.h: Reduce use of __normal_iterator
4834 base() function.
4835
4836 2000-02-04 Mumit Khan <khan@xraylith.wisc.edu>
4837
4838 * src/gen-num-limits.cc (signal_handler): Work around signal
4839 handling problem on Cygwin.
4840 Thanks to Chris Faylor <cgf@cygnus.com>.
4841
4842 2000-02-03 Benjamin Kosnik <bkoz@cygnus.com>
4843
4844 * configure.in: Add (preliminary) support for cross compiles and
4845 multilibs.
4846 Remove AC_C_BIGENDIAN tests. Why is this necessary? Cross
4847 compilation freaks on this.
4848 * configure: Regenerate.
4849 * src/Makefile.am: Add support for cross compiles.
4850 * src/Makefile: Regenerate.
4851 * Makefile.am: Add support for cross compiles.
4852 * Makefile.in: Regenerate.
4853
4854 2000-02-02 Benjamin Kosnik <bkoz@cygnus.com>
4855
4856 * configure.in (LIBS): Remove unused subdirs.
4857 * configure: Regenerate.
4858 * Makefile.am (SUBDIRS): And here.
4859 * Makefile.in: Regenerate.
4860 * src/Makefile.am (sources): And here.
4861 * src/Makefile.in: Regenerate.
4862 * string/*: Remove.
4863 * amm1/*: Remove.
4864 * generic/*: Remove.
4865 * glibc/*: Remove.
4866 * mkcheck.in (INC_PATH): Include $BUILD_DIR before any source dirs.
4867
4868 * libtool: Update to libtool-1.3.4.
4869 * ltconfig: Same
4870 * ltmain.sh: Same
4871 * config.sub: Same.
4872 * config.guess: Same.
4873
4874 2000-02-02 Benjamin Kosnik <bkoz@cygnus.com>
4875 Alexandre Petit-Bianco <apbianco@cygnus.com>
4876
4877 * mkc++config: New file. Put autoconf macros into _GLIBCPP_
4878 namespace instead of polluting global namespace with duplicate
4879 autoconf output.
4880 * configure.in (AC_OUTPUT): Don't need to generate bits/config.h
4881 here anymore. . .
4882 (AC_OUTPUT_COMMANDS): Make it here.
4883 * configure: Regenerate.
4884 * bits/c++config.h.in (_CPP_CPPCONFIG): Change. Tweak. Remove
4885 endif, as now we will add it manually.
4886 Move to this file. . .
4887 * bits/c++config.h: New file. Same as old c++config.h.in except
4888 the ending macro guard is now appended manually.
4889
4890 * bits/locale_facets.tcc: Change HAVE_* macros to _GLIBCPP_HAVE_*.
4891 * bits/std_cmath.h: Same here.
4892 * bits/std_cwchar.h: And here.
4893 * src/locale.cc: And here.
4894 * src/complexl.cc: And here.
4895 * math/mathconf.h: Change to include "config.h" instead of
4896 bits/c++config.h.
4897
4898 2000-02-01 Benjamin Kosnik <bkoz@gnu.org>
4899
4900 * configure.in: Add support for threads. Try a model closer to
4901 libjava, as hopefully if the thread bits are added carefully
4902 enough, the source code will not have gross hacks. Besides, the
4903 libstdc++-v2 model could be easily emulated without the necessity
4904 of linking files in (as currently done)--all that needs to be done
4905 is AC_DEFINE(-D_PTHREADS) etc. However, let's try something
4906 new. . . and see if we arrive at a more elegant solution.
4907 * configure: Regenerated.
4908 * config/threads-no.h: New file.
4909 * config/threads-posix.h: New file.
4910 * src/Makefile.am (myinstallheaders): Install c++threads.h.
4911 * src/Makefile.in: Regenerated.
4912
4913 2000-01-31 Benjamin Kosnik <bkoz@gnu.org>
4914
4915 META-QUESTION: Can we just make a "header.html" file and a
4916 "footer.html" and just include them in all the doc sub-pages. The
4917 duplication of the header info is kind of gross, and weak
4918 considering that if you change order or layout then all this stuff
4919 has to be changed in all the sub-files.
4920
4921 * docs/17_intro/contribute.html: Take out duplicate file info.
4922 * README: Should just contain a link to the docs/index.html
4923 page. Duplicate information removed.
4924 * docs/faq/index.html: Remove indexes into HOWTOS.
4925 * docs/17_intro/howto.html: Make intro and docs part more
4926 centralized. Move intro stuff to documentation.html.
4927 * docs/how.html: Tweak. Does this file need to exist? What calls it?
4928 * docs/README.html: Move documentation files to
4929 documentation.html. Should this file be renamed
4930 "config_and_install.html" as that is what is apparently covered
4931 here. . .
4932 * docs/install.html: Yes. New file, moved and renamed README.html.
4933 * docs/documentation.html: New file. This is the index file for
4934 the documentation.
4935 * docs/index.html: Edit sidebar order. Insert new link to new
4936 documentation spine, documentation.html.
4937
4938 2000-01-31 Scott Snyder <snyder@fnal.gov>
4939
4940 * bits/istream.tcc (operator>>(istream&, string&)): Set failbit if
4941 we don't extract any characters.
4942 * testsuite/21_strings/inserters_extractors.cc (main): New tests.
4943
4944 2000-01-31 Anders Widell <awl@hem.passagen.se>
4945
4946 * stl/bits/std_bitset.h (_M_do_left_shift): Handle case when shift
4947 step is a multiple of the word size.
4948 (_M_do_right_shift): Same.
4949 * testsuite/23_containers/bitset_shift.cc: New file.
4950
4951 2000-01-31 Nathan Myers <ncm@zembu.com>
4952
4953 * README (Documentation): Add path info, fix typos.
4954
4955 2000-01-26 Benjamin Kosnik <bkoz@redhat.com>
4956
4957 * bits/locale_facets.tcc (num_get::_M_extract): Add the freaking
4958 crazy group checking for numpunct, for real this time. At some
4959 point, the local variable __grp should probably get replaced a
4960 char array, or something a bit more lightweight.
4961 (num_get::do_get(bool)): Simplify. Don't set bool reference to
4962 parsed value unless err isn't failbit.
4963 (num_get::do_get(*)): Same, make consistent.
4964
4965 Nathan Myers <ncm@zembu.com>
4966 Jim Parsons <parsons@clearway.com>
4967 * testsuite/27_io/istream_extractor_arith.cc (test08): Add
4968 more grouping tests, tweak, scold, wine.
4969
4970 2000-01-24 Benjamin Kosnik <bkoz@gnu.org>
4971
4972 * testsuite/27_io/istream_extractor_arith.cc (test07): Add
4973 grouping tests.
4974 * bits/locale_facets.tcc (num_get::_M_extract): Change to fix
4975 grouping bugs. Only allow thousands_sep if _M_use_groupings is
4976 true.
4977
4978 via <llewelly@198.dsl.xmission.com>
4979 * stl/bits/stl_vector.h (vector::_M_range_check): Throw
4980 out_of_range instead of range_error.
4981
4982 2000-01-17 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
4983
4984 * bits/std_iomanip.h (setw): Fix typo.
4985
4986 2000-01-14 Benjamin Kosnik <bkoz@gnu.org>
4987
4988 * testsuite/27_io/istream_extractor_arith.cc: Fix.
4989 * bits/locale_facets.tcc (do_get(...void)): Change to strtoul.
4990 * testsuite/27_io/istream_unformatted.cc (test04): Tweak.
4991
4992 2000-01-14 Phil Edwards <pme@sourceware.cygnus.com>
4993
4994 * docs/README.html: Reformat, more installation instructions.
4995 * docs/gccrebuild.html: New file.
4996 * docs/faq/index.html: Update for new testsuite output filenames.
4997 * docs/faq/index.txt: Regenerate.
4998
4999 2000-01-14 Phil Edwards <pme@sourceware.cygnus.com>
5000
5001 * Makefile.am (rebuild-stamp, all-local): New targets.
5002 * Makefile.in: Regenerated.
5003 * acinclude.m4: New macro, GLIBCPP_ENABLE_RELIBGCC.
5004 * aclocal.m4: Regenerated.
5005 * configure.in: Call new macro. Also do some sanity checks
5006 for combinations of --enable's that may not make sense.
5007 * configure: Regenerated.
5008
5009 2000-01-13 Benjamin Kosnik <bkoz@cygnus.com>
5010
5011 * testsuite/27_io/istream_extractor_arith.cc: Add checks for void*.
5012 * bits/locale_facets.tcc (do_get::(...void)): Set fmtflags
5013 correctly for hex-formatted input.
5014
5015 * testsuite/27_io/istream_manip.cc (test01): Fix, as per setting
5016 eofbit instead of eofbit | failbit.
5017 * testsuite/27_io/istream_unformatted.cc (test04): Fix, as
5018 ifstreams now are opened or'd with ios_base::in (as is correct).
5019 * bits/fstream.tcc (filebuf::seekoff): Simplify.
5020 * testsuite/27_io/ios_base_members_static.cc (test01): Fix thinko.
5021
5022 2000-01-12 Benjamin Kosnik <bkoz@gnu.org>
5023
5024 * bits/std_fstream.h: Add ios_base as a friend to basic_filebuf.
5025 * bits/basic_file.h (basic_file::filepos_cur): Remove incorrect
5026 (misleading) code.
5027 (__basic_file::filepos_valid): Same.
5028 (__basic_file::filepos_beg): Same.
5029 (__baseic_file::get_fileno): New function.
5030 * bits/ios_base.h (ios_base::sync_with_stdio): Implement, including
5031 feedback from LWG 49.
5032 * src/ios.cc: Move definition here.
5033 * testsuite/27_io/ios_base_members_static.cc (test01): Add tests.
5034
5035 * bits/std_sstream.h (_M_really_sync): Simplify argument list. Set
5036 output part of internal buffer based on string size, so that
5037 _M_out_end is set consistently with filebufs. Correct comments.
5038 * bits/sstream.tcc (stringbuf::overflow): Update here too.
5039 * testsuite/27_io/stringbuf.cc: Changes.
5040
5041 2000-01-11 Benjamin Kosnik <bkoz@gnu.org>
5042
5043 * bits/sstream.tcc (seekoff): Set based on end of written buffer,
5044 not buffer size.
5045 * testsuite/27_io/stringbuf.cc: Add tests for seekoff(end).
5046
5047 * bits/std_fstream.h (ifstream::open): Add ios_base::in to openmode.
5048 (ofstream::open): Add ios_base::out to openmode.
5049
5050 * bits/locale_facets.tcc (_M_extract): Have consistency between
5051 istream::sentry and extractors, where failbit | eofbit is
5052 set. Don't change this, but instead change. . (do some formatting
5053 tweaks.)
5054 * bits/istream.tcc (istream::sentry): Only set eofbit.
5055
5056 2000-01-10 Benjamin Kosnik <bkoz@gnu.org>
5057
5058 * testsuite/27_io/istringstream_members.cc: New file.
5059
5060 2000-01-09 Benjamin Kosnik <bkoz@gnu.org>
5061
5062 * bits/istream.tcc (istream::sentry): Flush.
5063
5064 * configure.in (AC_OUTPUT_COMMANDS): Simplify.
5065 * configure: Regenerate.
5066 * src/Makefile.am (generated_headers): Remove bits/c++config.h so
5067 that make clean will not delete it.
5068 * src/Makefile: Regenerate.
5069
5070 2000-01-07 Phil Edwards <pme@sourceware.cygnus.com>
5071
5072 * mkcheck.in: Use host-specific invocation of size(1);
5073 GNU binutils isn't necessarily there (more's the pity).
5074
5075 2000-01-06 Benjamin Kosnik <bkoz@cygnus.com>
5076
5077 * configure.in (LIBS): Better tests for solaris2.6.
5078 * configure: Regenerate.
5079
5080 <vakatov@ncbi.nlm.nih.gov>
5081 * bits/std_sstream.h: As per libstdc++20.
5082
5083 2000-01-06 Benjamin Kosnik <bkoz@gnu.org>
5084
5085 Break out configuration on solaris.
5086 * configure.in (ctype_solaris): Add in bits for solaris2.6 and 2.7.
5087 * config/solaris/ctype.cc: Delete and move to proper version.
5088 * config/solaris/bits: Same.
5089 * config/solaris/solaris2.5: Add this directory, with subdir bits
5090 and file ctype.cc. Probably doesn't work.
5091 * config/solaris/solaris2.6: Same.
5092 * config/solaris/solaris2.7: Same, as per specs via Phil Edwards.
5093
5094 * Makefile.am: Change paths to mkcheck.
5095 * Makefile: Regenerate.
5096 * configure.in (AC_OUTPUT_COMMANDS): Build mkcheck here.
5097 * configure: Regenerate.
5098 * src/Makefile.am (generated_headers): Add bits/c++config.h.
5099
5100 * mkcheck: Now autogenerated by configure and renamed. . .
5101 * mkcheck.in (INC_PATH): Add glue for ctype_include_dir.
5102 Have longer-style dates.
5103 Raja R Harinath <harinath@cs.umn.edu>
5104 * mkcheck: Change path to #!/usr/clocal/bin/bash.
5105
5106 * docs/README.html: Correct links, maybe. FAQ, install notes, and
5107 general documentation need to be organized around each other, not
5108 fight against each other. . .
5109
5110 2000-01-04 Phil Edwards <pme@sourceware.cygnus.com>
5111 Nicolai Josuttis <nicolai.josuttis@braunschweig.netsurf.de>
5112
5113 * README: Add a note referring to README.html.
5114 * docs/README.html: New file from Nicolai.
5115 * docs/faq/index.html: Move "how to get a copy" to here.
5116 * docs/gentop/footchunk.html: Update.
5117 * docs/gentop/headchunk.html: New links according to
5118 bkoz's idea for "How to..." stuff.
5119 * docs/gentop/thanks: Actually put people here.
5120 * docs/download.html: Regenerated.
5121 * docs/index.html, docs/links.html, docs/mail.html,
5122 docs/status.html, docs/thanks.html, docs/faq/index.txt: Ditto.
5123 * docs/how.html: Ditto. (This file should go away soon.)
5124
5125 1999-12-26 Phil Edwards <pme@sourceware.cygnus.com>
5126
5127 * docs/gentop/status: Add snapshot version column, update
5128 for Solaris 7.
5129 * docs/status.html: Regenerated.
5130
5131 1999-12-26 Phil Edwards <pme@sourceware.cygnus.com>
5132
5133 * docs/faq/index.html: Turn README and RELEASE-NOTES into links
5134 from installation FAQ, and specify location of text files.
5135 * docs/faq/index.txt: Regenerated.
5136
5137 1999-12-23 Phil Edwards <pme@sourceware.cygnus.com>
5138
5139 * docs/gentop/download: Add links to prebuilds for Cygwin/Mingw32.
5140 * docs/download.html: Regenerated.
5141
5142 1999-12-22 Phil Edwards <pme@sourceware.cygnus.com>
5143
5144 * docs/faq/index.html: Update 'what works' for .7 snapshot,
5145 clean up various links.
5146 * docs/faq/index.txt: Regenerated.
5147 * docs/gentop/gentop: Smarter regeneration script.
5148 * docs/gentop/{head,foot}chunk.html: Updated with new
5149 contributors link and mod date.
5150 * docs/gentop/index: Snapshot relase date.
5151 * docs/gentop/thanks: New contributors page added.
5152 * docs/{download,how,index,links,mail,status,thanks}.html:
5153 Regenerated from gentop; thanks.html created.
5154
5155 1999-12-21 Benjamin Kosnik <bkoz@decepticon.cygnus.com>
5156
5157 * bits/c++config.h.in (__GLIBCPP__): 19991221.
5158 * docs/index.html: Add correct information.
5159
5160 * config/irix: New directory.
5161 * config/irix/ctype.cc: Add irix-6.5 info. Not tested.
5162 * config/irix/bits/ctype_base.h: And here.
5163
5164 * config/aix: New directory.
5165 * config/aix/ctype.cc: Add aix-4.2 info. Not tested.
5166 * config/aix/bits/ctype_base.h: And here.
5167
5168 1999-12-21 Philip Martin <pm@corris.dircon.co.uk>
5169
5170 * bits/basic_string.h: Add special case handling for integral
5171 "iterators".
5172 * bits/std_string.h: include type_traits.h
5173 * testsuite/21_strings/ctor_copy_dtor.cc: Tweak.
5174
5175 1999-12-21 Benjamin Kosnik <bkoz@decepticon.cygnus.com>
5176
5177 * bits/fstream.tcc (seekoff): Output buffer based on _M_*_in and
5178 _M_*_end now.
5179 * bits/std_fstream.h (sync): And here.
5180 * testsuite/27_io/filebuf.cc: Revisions.
5181 * testsuite/27_io/filebuf-2.tst: Correct, remove weird character
5182 at the end of the file.
5183 * testsuite/27_io/filebuf-3.tst: Correct.
5184
5185 1999-12-21 Phil Edwards <pedwards@jaj.com>
5186
5187 * docs/gentop/index: Hold off on .7 announcement date.
5188 * docs/index.html: Regenerate.
5189
5190 1999-12-21 Benjamin Kosnik <bkoz@kcygnus.com>
5191
5192 * bits/std_fstream.h (sync): Move _M_file->sync() to
5193 _M_really_overflow().
5194 * bits/fstream.tcc (seekoff): Call sync, not _M_really_overflow so
5195 as to get the _M_file->sync action, which forces the external
5196 buffer to update itself.
5197 (underflow): Same here.
5198
5199 1999-12-21 Phil Edwards <pedwards@jaj.com>
5200
5201 * bits/c++config.h.in: Uncomment _GLIBCPP_USE_NAMESPACES and move...
5202 * acconfig.h: ...to here.
5203 * config.h.in: Regenerate from aclocal.
5204 * acinclude.m4: Add GLIBCPP_ENABLE_DEBUG, GLIBCPP_ENABLE_NAMESPACES.
5205 * aclocal.m4: Regenerate from acinclude.
5206 * configure.in: Use ENABLE macros here.
5207 * configure: Regenerate.
5208 * src/Makefile.am: Use results from ENABLE macros.
5209 * src/Makefile.in: Regenerate.
5210
5211 1999-12-20 Benjamin Kosnik <bkoz@cygnus.com>
5212
5213 * mkcheck (SRC_DIR): Now have to include config/* dir if "make
5214 check" and not "make check-install." Temporarily hack in linux
5215 support.
5216
5217 * bits/std_streambuf.h: Tweaks.
5218 * bits/streambuf.tcc (xsgetn): Tweaks.
5219 * bits/std_fstream.h (sync): Make _M_really_overflow consistent.
5220 * bits/fstream.tcc (filebuf::underflow): Simplify.
5221 * bits/std_sstream.h (streambuf::underflow): Minor change to make
5222 checks for read position precisely implement the standard.
5223 * bits/basic_file.h (filepos_cur): Base this on _offset.
5224 * testsuite/21_strings/inserters_extractors.cc (test05): Tweaks.
5225 * testsuite/27_io/filebuf.cc: Tweak.
5226
5227 1999-12-20 Benjamin Kosnik <bkoz@cygnus.com>
5228
5229 * docs/17_intro/RELEASE-NOTES: Fix typos.
5230
5231 * bits/locale_facets.h (ctype): Modify, use __to_type to abstract
5232 out platform-specific bits.
5233 * config/default/ctype.cc: And here.
5234 * config/defaults/bits/ctype_base.h: And here.
5235 * config/linux/ctype.cc: And here.
5236 * config/linux/bits/ctype_base.h (ctype_base): And here.
5237 * config/solaris/bits/ctype_base.h (ctype_base): Add
5238 __to_type. Comment, as it looks like this is for solaris2.6 and
5239 above: solaris2.5.1 doesn't seem to have the same definitions.
5240 * config/solaris/ctype.cc: And here.
5241
5242 1999-12-19 Benjamin Kosnik <bkoz@cygnus.com>
5243 Ulrich Drepper <drepper@cygnus.com>
5244
5245 * acconfig.h: Remove _GLIBCPP_USE_CTYPE_ISBIT.
5246
5247 * src/locale.cc: Take out platform-specific hacks.
5248 * config/linux/ctype.cc: Put here.
5249 * config/solaris/ctype.cc: Put here.
5250 * config/default/ctype.cc: Put here.
5251
5252 * bits/locale_facets.h: Take out platform-specific hacks.
5253 * config/linux/bits/ctype_base.h: Put here.
5254 * config/solaris/bits/ctype_base.h: Put here.
5255 * config/default/bits/ctype_base.h: Put here.
5256
5257 * configure.in: Bump version.
5258 Add tests for top-level config directory.
5259 * configure: Regenerated.
5260 * src/Makefile.am (INCLUDES): Add platform-specific dir.
5261 * src/Makefile: Regenerate.
5262
5263 1999-12-19 Benjamin Kosnik <bkoz@cygnus.com>
5264 Ulrich Drepper <drepper@cygnus.com>
5265
5266 * bits/locale_facets.h: Hack in solaris support.
5267 * src/locale.cc: Here too.
5268
5269 1999-12-18 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
5270
5271 * docs/17_intro/TODO: Update
5272 * docs/17_intro/RELEASE-NOTES (New): Update.
5273
5274 1999-12-17 Benjamin Kosnik <bkoz@milou.cygnus.com>
5275
5276 * bits/c++config.h.in (__GLIBCPP__): Bump.
5277 * docs/17_intro/RELEASE-NOTES: Update, Gaby please add your stuff.
5278 * docs/17_intro/TODO: Update.
5279
5280 * bits/locale_facets.h: Touch this too.
5281 * bits/localefwd.h: Add typedefs for loooooong vector names.
5282 * bits/locale_facets.tcc (locale::operator()): Need parens.
5283 (has_facet): Simplify.
5284 * src/locale-inst.cc: Add instantiations.
5285 * src/locale.cc: Tweaks.
5286
5287 * bits/std_streambuf.h: Move indeterminates into. .
5288 * bits/std_fstream.h: Here.
5289 * bits/fstream.tcc (underflow): Rewind just for ios_base::out
5290 streams.
5291 * bits/sstream.tcc: Very minor formatting tweaks.
5292 * bits/std_streambuf.h (_M_set_determinate): If exclusively an
5293 input buffer, set _M_buf to offset.
5294 * bits/istream.tcc (std): Tweaks.
5295 * testsuite/27_io/istream_unformatted.cc (test05): More tweaks,
5296 include fstream.
5297 * testsuite/27_io/filebuf.cc: Tweaks.
5298
5299 1999-12-17 Phil Edwards <pedwards@jaj.com>
5300
5301 * configure.in: Add OPTLEVEL, -O2 for gcc 2.96+, nothing otherwise.
5302 * configure: Regenerate.
5303 * src/Makefile.am: Use OPTLEVEL in CXXFLAGS.
5304 * src/Makefile.in: Regenerate. Also picks up OTHER_CXXFLAGS rename
5305 to OPTIMIZE_CXXFLAGS from a previous revision (1.96) to Makefile.am.
5306
5307 1999-12-17 Phil Edwards <pedwards@jaj.com>
5308
5309 * docs/21_strings/stringtok_std_h.txt: New algorithm
5310 suggested by Chris King.
5311 * docs/21_strings/howto.html: Link to new version.
5312
5313 1999-12-16 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
5314
5315 * bits/valarray_array.h (__valarray_sum): Use operator+=, not
5316 operator+.
5317 * docs/17_intro/TODO: Update.
5318
5319 1999-12-15 Phil Edwards <pme@sourceware.cygnus.com>
5320
5321 * docs/gentop/footchunk.html: Updated, fixed CRLFs.
5322 * docs/gentop/gentop: Ditto.
5323 * docs/gentop/headchunk.html: Ditto.
5324 * docs/*.html: Regenerated from gentop.
5325 * docs/*/howto.html: Updated as test.
5326 * docs/faq/index.html: Updated, fixed CRLFs.
5327 * docs/faq/index.txt: Regenerated.
5328
5329 1999-12-15 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
5330
5331 * mknumeric_limits (OUT_C): restart only if $OUT_C is present.
5332
5333 * bits/std_complex.h
5334 (complex<float>::complex(const complex<double>&),
5335 complex<float>::complex(const complex<long double>&)): Define.
5336
5337 * docs/17_intro/TODO: Update.
5338
5339 1999-12-13 Benjamin Kosnik <bkoz@cygnus.com>
5340
5341 * bits/istream.tcc (seekg): Don't set _M_gcount.
5342 (tellg): Same.
5343 * bits/fstream.tcc (filebuf::underflow): Re-sync
5344 external byte sequence's input buffer only. . .
5345 * testsuite/27_io/istream_unformatted.cc (test04): New tests for
5346 tellg, seekg and filebufs.
5347 (test05): Same for stringbufs.
5348 * testsuite/27_io/istream_unformatted-2.tst: New file.
5349 * testsuite/27_io/istream_unformatted-1.tst: New file.
5350 * testsuite/27_io/istream_unformatted-1.txt: New file.
5351 * testsuite/21_strings/inserters_extractors.cc (test05): Change
5352 output file.
5353
5354 1999-12-13 Phil Edwards <pedwards@jaj.com>
5355
5356 * docs/gentop/*: New directory, containing bits for the homepages.
5357 * docs/*.html: Regenerated from gentop.
5358 * docs/*/*.html: Entries added and regenerated.
5359
5360 1999-12-13 Benjamin Kosnik <bkoz@gnu.org>
5361
5362 Efforts to get -O2 to work with -Winline -Werrors.
5363 * bits/valarray_array.h (__valarray_fill(_Tp*, size_t, const
5364 _Tp&): Remove inline declaration, as cannot be inlined and
5365 -Winline -Werror complains. An interesting question is why this
5366 cannot be inlined, as I can see no real reason to disqualify it.
5367 (__valarray_product(const _Tp*, const _Tp*)): Same here.
5368 * bits/std_valarray.h (valarray::operator[](size_t)): Same here.
5369
5370 * docs/17_intro/TODO: Update.
5371
5372 1999-12-12 Benjamin Kosnik <bkoz@gnu.org>
5373
5374 * bits/std_fstream.h (seekpos): Tweaks, fixes. Move definition to
5375 fstream.tcc.
5376 * bits/basic_file.h (filepos_cur()): Make pointers themselves be
5377 the resultant position.
5378 * bits/fstream.tcc (seekoff): Explicitly set return value to
5379 resultant external byte sequence position, not value returned from
5380 _M_file->seekoff. Need to make
5381 (seekpos): New definition.
5382
5383 * bits/istream.tcc (seekg): As per Library Issues List 136, set to
5384 just istream. Necessary, or else tellg will give an invalid stream
5385 position, but seekg will return a valid stream position, which is
5386 not groovy: see testcase addition.
5387 * bits/ostream.tcc (seekp): Same.
5388
5389 * bits/streambuf.tcc (_S_copy_streambufs): Simplify.
5390 * bits/sstream.tcc: Tweaks.
5391 * bits/locale_facets.tcc: Tweaks.
5392 (num_put::do_put(iter_type, ios_base, char_type, const void*)):
5393 Re-write in a way that is easier for the inliner to work with.
5394 * bits/ios_base.h: Use explicit static_cast<int>(...) notation.
5395
5396 1999-12-10 Benjamin Kosnik <bkoz@cygnus.com>
5397
5398 * bits/locale_facets.tcc: Tweaks.
5399 * bits/locale_facets.h (use_facet): Can't inline, remove inline
5400 from declaration.
5401 * bits/localefwd.h: And here.
5402 * bits/std_ostream.h: Tweaks, sentry ctor can't be inlined.
5403 * bits/ostream.tcc: Put here.
5404
5405 Frank Ch. Eigler <fche@cygnus.com>
5406 * src/Makefile.am: Adjust CXXFLAGS, add AM_CXXFLAGS.
5407
5408 1999-12-08 Benjamin Kosnik <bkoz@cygnus.com>
5409
5410 * bits/sstream.tcc (stringbuf::seekoff): Long overdue revamp. Make
5411 in and out buffers update independantly.
5412
5413 * bits/basic_ios.h: Minor formatting.
5414 * bits/fstream.tcc (std): Fix indentation.
5415
5416 1999-12-08 Chip Salzenberg <chip@valinux.com>
5417
5418 * bits/char_traits.h (char_traits<>): Move not_eof() functions
5419 after corresponding eof() functions, so they're easier for the
5420 compiler to inline.
5421 * bits/locale_facets.h (money_base::__default_pattern): Move
5422 static variable out of inline functions.
5423 (_Moneypunct<>::do_{pos,neg}_format): Use it.
5424 * src/locale-inst.cc (money_base::__default_pattern): Define it.
5425
5426 1999-12-08 Benjamin Kosnik <bkoz@cygnus.com>
5427
5428 * bits/std_fstream.h (filebuf::open): Tweak.
5429 * bits/fstream.tcc (filebuf::seekoff): Simplify, fix.
5430 * bits/std_ios.h: Minor tweaks for headers.
5431
5432 1999-12-06 Benjamin Kosnik <bkoz@gnu.org>
5433
5434 * bits/c++config.h.in (_GLIBCPP_FULLY_COMPLIANT_HEADERS): New macro.
5435 * src/string-inst.cc: Add guards . . .
5436 * src/misc-inst.cc: And here.
5437 * bits/std_sstream.h: And here.
5438 * bits/std_fstream.h: And here.
5439 * bits/std_streambuf.h: And here.
5440 * bits/std_istream.h: And here.
5441 * bits/std_ostream.h: And here.
5442
5443 1999-12-06 Scott Snyder <snyder@fnal.gov>
5444
5445 * bits/istream.tcc (basic_istream::read): Try to handle __n == 0
5446 case.
5447 (basic_istream::readsome): And here as well.
5448 * testsuite/27_io/istream_unformatted.cc: Test a zero-length
5449 read().
5450
5451 1999-12-06 Mumit Khan <khan@xraylith.wisc.edu>
5452
5453 * bits/istream.tcc (basic_istream::ignore): streamsize is not
5454 necessarily an `int'.
5455
5456 1999-12-06 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
5457
5458 * mknumeric_limits: Don't use $CXXFLAGS when building
5459 gen-num-limits. It's definitely wrong to use it since $CXXFLAGS
5460 generally instructs the compiler not to emit template
5461 instantiations and we end up with undefined symbols. Sigh.
5462
5463 1999-12-05 Benjamin Kosnik <bkoz@gnu.org>
5464
5465 * bits/locale_facets.tcc: Tweak.
5466 (_S_format_long): Adjust showpos formatting for hex and oct.
5467 * bits/std_ostream.h (operator<<(short)): Correctly deal with hex
5468 and oct by formatting as unsigned.
5469 (operator<<(int)): Same here.
5470 * bits/ostream.tcc (operator<<(long)): Same.
5471 (operator<<(long long)): Same.
5472 (_S_pad_char): Actually treat ios_base::internal as something
5473 worth doing correctly. Remove const designation on ios argument.
5474 * testsuite/27_io/ios_manip_basefield.cc (test02): Add tests.
5475 * testsuite/27_io/ostream_inserter_arith.cc (test03): Add tests.
5476
5477 1999-12-04 Benjamin Kosnik <bkoz@gnu.org>
5478
5479 * bits/std_sstream.h (streambuf::underflow): Check for mode == in.
5480
5481 1999-12-03 Benjamin Kosnik <bkoz@gnu.org>
5482
5483 * bits/locale_facets.tcc (num_put::do_put(bool): Fix.
5484
5485 * bits/sstream.tcc (streambuf::seekoff): Add parens.
5486 * bits/istream.tcc (istream::get(sb)): Handle exceptional events.
5487 (operator>>(istream, _CharT*)): Change streamsize to int_type.
5488 (operator>>(istream, _CharT&)): Fix typedef'd type to be _CharT.
5489 * bits/ostream.tcc (ostream::operator<<(const char*)): Stub out
5490 unused argument.
5491 (ostream::operator<<(_CharT)): Fix.
5492
5493 * bits/std_sstream.h: Temporarily disable including sstream.tcc to
5494 see if this will increase compile speed.
5495 * bits/std_ostream.h: Likewise. . .
5496 * bits/std_istream.h: And here.
5497 * bits/std_fstream.h: And here.
5498 * src/misc-inst.cc: Add relevant header file includes for
5499 instantiation purposes.
5500 * src/string-inst.cc: And here.
5501 * testsuite/27_io/ostream_inserter_arith.cc: Add test case.
5502
5503 1999-12-02 Benjamin Kosnik <bkoz@gnu.org>
5504
5505 * testsuite/27_io/istream_unformatted.cc (test03): Add tests.
5506 * bits/istream.tcc (get(streambuf)): More fixes.
5507 (istream::ignore): Get specific about numeric_limits<int>::max()
5508 requirements.
5509
5510 * bits/fstream.tcc (filebuf::open): Tweaks for _M_last_overflowed.
5511 (filebuf::close): Same.
5512 * testsuite/27_io/filebuf.cc: Add tests for ios_base::ate.
5513
5514 1999-12-01 Phil Edwards <pedwards@jaj.com>
5515
5516 * mkcheck: Support for compilation/execution timing.
5517 * testsuite/printnow.c: New file.
5518
5519 1999-12-01 Phil Edwards <pedwards@jaj.com>
5520
5521 * bits/std_cwchar.h: Test for _GLIBCPP_USE_WCHAR_T.
5522 * configure.in: Test for presence of wchar.h before testing
5523 for any of its features.
5524 * configure: Regenerate.
5525
5526 1999-11-30 Benjamin Kosnik <bkoz@gnu.org>
5527
5528 Preliminary istream validations complete.
5529 * bits/istream.tcc (istream::getline): Fixes. Tweaks to make
5530 formatting more consistent. Removal of if-statements inside of for
5531 loops.
5532 (ignore): Fix.
5533 (get): Same.
5534 (putback): Same.
5535 * bits/std_istream.h: Same.
5536 * bits/sstream.tcc (stringbuf::pbackfail): Fix.
5537 * testsuite/27_io/stringbuf.cc: Tweak.
5538 * testsuite/27_io/istream_unformatted.cc (test02): Mo' tests.
5539
5540 * bits/ostream.tcc (ostream::operator<<(arith)): Set badbit, not
5541 failbit on failure, as per 27.6.2.5.2.
5542
5543 * stl/bits/std_vector.h: Allow bool specializations. Should move
5544 ext/std_bvector to bits, not ext, maybe.
5545
5546 1999-11-30 Mumit Khan <khan@xraylith.wisc.edu>
5547
5548 * configure.in: Fix checks for mbstate_t and WCHAR_MIN/MAX.
5549 * configure: Regenerate.
5550
5551 999-11-29 Benjamin Kosnik <bkoz@gnu.org>
5552
5553 * bits/istream.tcc (get(streambuf, char)): Fix.
5554 * testsuite/27_io/istream_unformatted.cc (test03): Add tests.
5555
5556 1999-11-29 Scott Snyder <snyder@fnal.gov>
5557
5558 * bits/basic_string.h (append(const _Char*, size_type)): The
5559 length of the appended string is given exactly by the second arg,
5560 regardless of the data in the character array.
5561 * bits/string.tcc (basic_string(const _CharT*, size_type, const
5562 _Alloc&)): Likewise.
5563 * testsuite/21_strings/append.cc (test01): Remove erroneous test
5564 of basic_string::append.
5565
5566 1999-11-29 Chip Salzenberg <chip@valinux.com>
5567
5568 * Makefile.in: Tweaks for CXXFLAGS.
5569 * */Makefile.in: Same.
5570
5571 1999-11-29 Mumit Khan <khan@xraylith.wisc.edu>
5572
5573 * conficd bgure.in: Check for wide character support.
5574 * bits/c++config.h.in (_GLIBC_USE_WCHAR_T): Move from here ...
5575 * acconfig.h (_GLIBC_USE_WCHAR_T): to here.
5576 * bits/string.tcc (wstring::_S_find): Guard wchar_t specialization.
5577
5578 1999-11-29 Mumit Khan <khan@xraylith.wisc.edu>
5579
5580 * acinclude.m4: Fix typo.
5581 * src/complex.cc: Fix macro line continuation.
5582
5583 1999-11-29 Petter Urkedal <petter@matfys.lth.se>
5584
5585 * src/Makefile.am (CXXFLAGS): Add -Wno-format to allow non-
5586 string literals in format, as used in locale-facets.tcc.
5587
5588 1999-11-28 Benjamin Kosnik <bkoz@gnu.org>
5589
5590 * testsuite/27_io/istream_unformatted.cc (test03): Add tests.
5591 * bits/istream.tcc (istream::get): Extract to argument minus one.
5592 Various tweaks and fixes.
5593
5594 1999-11-22 Mumit Khan <khan@xraylith.wisc.edu>
5595
5596 * bits/locale_facets.tcc: Workaround for compiler crash on
5597 ix86-*-mingw32.
5598
5599 1999-11-21 Mumit Khan <khan@xraylith.wisc.edu>
5600
5601 * acinclude.m4: New file. New _GLIBCPP_CHECK_FLOAT_SUPPORT macro.
5602 * configure.in: Use.
5603 * acconfig.h: New _GLIBCPP_BUGGY_FLOAT_COMPLEX macro.
5604 * src/complexf.cc: New _GLIBCPP_FLOAT_SPECIALIZATION macro.
5605 * bits/std_complex.h: Use.
5606 * src/complex.cc: Use.
5607
5608 1999-11-19 Mumit Khan <khan@xraylith.wisc.edu>
5609
5610 * testsuite/18_support/numeric_limits.cc: Add missing std:: prefix.
5611 * testsuite/21_strings/inserters_extractors.cc: Likewise.
5612 * testsuite/22_locale/ctype.cc: Likewise.
5613 * testsuite/23_containers/multiset.cc: Likewise.
5614 * testsuite/23_containers/vector_ctor.cc: Likewise.
5615 * testsuite/26_numerics/binary_closure.cc: Likewise.
5616 * testsuite/27_io/fpos.cc: Likewise.
5617 * testsuite/27_io/ios_base_callbacks.cc: Likewise.
5618 * testsuite/27_io/istream_extractor_arith.cc: Likewise.
5619 * testsuite/27_io/istream_extractor_char.cc: Likewise.
5620 * testsuite/27_io/istream_extractor_other.cc: Likewise.
5621 * testsuite/27_io/istream_sentry.cc: Likewise.
5622 * testsuite/27_io/ostream_inserter_char.cc: Likewise.
5623 * testsuite/27_io/ostream_inserter_other.cc: Likewise.
5624 * testsuite/27_io/streambuf.cc: Likewise.
5625 * testsuite/27_io/stringstream.cc: Likewise.
5626
5627 1999-11-19 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
5628
5629 * bits/valarray_meta.h: Don't forget to define tanh
5630
5631 1999-11-18 Philip Martin <pm@corris.dircon.co.uk>
5632
5633 * src/stl-inst.cc: Use typedef to refer to iterator
5634 * stl/bits/stl_algobase.h: Add traits based dispatch for
5635 __normal_iterator in the copy()algorithm
5636 * stl/bits/type_traits.h: Add _Is_normal_iterator trait support
5637
5638 1999-11-18 Kevin Ediger <kediger@licor.com>
5639
5640 * src/locale.cc (locale::_Imp::_Imp): Use auto_ptr to make
5641 constructors for locale::_Impl exception safe.
5642
5643 1999-11-18 Scott Snyder <snyder@fnal.gov>
5644
5645 * stl/bits/stl_queue.h: The C++ standard gives the default for the
5646 _Sequence template argument of priority_queue<> as vector<>, not
5647 deque<>.
5648
5649 1999-11-18 Benjamin Kosnik <bkoz@gnu.org>
5650
5651 * bits/std_sstream.h (stringbuf::_M_really_sync): Add __iend as a
5652 parameter.
5653 * bits/sstream.tcc: Adjust here too.
5654
5655 1999-11-17 Benjamin Kosnik <bkoz@gnu.org>
5656
5657 * bits/sbuf_iter.h (istreambuf_iter::equal): Tweak.
5658 * bits/istream.tcc (operator>>): Replace iostate(0) with
5659 iostate(ios_base::goodbit), which is the same thing, but hopefully
5660 a bit clearer.
5661 * bits/locale_facets.tcc (do_get(bool)): Streamline, deal with
5662 libraries issue list 17.
5663 (do_gets): Don't set goodbit explicitly, instead only set on
5664 failures as good bit is the default setting.
5665 * bits/ios_base.h (setf): Set correctly.
5666 * bits/fstream.tcc: Tweak.
5667 * bits/std_sstream.h (_M_really_sync): Fix ibuffer positioning for
5668 in|out bufs that are empty. . .
5669 * testsuite/27_io/istream_extractor_arith.cc (test03): Add.
5670
5671 1999-11-16 Benjamin Kosnik <bkoz@gnu.org>
5672
5673 * testsuite/27_io/streambuf.cc (class testbuf): Don't set _M_buf_size.
5674 * bits/std_streambuf.h (setp): Set _M_buf_size, _M_mode.
5675 Add comments "all about _M_buf."
5676 (setg): Set _M_mode.
5677
5678 1999-11-16 Kevin Ediger <kediger@licor.com>
5679
5680 * bits/locale_facets.tcc (_S_build_float_format): New function.
5681 (_S_output_float): New function.
5682 (num_put::do_put(double)): Use 'em.
5683 (num_put::do_put(long double)): Use 'em.
5684 * testsuite/27_io/ostream_inserter_arith.cc: New file.
5685
5686 1999-11-15 Scott Snyder <snyder@fnal.gov>
5687
5688 * bits/basic_file.h: Type of __off parm should be __c_streampos, to
5689 match how libio is calling us.
5690 * src/basic_file.cc (sys_seek): Likewise.
5691 * bits/std_fstream.h (basic_filebuf::sync): Restore sync call.
5692
5693 1999-11-15 Benjamin Kosnik <bkoz@gnu.org>
5694
5695 * docs/17_intro/contribute.html: Add link to assignment form.
5696 * docs/17_intro/libstdc++-assign.txt: New file.
5697
5698 * mkcheck (TESTS_FILE): Move a copy of test files as well as
5699 output files.
5700
5701 * bits/std_streambuf.h (_M_buf_bump): New function.
5702 * bits/streambuf.tcc: Mods to support _M_buf_bump.
5703 (xsputn): Here. Also add checks for output valid.
5704 (xsgetn): Add checks for input valid.
5705 (sputc): Here.
5706 (sgetc): Set _M_in_end to _M_buf + _M_buf_end.
5707 * bits/std_sstream.h (_M_really_sync): Set _M_buf.
5708 Set _M_out_end to variable-length-end.
5709 * bits/sstream.tcc (overflow): Use _M_buf_bump.
5710 (seekpos): Same.
5711 (seekoff): Same.
5712 * bits/fstream.tcc (std): Tweak formatting.
5713 (filebuf::overflow): Simplify.
5714 (filebuf::showmanyc): Same.
5715 (filebuf::underflow): Same.
5716 * testsuite/27_io/filebuf.cc: Fix.
5717 * testsuite/27_io/ostream_inserter_other.cc: Fix.
5718 * testsuite/27_io/ostream_inserter_other-2.tst: New file.
5719 * testsuite/27_io/stringbuf.cc: Tweak.
5720 * testsuite/27_io/streambuf.cc: Tweak.
5721 * testsuite/27_io/istream_extractor_other.cc: Fix.
5722
5723 1999-11-11 Matthias Klose <doko@cs.tu-berlin.de>
5724
5725 * stl_deque.h: Use static_casts<size_type>(signed_type).
5726
5727 1999-11-11 Benjamin Kosnik <bkoz@gnu.org>
5728
5729 Cleanups for callbacks, more regression hunting. Remaining
5730 failures (1) due to last unresolved stringstream issues, not
5731 regressions per se.
5732 * bits/std_fstream.h: Revert. Disable call to _M_file->sync as
5733 killing 27_io/filebuf.cc tests. . . need another solution.
5734
5735 * bits/streambuf.tcc (_S_copy_streambufs): Fix.
5736 * testsuite/27_io/istream_extractor_other.cc: Tweak comments.
5737
5738 * bits/basic_ios.h: Add cached facets here. UGH. The standard
5739 foils all attempts at a graceful, minimal implementation.
5740 * bits/basic_ios.tcc: Tweaks.
5741 * bits/istream.tcc: Fix.
5742 * bits/ostream.tcc: Fix.
5743 * bits/std_istream.h: Fix.
5744 * bits/std_ostream.h: Fix.
5745 * src/ios.cc (ios_base::imbue): Set _M_locale_ios before calling
5746 callbacks.
5747 * bits/locale_facets.tcc (std): Minor, minor formatting tweak.
5748 (_S_pad_numeric): Make comprehensible.
5749
5750 1999-11-10 Benjamin Kosnik <bkoz@cygnus.com>
5751
5752 * bits/std_ostream.h: Add callbacks for _M_fnumput.
5753 (_S_ostream_fcache): New function.
5754 Move functions out-of-line.
5755 * bits/ostream.tcc: Put here.
5756
5757 * bits/std_istream.h: Add callbacks for _M_fnumget.
5758 (_S_istream_fcache): New function.
5759 Move functions out-of-line.
5760 * bits/istream.tcc: Put here.
5761
5762 * bits/basic_ios.tcc (basic_ios::imbue): Tweaks, remove call to
5763 _M_call_callbacks(), as ios_base::imbue does this already.
5764 * src/ios.cc (register_callback): Clean.
5765 (_M_call_callbacks): Same.
5766 * bits/ios_base.h: Callback work.
5767 * testsuite/27_io/ios_base_callbacks.cc (test01): New file.
5768
5769 1999-11-10 Benjamin Kosnik <bkoz@cygnus.com>
5770 Matthias Klose <doko@cs.tu-berlin.de>
5771
5772 * stl/ext/stl_rope.h: Fix initialization order.
5773
5774 1999-11-09 Scott Snyder <snyder@fnal.gov>
5775
5776 * bits/std_fstream.h (basic_filebuf::sync): Unconditionally call
5777 _M_file->sync() so that redirection works correctly.
5778
5779 1999-11-09 Benjamin Kosnik <bkoz@gnu.org>
5780
5781 * bits/istream.tcc: Re-order.
5782 * bits/std_istream.h: Fix getline problems.
5783 * testsuite/27_io/istream_unformatted.cc: New tests.
5784
5785 Clean up regressions.
5786 * bits/std_sstream.h: Set initial stringbufs correctly.
5787
5788 1999-11-09 Scott Snyder <snyder@fnal.gov>
5789
5790 * stl_vector.h (_M_range_insert): Fix mixing pointers and
5791 vector::iterator.
5792 * testsuite/23_containers/vector_modifiers.cc (test01): New file,
5793 tests.
5794
5795 1999-11-09 Benjamin Kosnik <bkoz@cygnus.com>
5796
5797 * src/Makefile.am (CXXFLAGS): Add -Winline.
5798 * src/Makefile.in: Regenerate.
5799
5800 1999-11-05 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
5801
5802 * bits/valarray_meta.h (_DEFINE_EXPR_UNARY_FUNCTION): When
5803 building meta-expressions don't forget to take the contained
5804 closures.
5805
5806 1999-11-02 Benjamin Kosnik <benjamin@cygnus.com>
5807
5808 * configure: Regenerate.
5809
5810 1999-11-02 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
5811
5812 * bits/valarray_meta.h (_Expr<>::sum): Tweak. Use copy-initialization
5813 syntax.
5814 * bits/valarray_meta.h (min): Likewise.
5815 * bits/valarray_meta.h (max): Likewise.
5816
5817 1999-11-01 Benjamin Kosnik <bkoz@cygnus.com>
5818
5819 * bits/std_sstream.h (_M_really_sync): Take into account in | out bufs.
5820 * bits/std_streambuf.h (_S_copy_streambufs): New function.
5821 * bits/streambuf.tcc: Define.
5822 * bits/istream.tcc (istream::operator>>(streambuf)): Rewrite.
5823 * bits/ostream.tcc (ostream::operator<<(streambuf)): Rewrite.
5824 * testsuite/27_io/ostream_inserter_other.cc: Add tests.
5825 * testsuite/27_io/ostream_inserter_other-1.tst: New file.
5826
5827 * bits/basic_string.h: Explicitly cast npos to unsigned type,
5828 reported by Richard Atterer.
5829 * bits/char_traits.h: For consistency's sake, here too.
5830
5831 * configure.in: Bump version to 2.90.7.
5832
5833 1999-10-31 Benjamin Kosnik <bkoz@cygnus.com>
5834
5835 * testsuite/27_io/ostream_inserter_char-1.tst: Check file output.
5836 * testsuite/27_io/ostream_inserter_char.cc (test05, test01): Add tests.
5837 * bits/streambuf.tcc (xsputn): Treat--size const char for long loops.
5838 (xsgetn): Same.
5839 * bits/sstream.tcc (seekpos): Tricks, mostly: check _M_mode before
5840 writing into buffer.
5841 (seekoff): Same.
5842
5843 1999-10-29 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
5844
5845 * bits/valarray_array.h (__valarray_sum): New function.
5846 * bits/valarray_array.h (__valarray_product): Same.
5847
5848 * bits/std_valarray.h (valarray<T>::product): Comment out.
5849 * bits/std_valarray.h (valarray<T>::sum): Use __valarray_sum
5850 instead of accumulate.
5851
5852 * src/valarray-inst.cc: Remove explicit intantiation of
5853 class multiplies<size_t>, accumulate, valarray<size_t>::product.
5854 * src/valarray-inst.cc (__valarray_product): Instantiate
5855 explicitly.
5856 * src/valarray-inst.cc (__valarray_product(const
5857 valarray<size_t>&)): New function.
5858 * src/valarray-inst.cc (gslice::_Indexer::_Indexer): Don't use
5859 valarray<size_t>::product. Use __valarray_product instead.
5860
5861
5862 1999-10-25 Benjamin Kosnik <bkoz@cygnus.com>
5863
5864 * bits/std_ostream.h (ostream.inserters.char): Correctly pad output.
5865 (_S_pad_char): New function. Not done: ios_base::internal.
5866 * bits/ostream.tcc: Clean for above.
5867 * bits/locale_facets.tcc (_S_fill): Remove ostreambufiterator
5868 specialization that was commented out, as ostreams now have to
5869 correctly deal with padding.
5870 * testsuite/27_io/ostream_inserter_char.cc (main): Add tests.
5871
5872 * testsuite/21_strings/ctor_copy_dtor.cc(test02): Add test case
5873 from mailing list. This is a bug, and should be fixed.
5874 * testsuite/21_strings/inserters_extractors.cc (main): Tweak, fix typo.
5875
5876 1999-10-22 Petter Urkedal <petter@matfys.lth.se>
5877
5878 * stl/bits/stl_numeric.h (__power): Replaced argument name `__opr'
5879 to avoid conflict with gcc name mangling.
5880 * stl/bits/stl_algo.h (__transform): Same.
5881
5882 1999-10-21 Benjamin Kosnik <bkoz@cygnus.com>
5883
5884 * bits/ios_base.h: Change argument names.
5885 * docs/17_intro/BADNAMES: Add __opr.
5886
5887 1999-10-20 Benjamin Kosnik <bkoz@decepticon.cygnus.com>
5888
5889 Work on compilation slowdowns from 10-5 to 10-12, which are
5890 related to the _Callback_list inlining/merge-ifcation, which is
5891 still a pending issue, but this stuff is necessary cleanup anyway.
5892
5893 * src/ios.cc: Re-arrange.
5894 * bits/ios_base.h: Tweak.
5895 * bits/basic_ios.tcc: Move out of line definitions here, move
5896 small out-of-line definitions inline.
5897 * bits/basic_ios.h: From here.
5898
5899 * bits/streambuf.tcc (pbackfail, overflow): Move back inline.
5900 * bits/std_streambuf.h: From here.
5901
5902 1999-10-19 Benjamin Kosnik <bkoz@cygnus.com>
5903
5904 * testsuite/27_io/istream_extractor_char.cc: Add tests.
5905 * bits/std_istream.h: Tweaks--set eofbit on eof condition.
5906 * bits/istream.tcc (operator>>(istream&, string&): Remove
5907 vestigial issspace hacks and use ctype::is instead.
5908 (getline): Remove unnecessary loops, fortify and pasteurize.
5909 (ws): Same.
5910
5911 1999-10-18 Benjamin Kosnik <bkoz@cygnus.com>
5912
5913 * bits/istream.tcc (operator>>): Tweak.
5914 * bits/std_istream.h: Fix according to library issues list 68.
5915 Add typedefs.
5916
5917 * bits/locale_facets.h: Fix table_size to be non-zero.
5918
5919 1999-10-18 Vadim Egorov <egorovv@HotPOP.com>
5920
5921 * src/basic_file.cc: ifdef instead of comment for binary mode
5922
5923 1999-10-18 Russell Davidson <russell@qed.econ.queensu.ca>
5924
5925 * bits/std_sstream.h: Stringbuf initialization based on actual,
5926 not allocated, size.
5927 * testsuite/21_strings/inserters_extractors.cc (test06): Add test
5928 case.
5929
5930 1999-10-17 Benjamin Kosnik <bkoz@cygnus.com>
5931
5932 * testsuite/26_numerics/c_math.cc (test03): Tweak.
5933 * testsuite/27_io/istream_manip.cc (test01): Corrections due to
5934 sentry change.
5935 * testsuite/21_strings/inserters_extractors.cc (test01): Same.
5936
5937 1999-10-14 Benjamin Kosnik <bkoz@cygnus.com>
5938
5939 * bits/std_istream.h: Tweaks.
5940 * bits/istream.tcc (istream::sentry::sentry()): Simplify, correct
5941 as per issues list addition--set failbit, eof on empty buffers.
5942 * testsuite/27_io/istream_sentry.cc: New file.
5943
5944 1999-10-12 Chris Prince <prince@wcug.wwu.edu>
5945
5946 * bits/std_cstdio.h: Remove Solaris hacks.
5947
5948 1999-10-12 Phil Edwards <philip.edwards@sn.wpafb.af.mil>
5949
5950 * docs/index.html: Fix minor typos and tweaks.
5951 * docs/17_intro/contribute.html: Ditto.
5952 * docs/*/howto.html: Ditto. More "EGCS"->"GCC" conversion, notes on
5953 thread safety and binary I/O, links to external sites.
5954 * docs/faq/index.html: EGCS/GCC cleanup, new entries for Cygwin
5955 and MT.
5956
5957 1999-10-12 Petter Urkedal <petter@matfys.lth.se>
5958
5959 * bits/std_cmath.h (abs(float)): When ::absf is not present, call
5960 ::fabs(double) rather than ::abs(int).
5961
5962 1999-10-11 Benjamin Kosnik <bkoz@milou.cygnus.com>
5963
5964 * bits/std_streambuf.h: Fix minor blip--should explicitly return
5965 *gptr(), not the result of underflow.
5966 (pbackfail): Conform to default behavior.
5967 (overflow): Same.
5968 * bits/streambuf.tcc: Add out-of-line streambuf members.
5969 (xsputn): Tweak.
5970 (xsgetn): Tweak.
5971 * testsuite/27_io/streambuf.cc: New file.
5972 * testsuite/27_io/filebuf.cc: Correct test.
5973
5974 1999-10-08 Benjamin Kosnik <bkoz@haight.constant.com>
5975
5976 * bits/std_cmath.h: Correctly cast int to double.
5977 * testsuite/26_numerics/c_math.cc: Add test.
5978
5979 * mknumeric_limits (OUT_C): Tweaks.
5980 * src/gen-num-limits.cc: Checks for WCHAR_MIN, WCHAR_MAX before
5981 trying to instantiate type_traits<wchar_t>.
5982 * acconfig.h: Add _GLIBCPP_HAS_WCHAR_MIN_MAX.
5983 * configure.in (LIBS): Plus checks for WCHAR_MIN, WCHAR_MAX.
5984 * configure: Regenerate.
5985
5986 1999-10-06 Benjamin Kosnik <bkoz@milou.cygnus.com>
5987
5988 * bits/streambuf.tcc (streambuf::xsgetn): Rewrite.
5989 (streambuf::xsputn): Put in break.
5990 Aiming for parity between these two (mostly) similar functions.
5991 Need to re-write tests.
5992
5993 * bits/ios_base.h (ios_base::_M_copy_base): Remove declaration.
5994 Make data members protected, not private.
5995 * src/ios.cc (ios_base::_M_copy_base): Move _Callback_list into
5996 ios_base.h. As called only once, collapse into . . .
5997 * bits/basic_ios.h (basic_ios::copyfmt): Fix.
5998 (basic_ios::clear): Throw ios_base::failure on occasion.
5999 (basic_ios::exceptions): Fix.
6000 * testsuite/27_io/ios_members.cc (test02): Add tests.
6001
6002 * bits/fpos.h: Default initialize.
6003 * testsuite/27_io/fpos.cc (test03): Add test.
6004
6005 1999-10-04 Russell Davidson <russell@qed.econ.queensu.ca>
6006
6007 * src/basic_file.cc: Fix open modes.
6008
6009 1999-10-04 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
6010
6011 * bits/locale_facets.tcc (num_get<>::do_get): Fix typo.
6012
6013 1999-09-23 Benjamin Kosnik <bkoz@milou.cygnus.com>
6014
6015 * bits/streambuf.tcc: Yea. Fix this for real.
6016 * testsuite/27_io/ostream_inserter_other.cc: Add file.
6017 * src/Makefile.*: Regenerate.
6018
6019 1999-09-22 Benjamin Kosnik <bkoz@milou.cygnus.com>
6020
6021 * bits/std_cstdlib.h: Add more linux-specif hacks to the header
6022 files so that stdtof and strtold will be declared. Some hacks
6023 already exits in bits/std_cctype.h -- these should all be removed
6024 at a later date.
6025 * bits/locale_facets.tcc: Add cstring.h include.
6026 _S_format_long: Use long, not int.
6027 Add std_limits.h include, for numeric_limits.
6028 * testsuite/27_io/istream.cc: Make instantiations work when using
6029 -fhonor-std.
6030 * testsuite/27_io/ostream.cc: Same.
6031
6032 1999-09-21 Benjamin Kosnik <bkoz@milou.cygnus.com>
6033
6034 * bits/fpos.h (fpos::operator streamoff): Make const, don't return
6035 a reference. Same for operators == and !=.
6036 * testsuite/27_io/fpos.cc: Add tests.
6037
6038 1999-09-21 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
6039
6040 * bits/valarray_array.h: Fix typo.
6041
6042 * mknumeric_limits: Make sure we are regenerating things from
6043 scratch. Otherwise things get redefined. Not good.
6044
6045 1999-09-20 Benjamin Kosnik <bkoz@milou.cygnus.com>
6046
6047 * bits/std_ostream.h: Fix typo.
6048 * bits/std_istream.h: Same.
6049 * bits/std_iomanip.h: Same.
6050
6051 * bits/istream.tcc (sentry::sentry()): Remove optional tie with
6052 ostream, as happens with underflow anyway.
6053 * testsuite/27_io/istream.cc (main): New file.
6054 * testsuite/27_io/ostream.cc (main): New file.
6055 * testsuite/27_io/istream_unformatted.cc: Add tests.
6056
6057 * src/Makefile.am (headers): Add new file.
6058 * src/Makefile.in (headers): Regenerated.
6059
6060 * bits/basic_ios.h: Remove local-related files.
6061 * bits/basic_ios.tcc: New file, add locale-related items.
6062 * src/misc-inst.cc: Add include of basic_ios.tcc, as a hack for now.
6063 * testsuite/27_io/ios_members_static.cc: Change to
6064 * testsuite/27_io/ios_base_members_static.cc: This.
6065 * testsuite/27_io/ios_members.cc: New file.
6066 * testsuite/27_io/stdios_basefield_manip: Change to
6067 * testsuite/27_io/ios_manip_basefield.cc: This.
6068 * testsuite/27_io/stdios_fmtflags_manip: Change to
6069 * testsuite/27_io/ios_manip_fmtflags.cc: This.
6070
6071 * bits/fpos.h: Fix discarding qualifiers on this when
6072 using _M_position with a const fpos.
6073 * bits/std_iosfwd.h: Tweak.
6074 * testsuite/27_io/fpos.cc: New file.
6075
6076 1999-09-17 Benjamin Kosnik <bkoz@milou.cygnus.com>
6077
6078 * bits/streambuf.tcc (streambuf::xsputn): Tweak.
6079 * bits/ostream.tcc: Tweak.
6080 * testsuite/21_strings/inserters_extractors.cc (test04, test05):
6081 Add new regressions.
6082
6083 1999-09-16 Benjamin Kosnik <bkoz@milou.cygnus.com>
6084
6085 * bits/basic_ios.h: Inline, tweak.
6086 * bits/fstream.tcc (basic_filebuf::_M_really_overflow): Tweak,
6087 pass back accurate return value to basic_filebuf::overflow.
6088 * bits/streambuf.tcc (streambuf::xsputn): Fix overflow accounting.
6089 This fixes sstream problems reported in libstdc++/9, but screws up
6090 filebufs. That solution is pending.
6091
6092 1999-09-15 Vadim Egorov <egorovv@1c.ru>
6093
6094 * bits/streambuf.tcc (basic_streambuf::xsputn): Add check for
6095 zero count puts.
6096 * testsuite/21_strings/inserters_extractors.cc (test01): Add test.
6097
6098 1999-09-08 Benjamin Kosnik <bkoz@milou.cygnus.com>
6099
6100 * bits/c++config.h.in: Add emacs hints.
6101
6102 * stl/bits/stl_range_errors.h: Don't define here, for now define
6103 in stdexcept.cc along with string inlines __length_error, etc.
6104 * src/stdexcept.cc: Define here.
6105 * stl/bits/stl_config.h (__STL_CAN_THROW_RANGE_ERRORS): Enable, so
6106 at(size_t) will be declared/defined.
6107 (__STL_THREADS): Fix mess surrounding use of this, enable.
6108
6109 1999-08-31 Benjamin Kosnik <bkoz@milou.cygnus.com>
6110
6111 * testsuite/27_io/istream_extractor_arith.cc: Fix.
6112 * src/localename.cc: Tweak formatting, fix assignment to
6113 const compiler errors.
6114
6115 1999-08-25 Benjamin Kosnik <bkoz@cygnus.com>
6116
6117 * acconfig.h: Add absf, cosf.
6118 * configure.in (use_builtin_sinf): Same.
6119 * configure: Regenerate.
6120 * bits/std_cmath.h: Add mess of defines.
6121 * testsuite/26_numerics/modf_float.cc: Change to
6122 * testsuite/26_numerics/c_math.cc: This.
6123
6124 * src/locale.cc: Change.
6125 * bits/locale_facets.h: Fix.
6126 * testsuite/22_locale/ctype.cc: Add temporary tests.
6127
6128 1999-08-24 Benjamin Kosnik <bkoz@cygnus.com>
6129
6130 * bits/fpos.h: Test.
6131
6132 * docs/index.html: Add powerpc-linux-gnu results with gcc-2.95.1.
6133 Fix database name for "libstdc++".
6134
6135 1999-08-23 Benjamin Kosnik <bkoz@cygnus.com>
6136
6137 * mknumeric_limits (numeric_limits): Add default definitions to
6138 member functions.
6139 * testsuite/18_support/numeric_limits.cc: New file.
6140
6141 1999-08-18 Benjamin Kosnik <bkoz@cygnus.com>
6142
6143 * bits/std_istream.h: Correct initialization.
6144 * bits/std_ostream.h: Likewise.
6145 * bits/std_sstream.h: Likewise.
6146 * bits/std_fstream.h: Likewise.
6147 * testsuite/27_io/stringstream.cc: Add test case.
6148
6149 * bits/std_sstream.h: Replace ____string_type with __string_type.
6150 * bits/basic_ios.h (basic_ios::rdbuf(sb*): Call clear(), as required.
6151 * bits/std_ostream.h: Tweak dtor.
6152
6153 1999-08-17 Benjamin Kosnik <bkoz@decepticon.cygnus.com>
6154
6155 * src/Makefile.am (CXXFLAGS): Add -O2.
6156 * src/Makefile.in: Likewise.
6157
6158 * src/gen-num-limits.cc: Conditionally allow wchar_t. See what
6159 this breaks. . .
6160 * mknumeric_limits (numeric_limits): Uglify.
6161
6162 * bits/std_istream.h: Fix warnings.
6163 * bits/locale_facets.tcc: Collateral damage from
6164 char_traits<char>::int_type change.
6165
6166 * testsuite/27_io/istream_extractor_char.cc: Terminate strings.
6167
6168 1999-08-17 Benjamin Kosnik <bkoz@decepticon.cygnus.com>
6169
6170 * docs/index.html: Add mailing list form.
6171 * docs/27_io/howto.html: Add link to iostreams_hierarchy.pdf.
6172
6173 1999-08-16 Benjamin Kosnik <bkoz@cygnus.com>
6174
6175 * bits/streambuf.tcc (streambuf::xsputn): Allow copies to continue
6176 if overflow successfully allocates more space.
6177 * bits/std_sstream.h: Adjust comments.
6178 * bits/sstream.tcc (stringbuf::overflow): Copy buffer into string
6179 before overflow forces a resize.
6180 * testsuite/27_io/ostream_inserter_char.cc: New file.
6181
6182 * bits/std_fstream.h: Remove declaration.
6183 * bits/fstream.tcc: Move uflow.
6184 * bits/std_streambuf.h: To here.
6185 * bits/streambuf.tcc: Make consistent.
6186
6187 * src/Makefile.am (WERROR): Enable.
6188 * src/Makefile.in: Regenerate.
6189 * bits/sbuf_iter.h: Tweak.
6190 * bits/char_traits.h: (char_traits<wchar_t>::eof): Use WEOF.
6191 Use unsigned int as char_traits<char>::int_type.
6192
6193 * bits/ostream.tcc (ostream::putc(char)): Tweak.
6194 * testsuite/27_io/iostream_objects.cc: Terminate string.
6195 Move cin::operator>>(char*) test to extractor_char.cc.
6196 * testsuite/27_io/stringstream.cc: Add stringstream instantiation.
6197 * bits/std_istream.h (basic_iostream): Make explicit definition
6198 for default ctor.
6199 * bits/std_sstream.h: Fix typos.
6200 * bits/fstream.tcc (_M_init_filebuf): Set to indeterminate for
6201 basic_filebuf ctor with fileno open arguments. Thus, filebufs are
6202 initialized in a consistent manner, no matter if the underlying
6203 FILE/bit bucket is a tty or a text file or some other imaginary
6204 construct. This and setting _M_buf_size to 1 for cin allows
6205 istream::get(char) to work in a manner consistent with what others
6206 expect.
6207
6208 * docs/index.html: Link Stroustrup's C++ page.
6209
6210 1999-08-12 Michael Cook <cook@sightpath.com>
6211
6212 * bits/fstream.tcc: Fix signed/unsigned -Wall warning.
6213 * bits/istream.tcc: ditto.
6214 * bits/sbuf_iter.h: ditto.
6215 * bits/std_istream.h: ditto.
6216 * src/Makefile.am: Add -Wall to CXXFLAGS.
6217 * src/Makefile.in: ditto.
6218
6219 1999-08-12 Benjamin Kosnik <bkoz@tintin.cygnus.com>
6220 Russell Davidson <russell@ehess.cnrs-mrs.fr>
6221
6222 * bits/locale_facets.tcc (_M_extract): Finish off patch from yesterday.
6223 * src/Makefile.am (myinstallheaders): Tweak, remove PHONY.
6224
6225 1999-08-11 Benjamin Kosnik <bkoz@tintin.cygnus.com>
6226
6227 * testsuite/27_io/istream_unformatted.cc: New file.
6228
6229 * testsuite/27_io/istream_extractor_arith.cc (test02): Add more
6230 elaborate tests for int types with noskipws.
6231
6232 * testsuite/27_io/istream_extractor_other-1.txt: New file.
6233 * testsuite/27_io/istream_extractor_other-1.tst: New file.
6234 * testsuite/27_io/istream_extractor_other-2.tst: New file.
6235 * testsuite/27_io/istream_extractor_other.cc: Add tests.
6236 * bits/istream.tcc: Fix operator>>(streambuf*).
6237
6238 * testsuite/23_containers/vector_ctor.cc (test01): Add.
6239
6240 * docs/index.html: Remove references to egcs.
6241 * docs/17_intro/DESIGN: Same.
6242 * docs/17_intro/contribute.html: Same.
6243 * docs/17_intro/RELEASE-NOTES: Ditto.
6244 * docs/17_intro/howto.html: Same here.
6245
6246 Russell Davidson <russell@ehess.cnrs-mrs.fr>
6247 * stl/bits/stl_vector.h (_M_insert_aux):
6248 * bits/locale_facets.tcc (_M_extract): Tweaks for preliminary
6249 decimal/floating point support.
6250 * bits/locale_facets.h: Change _M_extract prototype.
6251 * bits/char_traits.h (char_traits::to_int_type): Cast to unsigned.
6252 * bits/std_istream.h (istream::read(char_type, streamsize)): Fix.
6253
6254 1999-08-10 Michael Cook <cook@sightpath.com>
6255
6256 * bits/fstream.tcc: Fix for unused variable warning (-Wall).
6257 * bits/ios_base.h: ditto.
6258 * bits/istream.tcc: ditto.
6259 * bits/locale_facets.h: ditto.
6260 * bits/locale_facets.tcc: ditto.
6261 * bits/std_streambuf.h: ditto.
6262 * src/basic_file.cc: ditto.
6263 * src/locale.cc: ditto.
6264 * src/localename.cc: ditto.
6265
6266 1999-08-10 Kirat Singh <singhki@jany.gs.com>
6267
6268 * bits/std_iomanip.h: Inline.
6269
6270 1999-08-10 Alfred Minarik <a8601248@unet.univie.ac.at>
6271
6272 * bits/std_streambuf.h: Correct member initialization order.
6273 * src/ios.cc: Add definitions for ios_base data members.
6274
6275 1999-08-06 Phil Edwards <pedwards@ball.com>
6276
6277 * docs/index.html: Seventh snapshot updates. Minor tweaks.
6278 * docs/faq/index.html: Ditto. Removed bugs sections that have
6279 been fixed for a long time... Lots of "egcs" references still
6280 exist.
6281 * docs/faq/index.txt: Regenerated.
6282
6283 1999-08-05 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
6284 Andreas Amann <amann@physik.tu-berlin.de>
6285
6286 * testsuite/26_numerics/binary_closure.cc (main): new test.
6287
6288 1999-07-29 Andreas Amann <amann@physik.tu-berlin.de>
6289
6290 * bits/valarray_meta.h: (_BinClos<>::_Binclos): fix typo causing
6291 segmentation fault.
6292
6293 1999-08-04 Benjamin Kosnik <bkoz@decepticon.cygnus.com>
6294
6295 * docs/index.html (host): Put in testing status.
6296
6297 1999-08-03 Benjamin Kosnik <bkoz@cygnus.com>
6298
6299 * docs/index.html: Update for libstdc++-2.90.6 release.
6300 * docs/17_intro/RELEASE-NOTES (New): Update.
6301 * docs/17_intro/BUGS: Update.
6302 * bits/c++config.h.in (__GLIBCPP__): Bump version number.
6303 * README (file): Update.
6304
6305 1999-08-03 Benjamin Kosnik <bkoz@cygnus.com>
6306
6307 * src/Makefile.am (generated_headers): Remove bits/c++config.h as
6308 a target.
6309 ($(generated_headers)): Same.
6310 * src/gen-c++config.cc: Remove, rename to
6311 * bits/c++config.h.in: New file. Bump version number.
6312 * configure.in: Generate bits/c++config.h at configure time.
6313 * math/mathconf.h: include bits/c++config.h, not config.h.
6314
6315 * bits/std_cmath.h: Fix remaining link error for solaris shared
6316 builds. _GLIBCPP_HAS_BUILTIN_SINF has to be disabled for the time
6317 being, as on Solaris this silently calls sinf, which does not
6318 exist.
6319
6320 * src/complex.cc: More tweaks.
6321
6322 1999-08-03 Benjamin Kosnik <bkoz@cygnus.com>
6323
6324 * src/complex.cc: Same.
6325 * math/complex-stub.h: Change.
6326 * math/c_log10*.c: Change back to clog10*.c.
6327
6328 * configure.in (NEED_C_LOG10): Delete.
6329 * configure: Regenerate.
6330 * math/Makefile.am: Change.
6331
6332 1999-07-30 Benjamin Kosnik <bkoz@cygnus.com>
6333
6334 * math/Makefile.am: Fix, for real.
6335 * configure.in (use_builtin_sinf): Ok, make autoconf solution.
6336 * math/clog.c: Move to c_log.c.
6337 * math/clog*: Ditto.
6338 * math/c_log10l.c (c_log10l): Change function name.
6339 * math/c_log10f.c (c_log10f): Change function name.
6340 * math/c_log10.c (c_log10): Change function name.
6341
6342 * math/complex-stub.h: Change to c_log* variants.
6343 * src/complex.cc: And here.
6344
6345 1999-07-29 Benjamin Kosnik <bkoz@cygnus.com>
6346
6347 * testsuite/27_io/istream_extractor_other.cc: Correct last test.
6348 * bits/sstream.tcc (stringbuf::overflow): Don't update the input
6349 sequence, just the output sequence.
6350 * bits/std_sstream.h (stringbuf::str()): Only in stringbufs return
6351 the original string, all others use complicated heuristic.
6352
6353 * src/complex.cc: Assume c_log10.
6354 * math/Makefile.am (EXTRA_yes): Fix c_log/c_logf unresolved
6355 symbols in shared libraries by making c_log/c_log10 part of the
6356 "must cmpile" sources. This may not work on solaris, must check.
6357
6358 1999-07-29 Benjamin Kosnik <bkoz@cygnus.com>
6359
6360 * bits/istream.tcc (operator>>(streambuf*)): Re-do.
6361 * bits/std_istream.h: Fix char extractors.
6362 * testsuite/27_io/istream_extractor_char.cc: Change.
6363 * testsuite/27_io/istream_extractor_other.cc: Add tests.
6364
6365 1999-07-28 Benjamin Kosnik <bkoz@cygnus.com>
6366
6367 * bits/std_cctype.h: Fix for solaris2.6 builds.
6368
6369 * bits/istream.tcc: Fix, thanks Alfred.
6370 * bits/std_istream.h: Formatting changes.
6371
6372 * libio/Makefile.am (libio_la_SOURCES): Remove cleanup.c, so that
6373 _IO_cleanup will not be undefined.
6374 * libio/*: Regenerate.
6375
6376 * bits/basic_string.h: More namespace-safety stuff.
6377 * testsuite/27_io/istream_extractor_char.cc: Fix.
6378 * testsuite/27_io/istream_extractor_arith.cc: Fix.
6379 * testsuite/27_io/iostream_objects.cc: Fix.
6380 * testsuite/27_io/ios_ctor.cc: Fix.
6381 * testsuite/27_io/istream_manip.cc: Make namespace safe.
6382 * testsuite/27_io/istream_extractor_other.cc: New file.
6383
6384 * mkcheck (TESTS_FILE): Tweaks.
6385
6386 1999-07-27 Benjamin Kosnik <bkoz@cygnus.com>
6387
6388 * src/gen-c++config.cc: Note here, change version.
6389 * acconfig.h( _GLIBCPP_USE_CTYPE_ISBIT): New macro.
6390 * src/locale.cc: Used here.
6391 * configure.in (use_builtin_sinf): Check for _ISBit using autoconf.
6392
6393 * aclocal.m4: Regenerate by running `aclocal -I m4.`
6394
6395 * bits/istream.tcc: Fix.
6396 * bits/std_istream.h: More changes to extractors.
6397
6398 * testsuite/27_io/istream_extractor_char.cc: More.
6399 * testsuite/21_strings/inserters_extractors.cc (test01): Fix logic
6400 error in testsuite construction.
6401
6402 * bits/std_istream.h: Partially revert.
6403 * bits/std_ostream.h: Same.
6404 * bits/std_sstream.h: Revert.
6405
6406 1999-07-26 Benjamin Kosnik <bkoz@cygnus.com>
6407
6408 * bits/std_sstream.h: Change initialization.
6409 * bits/std_ostream.h: Make default ctor/assign/operator= private.
6410 * bits/std_istream.h: Same, also correct sentry args.
6411 * bits/istream.tcc: Add correct sentry args.
6412
6413 * testsuite/27_io/istream_extractor_char.cc: New file.
6414 * testsuite/27_io/istream_extractor_arith.cc: New file, old file,
6415 name changes making me dizzy.
6416
6417 1999-07-26 Ulrich Drepper <drepper@happy.cygnus.com>
6418 Benjamin Kosnik <bkoz@cygnus.com>
6419
6420 * aclocal.m4, config.guess, config.sub, ltconfig ltmain.sh: Update
6421 to libtool 1.3.3.
6422
6423 1999-07-26 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
6424
6425 * bits/std_complex.h: Tweak. Make the primary template class
6426 complex work with user-defined numerical types. Provide member
6427 definitions. Restructure.
6428 (class complex<float>): Uglify. Remove __value(). Rename __val
6429 to _M_value. Rename __complex_value_type to _ComplexT. Make it
6430 private. Remove dependency on __value(). Fix various explicit
6431 specialization syntax. Declare a some functions friend. Now the
6432 implementation is nearly comforming.
6433 (class complex<double>): Likewise.
6434 (class complex<long double>): Likewise.
6435
6436 * src/complex.cc: Tweak. Remove dependency on complex::__value().
6437 (sin, sinh, tan, than): Fix call to corresponding C9x function
6438 syntax.
6439
6440 1999-07-24 Benjamin Kosnik <bkoz@fidel.cygnus.com>
6441
6442 * bits/istream.tcc (ws): Fix error with failbit being set.
6443
6444 Disabled due to egcs/gcc-2_95 internal compiler errors.
6445 * src/Makefile.am (CXXFLAGS): Add -fsquangle -fhonor-std
6446 -fnew-exceptions. Compiling with namespaces enabled will now be
6447 the default.
6448 * mkcheck (CXX_FLAG): Same.
6449 * src/gen-c++config.cc (_GLIBCPP_USE_NAMESPACES): Yup. New macro.
6450 * bits/std_cctype.h: Not enough to just define in namespace std if
6451 ctype-isms are macros. Need to also define in namespace std:: if
6452 the C functions are just plain functions.
6453
6454 * src/gen-num-limits.cc: Fix spelling inconsistencies.
6455
6456 1999-07-24 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
6457
6458 * docs/18_support/howto.html: Start documentation. Need to keep
6459 track of the ongoing discussion in th LWG reflector.
6460
6461 * src/gen-num-limits.cc: Tweak.
6462 (class predicate): New class.
6463 (class value): Likewise.
6464 Make the whole machinery more flexible. Add comments.
6465
6466 1999-07-23 Benjamin Kosnik <bkoz@fidel.cygnus.com>
6467
6468 * bits/ios_base.h: Move state/exception functions into basic_ios.
6469 * bits/basic_ios.h: Same.
6470 * src/ios.cc: And here. Callbacks don't attempt to reset
6471 state now.
6472
6473 * bits/std_streambuf.h: Separate ios and streambuf locale data
6474 members and cached facets. Using this convention: _M_locale_buf for
6475 the streambuf-related classes, and _M_locale_ios for the ios
6476 hierarchy.
6477 * bits/fstream.tcc: And here.
6478 * bits/basic_ios.h: And here. Also, add cached ctype.
6479 * src/ios.cc: Ditto.
6480 * bits/ios_base.h: Ditto.
6481 * bits/std_istream.h: Use cached ctype facet.
6482 * docs/27_io/iostreams_hierarchy.pdf: Update for new data member
6483 arraignment.
6484
6485 * testsuite/27_io/ios_ctor.cc: New file.
6486 * src/ios.cc: Move _M_state init to basic_ios::init().
6487 * bits/basic_ios.h: To here.
6488
6489 Attempt for some consistency in naming for testsuite/27_io/*.cc.
6490 * testsuite/27_io/boolfmt.cc: Rename to stdios_fmtflags_manip.cc
6491 * testsuite/27_io/octfmt.cc: Rename to stdios_basefield_manip.cc
6492 * testsuite/27_io/istream_manip.cc: Rename to istringstream_manip.cc.
6493 * testsuite/27_io/ostream_manip.cc: Rename to ostringstream_manip.cc.
6494
6495 1999-07-22 Benjamin Kosnik <bkoz@fidel.cygnus.com>
6496
6497 * src/ios.cc: Tweak initializations of standard iostream
6498 objects to closely match the standard. Tie cin/wcin, set flags on
6499 cerr/wcerr
6500 * bits/char_traits.h: Change from size_t to int_type, as per
6501 standard. As per wide streams.
6502 * bits/basic_ios.h: Infect with __ctype_type, as a preparation
6503 for caching a bunch of ctype info. For instance, ctype_base::space
6504 info needs to be stored somewhere, somehow.
6505 * bits/std_istream.h: Also here.
6506 * bits/std_ostream.h: Ditto.
6507 * bits/std_istream.h (operator>>(istream, char): Aggh. Fixup.
6508 * testsuite/27_io/iostream_objects.cacc (test01): Oh yeah. Fix
6509 stream states.
6510
6511 * bits/istream.tcc (ws): Fix.
6512 * testsuite/27_io/istream_manip.cc: New file, test ws.
6513 * testsuite/27_io/ostream_manip.cc: New file, test endl, ends, flush.
6514
6515 * bits/basic_string.h: Provide a specialized member function for
6516 _S_find<char> using strchr.
6517 * src/string-inst.cc: Put specializations here.
6518 * bits/string.tcc: Small fix for find, remove typo.
6519 * testsuite/21_strings/find.cc (test01): Add tests to catch this
6520 find bug. . .
6521
6522 1999-07-20 Benjamin Kosnik <bkoz@decepticon.cygnus.com>
6523
6524 * bits/basic_ios.h: Put into basic_ios namespace.
6525 Tweak widen/narrow.
6526
6527 1999-07-19 Benjamin Kosnik <bkoz@decepticon.cygnus.com>
6528
6529 * bits/std_sstream.h (stringbuf::sync): Change to _M_really_sync,
6530 adjust _M_*_cur pointers inside the function, so callee doesn't
6531 have to adjust.
6532 * bits/sstream.tcc (stringbuf::overflow): Tweak.
6533
6534 * mkcheck: Tweak. Add execution time field, even though it is not
6535 implemented yet. Simplify pass/fail status notation.
6536
6537 1999-07-18 Mumit Khan <khan@xraylith.wisc.edu>
6538
6539 * configure.in: Check for float.h and underscored version of
6540 math functions.
6541 * acconfig.h: Add @BOTTOM@ section for handling underscored
6542 math functions.
6543 * configure: Regenerate.
6544 * config.h.in: Regenerate.
6545 * math/mathconf.h (float.h): Include conditionally.
6546 (M_PI): Define conditionally.
6547 (INFINITE_P): Define for Mingw.
6548 * bits/locale_facets.tcc: Workaround for compiler crash on
6549 ix86-*-mingw32.
6550 * bits/std_cwchar.h (bits/std_cstddef.h): Include.
6551 * src/locale.cc (bits/std_istream.h): Include.
6552 (bits/std_ostream.h): Likewise.
6553
6554 1999-07-18 Phil Edwards <pedwards@ball.com>
6555
6556 * docs/faq/index.html: Updated __black_count notes, fixed typos.
6557 * docs/faq/index.txt: Regenerated.
6558
6559 1999-07-15 Benjamin Kosnik <bkoz@decepticon.cygnus.com>
6560
6561 * testsuite/27_io/stringbuf.cc: Cccchanges, latent bugs.
6562
6563 * bits/sstream.tcc (stringbuf::overflow): Modify accounting of
6564 newly-allocated buffer.
6565 * bits/streambuf.tcc (streambuf::xsgetn): Aaaaaah. Fix final
6566 overflow condition bits.
6567
6568 1999-07-14 Benjamin Kosnik <bkoz@cygnus.com>
6569
6570 * bits/std_sstream.h (stringbuf::_M_init_stringbuf): Set
6571 _M_buf_size to initial _M_string.size(), even though for
6572 ostringstreams it is pretty pointless. It's necessary for
6573 istringstreams.
6574 (stringbuf::str()): Adjust.
6575 (stringbuf::str()): Adjust, call _M_init_stringbuf.
6576 * bits/streambuf.tcc (streambuf::xsgetn): Adjust return value for
6577 overflow's possible success.
6578 (streambuf::xsputn): Adjust.
6579
6580 * testsuite/27_io/filebuf.cc: Adjust for the xsgetn re-write from
6581 yesterday.
6582 * testsuite/27_io/stringbuf.cc: Tweak.
6583 * testsuite/21_strings/inserters_extractors.cc (test01): Remove
6584 notes to myself.
6585 * testsuite/23_containers/vector_cons.cc: Rename to be consistent
6586 with other constructor tests to. . .
6587 * testsuite/23_containers/vector_ctor.cc: New file.
6588
6589 1999-07-14 Alfred Minarik <a8601248@unet.univie.ac.at>
6590
6591 * testsuite/*: Changes to make the testsuit compilable with
6592 -fhonor-std. Contains direct qualification of library names with
6593 std::.
6594
6595 1999-07-13 Benjamin Kosnik <bkoz@decepticon.cygnus.com>
6596
6597 * bits/streambuf.tcc: Tweaks.
6598 (streambuf::xsputn): Optimize, fix for sstreams.
6599 (streambuf::xsgetn): Same.
6600 * bits/sstream.tcc (stringbuf::overflow): Adjust _M_buf_size
6601 correctly, handle overflow/reallocate conditions correctly.
6602 * bits/std_sstream.h: Fix typo.
6603 _M_init_stringbuf(): Fix _M_buf_size initialization.
6604 (stringbuf::str()): Construct return string if output has occurred.
6605
6606 * bits/basic_string.h: Fix typo from yesterday's patch.
6607
6608 1999-07-12 Ryszard Kabatek <kabatek@chemie.uni-halle.de>
6609
6610 * bits/string.tcc: _M_mutate - clear _M_state again.
6611 * bits/basic_string.h: In the three functions that return
6612 an iterator set _M_state to -1 before return.
6613 Also optimized two cases of operator+.
6614
6615 1999-07-12 Phil Edwards <pedwards@ball.com>
6616
6617 * docs/index.html: Expand egcs-1.1.2 notes/links.
6618 * docs/faq/index.html: And here. Add links to LWG issues-list.
6619 * docs/faq/index.txt: Regenerate. (lynx rocks)
6620 * docs/21_strings/howto.html: Fix notes on case conversion.
6621 * docs/21_strings/stringtok_h.txt: Goodly spelling...
6622 * docs/23_containers/howto.html: Stub for bitmasks.
6623 * docs/27_io/howto.html: Add section on buffering, stub binary.
6624
6625 1999-07-12 Nathan Myers <ncm@cantrip.org>
6626
6627 * stl/bits/stl_tree.h (__black_count): Optimize.
6628
6629 1999-07-09 Vadim Egorov <egorovv@1c.ru>
6630
6631 * src/basic_file.cc: Cleanup in __basic_file destructor.
6632
6633 1999-07-08 Benjamin Kosnik <bkoz@cygnus.com>
6634
6635 * bits/std_streambuf.h: Changes. . .
6636 * bits/streambuf.tcc: Merge xsputn from filebuf into xsputn in
6637 basic_streambuf, to be used for both filebufs and streambufs.
6638 * bits/std_fstream.h (_M_init_filebuf): New function.
6639 Take out specialized xsputn, put into basic_streambuf.
6640 * bits/fstream.tcc: Define, call from both ctors.
6641 * bits/std_sstream.h (_M_init_stringbuf): New function.
6642 * bits/sstream.tcc: Tweak.
6643
6644 * docs/27_io/iostreams_heirarchy.pdf: New file.
6645
6646 * docs/17_intro/CHECKLIST (basic_string<char>): Validation and
6647 acceptance. Wooo-hoo!
6648
6649 * bits/char_traits.h: Change int_type for char_traits general
6650 template, so that 21_strings/capacity.cc will compile.
6651 * testsuite/21_strings/capacity.cc: Add operators.
6652
6653 * bits/string.tcc (string::compare): Clean up, re-implement.
6654 * testsuite/21_strings/compare.cc: Tweak.
6655
6656 * bits/string.tcc (string:_M_mutate): Keep leaked value in
6657 _M_state, which means that whenever begin() or end() has been
6658 called, the string is unshareable, period. By doing this, insert
6659 and erase member functions that return iterators can remain
6660 footloose and fancy free.
6661 * testsuite/21_strings/invariants.cc: Update.
6662
6663 * bits/basic_string.h (string::append): Fix self-referential
6664 problems, ie when "this" is also an argument to a member function.
6665 * bits/string.tcc: Tweak, same.
6666 * testsuite/21_strings/append.cc: New file.
6667
6668 1999-07-07 Benjamin Kosnik <bkoz@cygnus.com>
6669
6670 * bits/char_traits.h: Tweaks.
6671 * bits/basic_string.h: Tweak.
6672 * bits/fstream.tcc: Remove warning for _M_buf_size assignment.
6673
6674 1999-07-06 Benjamin Kosnik <bkoz@cygnus.com>
6675
6676 * bits/std_streambuf.h: Absorb/acquire data members previously
6677 working in basic_filebuf.
6678 * bits/streambuf.tcc: Tweaks.
6679 * bits/fstream.tcc: Adjust.
6680 * bits/std_fstream.h: Move and rename the following functions:
6681 _M_set_ideterminate, _M_is_indeterminate, _M_set_determinate are
6682 now declared and defined in the base class, basic_streambuf. Oh
6683 fuck it, move data members _M_buf, and _M_buf_size into
6684 basic_streambuf as well.
6685
6686 * bits/ostream.tcc: Tweak.
6687 * bits/locale_facets.tcc: Fix typo in comments.
6688
6689 * testsuite/21_strings/inserters_extractors.cc (test01): Change
6690 state from good to not good, as eof() is set.
6691
6692 1999-07-05 Benjamin Kosnik <bkoz@cygnus.com>
6693
6694 * bits/char_traits.h (char_traits::compare). Fix.
6695
6696 * config.guess, config.sub: Update.
6697
6698 1999-07-02 Ryszard Kabatek <kabatek@chemie.uni-halle.de>
6699
6700 * bits/string.tcc: Check the __res_arg for a length error.
6701
6702 1999-07-01 Benjamin Kosnik <bkoz@nabi.net>
6703
6704 * bits/std_streambuf.h: Tweaks. Need to move _M_is_indeterminate
6705 and related functions into basic_streambuf, from basic_filebuf to
6706 take care of ostringstreams and empty strings. So that's groovy,
6707 or will be groovy.
6708 * bits/std_istream.h: Tweaks.
6709 * bits/istream.tcc: Implement ws, getline, operator>> for string.
6710 * bits/std_ostream.h: And here.
6711 * bits/ostream.tcc: Same.
6712 * src/misc-inst.cc: Add instantiations for ws.
6713
6714 * src/string-inst.cc: Add instantiations for inserters and
6715 extractors (operators << and >>, getline).
6716
6717 * testsuite/21_strings/inserters_extractors.cc: Amazingly enough,
6718 a testcase for getline and operators << and >>. Ostream tests are
6719 failing right now, but istream tests should work. . .
6720
6721 * bits/string.tcc: Change _S_max_size, as GNU malloc won't budge.
6722 * bits/std_sstream.h: Revert.
6723
6724 * testsuite/17_intro: header_[iosfwd, ios, iostream, iomanip,
6725 istream, ostream, streambuf, fstream, sstream].cc: New files.
6726
6727 1999-06-30 Ryszard Kabatek <kabatek@chemie.uni-halle.de>
6728
6729 * bits/std_sstream.h (stringbuf::sync): Don't use string::begin()
6730 and string::end().
6731
6732 * bits/basic_string.h (basic_string<>::_S_copy_chars): Add
6733 specializations for _CharT*, iterator and const_iterator.
6734 * src/string-inst.cc: Remove explicit instantiation, as
6735 now explicitly specialized.
6736
6737 * bits/basic_string.h: Add a size_type parameter to _M_clone with
6738 a default value set to 0.
6739 * bits/string.tcc: In _M_clone by the call of _S_create add the
6740 value of the new parameter to _M_length. In reserve check
6741 _M_state and use _M_clone instead of _M_mutate.
6742
6743 1999-06-30 Benjamin Kosnik <bkoz@happy.cygnus.com>
6744
6745 * bits/basic_string.h: Fix _S_max_size.
6746 * bits/string.tcc: Add def here.
6747 * testsuite/21_strings/insert.cc: Fix.
6748
6749 * bits/sbuf_iter.h: Remove detritus.
6750 * testsuite/24_iterators/istreambuf_iterator.cc: Add tests.
6751
6752 * src/locale-inst.cc: Elaborate iterator/locale instantiations
6753 to resolve alpha-osf4 build problems.
6754
6755 1999-06-29 Benjamin Kosnik <bkoz@happy.cygnus.com>
6756
6757 * bits/string.tcc: Fix signed/unsigned issues in compares.
6758 * stl/bits/stl_deque.h: And here.
6759 * stl/bits/stl_string_fwd.h: Remove __get_c_string.
6760
6761 1999-06-29 Ryszard Kabatek <kabatek@chemie.uni-halle.de>
6762
6763 * bits/string.tcc: New implementation and interface of _M_mutate.
6764 Adapt the change in all functions that call _M_mutate.
6765 * bits/basic_string.h: And here.
6766
6767 1999-06-29 Benjamin Kosnik <bkoz@happy.cygnus.com>
6768
6769 * testsuite/21_strings/capacity.cc (test01): Fix.
6770
6771 1999-06-29 Phil Edwards <pedwards@ball.com>
6772
6773 * mknumeric_limits: Exit script if gen-num-limits isn't built.
6774
6775 1999-06-29 Andreas Gruenbacher <agruenba@pent224.infosys.tuwien.ac.at>
6776
6777 * stl/bits/stl_vector.h: Fix.
6778 * testsuite/23_containers/vector_cons.cc: Add.
6779
6780 1999-06-29 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
6781
6782 * mknumeric_limits (LDFLAGS): fix.
6783
6784 1999-06-29 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
6785
6786 * mknumeric_limits (LDFLAGS): set it according to the system.
6787
6788 * math/mathconf.h (NAN): Check whether host is running under
6789 Cygwin and make the appropriate definition.
6790 * math/complex-stub.h (nan): protect declaration.
6791
6792 1999-06-28 Benjamin Kosnik <bkoz@haight.constant.com>
6793
6794 * bits/sbuf_iter.h: Rename internal data structure to prevent
6795 confusion between basic_ios and istreambuf_iterators internal
6796 basic_streambuf data member.
6797 * testsuite/24_iterators/istreambuf_iterator.cc: New file.
6798
6799 * bits/basic_string.h: Remove conditionals, add input_iterator
6800 version of S_construct again.
6801 * bits/string.tcc: Same.
6802 * src/string-inst.cc: And add explicit instantiation here.
6803
6804 * src/gen-c++config.cc (_GNU_SOURCE): Take out both _GNU_SOURCE
6805 and __USE_GNU macro defines, as single __USE_GNU use leading to
6806 confusion on glibc2.1 systems (ie, RedHat 6.0).
6807
6808 * src/Makefile.am (headers): Add std_utility to installed headers.
6809
6810 1999-06-25 John Potter <jpotter@eagle.lhup.edu>
6811
6812 * stl/bits/stl_tree.h (insert_unique): Revert, just fix insert_equal.
6813
6814 1999-06-25 Gilles Zunino <Gilles.Zunino@hei.fr>
6815
6816 * mknumeric_limits (LDFLAGS): Swap -lc and -lgcc.
6817
6818 1999-06-24 Benjamin Kosnik <bkoz@tintin.cygnus.com>
6819
6820 * src/gen-c++config.cc (_GLIBCPP_*): Change all
6821 macros to include _GLIBCPP as a distinct namespace.
6822 * bits/*: And here.
6823 * src/*: And here.
6824
6825 * stl/bits/std_stdexcept.h: Forward-declare __Named_exception ctor.
6826 * bits/basic_string.h: Remove __get_c_string.
6827 * src/stdexcept.cc: Define ctor here.
6828 * bits/ios_base.h: And fix ios_base::failure as well.
6829 * src/ios.cc: Define here.
6830
6831 * bits/std_streambuf.h: Add a private copy ctor and assignment
6832 operator wrapped in _G_RESOLVE_LIB_DEFECTS.
6833 * bits/ios_base.h: And here too.
6834
6835 * bits/basic_string.h: Tweak.
6836 * testsuite/21_strings/nonmember.cc: Add operator+ tests.
6837
6838 * src/valarray.cc: Rename to. . .
6839 * src/valarray-inst.cc: This.
6840 * src/Makefile.am (sources): Change here.
6841 * src/Makefile.in: Regenerated.
6842
6843 1999-06-24 Vadim Egorov <egorovv@1c.ru>
6844
6845 * bits/string.tcc(basic_string<>::_Rep::_S_create): Fixed
6846 allocated size
6847
6848 1999-06-24 Benjamin Kosnik <bkoz@tintin.cygnus.com>
6849 Tom Tromey <tromey@cygnus.com>
6850
6851 * configure.in (use_glibc2): Eek, correct for non-glibc systems.
6852 Use AM_CONDITIONAL to get us out of this jam. .
6853 * libio/Makefile.am: Same.
6854 * */Makefile: Regenerated.
6855
6856 1999-06-24 Benjamin Kosnik <bkoz@tintin.cygnus.com>
6857 John Potter <jpotter@eagle.lhup.edu>
6858
6859 * stl/bits/stl_tree.h (insert_equal): Fix.
6860 * testsuite/23_containers/multiset.cc: New file.
6861
6862 1999-06-23 Benjamin Kosnik <bkoz@cygnus.com>
6863
6864 * configure.in (test for glibc2): Correct AC_TRY_COMPILE so that
6865 this works correctly on glibc-2 systems. This should allow
6866 simplified linking on these systems, and successful linking on Red
6867 Hat 6.0 systems.
6868 * configure, Makefile: Regenerate.
6869
6870 * bits/std_cwctype.h: Add missing 'w' to _S_iswpunct_helper name.
6871
6872 * testsuite/ext: New directory.
6873 * testsuite/ext/headers.cc: New file.
6874
6875 1999-06-23 Vadim Egorov <egorovv@1c.ru>
6876
6877 * stl/ext/hash_set: include missing headers
6878 * stl/ext/hash_map: Same
6879 * stl/ext/slist: Same
6880
6881 1999-06-17 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
6882
6883 * bits/std_cmath.h: comment out modf. Kills build on hpux10.20
6884
6885 1999-06-15 Benjamin Kosnik <bkoz@cygnus.com>
6886
6887 * src/Makefile.am (sources): Regenerate.
6888 * mkcheck: Add TESTS_FILE as a way of controlling what testcases
6889 are run.
6890
6891 1999-06-14 Benjamin Kosnik <bkoz@cygnus.com>
6892
6893 * src/string-inst.cc: Change _S_construct signature, to
6894 track requested allocation size versus valid input iterator range.
6895 * bits/basic_string.h: Here too.
6896 * bits/string.tcc: And here.
6897
6898 1999-06-12 Benjamin Kosnik <bkoz@cygnus.com>
6899
6900 * mkcheck (LOG_FILE): Correctly append errors.
6901
6902 * stl/bits/stl_iterator.h: Revert previous, delirious, change.
6903
6904 * bits/basic_string.h: Change _Rep::_M_data to _Rep::_M_refdata,
6905 to clarify differences between basic_string::_M_data() calls and
6906 _Rep::_M_data() calls.
6907 * bits/std_string.h: Fix.
6908 Put in check for out_of_range in substr.
6909 * bits/string.tcc: Fix for _S_find.
6910
6911 * testsuite/21_strings/compare.cc: Add tests.
6912 * testsuite/21_strings/find.cc: New file.
6913 * testsuite/21_strings/substr: New file.
6914 * testsuite/21_strings/replace.cc: New file.
6915
6916 1999-06-11 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
6917
6918 * bits/valarray_array.h: __restrict__ify pointers.
6919
6920 * bits/std_valarray.h: Tweak.
6921 (valarray<T>::cshift, valarray<T>::shift): use __builtin_alloca.
6922
6923 * bits/gslice_array.h: Tweak. Reflect changes in bits/gslice.h
6924
6925 * bits/gslice.h: Tweak.
6926 (class gslice::_Indexer): new class.
6927 (gslice::gslice(const gslice&)): implement copy-ctor to support
6928 ref-counted index.
6929 (gslice::operator=(const gslice&)): support ref-counted index.
6930 (gslice::_M_convert_to_index): delete.
6931
6932 * src/valarray.cc: New file.
6933 (__gslice_to_index): turn a gslice into a valarray<size_t>
6934 (ctor gslice::_Indexer::_Indexer): implement.
6935
6936 * src/Makefile.am (sources): add valarray.cc
6937 * src/Makefile.in: regenerate.
6938
6939 1999-06-08 Benjamin Kosnik <bkoz@cygnus.com>
6940
6941 * stl/bits/stl_iterator.h (__normal_iterator::const_iterator
6942 ctor): Put in a const_cast.
6943
6944 * testsuite/21_strings/invariants.cc: New file.
6945
6946 * testsuite/21_strings/insert.cc: Add exception handling bits.
6947 * testsuite/21_strings/ctor_copy_dtor.cc: Same.
6948
6949 * src/wstring-inst.cc: Add c++config.h include.
6950
6951 * bits/basic_string.h: Fix const operator[] for size == pos.
6952 Add _M_leak for rbegin, non-const.
6953 Add _M_leak for rend, non-const.
6954 Make member function at standards conformant.
6955 Add _S_terminal to _Rep for operator[] const, add this into
6956 c_str() as well.
6957 * bits/string.tcc: Add static member definition here,
6958 temporarily.
6959
6960 * testsuite/21_strings/element_access.cc: Add tests.
6961
6962 1999-06-08 Vadim Egorov <egorovv@1c.ru>
6963
6964 * bits/fstream.tcc (_M_really_overflow): Fixed size of
6965 conversion buffer.
6966
6967 1999-06-08 Phil Edwards <pedwards@ball.com>
6968
6969 * bits/fstream.tcc (basic_filebuf::xsputn): Fix off-by-one count
6970 caused when __testinit is true.
6971 * bits/ostream.tcc (basic_ostream::op<<(streambuf*)): Write buffer
6972 using rdbuf()->sputn rather than _M_fnumput->put.
6973
6974 1999-06-08 Benjamin Kosnik <bkoz@tintin.cygnus.com>
6975
6976 * testsuite/23_containers/bitset_ctor.cc: New file.
6977 * stl/bits/std_bitset.h (__BITSET_WORDS): Fix integration bug.
6978
6979 1999-06-08 Phil Edwards <pedwards@ball.com>
6980
6981 * bits/fstream.tcc (basic_filebuf::underflow): Fix, rename local vars.
6982
6983 1999-06-07 Benjamin Kosnik <bkoz@tintin.cygnus.com>
6984
6985 * testsuite/21_strings/element_access.cc: Finish off these tests.
6986 * testsuite/21_strings/insert.cc (test01): Uncomment.
6987 * testsuite/21_strings/ctor_copy_dtor.cc (test01): Finish off ctors.
6988 * bits/basic_string.h: Tweak, okay, fix for real this time.
6989 * bits/string.tcc: Same.
6990 * bits/char_traits.h: Tweak.
6991
6992 1999-06-07 Benjamin Kosnik <bkoz@tintin.cygnus.com>
6993
6994 * bits/std_cmath.h: Example of how to use the generated macro.
6995 * acconfig.h: Add macro for sinf here.
6996 * configure.in (LIBS): Add test for builtin math function sinf.
6997 * configure: Regenerated.
6998
6999 * bits/basic_string.h: Fix _S_max_size.
7000
7001 1999-06-06 Benjamin Kosnik <bkoz@tintin.cygnus.com>
7002
7003 * bits/basic_string.h: Fixes for out-of-memory segv for large strings.
7004 Remove _S_construct signature for forward_iterator_tag and
7005 input_iterator_tag.
7006 Clean _M_fold.
7007 * src/string-inst.cc: Same, tweaks.
7008 * bits/string.tcc: Same, tweaks.
7009
7010 * testsuite/21_strings/ctor_copy_dtor.cc: Add/clarify tests.
7011 * mkcheck (LOG_FILE): Fix filebuf-[2,3].tst checks.
7012 * mknumeric_limits (LD_FLAGS): Add -nodefaultlibs -lc -lgcc as per
7013 Gaby.
7014
7015 * src/locale.cc: Final separation for char/wchar_t bits.
7016
7017 1999-06-05 Phil Edwards <pedwards@ball.com>
7018
7019 * docs/index.html: Added link to book upon request'n'agreement.
7020 * docs/23_containers/wrappers_h.txt: Added.
7021 * docs/{23_containers,27_io}/howto.html: Added sections.
7022
7023 * bits/std_fstream.h: Tweak.
7024
7025 1999-06-05 Benjamin Kosnik <bkoz@tintin.cygnus.com>
7026
7027 * src/ios.cc: Same here.
7028 * bits/std_iosfwd.h: More wchar_t defines.
7029
7030 * bits/basic_string.h: Tweaks.
7031 * bits/string.tcc: Tweak. Fix _S_construct to check for max_size
7032 when doing error checking, as per LWG defect #83.
7033
7034 * src/gen-c++config.cc: Fix comment.
7035
7036 * testsuite/21_strings/ctor_copy_dtor.cc: New file, checks ctors,
7037 assignments, dtors.
7038 * testsuite/21_strings/element_access.cc: New file, checks for
7039 operator[], at(...).
7040 * testsuite/21_strings/insert.cc: New file, tests string::insert.
7041 * testsuite/21_strings/char_traits.cc: New file, tests
7042 for char_traits<char>.
7043
7044 * bits/utility.h: Remove, again.
7045 * src/Makefile.am (std_headers): Remove utility.h.
7046 * src/Makefile.in (std_headers): Regenerate.
7047
7048 Alfred Minarik <a8601248@unet.univie.ac.at>
7049 * bits/basic_string.h: Move __out_of_range and __length_error into
7050 namespace std.
7051
7052 1999-06-05 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
7053
7054 * testsuite/26_numerics/modf_float.cc: New file.
7055
7056 * bits/std_cmath.h (modf(float, float*)): Fix signature. Correct
7057 typo: use ::modff, not ::modf.
7058
7059 1999-06-03 Vadim Egorov <egorovv@1c.ru>
7060
7061 * bits/string.tcc (basic_string::_M_mutate): Fixed memory
7062 allocation error
7063 * testsuite/21_strings/capacity.cc (test01): Test.
7064
7065 1999-06-03 Phil Edwards <pedwards@ball.com>
7066
7067 * bits/fstream.tcc: Re-order inits to stop warnings. Comment/move
7068 unused variables to within #if 0 blocks to do the same.
7069 * bits/std_fstream.h: Fix typos (one prevents compilation).
7070
7071 1999-06-03 Benjamin Kosnik <bkoz@pacifica.cygnus.com>
7072
7073 * src/wstring-inst.cc: Fix.
7074
7075 1999-06-02 Benjamin Kosnik <bkoz@madcow.cygnus.com>
7076
7077 * bits/char_traits.h: Add _G_USE_WCHAR_T macro guards.
7078 * stl/bits/stl_string_fwd.h: Same.
7079 * bits/locale_facets.h: Same.
7080 * bits/locale_facets.tcc: Same.
7081 * src/wstring-inst.cc: And here.
7082
7083 * src/gen-c++config.cc: Comment _G_USE_WCHAR_T. Leading to
7084 problems on HPUX 10.20.
7085 * your-build-directory-here/bits/c++config.h: Just kidding, do it
7086 here as a temporary hack till the compiler/host problems get
7087 worked out.
7088
7089 * bits/locale_facets.tcc (num_get::do_get): Change from ifdef
7090 HAVE_STRTOLD to HAVE_STRTOLD && !(__hpux). Apparently, problems
7091 converting "long double" to struct long_double. Probably should be
7092 done with one macro (HAVE_STRTOLD) at configure time.
7093
7094 * bits/std_cmath.h: Comment out pow(double, int) defintion as
7095 gives re-declaration under hpux10.20. Revert previous change, as
7096 kills linux/x86, solaris 2.7, hpux builds. These should be done
7097 using autoconf, see std_cctype.h and the solutions started in
7098 configure.in (see config.h for the generated file.)
7099
7100 * mknumeric_limits (LDFLAGS): Remove '-nodefaultlibs -lc', as
7101 -nodefaultlibs prevents linking under HPUX 10.20 as __main is not
7102 defined.
7103
7104 * docs/index.html: Add some useful links.
7105 * docs/17_intro/contribute.html: Fix broken links.
7106
7107 1999-06-02 Benjamin Kosnik <bkoz@rhino.cygnus.com>
7108
7109 * mkcheck (LOG_FILE): Add !/bin/bash instead of cygnus-style
7110 paths. The rest of the world should be able to run this script
7111 now.
7112
7113 * src/Makefile.am ($(generated_headers)): Remove comment.
7114 * Makefile*: Regenerate.
7115
7116 * bits/std_locale.h: Remove detritus.
7117 * bits/localefwd.h: Add <cctype> include to undefine the isspace
7118 macro.
7119
7120 1999-06-01 Benjamin Kosnik <bkoz@tintin.cygnus.com>
7121
7122 * src/gen-c++config.cc: New file. Making c++config.h at configure
7123 time by catting this file (nee bits/config.h) with the build
7124 directories config.h. This is not a complete or perfect solution
7125 but is better than what was in place previously.
7126 * bits/c++config.h: Rename/move to above.
7127 * src/Makefile.am (headers): Remove c++config.h.
7128 (myinstallheaders). Add.
7129 * Makefile*: Regenerated.
7130
7131 * bits/std_cwchar.h: Add include of c++config.h for HAVE_*
7132 definitions, so that wmemcmp, wcslen, wmemchr, etc are properly
7133 declared only if not present in the host's wchar.h.
7134
7135 * bits/locale_facets.tcc (std): Change _G_USE_STRTO* to HAVE_STRTO*.
7136
7137 * bits/std_cmath.h: Define out, for the moment. Linux has no
7138 __buitin_fsqrtl? Probably need some kind of configure trickery
7139 here as well.
7140
7141 * src/Makefile.*: Regenerate.
7142 * bits/c++config.h: Add config.h include.
7143
7144 * bits/std_cwchar.h: Remove remaining #error guard.
7145
7146 * acconfig.h: Add bits for HAVE_LC_MESSAGES.
7147
7148 * configure.in (LIBS): Replace previous effort for mbstate_t and
7149 strtold/strtof with this implementation.
7150
7151 1999 06-01 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
7152
7153 * bits/std_cmath.h: Tweak. Add more functions. Use __builtin_xxx
7154 whenever possible.
7155
7156 1999-05-28 Benjamin Kosnik <bkoz@cygnus.com>
7157
7158 * bits/locale_facets.tcc (std): Eek: this left in. Autoconf bits
7159 for determining mbstate_t differences across various hosts not
7160 finished.
7161
7162 1999-05-26 Benjamin Kosnik <bkoz@nabi.net>
7163
7164 * bits/locale_facets.tcc: Change to ifdef.
7165
7166 * bits/std_sstream.h (stringbuf::setbuf): Remove dynamic_cast.
7167 * bits/std_fstream.h (filebuf::setbuf): Same.
7168
7169 * bits/std_istream.h: Add ws declaration.
7170 * bits/istream.tcc: Stub out definition.
7171
7172 * docs/index.html: Fix broken link for design.txt.
7173
7174 * configure.in: Test for mbstate_t. If wchar.h doesn't have it,
7175 then set _G_NEED_MBSTATE_T.
7176 * configure: Regenerate.
7177 * bits/c++config.h: Move mbstate_t define.
7178 * bits/std_cwchar.h: To here.
7179
7180 1999-05-25 Ryszard Kabatek <kabatek@chemie.uni-halle.de>
7181
7182 * bits/std_sstream.h:
7183 basic_stringbuf<>::basic_stringbuf: fix.
7184 basic_stringbuf<>::setbuf:
7185 remove the temporary __string_type object,
7186 remove the unnecessary dynymic_cast in the return value,
7187 change the type of the returned value from __streambuf_type*
7188 to basic_stringbuf<_CharT, _Traits, _Alloc>*.
7189
7190 1999-05-25 Phil Edwards <pedwards@ball.com>
7191
7192 * bits/std_streambuf.h (streambuf::setbuf): Always return streambuf*.
7193
7194 1999-04-25 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
7195
7196 * bits/std_cmath.h: Tweak. Add float versions of the math functions
7197 in <math.h>. <cmath> still incomplete and incorrekt.
7198
7199 1999-05-24 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
7200
7201 * mknumeric_limits (LDFLAGS): set appropriate link flags.
7202
7203 1999-05-23 Phil Edwards <pedwards@ball.com>
7204
7205 * docs/17_intro/howto.html: Added links to text docs,
7206 e.g., BUGS.
7207 * docs/21_strings/howto.html: Updated sections and links.
7208 * docs/21_strings/{gotw29a.txt,stringtok_h.txt}: Added.
7209 * docs/faq/index.html: Updated what-works for sixth
7210 snapshot. Also a number of "internal" links have been
7211 fixed, now that the web pages are the docs directory...
7212 * docs/faq/index.txt: Regenerated.
7213
7214 1999-05-21 Benjamin Kosnik <bkoz@tintin.cygnus.com>
7215
7216 * bits/basic_string.h: Add Nathan's documentation on the string class.
7217
7218 * testsuite/27_io/ios_members_static.cc: New file, for testing
7219 ios_base::sync_with_stdio.
7220
7221 1999-05-21 Benjamin Kosnik <bkoz@tintin.cygnus.com>
7222
7223 * bits/std_locale.h: Simplify includes.
7224 * bits/loccore.h: Delete.
7225 * bits/localefwd.h: Renamed, trimmed.
7226 * bits/locfacets.h: Delete.
7227 * bits/locale_facets.h: Rename, expanded.
7228 * bits/loccore.tcc: Deleted.
7229 * bits/locfacets.tcc: Deleted.
7230 * bits/locale_facets.tcc: Resultant merge.
7231 * bits/std_fstream.h: Modify include.
7232 * bits/ostream.tcc: Same.
7233 * bits/istream.tcc: Same.
7234
7235 * src/locale-inst.cc: And here.
7236 * src/locale.cc: Ditto.
7237 * src/Makefile.am: Updated.
7238 * src/Makefile.in: Rengenerated.
7239
7240 * bits/std_istream.h: Move istream::sentry ctor definition.
7241 * bits/istream.tcc: Move istream::sentry ctor here.
7242 Add more detailed locale include here for ctype member functions.
7243 * bits/ostream.tcc (std): And here.
7244
7245 * bits/sbuf_iter.h: Include std_streambuf.h
7246
7247 * bits/locfacets.h: Start separating this into a localeimp.h file.
7248 * bits/loccore.h: Start separating this into a localefwd.h file.
7249 Add std_climits for CHAR_BIT.
7250
7251 * bits/ios_base.h (ios_base::sync_with_stdio): Stub in.
7252
7253 * bits/char_traits.h: Tweak.
7254
7255 * bits/ios_base.h: Remove INT_MAX, use 1<<16.
7256
7257 * bits/std_ostream.h: Remove c++config.h include.
7258 * bits/std_istream.h: Same.
7259 * bits/std_streambuf.h: Same.
7260 * bits/std_fstream.h: Same.
7261 * bits/std_sstream.h: And here.
7262
7263 * bits/std_iosfwd.h: Add _G_RESOLVE_LIB_DEFECTS here for streampos.
7264 * bits/char_traits.h: Add include of std_cwchar.h for mbstate_t.
7265 * bits/fpos.h: Tweak, format.
7266
7267 * std/ciso646: New file.
7268 * bits/std_ciso646.h: New file.
7269 * src/Makefile.am (std_headers): Add ciso646.
7270 (headers): Add bits/std_ciso646.h.
7271 * src/Makefile.in: Regenerate.
7272 * testsuite/17_intro/header_ciso646.cc: New file, disable
7273 equivalance tests.
7274
7275 * bits/fpos.h: Remove libio.h include.
7276 * bits/basic_file.h: And here.
7277 * bits/std_ios.h: Put here.
7278
7279 * src/ios.cc: Simplify includes, tweak.
7280 * bits/std_ios.h: Simplify include order.
7281 * bits/ios_base.h: Modify ios_base::failure.
7282
7283 * stl/bits/std_numeric.h: Change include from stl_iterator to
7284 std_iterator.
7285
7286 1999-05-19 Benjamin Kosnik <bkoz@tintin.cygnus.com>
7287
7288 * std/iostream: Remove static member __ioint.
7289 * bits/std_iostream.h: Put here.
7290
7291 * stl/bits/std_numeric.h: Remove unneccessary std_iostream.h include.
7292 * stl/bits/stl_algobase.h: Same.
7293 * testsuite/27_io/iostream_objects.cc: Regression tests.
7294 * testsuite/27_io/hello.cc: Remove, subset of above.
7295
7296 1999-05-19 Phil Edwards <pedwards@ball.com>
7297
7298 * docs/index.html: Tweak, update.
7299
7300 1999-05-18 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
7301
7302 * docs/17_intro/RELEASE-NOTES: remove outdated
7303 documentation about numeric_limits. Correct CXXINCLUDE setting
7304 documentation.
7305
7306 1999-05-18 Phil Edwards <pedwards@ball.com>
7307
7308 * docs/{17_intro,18_support,19_diagnostics,20_util,21_strings,
7309 22_locale,23_containers,24_iterators,25_algorithms,26_numerics,
7310 27_io}/howto.html: Created, with some initial entries.
7311 * docs/faq/index.html: Fixed some links.
7312 * docs/faq/index.txt: Regenerated.
7313
7314 1999-05-18 Benjamin Kosnik <bkoz@tintin.cygnus.com>
7315
7316 * bits/c++config.h (__GLIBCPP__): Set version to 19990518.
7317
7318 * docs/17_intro/RELEASE-NOTES: Update.
7319 * docs/index.html: Correct link to mailing list help page, update News.
7320 * docs/faq/index.html: Change fifth to sixth for snapshot.
7321
7322 * src/Makefile.am (myinstallheaders): Bring over Gaby's changes to
7323 install $(top_builddir)/bits/std_limits.h into
7324 $(myincludepfx)/bits. This was mistakenly omitted from yesterday's
7325 Makefile.am changes.
7326 * *Makefile*: Regenerate using automake.
7327
7328 * mkcheck (LOG_FILE): Fix filebuf directory oddness.
7329 * testsuite/27_io/filebuf.cc: Same.
7330
7331 1999-05-18 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
7332
7333 * docs/17_intro/CHECKLIST: update.
7334 * docs/17_intro/TODO: update.
7335
7336 1999-05-17 Phil Edwards <pedwards@ball.com>
7337
7338 * docs/{17_intro,18_support,19_diagnostics,20_util,21_strings,
7339 22_locale,23_containers,24_iterators,25_algorithms,26_numerics,
7340 27_io}/howto.html: Created, with some initial entries.
7341 * docs/faq/index.html: Fixed some links.
7342 * docs/faq/index.txt: Regenerated.
7343
7344 1999-05-17 Benjamin Kosnik <bkoz@unhappy.cygnus.com>
7345
7346 * src/Makefile.am (myinstallheaders): Missed removing missing.h.
7347 * Makefile.in*: Regenerate.
7348
7349 1999-05-17 Benjamin Kosnik <bkoz@happy.cygnus.com>
7350
7351 * bits/std_streambuf.h: Same.
7352
7353 * bits/loccore.h (_Bad_use_facet): Remove bits warned about.
7354 * bits/locfacets.h (std): Same.
7355 * bits/sstream.tcc: Same.
7356 * testsuite/27_io/stringstream.cc: Tweak.
7357
7358 * testsuite/27_io/filebuf.cc: Adjust.
7359 * testsuite/21_strings/capacity.cc (test01): Add more
7360 string::reserve tests.
7361
7362 * bits/c++config.h: Remove broken CCTYPE.
7363 * bits/std_cctype.h: Tweak, remove de-macroization, enable
7364 sequestered topper implementation.
7365 * bits/std_cwctype.h: Same.
7366
7367 * bits/missing.h: Remove.
7368 * bits/std_locale.h: Remove missing.h include.
7369
7370 * stl/bits/std_bitset.h (bitset::bitset(string): Tweak to compile.
7371
7372 * src/Makefile.am (headers): Add bits/std_cwctype.h.
7373 INCLUDES: Add top_builddir.
7374 * src/Makefile.in: Regenerate.
7375
7376 * Makefile.am: Add check and check-install as new targets.
7377 * testsuite/make_check_libfree++: Move to. . .
7378 * mkcheck: Here.
7379 * configure.in: Tweak versions.
7380 * mknumeric_limits: Set paths correctly.
7381
7382 1999-05-17 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
7383
7384 * src/Makefile.in (myinstallheaders): add rule to install
7385 std_limits.h.
7386
7387 * bits/slice.h (class slice): don't const-qualify data members
7388 since the copy and assignment operator is implicitly used. The
7389 valarray specification is definitively a bad one.
7390
7391 * Makefile.in (generate-limits-sources): fix typo.
7392
7393 * docs/text/TODO: update.
7394 * docs/text/CHECKLIST: update.
7395
7396 * bits/gslice.h (gslice): fix bugglet.
7397 (gslice::gslice): set _M_index_size to 0 whenever given lengths
7398 (lj) of size zero.
7399
7400 * src/Makefile.am (libstdc___la_SOURCES): add gen-num-limits.
7401 * src/Makefile.in (libstdc___la_SOURCES): keep in sync.
7402 [Note: **/Makefile.in should be generated from the corresponding
7403 Makefile.am. The current situation is a litte chaotic. ]
7404
7405 1999-05-16 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
7406
7407 * mknumeric_limits: tweak.
7408
7409 * Makefile.in (all): add target generate-limits-sources.
7410 (generate-limits-sources): make a directory bits/ in top_builddir
7411 where the generated std_limits.h is put; generate limitsMEMBERs.cc
7412 directly under $(top_builddir)/src. Remains to put the appropriate
7413 rule for installing std_limits.h.
7414
7415 * src/Makefile.in (headers): remove bits/std_limits.h to this list.
7416 (INCLUDES): add -I$(top_builddir) for bits/std_limits.h which is
7417 now generated at build-time in the build directory
7418 (libstdc___la_SOURCES): remove limitsMEMBERS.cc form this list
7419 * src/Makefile.am: reflect changes in src/Makefile.in
7420
7421 1999-05-12 Phil Edwards <pedwards@ball.com>
7422
7423 * docs/faq/index.html: Add more entries (5.4,5.5), finish
7424 all but one empty entry. Add links for HOWTOs, but no files yet.
7425 (Corrected HOWTO links are for bkoz's new scheme.)
7426 * docs/faq/index.txt: Regenerated.
7427
7428 1999-05-12 Benjamin Kosnik <bkoz@happy.cygnus.com>
7429
7430 * testsuite/17_intro/headers.cc: New file.
7431 * stl/bits/std_queue.h: Change stl_bvector.h include path.
7432 * bits/std_cwctype.h: New file.
7433
7434 * testsuite/27_io/filebuf.cc: Need to tweak directory structure.
7435
7436 1999-05-11 Benjamin Kosnik <bkoz@loony.cygnus.com>
7437
7438 * stl/bits/stl_config.h (__USE_MALLOC): Change underlying allocator.
7439 Check __USE_MALLOC before defining specializations containing
7440 __default_alloc_template.
7441 * src/stl-inst.cc: Here too.
7442
7443 * bits/basic_string.h: Change.
7444
7445 * testsuite/make_check_libfree++: More tweaks.
7446 * testsuite/21/capacity.cc: New file.
7447
7448 * src/string.cc: Rename to be consistent with other inst files.
7449 Rename to string-inst.cc.
7450 * src/string*.cc: Change include.
7451 * src/wstring.cc: Rename to wstring-inst.cc.
7452 * src/wstring*.cc: Ditto.
7453 * src/Makefile.in: Also here.
7454 * src/Makefile.am: Ditto.
7455
7456 * src/traits.cc: Remove.
7457 * src/wtraits.cc: Same.
7458
7459 Try a new way of organizing documentation, one with synchronicity
7460 between testsuites and docs subdirectories, and see who yelps.
7461 * docs/html: Remove, use chapter and subject specific directories
7462 instead of forcing things immediately into format of
7463 documentation.
7464 * docs/text: Same.
7465 * docs/image: Same.
7466 * docs/faq/text, docs/faq/html: Remove, put in the docs/faq
7467 directory and sort by filename and extension.
7468 * docs/17_intro, 18_support, 19_diagnostics, 20_util, 21_strings,
7469 22_locale, 23_containers, 24_iterators, 25_algorithms,
7470 26_numerics, 27_io: Add.
7471 * docs/17_intro/*: Populate with all the text files. . .
7472 * docs/index.html: Construct.
7473
7474 * testsuite/*: Update with same names as the docs subdir.
7475 * testsuite/results: Where to stash conformance results for the
7476 different snapshots, so that progress/size/speed issues can be
7477 tracked over time.
7478
7479 1999-05-10 Benjamin Kosnik <bkoz@loony.cygnus.com>
7480
7481 * src/string.cc: Add _S_copy_chars instantiation, as well as
7482 string::binary operators !=, ==, etc.
7483
7484 * src/Makefile.am (CXXFLAGS): Remove -fvtable-thunks.
7485 * src/Makefile.in (CXXFLAGS): Same here.
7486 * testsuite/make_check_libfree++ (CXX_FLAG): And here.
7487
7488 1999-05-07 Benjamin Kosnik <bkoz@cygnus.com>
7489
7490 * src/string.cc: Add missing member functions to instantiation list.
7491
7492 1999-05-07 Benjamin Kosnik <bkoz@cygnus.com>
7493
7494 * src/misc-inst.cc: Remove unused string instantiations.
7495
7496 * bits/string.tcc: Tweak, fix.
7497 * bits/basic_string.h: Format. Fix reported error with c_str().
7498
7499 * testsuite/make_check_libfree++: Tweak for shared builds.
7500 * testsuite/21/operations.cc: New file for testing c_str() etc.
7501
7502 1999-05-06 Benjamin Kosnik <bkoz@cygnus.com>
7503 Ryszard Kabatek <kabatek@chemie.uni-halle.de>
7504
7505 * stl/bits/stl_vector.h: Fix the code of vector<> for usage with
7506 an iterator class. Delineate pointer versus iterator differences
7507 in implementation.
7508 * 23/vector_capacity.cc: New file, tests for above.
7509
7510 1999-05-06 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
7511
7512 * mknumeric_limits: Fix typo. 'unsigned lont' should read
7513 'unsigned long'.
7514 * src/Makefile.am (libstdc___la_SOURCES): add limitsMEMBERS.cc,
7515 generated by mknumeric_limits to the list. Now std_limits.h is
7516 basically working.
7517 * src/Makefile.in (generate-numeric-limits): new target to handle
7518 automatic generation of bits/std_limits.h and src/limitsMEMBERS.cc.
7519 (all): add target generate-numeric-limits.
7520 (libstdc___la_OBJECTS): add limitsMEMBERS.lo
7521 (libstdc___la_SOURCES): add limitsMEMBERS.cc
7522
7523 1999-05-05 Benjamin Kosnik <bkoz@cygnus.com>
7524
7525 Irix build issues.
7526 * bits/c++config.h (_G_USE_CTYPE_ISBIT): Defines new macro for
7527 mask values in ctype_base. Move hacks for _ISBit to locfacets.h.
7528 * bits/locfacts.h: Here.
7529
7530 1999-05-05 Benjamin Kosnik <bkoz@cygnus.com>
7531 Ulrich Drepper <drepper@cygnus.com>
7532
7533 Solaris build issues.
7534 * bits/c++config.h: Define new macros, _G_USE_STRTOF and
7535 _G_USE_STRTOLD.
7536
7537 * bits/locfacets.tcc (num_get::do_get): Tweak long double and
7538 float overloads to use the above macros. Account for the lack of
7539 strtold on some systems, and revert back to using sscanf.
7540
7541 1999-05-04 Ryszard Kabatek <kabatek@chemie.uni-halle.de>
7542
7543 * bits/locfacets.tcc (num_get::do_get): Check the errno variable.
7544 Use strtoul/strtoull for unsigned types. Check the ranges for
7545 short/unsigned short and if necessary for int/unsigned int.
7546
7547 1999-05-04 Benjamin Kosnik <bkoz@cygnus.com>
7548
7549 * src/gen-num-limits.cc (round_style): Need to use mknumericlimits
7550 to generate bits/std_limits.h now, as the SGI std_limits.h is
7551 being depricated. Not done, but should be done immediately: need
7552 to make sure this script is run as part of the configuration
7553 process, because without it "make" in a configured build directory
7554 will fail. Also tweaked: added a space for float_round_style, and
7555 used static_cast of zero to default-initialize, which should be ok
7556 according to the standard. (see 8.5 p5 and 20.1.3).
7557 * mknumeric_limits (OUT_C): Need this for x86 long
7558 double extensions.
7559
7560 * bits/basic_file.h: Include libio.h, not libioP.h.
7561 * src/basic_file.cc: And add libioP.h include here, so that
7562 _IO_init, et. al are well-declared.
7563
7564 * testsuite/make_check_libfree++ (LIB_PATH): Test installed
7565 headers, not source directory headers.
7566
7567 * src/Makefile.am (headers): Add stl_range_errors.h, also adjust
7568 for ext/*. Also add basic_file.h.
7569 * src/Makefile.in (headers): Same.
7570
7571 * bits/std_string.h: Reduce dependencies for faster
7572 pre-processing. Move istream and ostream specific defines into
7573 istream.tcc and ostream.tcc respectively.
7574 * bits/string.tcc: And here.
7575 * bits/basic_string.h: Move getline inline out-of-line, and to
7576 istream.tcc.
7577 * bits/istream.tcc: Move string::getline and operator>> here.
7578 * bits/ostream.tcc: And here too.
7579
7580 * bits/utility.h: Remove, as clashes with a standard header. Put
7581 __OUTOFRANGE and __LENGTHERROR macros into string.tcc for the time
7582 being, until this can be combined with SGI's approach.
7583 * bits/string.tcc: Add macros, as above.
7584 * bits/loccore.h: Add _Count_ones defines.
7585 * bits/std_string.h: And here too.
7586 * bits/std_locale.h: And here.
7587 * bits/std_ios.h: Take out include here.
7588 * src/Makefile.am (headers): Remove utility.h
7589 * src/Makefile.in (headers): Remove utility.h
7590
7591 * stl/bits/*: Update to SGI STL 3.20.
7592 * stl/ext/pthread_alloc: Delete this file.
7593
7594 1999-05-04 Phil Edwards <pedwards@ball.com>
7595
7596 * docs/faq/html/index.html: Add more entries
7597 * docs/faq/html/index.txt: regenerated.
7598
7599 1999-05-04 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
7600
7601 * src/gen-num-limits.cc (DO_DEFINE_MIN_MAX): fix typo.
7602
7603 1999-04-29 Benjamin Kosnik <bkoz@haight.cygnus.com>
7604
7605 * bits/locfacets.tcc (num_get::do_get): Re-implement, with input
7606 from Ulrich and Nathan. Remove extraneous string class usage,
7607 tweak, clean, simplify and consolidate with a eye towards removing
7608 duplcate code. Use strto[l, ll, f, d, ld] instead of sscanf.
7609 Not done: dealing with leading zeros, wchar_t work.
7610 * bits/locfacets.h: And here too.
7611
7612 * doc: Remove.
7613
7614 1999-04-29 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
7615
7616 * docs/: add a FAQ.
7617 * docs/faq/: New directory.
7618 * docs/faq/html/: Likewise.
7619 * docs/faq/text/: Likewise.
7620 * docs/faq/html/index.html: New file.
7621 * docs/faq/html/index.txt: Likewise. Generated from
7622 docs/faq/html/index.html by lynx.
7623
7624 1999-04-28 Benjamin Kosnik <bkoz@happy.cygnus.com>
7625 Ryszard Kabatek and Branko Cibej
7626
7627 * bits/locfacets.tcc: Modify.
7628
7629 1999-04-27 Benjamin Kosnik <bkoz@happy.cygnus.com>
7630
7631 * bits/sbuf_iter.h: Clean, fix istreambuf_iterator, make
7632 conformant to 14882, wrap non-standard extensions with
7633 _G_RESOLVE_LIB_DEFECTS, remove detritus and cruft, rennovate.
7634 * bits/locfacets.tcc (num_get::do_get(bool)): Return correct iterator.
7635
7636 * testsuite/27/istringstream_formatted.cc: Add tests.
7637
7638 * bits/locfacets.h: Remove cruft from _Format_cache, continue
7639 commenting, simplify.
7640 * bits/locfacets.tcc: Same.
7641
7642 1999-04-27 Ryszard Kabatek <kabatek@chemie.uni-halle.de>
7643 * bits/locfacets.tcc (num_get::do_get):
7644 Fix the sscanf format parameter
7645 for long long 'll' (as in C9X) instead of 'l'.
7646 Fix the order of sscanf format parameters: "%dl" --> "%ld".
7647 Change the type of the local variable '__conv' from 'string'
7648 to 'const char*' and adapt the change.
7649
7650 1999-04-26 Benjamin Kosnik <bkoz@happy.cygnus.com>
7651
7652 * bits/locfacets.h: Document _Format_cache, and name data members
7653 after the corresponding functions in numpunct. For instance:
7654 _M_grsep -> _M_thousands_sep, and _M_decsep -> _M_decimal_point.
7655 Break apart _M_boolnames{2] into _M_truename and _M_falsename.
7656 * bits/locfacets.tcc: Same.
7657
7658 * bits/locfacets.h (num_get::_M_extract): Don't allow groupings to
7659 stop parsing--store for later analysis.
7660 * testsuite/27/istringstream_formatted.cc: Add cases.
7661
7662 1999-04-25 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
7663
7664 * bits/valarray_meta.h: tweak.
7665 (_UnFunBase, _BinFunBase, _BinFunBase1, _BinFunBase2, _BinBase1,
7666 _BinFunBase2): rename typedef-name _Tp to _Vt to keep the compiler
7667 happy -- boggus warning.
7668 * bits/std_valarray.h: Fix.
7669 (valarray<T>::shift): Fix. Update comment.
7670 (valarray<T>::cshift): Fix.
7671
7672 1999-04-23 Benjamin Kosnik <bkoz@cygnus.com>
7673
7674 * testsuite/27filebuf-2.txt: Delete.
7675 * testsuite/27/filebuf.cc: Put output files directly into the
7676 correct subdirectory (27).
7677
7678 Alexandre Petit-Bianco <apbianco@cygnus.com>
7679 * testsuite/make_check_libfree++: Check generated (*.txt) file
7680 against stored results file (*.tst).
7681
7682 1999-04-22 Benjamin Kosnik <bkoz@nabi.net>
7683
7684 * bits/locfacets.tcc: Fix.
7685
7686 * bits/fstream.tcc (filebuf::seekoff): Output current out pointer.
7687 (filebuf::overflow): Simplify.
7688 (filebuf::xsputn): Correctly handle indeterminate state.
7689
7690 * testsuite/27/istringstream_formatted.cc: Tweak.
7691 * testsuite/27/filebuf.cc: Tweak.
7692 * testsuite/27/filebuf-3.tst: Correct: this is the canonical
7693 results file, please use this in the future to guarantee filebuf
7694 positioning accuracy.
7695 * testsuite/27/filebuf-2.tst: Same.
7696
7697 1999-04-21 Benjamin Kosnik <bkoz@cygnus.com>
7698
7699 * bits/fstream.tcc (filebuf::xsputn): Add.
7700 * bits/std_fstream.h: Declare.
7701
7702 * src/basic_file.cc (__basic_file::open): Add O_CREAT to open
7703 calls using ios_base::trunc.
7704
7705 * bits/sstream.tcc (streambuf::overflow): Fix crasher.
7706
7707 * testsuite/make_check_libfree++ (LOG_FILE): Ugh. Another fix.
7708 * testsuite/27/27stringstream.cc: Same.
7709 * testsuite/27/27stringbuf.cc: More tweaks.
7710 * testsuite/27/27filebuf-2.txt: Remove.
7711
7712 * testsuite/27/27filebuf-1.tst: Append, to force byte size over
7713 BUFSIZE so that overflows/underflow can be tested with default
7714 buffer setting.
7715 * testsuite/27/27filebuf-1.tst: Add.
7716
7717 * testsuite/*/*: Remove pre-pended chapter names, as they
7718 duplicate the chapter info contained in the enclosing directory
7719 anyway.
7720
7721 1999-04-20 Benjamin Kosnik <bkoz@cygnus.com>
7722
7723 * bits/streambuf.tcc (streambuf::xsputn): Re-implement to conform
7724 to sputc conditions.
7725
7726 * bits/ios_base.h: Define here.
7727 * src/ios.cc (ios_base::_M_clear): Remove hack.
7728 * bits/basic_ios.h: Fix rdstate().
7729
7730 * bits/sstream.tcc (streambuf::seekoff): Fix.
7731 * bits/fstream.tcc (filebuf::seekoff): Tweak comments.
7732
7733 * testsuite/make_check_libfree++ (LOG_FILE): More c-c-c-changes.
7734 * testsuite/24/24iterator.cc: Add/Fixes for DEBUG_ASSERT.
7735 * testsuite/27/27stringstream.cc: Same.
7736 * testsuite/27/27stringbuf.cc: Same.
7737 * testsuite/27/27istringstream_formatted.cc: Same.
7738 * testsuite/27/27filebuf.cc: Same.
7739
7740 * bits/locfacets.h: Remove specializations for messages<char> and
7741 messages<wchar_t> ctors. Same for moneypunct. Not required, not used.
7742 * src/locale.cc: Remove definitions for above.
7743 * src/misc-inst.cc: Revert, take out iomanip.h include.
7744 * bits/std_iomanip.h: Tweak, format.
7745
7746 1999-04-19 Benjamin Kosnik <bkoz@cygnus.com>
7747
7748 * bits/loccore.h: Format, move inline.
7749 * bits/locfacets.tcc: Same.
7750 * bits/locfacets.h: Same.
7751
7752 Ulrich Drepper <drepper@cygnus.com>
7753 * aclocal.m4: Re-generate.
7754 * configure, configure.in: Same.
7755 * m4/lc_messages.m4: New file.
7756
7757 1999-04-18 Benjamin Kosnik <bkoz@cygnus.com>
7758
7759 * bits/std_ostream.h: Fix typedef for wchar_t instantiations.
7760 * bits/sstream.tcc: Tweak.
7761
7762 * std/iostream: Put __ioinit inside macro guards.
7763
7764 * src/stlinst.cc: Delete and move to . . .
7765 * src/stl-inst.cc: New file, plus wrapping in namespace std.
7766 * src/Makefile.in: Change.
7767 * src/Makefile.am: Same.
7768 * src/misc-inst.cc: Add istringstream/ostringstream instantiations.
7769
7770 * testsuite/make_check_libfree++: Efficiently format for minimal
7771 space. Enforce stricter execution tests by enabling
7772 -DDEBUG_ASSERT.
7773
7774 1999-04-16 Benjamin Kosnik <bkoz@cygnus.com>
7775
7776 * docs/text/RELEASE-NOTES: Fix include typo.
7777
7778 * src/Makefile.am (headers): Add istream.tcc.
7779 * src/Makefile.in (headers): Add istream.tcc.
7780
7781 * ltconfig, ltmain.sh, libtool: Update to libtool-1.2g.
7782
7783 1999-04-16 Benjamin Kosnik <bkoz@cygnus.com>
7784
7785 * bits/locfacets.tcc (num_get::do_get(long)): Finish roughing in.
7786 * bits/locfacets.h (num_get::_M_extract): New functin:
7787 consolidate logic for do_get(...) members.
7788
7789 * bits/sbuf_iter.h (istreambuf_iterator::operator++()): Fix.
7790 * testsuite/27/27istringstream_formatted.cc: Add.
7791
7792 1999-04-16 Martin v. Loewis <martin@mira.isdn.cs.tu-berlin.de>
7793
7794 * src/basic_file.cc (__basic_file::open): Fix thinko in
7795 _G_HAVE_IO_FILE_OPEN bits.
7796 * bits/std_istream.h (sentry::sentry(istream, bool)): Fix isspace bug.
7797 * bits/std_cmath.h: Add stdlib.h include for ldiv_t.
7798 * src/complex.cc (FCT): Qualify all functions with global namespace.
7799 * src/locale.cc: Don't qualify memcpy and setlocale.
7800 * src/stdexcept.cc (__out_of_range): Qualify out_of_range with std::.
7801 (__length_error): Likewise, for length_error.
7802 * src/stlinst.cc: Qualify instantiations with std::.
7803
7804 1999-04-15 Benjamin Kosnik <bkoz@cygnus.com>
7805
7806 * C++STYLE: Add ChangeLog guidelines for member functions.
7807
7808 * doc/* : Delete.
7809 * BADNAMES, BUGS, C++STYLE, CHECKLIST, COPYING,
7810 DESIGN, HEADER_POLICY, PROBLEMS, RELEASE-NOTES, TODO: Moved into
7811 docs/text and made less strident.
7812
7813 * bits/fstream.tcc: Change non-standard ctor to match Sun's sematics.
7814 * bits/std_fstream.h: Same.
7815 * src/ios.cc: Same.
7816
7817 * bits/locfacets.h: Touch.
7818
7819 1999-04-15 Ulrich Drepper <drepper@cygnus.com>
7820
7821 * math/cexp.c (cexp): Use NAN instead of nan("").
7822 Reported by joel reed <joelreed@yahoo.com>.
7823
7824 * libio/libioP.h: Define _IO_seek_fpos_t and _IO_seek_off_t based on
7825 _G_IO_IO_FILE_VERSION. Use these types in the prototypes.
7826 * libio/fileops.c: Use _IO_seek_fpos_t and _IO_seek_off_t types
7827 instead of #if cascades.
7828 * libio/genops.c: Likewise.
7829 * libio/ioseekoff.c: Likewise.
7830 * libio/ioseekpos.c: Likewise.
7831 * libio/strops.c: Likewise.
7832 Patch by Chip Salzenberg <chip@perlsupport.com>.
7833
7834 1999-04-15 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
7835
7836 * docs: New directory.
7837 * docs/html: Likewise.
7838 * docs/text: Likewise.
7839 * docs/image: Likewise.
7840
7841 * bits/std_cmath.h: Add new functions.
7842 (abs): overload for long and double.
7843 (div): overload for long.
7844
7845 * bits/valarray_array.h: Fix.
7846 * bits/gslice.h: Adjust friend.
7847 * bits/slice_array.h: likewise.
7848 * bits/valarray_meta.h: likewise.
7849
7850 1999-04-13 Benjamin Kosnik <bkoz@tintin.cygnus.com>
7851
7852 * bits/locfacets.h: More changes, for num_get for insertion
7853 operators for integral types. Comment fields in _Format_cache.
7854 * bits/locfacets.tcc: And here too: add preliminary long version.
7855 * testsuite/27/27istringstream_formatted.cc: Add cases.
7856
7857 1999-04-13 Mark Elbrecht <snowball3@usa.net>
7858
7859 * configure.in: Add locale.h to AC_CHECK_HEADERS argument. Call
7860 AC_LC_MESSAGES macro.
7861 * aclocal.m4 (AC_LC_MESSAGES): New. Determines if a target
7862 supports LC_MESSAGES.
7863 * config.h.in: Add entry for HAVE_LC_MESSAGES.
7864 * src/locale.cc (locale::_S_normalize_category): Use the
7865 HAVE_LC_MESSAGES macro to check for LC_MESSAGES support instead of
7866 _G_NO_CLOCALE_HAS_MESSAGES.
7867 * aclocal.m4 (AM_PROG_LD): For DOS style paths, simplify test to
7868 '?:' from '?:\\' so any path beginning with a drive name matches.
7869
7870 1999-04-12 Mark Elbrecht <snowball3@usa.net>
7871
7872 * src/basic_file.cc(sys_open) [O_BINARY]: Declare __testb.
7873
7874 1999-04-12 Benjamin Kosnik <bkoz@tintin.cygnus.com>
7875
7876 * bits/locfacets.h: Tweak.
7877 * bits/locfacets.tcc(do_get): Clean/fix bool method.
7878
7879 * testsuite/21/21nonmember.cc: Same.
7880 * testsuite/21/21compare.cc: Fix license.
7881 * testsuite/27/27istringstream_formatted.cc: New file.
7882
7883 1999-04-12 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
7884
7885 * bits/valarray_meta.h: _BinFunBase1, _BinFunBase2, _BinBase1,
7886 _BinBase2: new template classes; put in there to work around a
7887 compiler limitation. The whole valarray architecture is now
7888 working.
7889
7890 1999-04-08 Benjamin Kosnik <bkoz@haight.constant.com>
7891
7892 * bits/locfacets.tcc: Fix, format.
7893 * bits/locfacets.h: Fix.
7894 * src/locale.cc: Same, plus format.
7895
7896 * bits/basic_string.h: Re-add definition here.
7897 * src/string.cc: Take out.
7898
7899 1999-04-08 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
7900
7901 * bits/std_valarray.h: tweak.
7902 * bits/valarray_array.h tweak. use _Expr.
7903 * bits/slice_array.h: likewise.
7904 * bits/gslice_array.h: likewise.
7905 * bits/mask_array.h: likewise.
7906 * bits/indirect_array.h: likewise.
7907 * bits/valarray_meta.h: tweak.
7908 _UnFunBase, _UnFunClos, _BinFunBase, _FunBase, _ValFunClos,
7909 _RefFunClos, _UnBase, _UnClos, _BinBase, _BinClos, _SClos, _GClos,
7910 _IClos: new template classes.
7911 _Meta: renamed to _Expr. Made template with args.
7912 _Constant: made template with two args.
7913
7914 1999-04-05 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
7915
7916 * bits/valarray_array.h: tweak.
7917
7918 1999-04-06 Benjamin Kosnik <bkoz@cygnus.com>
7919
7920 * bits/basic_string.h: Whoops--fix blip.
7921
7922 1999-04-06 Benjamin Kosnik <bkoz@cygnus.com>
7923
7924 Update to SGI STL 3.13
7925 * bits/basic_string.h: Add __get_c_string definition.
7926 * stl/bits/stl_range_errors.h: New file.
7927 * stl/bits/std_bvector.h: Same.
7928 * stl/bits/*: Update.
7929
7930 1999-04-04 1999 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
7931
7932 * bits/slice_array.h: tweak.
7933 * bits/gslice_array.h: tweak.
7934 * bits/mask_array.h: tweak.
7935 * bits/indirect_array.h: tweak.
7936 * bits/valarray_array.h: tweak.
7937 (__valarray_copy): replace copy with memcpy.
7938 * bits/std_valarray.h: use __valarray_copy whenever possible.
7939 use __valarray_fill instead of fill.
7940
7941 1999-04-02 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
7942
7943 * src/gen-num-limits.cc: new file
7944 * mknumeric_limits: Ditto.
7945
7946 1999-03-30 Benjamin Kosnik <bkoz@cygnus.com>
7947
7948 * bits/locfacets.tcc: Do a stub version of num_get for short, int,
7949 and long types.
7950 * bits/locfacets.h: Add num_get::get methods overloaded for int
7951 and short, to resolve ambiguous overloads in istream insertion
7952 operators.
7953
7954 1999-03-30 Benjamin Kosnik <bkoz@cygnus.com>
7955
7956 * bits/std_istream.h: Fix.
7957 * bits/istream.tcc: Fix.
7958
7959 1999-03-30 Philip Martin <pm@corris.dircon.co.uk>
7960
7961 * testsuite/24/24iterator.cc: fix ++/-- tests
7962
7963 1999-03-29 Benjamin Kosnik <bkoz@cygnus.com>
7964
7965 * bits/std_ostream.h: Looks like this, actually: Fix up eh-isms.
7966 * bits/ostream.tcc: Same.
7967
7968 * bits/std_istream.h: Bring over ostream changes, implement member
7969 functions. Baseline.
7970 * bits/istream.tcc: New file.
7971
7972 1999-03-26 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
7973
7974 * bits/gslice.h (class gslice): fix friends template.
7975
7976 1999-03-23 Benjamin Kosnik <bkoz@cygnus.com>
7977
7978 * bits/std_ostream.h: Fix sentry objects, implement seekp, tellp,
7979 delete cruft, etc.
7980 * bits/ostream.tcc: Same.
7981
7982 * bits/std_istream.h: Minor tweaks.
7983
7984 1999-03-18 Benjamin Kosnik <bkoz@cygnus.com>
7985
7986 * src/locale-inst.cc: Remove duplicate instantiations.
7987 * bits/locfacets.tcc: Tweak definitions of static member.
7988
7989 1999-03-18 Benjamin Kosnik <bkoz@cygnus.com>
7990
7991 * bits/std_fstream.h: Format: prepend "__" in front of
7992 non-standard typedefs.
7993 * bits/fstream.tcc: Match.
7994 * bits/std_streambuf.h: Format: prepend "__" in front of
7995 non-standard typedefs.
7996
7997 * bits/sstream.tcc: Match.
7998 * bits/std_istream.h: Format.
7999 * src/locale-inst.cc: Add num_get instantiations.
8000
8001 * bits/std_sstream.h: Fix crash in stringstreams. Remove member
8002 _M_sb, a basic_stringbuf object, and use the basic_ios pointer
8003 _M_streambuf instead. Make initializations sane. Fix
8004 allocation/deallocation of _M_streambuf.
8005 * bits/std_ostream.h: Fix initialization code.
8006 (ctor): Eliminate redundant this->init(), let base class initialize.
8007 (default ctor): New. Assume base classes already initialzed.
8008 * bits/std_istream.h: Parallel work to ostream.
8009 (ctor): Eliminate redundant this->init(), let base class initialize.
8010 (default ctor): New. Assume base classes already initialzed.
8011 Fix initialization of basic_iostream.
8012
8013 * bits/std_fstream.h: While we're at it, make initializations sane
8014 here too. Now matches sstream.h.
8015
8016 * bits/string.tcc: Fix crash in basic_string::compare.
8017 * bits/basic_string.h: And here.
8018 * bits/c++config.h: Add comment about _G_USE_EXCEPTIONS.
8019
8020 * testsuite/make_check_libfree++: Check shared as well.
8021 * testsuite/27/27stringstream.cc: Add bits.
8022 * testsuite/27/27boolfmt.cc: Add bits.
8023 * testsuite/27/27octfmt.cc: Add bits.
8024
8025 1999-03-17 Benjamin Kosnik <bkoz@happy.cygnus.com>
8026
8027 * configure.in (USE_LONG_DOUBLE): signbitl link error.
8028
8029 * bits/locfacets.h: Fix errors that cause build problems
8030 with current egcs (template parameters have class scope).
8031 * bits/locfacets.tcc: Same.
8032 * src/locale-inst.cc: Same, clean.
8033 * src/misc-inst.cc: Same, clean.
8034
8035 1999-03-17 Ryszard Kabatek <kabatek@chemie.uni-halle.de>
8036
8037 * stl/bits/std_memory.h: Modify auto_ptr::reset to reflect the
8038 standard. Re-apply this previous patch.
8039
8040 1999-03-17 Philip Martin <pm@corris.dircon.co.uk>
8041
8042 * bits/basic_string.h: Use __normal_iterator<> for iterators.
8043 * bits/std_sstream.h: Support __normal_iterator<> iterators.
8044 * bits/string.tcc: Ditto.
8045 * src/misc-inst.cc: Ditto.
8046 * src/locale-inst.cc: Ditto.
8047 * stl/bits/stl_iterator.h: Add __normal_iterator<>.
8048 * stl/bits/stl_vector.h: Use __normal_iterator<> for iterators.
8049 * testsuite/24/24iterator.cc: Add test cases for basic_string and
8050 vector iterators.
8051
8052 1999-03-16 Benjamin Kosnik <bkoz@cygnus.com>
8053
8054 * bits/locfacets.tcc: Remove macro hack.
8055 * bits/locfacets.h: Tweaks.
8056 * src/misc-inst.cc: Weed out locale-related instantiations.
8057 * src/locale-inst.cc: Same.
8058
8059 * RELEASE-NOTES: Make more changes.
8060 * bits/c++config.h: Bump version number.
8061
8062 * testsuite/make_check_libfree++: Collect diagnostics.
8063
8064 * bits/std_ostream.h: Fix ostream initialization/destruction
8065 problem, related to dtor cleanup and new cached facets, agggggggh.
8066 * bits/ostream.tcc: Tweak.
8067 * bits/locfacets.h: Remove all friends of iostream classes.
8068 * bits/ios_base.h: Same.
8069 * bits/streambuf.tcc: Tweak.
8070 * bits/std_streambuf.h: Tweak.
8071 * bits/std_fstream.h: Tweak.
8072 * bits/fstream.tcc: Tweak.
8073 * src/stdstreams.cc: Tweak.
8074 * src/ios.cc: Close streams.
8075
8076 * math/Makefile.in: Add missing files for shared link errors.
8077 * math/Makefile.am: Same.
8078
8079 1999-03-15 Benjamin Kosnik <bkoz@cygnus.com>
8080
8081 * src/locale-inst.cc: More wchar_t instantiations.
8082 * src/misc-inst.cc: Missed a few bits.
8083 * testsuite/make_check_libfree++: Add static and shared runs.
8084 * src/ios.cc: Add clarity to ios_base::Init::~Init().
8085
8086 1999-03-15 Benjamin Kosnik <bkoz@cygnus.com>
8087
8088 * bits/std_ostream.h: Format, expunge, simplify. Add cached
8089 facets. Resolve link errors.
8090 * bits/ostream.tcc: Same.
8091 * src/misc-inst.cc: Add ostream, wostream instantiations.
8092 * src/Makefile.am: Add missing bits for stdstreams.cc.
8093 * src/Makefile.in: Same.
8094 * bits/std_iosfwd.h: Format.
8095 * bits/locfacets.h (num_put): Add basic_ostream as a friend to
8096 num_put so that cached _M_fnumput pointer can be deleted in
8097 basic_ostream's dtor. Now everybody plays nice.
8098
8099 1999-03-12 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
8100
8101 * bits/gslice.h (class gslice): Make friends valarray,
8102 gslice_array and _GliceExpression.
8103
8104 1999-03-11 Benjamin Kosnik <bkoz@cygnus.com>
8105
8106 * RELEASE-NOTES: Update.
8107 * src/ios.cc: Use do proper init.
8108 * bits/std_streambuf.h: Tweak.
8109 * bits/std_iostream.h: Take out static member.
8110 * std/iostream: Put here.
8111 * bits/std_ostream.h: Non-default ctor shouldn't smash _M_streambuf.
8112 * bits/std_istream.h: Ditto.
8113 * bits/basic_ios.h: Format.
8114 * bits/ostream.tcc(write): Fix.
8115 * bits/fstream.tcc: Fix stdstreams ctor to do a proper
8116 initialization of the fstream class.
8117 * src/stdstreams.cc: I'm baaaaaaaack.
8118
8119 1999-03-10 Benjamin Kosnik <bkoz@rhino.cygnus.com>
8120
8121 * bits/ios_base.h: Correct comments. Add ios_base::init()
8122 functionality. Format, tweak, expunge, clean, bathe, and hang to dry.
8123 * src/misc-inst.cc: Add instantiations here.
8124 * src/ios.cc: Clean.
8125 * bits/std_iostream.h: Add wrappers, global ios_base::Init object.
8126 * src/stdstreams.cc: Delete this file, as now unnecessary.
8127 * bits/fstream.tcc: Add missing initialization bits for ctor.
8128 * src/Makefile.am (libstdc___la_SOURCES): Delete here as well.
8129 * src/Makefile.in (libstdc___la_OBJECTS): And here.
8130
8131 * bits/streambuf.tcc: Tweak.
8132 * bits/sstream.tcc: Here too.
8133
8134 * bits/fstream.tcc: And change definition as well.
8135 * bits/std_fstream.h: Change ctor.
8136 * src/basic_file.cc (sys_open): Add call that opens a specific fileno.
8137 * bits/basic_file.h: Add declarations.
8138
8139 * testsuite/27/27hello.cc: New file.
8140
8141 * bits/std_ostream.h: Move flush() inline.
8142 * bits/ostream.tcc: From here.
8143
8144 * bits/char_traits.h: Add include of fpos.h for streamoff/streampos.
8145 * bits/std_ios.h: Change include libio to only when necessary.
8146 * bits/fpos.h: Like here.
8147 * ios_base.h: And here.
8148
8149 * bits/locfacets.h: Change _Iostate to _Ios_Iostate.
8150 * bits/locfacets.tcc: Same.
8151 * bits/std_locale.h: Include std_ios.h not std_iosfwd.h.
8152 * bits/std_iosfwd.h: Move _Ios_Iostate to ios_base.h
8153
8154 1999-03-09 Benjamin Kosnik <bkoz@rhino.cygnus.com>
8155
8156 * bits/basic_ios.h: Change _M_ctype to _M_fctype.
8157
8158 * bits/std_streambuf.h: Clean, tweak.
8159 * bits/std_fstream.h: Same.
8160 * bits/std_sstream.h: Same.
8161 * bits/streambuf.tcc: Move most member functions out-of-line.
8162 * bits/fstream.tcc: Same.
8163 * bits/streambuf.tcc: Same.
8164
8165 * bits/basic_file.h(filepos_cur): Set correctly.
8166 (filepos_beg): Same.
8167 (seekpos): Change to __c_streampos.
8168 * src/basic_file.cc (std): Change to __c_streampos.
8169
8170 * testsuite/27/27filebuf.cc: Round one is finished.
8171 * testsuite/27/27filebuf-2.tst: New file, final output should match.
8172 * testsuite/27/27filebuf-3.tst: Same.
8173
8174 1999-03-08 Benjamin Kosnik <bkoz@rhino.cygnus.com>
8175
8176 * bits/basic_file.h: Fix typo, add comments about what to expect
8177 from the various member functions in __basic_file.
8178
8179 * bits/std_fstream.h: Re-do sync/underflow to work
8180 together. Change from sys_read to xsgetn and from sys_write to
8181 xsputn. As it should have been from the beginning. . .
8182
8183 1999-03-06 Benjamin Kosnik <bkoz@haight.constant.com>
8184
8185 * bits/c++config.h (__GLIBCPP__): Add versioning macro.
8186
8187 * bits/basic_file.h(file_beg): New function.
8188 (file_cur): Ditto.
8189
8190 * testsuite/27/27filebuf.cc: Test in, out, in | out.
8191 * bits/std_fstream.h: More _M_mode refinements.
8192 (synch): Add bits for out mode only.
8193 * bits/std_streambuf.h(xsputn): Correct for filebufs.
8194 * bits/std_sstream.h: Ditto.
8195
8196 1999-03-03 Benjamin Kosnik <bkoz@cygnus.com>
8197
8198 * bits/std_fstream.h: Fix _M_mode AND with ios_base::openmode.
8199 * testsuite/27/27filebuf.cc: Modify.
8200 * bits/c++config.h: Fix.
8201
8202 1999-03-02 Benjamin Kosnik <bkoz@tintin.cygnus.com>
8203
8204 * bits/c++config.h: New macro, _G_RESOLVE_LIB_DEFECTS, used to put
8205 code in place that diverges from the final standard, but has been
8206 brought up on the library mailing list.
8207
8208 * bits/std_fstream.h(underflow): Position all three internal
8209 buffer pointers at the same initial position. Re-implement with
8210 basic_filebuf abstraction.
8211 (overflow): Ditto.
8212 (seekoff): Ditto.
8213 (seekpos): Ditto.
8214 * bits/std_sstream.h: Move _M_mode down into base class
8215 basic_streambuf.
8216 * bits/sstream.tcc: Ditto.
8217 * bits/std_streambuf.h: Ditto.
8218
8219 * testsuite/27/27filebuf.cc: Tweak.
8220
8221 1999-02-27 Benjamin Kosnik <bkoz@slap-happy.cygnus.com>
8222
8223 * bits/std_sstream.h: Ditto.
8224 * bits/std_fstream.h: Fix blip.
8225
8226 1999-02-26 Benjamin Kosnik <bkoz@happy.cygnus.com>
8227
8228 * C++STYLE: Add cases.
8229 * bits/std_fstream.h: Format.
8230 * bits/std_streambuf.h: Ditto.
8231 * bits/std_sstream.h: Ditto.
8232
8233 * src/basic_file.cc(sys_seek): Fix stack delirium, by keeping
8234 return type for _IO_file_seek and __basic_file::seek the same size.
8235 * bits/basic_file.h: Ditto.
8236
8237 1999-02-26 Benjamin Kosnik <bkoz@happy.cygnus.com>
8238
8239 * bits/fstream.tcc: Add include guards.
8240 * src/misc-inst.cc: Add instantiations for shared libes.
8241 * src/locale-inst.cc: Add instantiaions for use_facet.
8242 * bits/loccore.h: Remove specialization foward decls for
8243 use_facet<ctype>: perhaps add the whole lot of them later on.
8244 * bits/std_fstream.h: Fix.
8245 * bits/locfacets.h: Ditto.
8246 * src/stdstreams.cc: Disable wide streams for now.
8247
8248 * src/Makefile.am (CXXFLAGS): Change up.
8249 * src/Makefile.in (CXXFLAGS): Ditto.
8250
8251 1999-02-25 Benjamin Kosnik <bkoz@happy.cygnus.com>
8252
8253 * src/basic_file.cc: Change to ios_base::seekdir from int.
8254 * bits/basic_file.h: Ditto.
8255 * bits/locfacets.h : Fix blip with new guard macros.
8256
8257 1999-02-25 Benjamin Kosnik <bkoz@cygnus.com>
8258
8259 * stl/bits/stl_config.h (__STL_USE_STD_ALLOCATORS): Minor tweaking.
8260 * bits/c++config.h: Clean. Remove _G_NO_STREAMBUF_ITERATORS and
8261 _G_USE_NAMESPACE.
8262 * amm1/locale: Remove unused defines.
8263 * generic/locale: Ditto.
8264 * src/ios.cc: Ditto.
8265 * src/locale.cc: Ditto.
8266 * src/locale-inst.cc: Ditto.
8267 * src/localename.cc: Ditto.
8268 * src/stdstreams.cc: And here.
8269
8270 * bits/c++config.h (_G_USE_WCHAR_T): Fix.
8271 * bits/loccore.h: Simplify, clean, add wchar_t guards.
8272 * bits/loccore.tcc: Ditto.
8273 * bits/locfacets.h: Ditto.
8274 * src/locale-inst.cc: Ditto.
8275 * bits/locfacets.tcc: Add do_put long long here.
8276
8277 1999-02-24 Benjamin Kosnik <bkoz@cygnus.com>
8278
8279 * bits/std_streambuf.h: Add cached ctype facet, _M_ctype.
8280 * bits/basic_ios.h: Clean. Replace _M_strbuf with
8281 _M_streambuf. Use cached _M_cvt in basic_streambuf.
8282 * bits/std_istream.h: Replace _M_strbuf with _M_streambuf.
8283 * bits/std_fstream.h: Tweak.
8284
8285 * bits/char_traits.h: Remove fpos definitions from here. . .
8286 * bits/fpos.h: New file, put them here. Eventually, this may allow
8287 the severing of char_traits and fpos dependancies.
8288 * src/Makefile.in: Add fpos.h.
8289 * src/Makefile.am: Ditto.
8290 * bits/std_string.h: Add fpos.h include here.
8291 * bits/std_ios.h: And here.
8292
8293 * bits/std_streambuf.h: Change _M_init to _M_initialized.
8294 * bits/ios_base.h: Remove cstdio include.
8295 * bits/std_ios.h: ... Place here.
8296
8297 1999-02-23 Benjamin Kosnik <bkoz@loony.cygnus.com>
8298
8299 * src/Makefile.in (CXXFLAGS): Re-add -fvtable-thunks.
8300 * src/Makefile.am (CXXFLAGS): Re-add -fvtable-thunks.
8301
8302 * bits/basic_file.h: Comment, adjust arguments.
8303 * src/basic_file.cc: Ditto.
8304
8305 * bits/std_fstream.h(seekoff): Error is of fpos type, not integral
8306 type: check and convert accordingly. Re-interpet "resultant stream
8307 position" to indicate external byte sequence location, not internal
8308 buffer info.
8309
8310 1999-02-22 Benjamin Kosnik <bkoz@loony.cygnus.com>
8311
8312 * mkcshadow: And change copyright here.
8313 * src/Makefile.am (CXXFLAGS): Add -g -O2. Add new header
8314 dependencies for stl_pthread_alloc.h, pthread_allocimpl.h,
8315 stl_thread.h, and stl_iterator_base.h.
8316 * src/Makefile.in (CXXFLAGS): Ditto.
8317 * stl/backward/pthread_alloc.h: Remove.
8318
8319 1999-02-19 Benjamin Kosnik <bkoz@loony.cygnus.com>
8320
8321 * bits/std_streambuf.h (sungetc): Use standard defs for putback
8322 position.
8323 * bits/std_fstream.h (pbackfail): Correct.
8324 (sungetc): Test.
8325 (seekoff): Implement.
8326 (seekpos): Re-do.
8327 * testsuite/27/27filebuf.cc: Add test cases.
8328
8329 1999-02-18 Benjamin Kosnik <bkoz@loony.cygnus.com>
8330
8331 * bits/std_fstream.h: Go with basic_file's interfaces for dealing
8332 with the external buffers, and stop mucking around with setting
8333 and re-setting the external buf's pointers. Aka, clarity and
8334 simplicity rule the day.
8335 * src/locale.cc: Use memcpy in codecvt::do_in and codecvt::do_out.
8336 Remove partial result and support code.
8337
8338 1999-02-18 Ulrich Drepper <drepper@cygnus.com>
8339
8340 * configure.in: Add hypot, hypotf, atan2f, expf, and copysignf to
8341 list of function which have to be replaced.
8342 Remove expf from list of functions to test for.
8343 Define USE_LONG_DOUBLE in case the libm has partial support for long
8344 doubles.
8345 * Makefile.in: Regenerated.
8346 * config.h.in: Likewise.
8347 * configure: Likewise.
8348 * libio/Makefile.am (LIBIO_SRCS): Add missing backslash.
8349 * libio/Makefile.in: Regenerated.
8350 * src/Makefile.in: Regenerated.
8351 * string/Makefile.in: Regenerated.
8352 * math/Makefile.am (EXTRA_DIST): Add hypot.c, hypotf.c, hypotl.c,
8353 atan2f.c, expf.c, and $(EXTRA_yes).
8354 (EXTRA_yes): Add signbitl.c mycabsl.c.
8355 (libmath_la_LIBADD): Add $(EXTRA_$(USE_LONG_DOUBLE)).
8356 (libmath_la_SOURCES): remove long double versions.
8357 * math/Makefile.in: Regnerated.
8358 * math/atan2f.c: New file.
8359 * math/copysignf.c: New file.
8360 * math/expf.c: New file.
8361 * math/hypot.c: New file.
8362 * math/hypotf.c: New file.
8363 * math/hypotl.c: New file.
8364 * math/cargf.c: Use correct function and macro names.
8365 * math/ccos.c: Likewise.
8366 * math/ccosh.c: Likewise.
8367 * math/ccoshf.c: Likewise.
8368 * math/ccoshl.c: Likewise.
8369 * math/cexp.c: Likewise.
8370 * math/cexpf.c: Likewise.
8371 * math/cexpl.c: Likewise.
8372 * math/clog.c: Likewise.
8373 * math/clog10.c: Likewise.
8374 * math/clog10f.c: Likewise.
8375 * math/clog10l.c: Likewise.
8376 * math/clogf.c: Likewise.
8377 * math/clogl.c: Likewise.
8378 * math/copysignf.c: Likewise.
8379 * math/csin.c: Likewise.
8380 * math/csinf.c: Likewise.
8381 * math/csinh.c: Likewise.
8382 * math/csinhf.c: Likewise.
8383 * math/csinhl.c: Likewise.
8384 * math/csinl.c: Likewise.
8385 * math/csqrt.c: Likewise.
8386 * math/csqrtf.c: Likewise.
8387 * math/csqrtl.c: Likewise.
8388 * math/ctan.c: Likewise.
8389 * math/ctanf.c: Likewise.
8390 * math/ctanh.c: Likewise.
8391 * math/ctanhf.c: Likewise.
8392 * math/ctanhl.c: Likewise.
8393 * math/ctanl.c: Likewise.
8394
8395 1999-02-17 Benjamin Kosnik <bkoz@cygnus.com>
8396
8397 * testsuite/27/27filebuf.cc: Add cases.
8398 * testsuite/27/27filebuf-1.txt: Remove inadvertent garbage.
8399 * bits/std_streambuf.h: Simplify, always have one return statement.
8400 * bits/std_fstream.h: Tweak comments in underflow.
8401
8402 1999-02-17 Ulrich Drepper <drepper@cygnus.com>
8403
8404 * ltmain.sh: Update from libtool 1.2d and fix Solaris problems.
8405 * ltconfig: Likewise.
8406
8407 1999-02-16 Christophe Pierret <cpierret@businessobjects.com>
8408
8409 * src/locale.cc: Fix assert.
8410
8411 1999-02-16 Benjamin Kosnik <bkoz@cygnus.com>
8412
8413 FIXME: Still need some kind of solution for undefined math symbols.
8414 * src/Makefile.in (locale-inst.lo): Compile with
8415 -fimplicit-templates to fix Solaris link problem.
8416 * src/Makefile.am: Ditto.
8417 * libio/Makefile.in: Add stdfiles.c so that _IO_list_all is defined.
8418 * libio/Makefile.am: Ditto.
8419 * src/locale.cc: Provide some kind of def for _S_tolower.
8420 * bits/locfacets.h: Fix declarations of ctype<wchar_t> to
8421 match ctype<char> for _S_tolower, _S_toupper, _S_table.
8422
8423 1999-02-10 Benjamin Kosnik <bkoz@cygnus.com>
8424
8425 * bits/loccore.tcc: Move member-template ctor inline...
8426 * bits/loccore.h: ...here.
8427 * src/locale-inst.cc: Add instantiation here.
8428
8429 * testsuite/27/27stringstream.cc: Tweak.
8430
8431 * bits/ostream.tcc: Include sbuf_iter.h.
8432
8433 * bits/ostream.tcc: Convert *this to ostreambuf_iterator before
8434 passing to num_put, as num_put's first argument is an interator,
8435 not basic_ostream.
8436
8437 * testsuite/make_check_libfree++: New file, runs through the
8438 existing test files in the testsuite directory and makes sure
8439 they link.
8440
8441 1999-02-10 Brendan Kehoe <brendan@cygnus.com>
8442
8443 * testsuite/21/21compare.cc: Fix typo.
8444 * src/locale.cc (ctype<wchar_t>::_S_{toupper,tolower,table}):
8445 Don't try to provide non-linux versions, since it's impossible to
8446 initialize their const references with the integer 0, no matter
8447 how we try to cast it.
8448
8449 1999-02-10 Benjamin Kosnik <bkoz@cygnus.com>
8450
8451 * bits/std_locale.h: Move std_vector.h dependency.
8452 * bits/std_ios.h: ...from here.
8453 * bits/std_string.h: ...and here.
8454 * src/locale.cc: ..to here.
8455 * bits/loccore.h: Ditto, add vector forward declaration,
8456 make locale::_Impl data members pointers not containers.
8457 * bits/loccore.tcc: Move out-of-line for now.
8458 * bits/locfacets.h: Move vector dependency from here...
8459 * bits/locfacets.tcc: ...to here.
8460 * src/localename.cc: ..and here.
8461 * src/locale-inst.cc: Add include of locfacets.tcc here.
8462
8463 * stl/bits/stl_string_fwd.h: Make __get_c_string non-static.
8464 * bits/basic_string.h: Can't use sizeof on an incomplete type.
8465 * bits/string.tcc: Tweak.
8466 * src/string.cc: And add __get_c_string def here.
8467
8468 * bits/std_fstream.h: Yeah, comment the fill_n idea out as impractical.
8469
8470 * src/stlinst.cc: Add include of stl_config.h.
8471
8472 1999-02-09 Benjamin Kosnik <bkoz@cygnus.com>
8473
8474 * stl/bits/std_bitset.h: Update to SGI STL 3.12.
8475 * stl/bits/stl_config.h: Tweak, update.
8476 * stl/bits/std_stdexcept.h: Ditto, change stl_exception to
8477 std_exception.
8478 * stl/bits/std_memory.h: Reconstructed auto_ptr, Ditto.
8479 * stl/bits/std_functional.h: Ditto.
8480
8481 * stl/bits/stl_string.h: New file, SGI's string
8482 implementation. For reference only, corresponding to string in
8483 3.12 source.
8484 * stl/bits/stl_char_traits.h: As above.
8485
8486 * stl/bits/pthread_allocimpl.h: New file corresponding to
8487 pthread_alloc.
8488 * stl/bits/stl_pthread_alloc.h: New file corresponding to
8489 pthread_alloc.h
8490 * stl/bits/stl_threads.h: New file.
8491
8492 Note that SGI STL 3.12's file iterator.h is not used.
8493 * stl/bits/std_iterator.h: Ditto.
8494 * stl/bits/stl_iterator.h: Drop in replace.
8495 * stl/bits/stl_iterator_base.h: New file, drop in replace.
8496
8497 * stl/bits/stl_queue.h, stl_rope.h, stl_set.h, stl_stack.h,
8498 stl_string_fwd.h, stl_tempbuf.h, stl_tree.h, stl_vector.h,
8499 stl_pair.h, stl_multimap.h, stl_multiset.h, stl_list.h,
8500 stl_hashtable.h, stl_hash_set.h, stl_hash_map.h, stl_function.h,
8501 stl_deque.h, stl_alloc.h, stl_algo.h, stl_algobase.h, ropeimpl.h:
8502 Drop-in replace (ie, stop changing __SGI_STL_* to _CPP_BITS_* for
8503 preprocessor guards, but fixup include paths and names according
8504 to new directory layout).
8505
8506 1999-02-05 Benjamin Kosnik <bkoz@cygnus.com>
8507
8508 * bits/std_fstream.h: Remove _M_open data member.
8509 * bits/fstream.tcc: Ditto.
8510
8511 * src/locale.cc: Tweak.
8512
8513 * bits/std_sstream.h: Simplify.
8514
8515 * bits/std_streambuf.h: Simplify.
8516 (sputc): Use correct definition of "write area."
8517
8518 * bits/std_fstream.h: Fix uflow.
8519 * src/basic_file.cc: Tweak.
8520 * testsuite/27/27filebuf.cc: Add tests.
8521 * testsuite/27/27filebuf-3.txt: Rename to *-2.txt.
8522
8523 1999-02-02 Ryszard Kabatek <kabatek@chemie.uni-halle.de>
8524
8525 * bits/ios_base.h: Make protected.
8526
8527 1999-02-01 Ryszard Kabatek <kabatek@chemie.uni-halle.de>
8528
8529 * bits/ios_base.h: Changes in the class ios_base:
8530 Rename _M_exceptions member to _M_exceptions_data.
8531 Make the member functions rdstate(), clear(), exceptions()
8532 and exceptions(iostate) protected and add the "_M_" prefix.
8533 * src/ios.cc: Ditto.
8534 * bits/basic_ios.h: Adapt the changes from ios_base.
8535
8536 1999-01-29 Benjamin Kosnik <bkoz@cygnus.com>
8537
8538 * bits/std_fstream.h: Remove _M_flags, _M_equilibrate as unnecessary.
8539 * bits/fstream.tcc: Ditto.
8540
8541 * bits/std_fstream.h (underflow): Resize deallocates memory and
8542 resets pointers in the internal cache according to new _M_buf. . dooh!
8543 * src/locale.cc: Mas changes with codecvt::do_in, do_out.
8544
8545 1999-01-29 Ryszard Kabatek <kabatek@chemie.uni-halle.de>
8546
8547 * stl/bits/std_memory.h: Modify auto_ptr::reset to reflect the
8548 standard.
8549
8550 1999-01-28 Benjamin Kosnik <bkoz@cygnus.com>
8551
8552 * src/locale.cc (codecvt::do_in): Finer-grained tuning to take
8553 into account partial returns.
8554 (codecvt::do_out): Likewise.
8555
8556 * bits/char_traits.h: Change streamsize to be a signed type, as
8557 required by 27.4.1 Types p 2. (Changing to _IO_ssize_t.)
8558 * bits/std_streambuf.h: Make
8559 in_avail() and showmanyc() have streamsize as return types, so
8560 that showmanyc()'s return of eof won't underflow in_avail's return
8561 value and give a bogus result.
8562 * src/misc-inst.cc: And more changes. . .
8563
8564 * bits/std_streambuf.h (basic_streambuf): Add _M_buf_unified to keep
8565 track of joint in/out pointers into the internal buffer.
8566 (sbumpc): Add check for _M_buf_unified.
8567 (sputbackc): Ditto.
8568 (sungetc): Ditto.
8569
8570 * testsuite/27/27filebuf.cc: Add cases.
8571 * testsuite/27/27stringbuf.cc: Add showmanyc case.
8572
8573 * bits/std_fstream.h (close): Fix logic error.
8574 (open): Initialize internal pointers based on _M_buf and _M_buf_size.
8575 (showmanyc): Add underflow component, to match the standard.
8576
8577 * bits/fstream.tcc: Ditto.
8578
8579 1999-01-27 Benjamin Kosnik <bkoz@cygnus.com>
8580
8581 * bits/basic_file.h: Match vtables w/ _IO_FILE_plus.
8582 * src/basic_file.cc: Ditto.
8583 * src/Makefile.in: Add -fvtable-thunks to CXXFLAGS: preferred
8584 format for dealing with _IO_file in libio.
8585
8586 1999-01-27 Ulrich Drepper <drepper@cygnus.com>
8587
8588 * src/basic_file.cc: Include fcntl.h.
8589
8590 1999-01-27 Benjamin Kosnik <bkoz@cygnus.com>
8591
8592 * libio/Makefile.in: Add fileops.lo, genops.lo to objects to debug
8593 libio calls.
8594 * bits/std_streambuf.h: Redefine read posion.
8595
8596 * bits/std_fstream.h: Temporary hack to get vtables working again.
8597 * bits/basic_file.h: Revert.
8598 * src/basic_file.cc: Ditto.
8599 * testsuite/27/27filebuf.cc: Tweak.
8600
8601 1999-01-26 Benjamin Kosnik <bkoz@cygnus.com>
8602
8603 * bits/basic_file.h: Add showmanyc, underflow. .
8604 * src/basic_file.cc: Ditto.
8605
8606 * bits/std_fstream.h (showmanyc): Add bits to ping libio to see if more
8607 chars can be read.
8608
8609 * testsuite/27/27filebuf.cc: Add testcases.
8610 * src/basic_file.cc: Add O_CREAT to open calls with
8611 ios_base::trunc as part of the open mode.
8612
8613 1999-01-26 Ryszard Kabatek <kabatek@chemie.uni-halle.de>
8614
8615 * bits/basic_ios.h: fix basic_ios::exceptions(iostate)
8616
8617 1999-01-25 Benjamin Kosnik <bkoz@nabi.net>
8618
8619 * src/ios.cc (clear): Correct typo.
8620 * bits/ios_base.h: Tweak spacing.
8621
8622 1999-01-25 Ryszard Kabatek <kabatek@chemie.uni-halle.de>
8623
8624 * bits/basic_ios.h: fix basic_ios::fail()
8625
8626 1999-01-25 Benjamin Kosnik <bkoz@loony.cygnus.com>
8627
8628 * bits/basic_file.h: Include libioP.h from libio instead of here.
8629 * bits/iolibio.h: Remove.
8630 * bits/libio.h: Remove.
8631
8632 1999-01-22 Benjamin Kosnik <bkoz@lunatic.cygnus.com>
8633
8634 * bits/std_fstream.h: Tweak cvt-> in call for newer egcs compilers.
8635
8636 1999-01-22 Ulrich Drepper <drepper@cygnus.com>
8637
8638 * Makefile.am (SUBDIRS): Add libio.
8639 * configure.in: Add rule to test for glibc2.
8640
8641 * src/Makefile.am (INCLUDES): Add -I to libio subdir.
8642 (libstdc___la_LIBADD): Add libio.la.
8643
8644 1999-01-21 Benjamin Kosnik <bkoz@cygnus.com>
8645
8646 * bits/basic_file.h: Make new abstraction for underlying C library
8647 FILE, named __basic_file.
8648 * src/basic_file.cc: New file.
8649 * bits/os_raw.h: Delete.
8650 * src/os_raw.cc: Delete.
8651 * src/Makefile.in: Tweak.
8652 * src/Makefile.am: Tweak.
8653 * bits/iolibio.h: Add this here, for the time being.
8654 * bits/libioP.h: Ditto.
8655
8656 * bits/ios_base.h: Delete unused defines.
8657 * src/locale.cc (codecvt<char, char, mbstate_t>::do_in): Use
8658 strcpy to copy between the two buffers.
8659
8660 * testsuite/27/27stringbuf.cc: Change license, fix in_avail tests.
8661 * testsuite/27/27filebuf.cc: New file.
8662 * testsuite/27/27filebuf-1.txt: Data file for above test.
8663 * testsuite/27/27filebuf-2.txt: Ditto.
8664
8665 * bits/std_streambuf.h (uflow): Re-implement default.
8666 * bits/std_fstream.h: Set _M_buf_size based on cstdio's BUFSIZ.
8667 Re-implement virtual functions.
8668 * bits/fstream.tcc: Delete unused mf's.
8669
8670 1998-12-31 Benjamin Kosnik <bkoz@lunatic.cygnus.com>
8671
8672 * bits/fstream.tcc: Add fstream ctor for cin/cout/etc.
8673 * bits/std_fstream.h: Ditto.
8674 * src/stdstreams.cc: Ditto.
8675
8676 * math/cpowl.c: Fix header typo with last change.
8677
8678 1998-12-31 Benjamin Kosnik <bkoz@loony.cygnus.com>
8679
8680 * COPYING: New file (GPL v 2).
8681 * LICENSE.STD: Remove.
8682 * ./*: Change license.
8683
8684 1998-12-30 Benjamin Kosnik <bkoz@haight.constant.com>
8685
8686 * bits/std_streambuf.h (std): Remove static on _M_init.
8687 * bits/streambuf.tcc (std): Ditto.
8688
8689 * bits/std_fstream.h: Add changes as discussed with Nathan, including
8690 state_type and codecvt_type members, the allocation of an internal
8691 buffer, the streamlined codecvt calls, etc.
8692
8693 1998-12-21 Benjamin Kosnik <bkoz@haight.constant.com>
8694
8695 * bits/std_sstream.h: Tweak.
8696 * bits/fstream.tcc: Remove unused stubs.
8697 * bits/std_fstream.h: Tweak.
8698
8699 1998-12-17 Benjamin Kosnik <bkoz@tintin.cygnus.com>
8700
8701 * bits/std_streambuf.h: Move _IO_file_flags into basic_filebuf.
8702 Remove unused _IO_* members, possibly put into filebuf, which may
8703 need them.
8704 * bits/std_fstream.h: Add _M_flag.
8705 * bits/sbuf_iter.h: Tweak.
8706
8707 * bits/std_cstdio.h: Add SEEK_SET, SEEK_END, SEEK_CUR.
8708 * bits/ios_base.h: Use.
8709
8710 * src/stdstreams.cc: Modify to reflect standard ctors for
8711 filebuf.
8712 * src/misc-inst.cc: Ditto.
8713
8714 * bits/os_raw.h: Wrap in std namespace. Model parameters on
8715 underlying C library calls instead of the underlying unix
8716 filesystem.
8717 * src/os_raw.cc (_S_os_open): Use fopen, and compute a mode
8718 string as per p.659.
8719 (_S_os_close): Model on fopen.
8720 (_S_os_read): Model on fread.
8721 (_S_os_write): Model on fwrite.
8722 (_S_os_seek): Model on fseek.
8723
8724 * bits/ios_base.h: Tweak.
8725 * bits/std_iosfwd.h: Wrap libio.h include with extern "C".
8726 * bits/std_sstream.h: Tweak.
8727 * bits/sstream.tcc: Remove old, uncalled code.
8728 * bits/std_fstream.h: Major reconstruction.
8729 * bits/fstream.tcc: Disable for the time being.
8730
8731 1998-12-11 Benjamin Kosnik <bkoz@haight.constant.com>
8732
8733 * bits/basic_string.h: Fix insert method.
8734 * stl/bits/stl_iterator.h: Remove previous hack.
8735 * bits/std_streambuf.h (sbumpc): Correct increment/return oddness.
8736 * bits/std_sstream.h: Fix more regressions.
8737 * testsuite/27/27stringbuf.C: Add (almost) complete tests.
8738
8739 1998-12-09 Benjamin Kosnik <bkoz@loony.cygnus.com>
8740
8741 * bits/basic_string.h: Tweak.
8742
8743 * stl/bits/stl_iterator.h: Specialize iterator_traits for int so
8744 that string::append can be instantiated. HACK--checkin
8745 basic_string::iterator class.
8746
8747 1998-12-07 Benjamin Kosnik <bkoz@haight.constant.com>
8748
8749 * bits/std_sstream.h: Tweak.
8750 * bits/sstream.tcc: Tweak ctors.
8751
8752 FIXME invalid friend defs. . WHERE ARE THEY??
8753
8754 * bits/sbuf_iter.h (istreambuf_iterator::equal): Change to new
8755 names for basic_streambuf data members.
8756
8757 * bits/std_streambuf.h: Add getloc() initialization bits.
8758 basic_streambuf(): Initialize with global locale data.
8759 imbue(): Set _M_init.
8760
8761 * bits/std_streambuf.h(seekoff, seekpos): Complete with invalid
8762 stream pos == pos_type(off_type(-1)).
8763 in_avail(): Complete default implementation.
8764 snextc, sbumpc, sputbackc, sungetc, sputc, setg, xsputn,
8765 underflow, uflow, xsgetn, showmany, sync: Ditto.
8766
8767 * bits/std_streambuf.h: _M_snextc_helper(): Remove.
8768
8769 * bits/streambuf.tcc (sputbackc): Temporarily remove, need to
8770 re-populate with in-line member functions that are too big. Add
8771 initialization for _M_init.
8772
8773 1998-12-03 Benjamin Kosnik <bkoz@cygnus.com>
8774
8775 * bits/sstream.tcc: Convert _Allocator to _Alloc. Add typedefs
8776 for basic_string and basic_streambuf. Scope _IO_buf_* pointers to
8777 streambuf_type.
8778
8779 * src/stdstreams.cc (std): Disable wchar_t instantiations.
8780
8781 * bits/c++config.h (_G_DEPRICATED): Add.
8782 (_G_USE_WCHAR_T): Add.
8783 * bits/std_streambuf.h: Radical reconstruction of basic_streambuf.
8784 Take out _Streambuf_base. Put _IO_FILE data member in basic_filebuf.
8785 * bits/streambuf.tcc (sputbackc): Remove ctor anti-def, Tweak.
8786 * bits/std_fstream.h: Add comment for implementation.
8787 * src/streambuf.cc: Remove.
8788 * src/Makefile.in: Remove streambuf.lo.
8789 * src/misc-inst.cc: Tweak.
8790
8791 1998-12-02 Benjamin Kosnik <bkoz@cygnus.com>
8792
8793 * bits/std_sstream.h: Add const_cast to rdbuf returns.
8794 * testsuite/27stringstream.C: Modify.
8795
8796 1998-11-25 Benjamin Kosnik <bkoz@haight.constant.com>
8797
8798 * src/Makefile.in (libstdc___la_OBJECTS): Add streambuf.lo.
8799 (libstdc___la_SOURCES): Ditto.
8800
8801 * bits/streambuf.tcc: Tweak.
8802
8803 * src/streambuf.cc: New file, add out-of-line definitions for
8804 _Streambuf_base.
8805
8806 * src/misc-inst.cc: Remove _Streambuf_base instantiations.
8807 Comment out wchar_t versions of the buffer instantiations, for now.
8808
8809 * bits/std_streambuf.h: Wrap libio.h include with extern "C".
8810 Remove template wrapper around _Streambuf_base.
8811 Move IO_* data members into _Streambuf_base.
8812 Move _Streambuf_base members into streambuf.tcc.
8813
8814 * bits/c++config.h (_G_USE_LIBIO): Enable.
8815
8816 1998-11-02 Nathan Myers <ncm@cantrip.org>
8817
8818 * CHECKLIST: downgrade iterator implementations
8819 * DESIGN: fill out notes about unimplemented features
8820
8821 1998-10-31 Nathan Myers <ncm@cantrip.org>
8822
8823 * CHECKLIST: itemized list of all interfaces, and status of each.
8824
8825 1998-10-30 Nathan Myers <ncm@cantrip.org>
8826
8827 * RELEASE-NOTES: add notes about optional includes, linking, running
8828 * src/Makefile.am: handle header installs properly
8829 * src/Makefile.in: regenerate from new src/Makefile.am
8830
8831 1998-10-30 Benjamin Kosnik <bkoz@loony.cygnus.com>
8832
8833 * bits/basic_string.h: Revert npos pending ciso646.
8834 * src/Makefile.am: Revert CXX flags for now.
8835 * src/Makefile.in: Ditto.
8836
8837 1998-10-30 Brendan Kehoe <brendan@cygnus.com>
8838
8839 * bits/std_sstream.h: Re-order ctors to put base before member
8840 inits.
8841
8842 1998-10-30 Ryszard Kabatek <kabatek@chemie.uni-halle.de>
8843
8844 * stl/bits/std_memory.h: Fix typo.
8845
8846 1998-10-30 Nathan Myers <ncm@cantrip.org>
8847
8848 * src/string[A-Z]+.cc: change back to include "string.cc".
8849 * src/Makefile.am: revert filename changes. We need a different
8850 way to keep filenames in std/ from confusing Make.
8851 * bits/basic_string.h: define _S_max_size right, return it from
8852 string::max_size(); churn definition of npos again.
8853 * bits/string.tcc: fix _S_frob_size to avoid uint overflow.
8854 * bits/ios.cc: remove #ifdef on ios_base locale member initialization
8855 * BUGS: clear cruft.
8856 * C++STYLE: Touchup for release.
8857 * CHECKLIST: Touchup for release.
8858 * DESIGN: New file.
8859 * LICENSE.STD: Add requirement to retain copyrights and to provide
8860 the license with any copies.
8861 * README: Update for release.
8862 * TODO: Minor touchup for release.
8863 * RELEASE-NOTES: prepare for release
8864
8865 1998-10-29 Ulrich Drepper <drepper@cygnus.com>
8866
8867 * src/string[A-Z]+.cc: Include stdstring.cc, not string.cc.
8868
8869 * src/Makefile.am (CXXFLAGS): Define _GNU_SOURCE.
8870
8871 * src/Makefile.am (CXXLINK): New variable. Make sure we don't use
8872 CXX to generate the shared object.
8873
8874 * src/Makefile.am (headers): Remove duplicated char_traits.h.
8875
8876 1998-10-29 Brendan Kehoe <brendan@cygnus.com>
8877
8878 * bits/basic_string.h (basic_string<>::max_size): Subtract 1, not
8879 2, from npos, solving infinite loop problems.
8880
8881 1998-10-29 18:41 Ulrich Drepper <drepper@cygnus.com>
8882
8883 * src/Makefile.am: Add rules to install headers.
8884
8885 1998-10-29 Nathan Myers <ncm@cantrip.org>
8886
8887 * bits/std_ostream.h: Remove #ifdef on operator<< for long double
8888 * bits/ostream.tcc: Remove #ifdef on operator<< for long double
8889 * shadow/libio.h:
8890 * shadow/unistd.h:
8891 * shadow/bits/wrap_libio.h:
8892 * shadow/bits/wrap_unistd.h: New files.
8893
8894 1998-10-29 Brendan Kehoe <brendan@cygnus.com>
8895
8896 * bits/ostream.tcc (operator<<): Wrap with #ifdef
8897 _G_HAVE_LONG_DOUBLE_IO, to match bits/std_ostream.h.
8898
8899 1998-10-29 Ulrich Drepper <drepper@cygnus.com>
8900
8901 * src/Makefile.am: Add temporarily rules to make sure misc-inst.cc
8902 is not compiled with -fno-implicit-templates in effect.
8903
8904 * src/Makefile.am (EXTRA_SOURCES): Add string.cc and wstring.cc here.
8905 (libstdc___la_SOURCES): Add all the string*.cc and wstring*.cc files.
8906 * src/stringADDCS.cc: Wrapper around string.cc to define individual
8907 function.
8908 * src/stringADDPS.cc: Likewise.
8909 * src/stringADDSC.cc: Likewise.
8910 * src/stringADDSP.cc: Likewise.
8911 * src/stringADDSS.cc: Likewise.
8912 * src/stringBIST.cc: Likewise.
8913 * src/stringBOST.cc: Likewise.
8914 * src/stringCHTR.cc: Likewise.
8915 * src/stringEQPS.cc: Likewise.
8916 * src/stringEQSP.cc: Likewise.
8917 * src/stringEQSS.cc: Likewise.
8918 * src/stringEXTRA.cc: Likewise.
8919 * src/stringGEPS.cc: Likewise.
8920 * src/stringGESP.cc: Likewise.
8921 * src/stringGESS.cc: Likewise.
8922 * src/stringGETLI.cc: Likewise.
8923 * src/stringGTPS.cc: Likewise.
8924 * src/stringGTSP.cc: Likewise.
8925 * src/stringGTSS.cc: Likewise.
8926 * src/stringINSER.cc: Likewise.
8927 * src/stringLEPS.cc: Likewise.
8928 * src/stringLESP.cc: Likewise.
8929 * src/stringLESS.cc: Likewise.
8930 * src/stringLTPS.cc: Likewise.
8931 * src/stringLTSP.cc: Likewise.
8932 * src/stringLTSS.cc: Likewise.
8933 * src/stringMAIN.cc: Likewise.
8934 * src/stringNEPS.cc: Likewise.
8935 * src/stringNESP.cc: Likewise.
8936 * src/stringNESS.cc: Likewise.
8937 * src/stringSCOPY.cc: Likewise.
8938 * src/wstringADDCS.cc: Wrapper around wstring.cc to define individual
8939 functions.
8940 * src/wstringADDPS.cc: Likewise.
8941 * src/wstringADDSC.cc: Likewise.
8942 * src/wstringADDSP.cc: Likewise.
8943 * src/wstringADDSS.cc: Likewise.
8944 * src/wstringBIST.cc: Likewise.
8945 * src/wstringBOST.cc: Likewise.
8946 * src/wstringCHTR.cc: Likewise.
8947 * src/wstringEQPS.cc: Likewise.
8948 * src/wstringEQSP.cc: Likewise.
8949 * src/wstringEQSS.cc: Likewise.
8950 * src/wstringEXTRA.cc: Likewise.
8951 * src/wstringGEPS.cc: Likewise.
8952 * src/wstringGESP.cc: Likewise.
8953 * src/wstringGESS.cc: Likewise.
8954 * src/wstringGETLI.cc: Likewise.
8955 * src/wstringGTPS.cc: Likewise.
8956 * src/wstringGTSP.cc: Likewise.
8957 * src/wstringGTSS.cc: Likewise.
8958 * src/wstringINSER.cc: Likewise.
8959 * src/wstringLEPS.cc: Likewise.
8960 * src/wstringLESP.cc: Likewise.
8961 * src/wstringLESS.cc: Likewise.
8962 * src/wstringLTPS.cc: Likewise.
8963 * src/wstringLTSP.cc: Likewise.
8964 * src/wstringLTSS.cc: Likewise.
8965 * src/wstringMAIN.cc: Likewise.
8966 * src/wstringNEPS.cc: Likewise.
8967 * src/wstringNESP.cc: Likewise.
8968 * src/wstringNESS.cc: Likewise.
8969 * src/wstringSCOPY.cc: Likewise.
8970 * src/string.cc: Remove now unneeded #defines now.
8971
8972 1998-10-29 Nathan Myers <ncm@cantrip.org>
8973
8974 * bits/locfacets.tcc: Define num_put::put(... const void*), improve
8975 integer formatting.
8976 * bits/ostream.tcc: Delete cruft, rewrite various op<< as members,
8977 add definitions for double, long double, const void*.
8978 * bits/std_ostream.h: Move op<<'s back into class ostream,
8979 define some in-line.
8980 * bits/string.tcc: fix unnecessary-copying bug in op[], typos in
8981 string construction from input iterators that Brendan reported.
8982
8983
8984 1998-10-28 Brendan Kehoe <brendan@cygnus.com>
8985
8986 * stl/bits/stl_pair.h (op!=, op>, p<=, op>=): Add missing definitions.
8987
8988 * bits/valarray_meta.h (class _Constant): Move declaration to the
8989 top, so the rest of the file can grok it.
8990 (_ApplyBinaryFunction::operator[]): Add missing parenthesis.
8991
8992 * bits/std_sstream.h (basic_ostringstream::str): Fix typo of extra
8993 semicolon.
8994 (basic_stringstream::str, both instances): Likewise.
8995
8996 1998-10-28 Nathan Myers <ncm@cantrip.org>
8997
8998 * bits/locfacets.h: fix num_put<>::falsename()
8999 * bits/locfacets.tcc: fix _Format_cache<>::_M_populate bool name init
9000 * testsuite/27/27octfmt.C, testsuite/27/27octfmt.C: new tests
9001 * bits/locfacets.tcc: touch up _S_group_digits.
9002 * src/misc-inst.cc: adjust _S_group_digits insts to match.
9003
9004 1998-10-27 Nathan Myers <ncm@cantrip.org>
9005
9006 * stl/bits/stl_config.h: Turn off long long support, for now.
9007 * src/locale-inst.cc: Instantiate num_put<> only for
9008 ostreambuf_iterator, num_get only for istreambuf_iterator.
9009 * src/misc-inst.cc: Delete duplicate locale-related instantiations,
9010 add lots of new instantiations for num_put support function templates;
9011 remove junk about __match_parallel for ostreambuf_iterator.
9012
9013 1998-10-27 Nathan Myers <ncm@cantrip.org>
9014
9015 * bits/locfacets.tcc: Make num_put's digit grouping work.
9016 * bits/string.tcc: More uglification.
9017 * src/ios.cc: initialize format cache right
9018
9019 1998-10-26 Nathan Myers <ncm@cantrip.org>
9020
9021 * bits/basic_string.h: Uglify more names.
9022 * bits/fstream.tcc: Rewrite some filebut output handling.
9023 * bits/ios_base.h: Cosmetic.
9024 * bits/locfacets.h: Changes to _Format_cache for support of num_put.
9025 Also, specialize its default ctor for optimal default case.
9026 #ifdef out "long long" prototypes for now.
9027 * bits/locfacets.tcc: Do complete, optimized num_put<>::do_put
9028 implementation for integer types. (Still needs optimized
9029 std::copy() applied to ostreambuf_iterator to be optimal.)
9030 * bits/ostream.tcc: Write operator<< for long, bool types.
9031 Make other operators<< non-members, per spec. (Many still
9032 not implemented.) Identify those that fail to create a sentry.
9033 * bits/sbuf_iter: Cosmetic.
9034 * bits/std_fstream.h: Add some filebuf members.
9035 * bits/std_locale.h: Include <limits> for use in bits/locfacets.h
9036 * bits/std_ostream.h: Make member operators<< global, per spec.
9037 (Should do the same in std_istream.h.)
9038 * bits/std_string.h: Include <limits> for use in bits/locfacets.h
9039 * bits/string.tcc: Uglify names
9040 * shadow/bits/std_cstdlib.h: Optimize std::div and std::ldiv.
9041 * src/ios.cc: Specialize _Format_cache<> for char and wchar_t,
9042 for optimal default behavior.
9043
9044 1998-10-26 Benjamin Kosnik <bkoz@loony.cygnus.com>
9045
9046 * src/Makefile.in (libstdc___la_SOURCES): Add misc-inst.cc again.
9047
9048 1998-10-21 Nathan Myers <ncm@cantrip.org>
9049
9050 * src/locale.cc: make ctype operations actually work for glibc
9051 * CHECKLIST: add a comprehensive (i.e. huge) implementation
9052 checklist of stdlib facilities. Not filled in yet.
9053
9054 1998-10-20 Nathan Myers <ncm@cantrip.org>
9055
9056 * bits/string.tcc: fix patching NULs on string ends.
9057
9058 1998-10-19 Nathan Myers <ncm@cantrip.org>
9059
9060 * bits/std_iosfwd.h: eliminate "basic_" prefix on streambuf
9061 iterator forward declarations
9062 * bits/sbuf_iter.h: eliminate default template argument definitions
9063 on streambuf iterators (rely on <iosfwd> decls).
9064 * TODO: add note about lazy facet construction
9065 * bits/basic_ios.h: hit operator void* again. This should be the
9066 last time we need to touch it.
9067 * bits/basic_ios.h: copyfmt now returns *this.
9068 * bits/basic_string.h: fix npos again. npos cannot be defined as zero.
9069 * bits/basic_string.h: put back overloaded constructors; adjust
9070 behavior for default allocator on copy constructor.
9071 * bits/char_traits.h: make not_eof return correct type.
9072 * bits/loccore.h: remove call to bits/std_stdexcept.h; subincludes
9073 cannot be in non-standard headers or we get include loops (bad)
9074 * bits/loccore.h: delete ifdef'd out workarounds for old compiler bugs.
9075 * bits/loccore.h: add apparatus to support lazy construction of
9076 facets.
9077 * bits/locfacets.tcc: Uglify names in __match_parallel decl.
9078 * bits/std_ios.h: add include of <typeinfo> to get bad_cast for
9079 locale use_facet<> failure.
9080 * bits/std_locale.h: same.
9081 * bits/std_string.h: same.
9082 * bits/std_stdexcept.h: change exception member __msg from a
9083 reference to a regular object.
9084 * bits/string.tcc: add pasting a NUL on the end of strings after
9085 each operation. We had already left room for it, but previously
9086 plugged it only on a call to c_str(), but the WG changed the
9087 requirement when I wasn't looking. (Can't leave them alone for
9088 a second without they break something else.)
9089 * bits/valarray_meta.h: add Gaby's changes from 981018.
9090 * src/locale.cc: add new type _Bad_use_facet to be thrown on
9091 failure of use_facet<>().
9092 * src/stdexcept.cc: remove pragma, remove bkoz's #if 0,
9093 comment out leftover member definitions
9094
9095 1998-10-16 Ulrich Drepper <drepper@cygnus.com>
9096
9097 * string/Makefile.am: Revert last change.
9098 * math/Makefile.am: Likewise.
9099
9100 1998-10-15 Benjamin Kosnik <bkoz@haight.constant.com>
9101
9102 * bits/std_sstream.h: Fix typo.
9103
9104 1998-10-15 Benjamin Kosnik <bkoz@haight.constant.com>
9105
9106 * src/Makefile.am (libstdc___la_SOURCES): Add misc-inst.cc.
9107
9108 * bits/std_sstream.h: Add typedefs, member definitions. Clean.
9109 * bits/std_stdexcept.h: Remove.
9110
9111 1998-10-15 Benjamin Kosnik <bkoz@haight.constant.com>
9112
9113 * src/misc-inst.cc: Tweak again.
9114
9115 * bits/std_sstream.h: Move out-of-line definitions to sstream.tcc.
9116 * bits/sstream.tcc: New file.
9117
9118 1998-10-15 Ulrich Drepper <drepper@cygnus.com>
9119
9120 * configure.in: Test for machine/param.h, sys/machine.h and fp.h.
9121 Don't run AC_C_BIGENDIAN if machine/param.h or sys/machine.h are
9122 available.
9123
9124 * math/mathconf.h: Include sys/machine.h, machine/param.h and fp.h
9125 if available.
9126 (INFINITE_P): Use IS_INF macro if available.
9127
9128 1998-10-15 Ulrich Drepper <drepper@cygnus.com>
9129
9130 * math/Makefile.am (EXTRA_LTLIBRARIES): Renamed from
9131 noinst_LTLIBRARIES.
9132 * string/Makefile.am: Likewise.
9133
9134 1998-10-15 Ulrich Drepper <drepper@cygnus.com>
9135
9136 * configure.in (AC_CHECK_FUNCS): Add finite, qfinite, fpclass, and
9137 qfpclass.
9138 (AC_CHECK_HEADERS): Add machine/endian.h. If no header specifying
9139 endianess is available run AC_C_BIGENDIAN.
9140
9141 * math/clog10l.c: Add ugly hack around bug in Irix 6.2 header until
9142 fixincludes is fixed.
9143 * math/clogl.c: Likewise.
9144 * math/csqrtl.c: Likewise.
9145 * math/mycabsl.c: Likewise.
9146
9147 * math/mathconf.h: Include machine/endian.h if possible. If no
9148 header describing endianess is available rely on WORDS_BIGENDIAN
9149 macro.
9150 (FINITE_P, FINITEF_P, FINITEL_P): Use finite functino if available.
9151 (INFINITE_P, INFINITEF_P, INFINITEL_P): Use fpclass function if
9152 available.
9153
9154 * src/complex.cc (polar): Don't use sincos on OSF machines.
9155
9156 1998-10-09 Benjamin Kosnik <bkoz@loony.cygnus.com>
9157
9158 * src/locale-inst.cc: Don't instantiate time_get for
9159 ostreambuf_iterators as time_get::do_get_weekday and
9160 time_get::do_get_monthname use __match_parallel, which is illegal
9161 for ostreambuf_iterators to use, as they don't have operator== or
9162 operator!=.
9163 * bits/std_stdexcept.h: Add dtor definitions.
9164 Use stl/bits/std_stdexcept.h instead of this file?
9165 * bits/sbuf_iter.h : Tweak.
9166 * src/misc-inst.cc: Tweak.
9167
9168 1998-10-09 Benjamin Kosnik <bkoz@haight.constant.com>
9169
9170 * bits/std_stdexcept.h: New file.
9171 * src/stdexcept.cc: Define the following:
9172 logic_error::what()
9173 runtime_error::what()
9174
9175 * src/misc-inst.cc: New file.
9176 * src/Makefile.in (libstdc___la_SOURCES): Add misc-inst.cc.
9177 (libstdc___la_OBJECTS): Add misc-inst.lo.
9178
9179 * bits/basic_string.h: Disable non-standard ctor declarations.
9180 * bits/string.tcc: Disable definitions as well.
9181 * src/string.cc: Disable <ios> dependancies.
9182 * bits/sbuf_iter.h (std): Add default to template parameter for
9183 ostreambuf_iterator and istreambuf_iterator.
9184 * bits/std_iosfwd.h: Change istreambuf_iterator to
9185 basic_istreambuf_iterator. Likewise for ostreambuf.
9186 * bits/locfacets.tcc (__match_parallel): Fix typo.
9187 * src/ios.cc (imbue): Remove the _G_HAVE_LOCALE guards around
9188 ios_base::imbue.
9189 * bits/std_streambuf.h: Define _Streambuf_base::getloc().
9190 * bits/std_istream.h: Define the following:
9191 get (basic_streambuf<char_type,_Traits>& __sb, char_type __delim)
9192 get (char_type* __s, streamsize __n, char_type __delim);
9193 getline (char_type* __s, streamsize __n, char_type __delim)
9194 * bits/loccore.h : FIXME friend template code for use_facet.
9195 Add std_stdexcept.h include so that range_error will be defined.
9196 Add explicit conversion to string for range_error throws. (HACK?)
9197
9198 1998-10-8 Ulrich Drepper <drepepr@cygnus.com>
9199
9200 * configure.in: Check for sincos, sincosf, and sincosl.
9201 * src/complex.cc (polar): Use sincos if available.
9202
9203 * bits/c++config.h: Fix hack to get LONG_LONG* definitions on Linux.
9204 * stl/bits/std_limits.h: Include bits/c++config.h. HACK!!!
9205
9206 * math/clog10.c: Fix typo (FP_INIFITE_P -> INFINITE_P).
9207
9208 * math/cpow.c: Use c_log, not clog.
9209 * math/cpowf.c: Likewise.
9210 * math/cpowl.c: Likewise.
9211
9212 * math/cexp.c: Remove unused fpclassify calls. Use FINITE_P instead
9213 of isfinite call.
9214
9215 * math/mathconf.h (FINITE_P, FINITEF_P, FINITEL_P): Define using
9216 isfinite macro if it is available.
9217 (INFINITE_P, INFINITEF_P, INFINITEL_P): Define using isinf macro.
9218
9219 * math/ccosf.c: Use appropriate test macros for this type.
9220 * math/ccoshf.c: Likewise.
9221 * math/ccoshl.c: Likewise.
9222 * math/ccosl.c: Likewise.
9223 * math/cexpf.c: Likewise.
9224 * math/cexpl.c: Likewise.
9225 * math/clog10f.c: Likewise.
9226 * math/clog10l.c: Likewise.
9227 * math/clogf.c: Likewise.
9228 * math/clogl.c: Likewise.
9229 * math/csinf.c: Likewise.
9230 * math/csinhf.c: Likewise.
9231 * math/csinhl.c: Likewise.
9232 * math/csinl.c: Likewise.
9233 * math/csqrtf.c: Likewise.
9234 * math/csqrtl.c: Likewise.
9235 * math/ctanf.c: Likewise.
9236 * math/ctanhf.c: Likewise.
9237 * math/ctanhl.c: Likewise.
9238 * math/ctanl.c: Likewise.
9239
9240 1998-10-06 Benjamin Kosnik <bkoz@bliss.nabi.net>
9241
9242 * bits/basic_ios.h: Fix previous change.
9243
9244 1998-10-06 Benjamin Kosnik <bkoz@bliss.nabi.net>
9245
9246 * bits/basic_ios.h: Add const_cast<basic_ios&>
9247 (operator void*): As per 5.2.9 p 2, make sure static_cast is
9248 well-formed.
9249 * bits/char_traits.h: No _CharT for specialization, change to 0.
9250 * bits/basic_string.h: As per 9.4.2 p4, initialize with
9251 constant-initializer.
9252 * bits/locfacets.tcc: Add template parameter to initialization list.
9253
9254 1998-10-02 Benjamin Kosnik <bkoz@loony.cygnus.com>
9255
9256 * bits/basic_string.h: Should just be <, not <=.
9257
9258 1998-10-01 Benjamin Kosnik <bkoz@bliss.nabi.net>
9259
9260 * bits/string.tcc (compare): Fix for strings that are similar, but
9261 not the same length.
9262
9263 1998-09-04 Brendan Kehoe <brendan@cygnus.com>
9264
9265 * bits/c++config.h: For __linux__, define _GNU_SOURCE. This is
9266 required for us to get LONG_LONG_{MIN,MAX} out of gcc's limits.h.
9267 We can't check for __GLIBC__ here, since this header can be read
9268 before any system one (that would lead to features.h) being used.
9269
9270 * stl/bits/stl_config.h (__STL_LONG_LONG): Re-enabled
9271
9272 * stl/bits/std_limits.h [__STL_LONG_LONG]: Fix usage to use
9273 LONG_LONG_MIN, LONG_LONG_MAX, and ULONG_LONG_MAX.
9274
9275 * stl/bits/stl_config.h: Don't do __STL_LONG_LONG, it uses
9276 LONGLONG_{MIN,MAX} which I can't find the origin of.
9277
9278 1998-09-03 Brendan Kehoe <brendan@cygnus.com>
9279
9280 * stl/bits/stl_iterator.h: Add extern decl of cin for now; where
9281 should this come from, if not iostream.h?
9282 (class istream_iterator): Make the new operator!= a friend also.
9283
9284 * stl/bits/stl_config.h: Define __STL_HAS_WCHAR_T,
9285 __STL_MEMBER_TEMPLATE_CLASSES, and __STL_LONG_LONG. Don't include
9286 _G_config.h like the egcs one does.
9287
9288 1998-09-01 Brendan Kehoe <brendan@cygnus.com>
9289
9290 * bits/string.tcc: Call `_M_destroy' instead of `destroy'.
9291
9292 * bits/valarray_meta.h: Throughout, rename _Expr typedefs to be
9293 _Expr1 (or _Expr_def if it's taken), and change definitions.
9294 Avoids redecl of the template parm.
9295
9296 * bits/string.tcc (basic_string copy ctor): Fix typo in declaration.
9297 (operator>>): Initialize __ERROR with ios_base::goodbit, not 0.
9298
9299 * bits/std_streambuf.h (_POSIX_SOURCE): Only define if it's not
9300 already done.
9301
9302 * src/locale-inst.cc: New file, **TOTAL HACK**. There has GOT to
9303 be a better way to do this.
9304
9305 * src/stlinst.cc: New file.
9306
9307 * BUGS: New file, with various discovered bugs that need to be
9308 fixed.
9309
9310 * Makefile.in, math/Makefile.in, string/Makefile.in,
9311 src/Makefile.in: Reran automake.
9312
9313 Workarounds, these may not all be the final fixes:
9314
9315 * bits/basic_ios.h (class basic_ios): Make _M_strbuf be protected,
9316 not private, for basic_istream::get() in std_istream.h to be able
9317 to use it.
9318 (basic_ios::operator void*): Don't use static_cast for the false
9319 case.
9320 (basic_ios::copyfmt): Fix `rhs.except' to be `rhs.exceptions ()'.
9321 This appears to have been in sep94, but didn't get corrected
9322 afterwards.
9323
9324 * bits/basic_string.h (npos): Don't init here.
9325 * bits/string.tcc: Instead, do initialization here, to -1 instead
9326 of the size_type destructor.
9327
9328 * src/traits.cc, src/wtraits.cc: New files.
9329 * bits/char_traits.h: For char_traits<char> and
9330 char_traits<wchar_t>, declare static, but define over in the src
9331 files.
9332
9333 * bits/gslice.h: Comment out forward decls of _Array, valarray,
9334 gslice_array, and _GsliceExpression.
9335
9336 * bits/std_cstdio.h [__sparc__ && __svr4__]: #undef all of
9337 clearerr, feof, ferror, getc, getchar, putc, putchar, stdin,
9338 stdout, and stderr. Note we do get unresolved refs to stdin, but
9339 that'll get fixed by the "true" solution.
9340
9341 * bits/std_ios.h: Include <bits/std_streambuf.h> to get the
9342 definition of basic_streambuf.h, which is used in basic_ios.h to
9343 call pubimbue.
9344
9345 * bits/std_streambuf.h: Don't include libio.h for now.
9346 (class basic_streambuf): Define missing methods pubimbue and
9347 getloc.
9348
9349 * src/Makefile.am (libstdc___la_SOURCES): Add stdexcept.cc,
9350 ios.cc, os_raw.cc, stdstreams.cc, locale.cc, localename.cc,
9351 locale-inst.cc, stlinst.cc, traits.cc, wtraits.cc.
9352
9353 * src/ios.cc: Instantiate basic_ios<char> and basic_ios<wchar_t>.
9354
9355 * src/locale.cc: Come up with munged versions of _S_toupper,
9356 _S_tolower, and _S_table instead of the glibc-specific ones, so
9357 they're at least defined, if not necessarily usable. The glibc
9358 ones on any other system will yield unresolved refs to
9359 __ctype_{b,toupper,tolower}.
9360
9361 * src/string.cc: Define all of ADDCS, ADDPS, et al. Add
9362 basic_ios, basic_istream, basic_ostream. Don't do char_traits
9363 anymore cuz of the explicit specialization in char_traits.h.
9364 Also add _S_string_copy, but this doesn't fix it -- cf the BUGS
9365 file for the details.
9366
9367 * stl/bits/stl_algobase.h (equal): Fix to do `! (x==y)'.
9368 * stl/bits/stl_iterator.h (__distance): Likewise.
9369
9370 * stl/bits/stl_iterator.h: As with 8/18 set, define missing op!=,
9371 op>, op<=, and op>= for reverse_iterator. Also add op!= for
9372 istream_iterator.
9373
9374 1998-08-26 Brendan Kehoe <brendan@cygnus.com>
9375
9376 * bits/string.tcc (basic_string::compare (const char*)): Fix to
9377 return 0, not 1.
9378
9379 1998-08-25 Brendan Kehoe <brendan@cygnus.com>
9380
9381 This should really be fixed with __asm__ directives renaming the
9382 symbol, but keeping the function.
9383 * math/clogf.c (c_logf): Renamed from `clogf'.
9384 * math/clogl.c (c_logl): Renamed from `clogl'.
9385 * math/complex-stub.h (c_logf, c_logl): Change decls.
9386
9387 * bits/locfacets.h (class _Numeric_get): For friend decls, rename
9388 _CharT and _InIter parms, since they duplicate the enclosing ones.
9389
9390 1998-08-19 Brendan Kehoe <brendan@cygnus.com>
9391
9392 Deal with conflict of the iostreams `clog' and our internal
9393 complex number `clog'.
9394 * src/complex.cc: Call `c_log' instead of `clog'.
9395 * math/clog.c (c_log):: Renamed from clog.
9396 * math/complex-stub.h (c_log): Renamed from clog decl.
9397
9398 * bits/locfacets.h (class _Numeric_get): Tweak fwd decls of the
9399 get/put classes.
9400 (num_put::put): #if 0 long long version, since we don't declare or
9401 define the long long version of do_put.
9402
9403 1998-08-18 Nathan Myers <ncm@cantrip.org>
9404
9405 * bits/basic_string.h: add basic_string<>::push_back(), fix return
9406 type of get_allocator (thanks to Ryszard Kabatek).
9407 * bits/char_traits.h: make init order of fpos<> members
9408 match decl order.
9409 * bits/ios_base.h: fix decls of ios_base bitmask & enum types, add
9410 flags _S_fd_in etc. for special filebuf ctor.
9411 * bits/locfacets.h: make _Numeric_get and _Format_cache public
9412 to work around problems in friend declarations.
9413 * bits/locfacets.tcc: qualify _S_get_cache in num_get<>::get(..bool&),
9414 fix random type errors & typos
9415 * bits/std_fstream.h: major refitting to bypass libio (for now),
9416 instrument to use bits/fstream.tcc template definitions
9417 * bits/std_iosfwd.h: mess with wrappers
9418 * bits/std_istream.h: remove meaningless comment
9419 * bits/std_ostream.h: instrument to work with ostream.tcc.
9420 * bits/std_streambuf.h: instrument to work with streambuf.tcc
9421 * bits/fstream.tcc: template defs for <fstream>
9422 * bits/ostream.tcc: template defs for <ostream>
9423 * bits/streambuf.tcc: template defs for <streambuf>
9424 * bits/os_raw.h: thin OS interface wrapper, to bypass libio (for now).
9425 * Delete .cc files, replace with bits/*.tcc
9426 src/fstream.cc
9427 src/istream.cc
9428 src/ostream.cc
9429 src/streambuf.cc
9430 * Add files:
9431 src/os_raw.cc: thin interface to OS, to bypass libio (for now).
9432 src/stdstreams.cc: cout, cin, etc. definitions
9433 (these still need work: must be init'd before user statics.)
9434
9435
9436 1998-08-18 Brendan Kehoe <brendan@cygnus.com>
9437
9438 Sent to SGI before checkin:
9439 * stl/bits/stl_vector.h (operator!=, operator>, operator<=,
9440 operator>=): Define.
9441 * stl/bits/stl_bvector.h (vector<bool>::flip): Define method.
9442 * stl/bits/stl_deque.h (operator!=, operator>, operator<=,
9443 operator>=): Define.
9444 (operator==, operator<): Add inline.
9445 * stl/bits/stl_map.h (operator!=, operator<, operator<=,
9446 operator>=): Define.
9447 * stl/bits/stl_multimap.h (operator!=, operator<, operator<=,
9448 operator>=): Define.
9449 * stl/bits/stl_list.h (operator!=, operator<, operator<=,
9450 operator>=): Define.
9451 * stl/bits/stl_set.h (operator!=, operator<, operator<=,
9452 operator>=): Define.
9453 * stl/bits/stl_multiset.h (operator!=, operator<, operator<=,
9454 operator>=): Define.
9455
9456 * bits/std_valarray.h (_Shift_left, _Shift_right): Inherit from
9457 unary_function.
9458
9459 1998-08-15 Nathan Myers <ncm@cantrip.org>
9460
9461 * bits/ios_base.h: change nominal bitmask and enum types to real enums
9462 * bits/locfacets.h: make _Format_cache bool names usable by num_get
9463 * bits/locfacets.tcc: make num_get<>::get(... bool&) use _Format_cache
9464 * bits/std_fstream.h: minor cleanups: ctors delegate to open()
9465 * bits/std_iosfwd.h: more bitmask changes, for ios_base::iostate
9466 * bits/std_sstream.h: formatting cleanups
9467
9468 1998-08-14 Nathan Myers <ncm@cantrip.org>
9469
9470 * bits/locfacets.tcc: implement num_get<>::do_get(..., bool&)
9471 * bits/locfacets.tcc: implement time_get<>::do_get_weekday
9472 * bits/locfacets.tcc: implement time_get<>::do_get_monthname
9473 * bits/locfacets.h: fix missing argument in do_get_monthname
9474 (this is a bug in the standard, ref. 36 in my list.)
9475 * bits/locfacets.h: make month and day name caches mutable
9476 * bits/locfacets.tcc: various typos in get() functions
9477 * bits/sbuf_iter.h: fix omission in istreambuf_iterator::op++().
9478 * bits/std_streambuf.h: fix typo in sgetn (Brendan)
9479
9480 1998-08-12 Nathan Myers <ncm@cantrip.org>
9481 * move streambuf iterators to bits/sbuf_iter.h
9482 * optimize streambuf iterators
9483 * begin generalizing streambuf
9484 * begin implementing num_get<>::get (starting with bool)
9485 * patch stl/bits/stl_config.h so that relops operators are
9486 contained properly, out of the way.
9487
9488 1998-07-24 Nathan Myers <ncm@cantrip.org>
9489 * Fold in SGI 3.11 changes (uglified names, some algorithm
9490 improvements, very minor bug fixes.)
9491 * Uglify names elsewhere to match (s/_T/_Tp/).
9492 * Begin work on optimized streambuf
9493 * Put complex.cc in namespace std:: (thanks Martin)
9494
9495 1998-07-17 Nathan Myers <ncm@cantrip.org>
9496
9497 * bits/char_traits.h: add _Char_traits_match template.
9498 * bits/string.tcc: fix bugs in various find_last* members.
9499 * bits/basic_string.h: redeclare member _S_find.
9500 * stl/bits/stl_iterator.h: change member names in nonstandard
9501 templates bidirectional_reverse_iterator and
9502 random_access_reverse_iterator to match expected changes
9503 in upstream source.
9504 * src/string.cc: fix definitions of stream operators.
9505
9506 1998-07-14 16:06 Ulrich Drepper <drepper@cygnus.com>
9507
9508 * Makefile.am (SUBDIRS): Add string.
9509
9510 * configure.in: Test for long double functions separately. Test for
9511 ISO C 89 float functions. Test for endian.h and sys/isa_defs.h.
9512 Generate string/Makefile.
9513
9514 * bits/c++config.h: Define mbstate_t for Solaris.
9515
9516 * bits/char_traits.h: Remove unused #if.
9517
9518 * bits/std_cwchar.h: Declare wide char string functions.
9519
9520 * m4/stringfcts.m4: New file.
9521
9522 * math/complex-stub.h: Declare nan.
9523 * math/nan.c: New file.
9524
9525 * math/mathconf.h: Hack around missing endian.h file.
9526 Handle missing NAN definition.
9527 Handle missing float math functions.
9528
9529 * src/Makefile.am (libstdc___la_LIBADD): Add libstring.la.
9530 (libstdc___la_LDFLAGS): Set version information.
9531
9532 * src/complexl.cc: Don't compile any code if no long double functions
9533 are available.
9534
9535 * string/Makefile.am: New file.
9536 * string/dummy.c: New file.
9537 * string/wmemchr.c: New file.
9538 * string/wmemcmp.c: New file.
9539 * string/wmemcpy.c: New file.
9540 * string/wmemmove.c: New file.
9541 * string/wmemset.c: New file.
9542
9543 1998-07-14 10:45 Ulrich Drepper <drepper@cygnus.com>
9544
9545 * configure.in: Make it work.
9546 * install-sh: New file.
9547 * missing: New file.
9548 * mkinstalldirs: New file.
9549 * m4/mathfcts.m4: New file.
9550 * math/Makefile.am: New file.
9551
9552 * bits/std_complex.h (conj): Mark specializations as inline.
9553
9554 * math/carg.c: New file.
9555 * math/cargf.c: New file.
9556 * math/cargl.c: New file.
9557 * math/mycabs.c: New file.
9558 * math/mycabsf.c: New file.
9559 * math/mycabsl.c: New file.
9560 * math/signbit.c: New file.
9561 * math/signbitf.c: New file.
9562 * math/signbitl.c: New file.
9563
9564 * math/ccos.c: Avoid ISO C 9x functionality.
9565 * math/ccosf.c: Likewise.
9566 * math/ccosh.c: Likewise.
9567 * math/ccoshf.c: Likewise.
9568 * math/ccoshl.c: Likewise.
9569 * math/ccosl.c: Likewise.
9570 * math/cexp.c: Likewise.
9571 * math/cexpf.c: Likewise.
9572 * math/cexpl.c: Likewise.
9573 * math/clog.c: Likewise.
9574 * math/clog10.c: Likewise.
9575 * math/clog10f.c: Likewise.
9576 * math/clog10l.c: Likewise.
9577 * math/clogf.c: Likewise.
9578 * math/clogl.c: Likewise.
9579 * math/cpow.c: Likewise.
9580 * math/cpowf.c: Likewise.
9581 * math/cpowl.c: Likewise.
9582 * math/csin.c: Likewise.
9583 * math/csinf.c: Likewise.
9584 * math/csinh.c: Likewise.
9585 * math/csinhf.c: Likewise.
9586 * math/csinhl.c: Likewise.
9587 * math/csinl.c: Likewise.
9588 * math/csqrt.c: Likewise.
9589 * math/csqrtf.c: Likewise.
9590 * math/csqrtl.c: Likewise.
9591 * math/ctan.c: Likewise.
9592 * math/ctanf.c: Likewise.
9593 * math/ctanh.c: Likewise.
9594 * math/ctanhf.c: Likewise.
9595 * math/ctanhl.c: Likewise.
9596 * math/ctanl.c: Likewise.
9597
9598 * math/complex-stub.h: New file.
9599
9600 * math/mathconf.h: New file.
9601
9602 * src/Makefile.am: New file.
9603
9604 * src/complex.cc: Use mathconf.h instead of complex.h.
9605 Don't use cabs, always use __mycabs.
9606
9607 1998-02-13 Brendan Kehoe <brendan@cygnus.com>
9608
9609 * iterator (class reverse_iterator): Do some tweaks to be in sync
9610 w/ the FDIS.