set_operators.cc: Just try to compile.
[gcc.git] / libstdc++-v3 / ChangeLog
1 2001-04-13 Gabriel Dos Reis <gdr@codesourcery.com>
2
3 * testsuite/23_containers/set_operators.cc: Just try to compile.
4 Mark as XFAIL.
5 * testsuite/23_containers/map_operators.cc: Same.
6
7 2001-04-12 Jason Merrill <jason_merrill@redhat.com>
8
9 * testsuite/lib/libstdc++.exp (libstdc++-dg-test): Prepend "./" to
10 output_file.
11 (dg-test): Revert rth's change.
12
13 2001-04-12 Nathan Sidwell <nathan@codesourcery.com>
14
15 * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Don't
16 terminate holding the mutex. Make sure size fits in EMERGENCY_OBJ_SIZE.
17
18 2001-04-12 Gabriel Dos Reis <gdr@codesourcery.com>
19
20 * testsuite/README: Add DejaGnu specific documentation.
21
22 2001-04-11 Benjamin Kosnik <bkoz@redhat.com>
23
24 * acinclude.m4: AC_CHECK_TOOL for expect.
25 * aclocal.m4: Regenerate.
26 * configure: Regenerate.
27 * testsuite/Makefile.am (RUNTEST): Use substituted.
28 (EXPECT): Same.
29
30 * configure.in: Remove xcompiling substitution.
31 * tests_flags.in (CROSS_LIB_PATH): Remove.
32 (xcompiling): Remove.
33 (CXX): Use substituted CXX.
34
35 2001-04-11 Richard Henderson <rth@redhat.com>
36
37 * testsuite/lib/libstdc++.exp: Specify path for output_file.
38
39 2001-04-08 Gabriel Dos Reis <gdr@codesourcery.com>
40
41 * include/bits/std_valarray.h(valarray<>::operator[]): Make
42 inline.
43
44 2001-04-06 Gabriel Dos Reis <gdr@codesourcery.com>
45
46 * testsuite/25_algorithms/equal.cc: New test.
47
48 2001-04-06 Joe Buck <jbuck@welsh-buck.org>
49
50 * stl_algobase.h (std::equal): avoid use of possibly-undefined
51 operator != (one line patch).
52
53 2001-04-06 Benjamin Kosnik <bkoz@redhat.com>
54
55 * include/backward/backward_warning.h: Re-enable.
56
57 2001-04-06 Benjamin Kosnik <bkoz@redhat.com>
58 Alexandre Oliva <aoliva@redhat.com>
59
60 * tests_flags.in (CROSS_LIB_PATH): Add as -B flag.
61
62 2001-04-06 Gabriel Dos Reis <gdr@codesourcery.com>
63
64 * include/c_std/bits/std_cmath.h: Get rid of C99 math macros.
65 * testsuite/26_numerics/c99_macros.cc: Add test.
66
67 2001-04-06 Phil Edwards <pme@sources.redhat.com>
68
69 * docs/html/faq/index.html: Update for 2.92, grab from RELEASE-NOTES.
70 * docs/html/faq/index.txt: Regenerated.
71
72 2001-04-06 Benjamin Kosnik <bkoz@redhat.com>
73
74 * include/backward/backward_warning.h: Temporarily disable until
75 g++ testsuite changes go in.
76 * tests_flags.in (CROSS_LIB_PATH): Add.
77
78 2001-04-05 Benjamin Kosnik <bkoz@redhat.com>
79
80 Warn when using backward headers.
81 * include/backward/algo.h: Include warning file.
82 * include/backward/vector.h: Same.
83 * include/backward/tree.h: Same.
84 * include/backward/tempbuf.h: Same.
85 * include/backward/strstream: Same.
86 * include/backward/streambuf.h: Same.
87 * include/backward/stream.h: Same.
88 * include/backward/stack.h: Same.
89 * include/backward/slist.h: Same.
90 * include/backward/set.h: Same.
91 * include/backward/rope.h:
92 * include/backward/queue.h: Same.
93 * include/backward/pair.h: Same.
94 * include/backward/ostream.h: Same.
95 * include/backward/new.h: Same.
96 * include/backward/multiset.h: Same.
97 * include/backward/multimap.h: Same.
98 * include/backward/map.h: Same.
99 * include/backward/list.h: Same.
100 * include/backward/iterator.h: Same.
101 * include/backward/istream.h: Same.
102 * include/backward/iostream.h:
103 * include/backward/iomanip.h:
104 * include/backward/heap.h: Same.
105 * include/backward/hashtable.h:
106 * include/backward/hash_set.h:
107 * include/backward/hash_map.h:
108 * include/backward/function.h:
109 * include/backward/fstream.h:
110 * include/backward/deque.h:
111 * include/backward/defalloc.h: Same.
112 * include/backward/complex.h: Same.
113 * include/backward/bvector.h:
114 * include/backward/alloc.h:
115 * include/backward/algobase.h: Same.
116
117 * include/backward/backward_warning.h: New file.
118 * src/Makefile.am (backward_headers): Add backward_warning.h
119 * src/Makefile.in: Regenerate.
120
121 2001-04-05 Benjamin Kosnik <bkoz@redhat.com>
122
123 * src/Makefile.am (myinstalldirs): Make sure backward directory is
124 created.
125 (myinstallheaders): Install backward headers in backward directory.
126 * src/Makefile.in: Regenerate.
127
128 2001-04-05 Benjamin Kosnik <bkoz@redhat.com>
129
130 Prepare for libstdc++-2.92.
131 * docs/html/17_intro/RELEASE-NOTES (New): Update.
132 * docs/html/configopts.html: Fix formatting.
133 * README (file): Updates.
134 * include/bits/c++config (__GLIBCPP__): Update.
135
136 2001-04-05 Phil Edwards <pme@sources.redhat.com>
137
138 * docs/doxygen/run_doxygen: Check for the existence of Doxygen.
139
140 2001-04-04 Phil Edwards <pme@sources.redhat.com>
141
142 * docs/doxygen/user.cfg.in: Extract all non-private members;
143 reduce confusing documentation output.
144
145 2001-04-04 Geoffrey Keating <geoffk@redhat.com>
146
147 * include/backward/fstream.h: Add missing semicolons.
148
149 2001-04-03 Benjamin Kosnik <bkoz@redhat.com>
150
151 * include/bits/fstream.tcc: Add bool parameter to filebuf ctor.
152 * include/bits/ios_base.h(ios_base::Init): Remove _M_cout, _M_cin,
153 _M_cerr, _M_wcout, _M_wcin, _M_wcerr.
154 (ios_base::Init::_S_ios_create): New.
155 (ios_base::Init::_S_ios_destroy): New.
156 * include/bits/std_fstream.h: Change ctor args.
157 * src/ios.cc (ios_base::Init::Init): Use _S_ios_create.
158 (ios_base::Init::~Init): Use _S_ios_destroy.
159 (ios_base::sync_with_stdio): Use new members.
160 * testsuite/27_io/filebuf_members.cc: Fix calling conventions for
161 filebuf ctor.
162
163 2001-04-03 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
164
165 * include/backward/fstream.h: Expose streampos to global
166 namespace.
167
168 2001-04-03 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
169
170 * include/bits/stl_iterator_base_types.h: Fix typo
171
172 2001-04-03 Andreas Schwab <schwab@suse.de>
173
174 * include/backward/fstream.h: Define filebuf and wfilebuf.
175
176 2001-04-02 Phil Edwards <pme@sources.redhat.com>
177
178 New concept checking implementation.
179 * docs/html/19_diagnostics/howto.html: Document.
180 * docs/html/17_intro/concept_check.diff: New file, for reference.
181 * include/bits/boost_concept_check.h: New file from Boost.
182 * include/bits/c++config: Update comments.
183
184 * include/bits/concept_check.h: New file.
185 * include/bits/concept_checks.h: Removed.
186 * include/bits/container_concepts.h: Removed.
187 * include/bits/sequence_concepts.h: Removed.
188 * include/bits/stl_iterator_base.h: Removed; split into...
189 * include/bits/stl_iterator_base_funcs.h: ...this new file...
190 * include/bits/stl_iterator_base_types.h: ...and this new file.
191
192 * include/bits/sbuf_iter.h: Update to use new implementation.
193 * include/bits/std_iterator.h: Likewise.
194 * include/bits/std_memory.h: Likewise.
195 * include/bits/stl_algo.h: Likewise.
196 * include/bits/stl_algobase.h: Likewise.
197 * include/bits/stl_construct.h: Likewise.
198 * include/bits/stl_deque.h: Likewise.
199 * include/bits/stl_heap.h: Likewise.
200 * include/bits/stl_list.h: Likewise.
201 * include/bits/stl_map.h: Likewise.
202 * include/bits/stl_multimap.h: Likewise.
203 * include/bits/stl_multiset.h: Likewise.
204 * include/bits/stl_numeric.h: Likewise.
205 * include/bits/stl_queue.h: Likewise.
206 * include/bits/stl_set.h: Likewise.
207 * include/bits/stl_stack.h: Likewise.
208 * include/bits/stl_uninitialized.h: Likewise.
209 * include/bits/stl_vector.h: Likewise.
210 * include/ext/hash_map: Likewise.
211 * include/ext/hash_set: Likewise.
212 * include/ext/slist: Likewise.
213 * include/ext/stl_hashtable.h: Likewise.
214
215 * src/Makefile.am (base_headers): Update list of headers.
216 * Makefile.in: Regenerated.
217 * src/Makefile.in: Regenerated.
218 * libio/Makefile.in: Regenerated.
219 * libmath/Makefile.in: Regenerated.
220 * libsupc++/Makefile.in: Regenerated.
221 * testsuite/Makefile.in: Regenerated.
222
223 * docs/html/install.html: Update contact information.
224 * docs/html/17_intro/howto.html: Ditto.
225 * docs/html/18_support/howto.html: Ditto.
226 * docs/html/20_util/howto.html: Ditto.
227 * docs/html/21_strings/howto.html: Ditto.
228 * docs/html/22_locale/howto.html: Ditto.
229 * docs/html/23_containers/howto.html: Ditto.
230 * docs/html/24_iterators/howto.html: Ditto.
231 * docs/html/25_algorithms/howto.html: Ditto.
232 * docs/html/26_numerics/howto.html: Ditto.
233 * docs/html/27_io/howto.html: Ditto.
234 * docs/html/faq/index.html: Ditto, plus info on new checking code.
235 * docs/html/ext/howto.html: Ditto, plus info on new checking code.
236 * docs/html/faq/index.txt: Regenerated.
237
238 2001-04-02 Zack Weinberg <zackw@stanford.edu>
239
240 * testsuite/lib/libstdc++.exp (dg-test): Annotate result
241 messages with $which_library as well as $tool_flags and
242 ${dg-extra-tool-flags}. Factor out annotation text into
243 a single variable.
244
245 2001-04-02 Stephen M. Webb <stephen@bregmasoft.com>
246
247 * include/c_std/bits/std_cstring.h: Fix for const-correctness.
248 * include/c_std/bits/std_cwchar.h: Same.
249 * testsuite/21_strings/c_strings.cc: Add.
250
251 2001-04-01 Benjamin Kosnik <bkoz@codesourcery.com>
252
253 * docs/html/configopts.html: Add --enable-sjlj-exceptions docs.
254
255 2001-04-01 Zack Weinberg <zackw@stanford.edu>
256
257 * tests_flags.in: Use test a = b, not test a == b which is not
258 portable.
259
260 2001-03-31 Benjamin Kosnik <bkoz@redhat.com>
261
262 * configure.target: Remove duplicate aix entry.
263
264 2001-03-30 Benjamin Kosnik <bkoz@redhat.com>
265
266 * include/ext/stl_bvector.h: Move to...
267 * include/bits/stl_vector.h: ...here.
268 * include/ext/bvector: Move to...
269 * include/backward/bvector.h: ...here.
270 * include/bits/std_vector.h: Change stl_bvector include.
271 * include/bits/std_queue.h: Remove bvector include.
272 * include/ext/tree: Insert using rb_tree, move to...
273 * include/backward/tree.h: ...here.
274 * include/backward/hash_map.h: Include ext/hash_map.
275 * include/backward/hash_set.h: Include ext/hash_set.
276 * include/backward/queue.h: New file.
277 * include/backward/stack.h: Edit.
278 * include/backward/algo.h: Same.
279 * include/backward/algobase.h: Same.
280 * include/backward/alloc.h: Same.
281 * include/backward/function.h: Same.
282 * include/backward/iomanip.h: Same.
283 * include/backward/istream.h: Same.
284 * include/backward/iterator.h: Same.
285 * include/backward/list.h: Same.
286 * include/backward/map.h: Same.
287 * include/backward/multimap.h: Same.
288 * include/backward/multiset.h: Same.
289 * include/backward/ostream.h: Same.
290 * include/backward/pair.h: Same
291 * include/backward/rope.h: Same.
292 * include/backward/set.h: Same.
293 * include/backward/stream.h: Same.
294 * include/backward/strstream.h: Same.
295 * include/backward/tempbuf.h: Same.
296 * src/Makefile.am (ext_headers): Edit.
297 * src/Makefile.in: Regenerate.
298 * testsuite/ext/headers.cc (main): Fix.
299 * mkcheck.in: Fix.
300
301 2001-03-30 Phil Edwards <pme@sources.redhat.com>
302
303 * tests_flags.in (LIBS): Pass correct path for installed testing.
304
305 2001-03-28 Benjamin Kosnik <bkoz@redhat.com>
306
307 * mkcheck.in (LIBTOOL): Don't construct -B argument here...
308 * tests_flags.in (CXX): Construct here.
309 (static_fail): Don't remove compile.out. Format with spaces.
310 (INCLUDES): Deal with xcompiling.
311 * configure.in (xcompiling): Substitute.
312 * testsuite/Makefile.am: Snake libjava configury.
313 * testsuite/Makefile.in: Regenerate.
314 * testsuite/23_containers/map_operators.cc: Tweaks.
315 * testsuite/23_containers/set_operators.cc: Tweaks.
316
317 2001-03-28 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
318
319 Enable dejagnu testing framework.
320 * configure.in: Generate testsuite/Makefile.
321 * configure: Regenerate.
322 * Makefile.am (check-install): Change rule from this...
323 (check-script-install): ...to this.
324 (check): Change rule from this...
325 (check-script):...to this.
326 * Makefile.in: Regenerate.
327
328 2001-03-28 Alexandre Oliva <aoliva@redhat.com>
329
330 * libsupc++/Makefile.am (CXXLINK): Add --tag disable-shared after
331 --tag CXX.
332 (LIBTOOL): Let automake take care of its definition.
333 * libsupc++/Makefile.in: Rebuilt.
334
335 2001-03-28 Richard Henderson <rth@redhat.com>
336
337 IA-64 ABI Exception Handling:
338 * acinclude.m4 (GLIBCPP_ENABLE_SJLJ_EXCEPTIONS): New.
339 * configure.in: Use it.
340 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
341 * libsupc++/Makefile.am (sources): Update files list.
342 * libsupc++/Makefile.in: Regenerate.
343 * libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc: New files.
344 * libsupc++/eh_catch.cc, libsupc++/eh_exception.cc: New files.
345 * libsupc++/eh_globals.cc, libsupc++/eh_personality.cc: New files.
346 * libsupc++/eh_terminate.cc, libsupc++/eh_throw.cc: New files.
347 * libsupc++/exception_support.cc: Remove.
348 * libsupc++/exception_support.h: Remove.
349 * libsupc++/pure.cc: Use std::terminate.
350 * libsupc++/tinfo2.cc (__throw_type_match_rtti_2): Remove.
351 (__is_pointer): Remove.
352 * libsupc++/unwind-cxx.h: New file.
353 * libsupc++/vec.cc (uncatch_exception): Update for new abi.
354
355 2001-03-27 Alexandre Oliva <aoliva@redhat.com>
356
357 * libsupc++/Makefile.am (CXXLINK): Use CXX again, and choose
358 CXX tag explicitly.
359 * src/Makefile.am (CXXLINK): Likewise.
360 * libsupc++/Makefile.in, src/Makefile.in: Rebuilt.
361
362 2001-03-27 Benjamin Kosnik <bkoz@redhat.com>
363
364 * include/bits/c++config (_STL_USE_CONCEPT_CHECKS): Disable by default.
365
366 2001-03-26 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
367
368 * libstdc++-v3/tests_flags.in: Change the order of libstdc++
369 and libc
370
371 2001-03-26 Benjamin Kosnik <bkoz@redhat.com>
372
373 * include/bits/basic_file.h (get_fileno): Remove.
374 (_M_fileno): Remove.
375 (_M_cfile_created): Add.
376 (basic_file::basic_file(__c_file_type*, openmode): Add.
377 (basic_file::basic_file(int, const char*, openmode): Remove.
378 * include/bits/fstream.tcc (basic_fstream::basic_filebuf(int __fd,
379 const char*, ios_base::openmode): Don't allocate
380 internal buffers. Turn off internal buffers.
381 (basic_filebuf::overflow): Remove test for null buffer.
382 (basic_filebuf::_M_really_overflow): Same. Allow unbuffered use.
383 * include/bits/streambuf.cc: Tweak.
384 * include/bits/std_ostream.h: Tweak.
385 * config/basic_file_libio.h: Same.
386 * config/basic_file_stdio.h: Same.
387 * src/ios.cc (ios_base::Init::Init()): Unbuffer stdout by default.
388 * testsuite/27_io/filebuf_members.cc: Tweaks.
389 * testsuite/27_io/ios_base_members_static.cc: Tweaks.
390
391 2001-03-24 Phil Edwards <pme@sources.redhat.com>
392
393 * Makefile.am: New targets, doxygen and doxygen-maint.
394 * Makefile.in: Regenerated.
395 * docs/doxygen/run_doxygen: Finally implemented.
396 * docs/doxygen/maint.cfg.in: New file.
397 * docs/doxygen/user.cfg.in: New file.
398
399 2001-03-24 Phil Edwards <pme@sources.redhat.com>
400
401 * acinclude.m4 (GLIBCPP_CHECK_COMPILER_FEATURES): Update comment.
402 * src/Makefile.am: Replace leading spaces with tabs on continuation
403 lines.
404 * aclocal.m4: Regenerated.
405 * configure: Ditto.
406 * Makefile.in: Ditto.
407 * src/Makefile.in: Ditto.
408 * libio/Makefile.in: Ditto.
409 * libmath/Makefile.in: Ditto.
410 * libsupc++/Makefile.in: Ditto.
411
412 2001-03-24 Phil Edwards <pme@sources.redhat.com>
413
414 * docs/html/19_diagnostics/howto.html: HTML fixup. Describe
415 concept-checking code and current status of same.
416 * docs/html/ext/howto.html: Ditto.
417 * docs/html/faq/index.html: Ditto.
418 * docs/html/faq/index.txt: Regenerated.
419
420 2001-03-24 Phil Edwards <pme@sources.redhat.com>
421
422 * include/bits/std_bitset.h: Include ostream and istream headers
423 instead of iostream.
424
425 2001-03-22 Greg Bumgardner <bumgard@roguewave.com>
426
427 * include/bits/ostream.tcc: Use __builtin_alloca.
428
429 2001-03-22 Benjamin Kosnik <bkoz@redhat.com>
430
431 * src/misc-inst.cc (__sink_unused_warning): Move to...
432 * src/locale-inst.cc (__sink_unused_warning): Move to...
433 * src/stl-inst.cc: Here.
434 * include/bits/c++config (_STL_NO_CONCEPT_CHECKS): Add define,
435 commented it out.
436
437 2001-03-21 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
438
439 * intclude/bits/basic_file.h: Fix typos in comments.
440
441 2001-03-20 Richard Henderson <rth@redhat.com>
442
443 * src/gen-num-limits.cc: Instantiate for wchar_t.
444 * config/os/aix/bits/ctype_base.h (mask): Use unsigned int.
445
446 2001-03-20 Jason Merrill <jason@redhat.com>
447
448 * libsupc++/vec.cc (__cxa_vec_cleanup): New fn.
449 (__cxa_vec_ctor, __cxa_vec_cctor, __cxa_vec_dtor): Call it.
450 * libsupc++/cxxabi.h: Declare it.
451
452 2001-03-16 Alexandre Oliva <aoliva@redhat.com>
453
454 * src/gen-num-limits.cc (signal_adapter): Overloaded to match
455 signal_func with an unspecified argument list.
456
457 2001-03-15 Benjamin Kosnik <bkoz@redhat.com>
458
459 * tests_flags.in (CXXFLAGS): Link libstdc++ before libsupc++.
460
461 2001-03-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
462
463 * include/bits/basic_string.tcc (operator+): Fix thinko.
464
465 2001-03-14 Benjamin Kosnik <bkoz@redhat.com>
466
467 libstdc++/2020
468 * include/bits/std_streambuf.h: Remove cached locale facets.
469 (basic_streambuf::_M_buf_fctype): Remove.
470 (basic_streambuf::~basic_streambuf): Remove here.
471 (basic_streambuf::basic_streambuf): Same.
472 (basic_streambuf::imbue): Same.
473 * include/bits/fstream.tcc (filebuf::imbue): Remove _M_buf_fctype.
474 * include/bits/std_fstream.h (basic_filebuf::_M_fcvt): Remove.
475 (basic_filebuf::~basic_filebuf()): Remove here.
476 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf): Same.
477 (basic_filebuf::imbue): Same.
478 * include/bits/localefwd.h (_Count_ones): Remove.
479 (locale::_S_num_categories): Just use 6, since this doesn't
480 actually change, ever.
481 * include/bits/locale_facets.tcc (has_facet): Simplify.
482 (use_facet): Same.
483 * testsuite/27_io/filebuf.cc (test06): Add tests.
484
485 2001-03-13 Steve Ellcey <sje@cup.hp.com>
486
487 * libstdc++-v3/config/os/hpux/bits/ctype_base.h: Make ctype masks
488 match HP-UX ctype.h header file.
489
490 2001-03-13 Andris Pavenis <pavenis@latnet.lv>
491
492 * config/djgpp/bits/ctype_noninline.h: Fix typo and remove
493 duplicate definitions of __dj_ctype_*
494
495 2001-03-13 Benjamin Kosnik <bkoz@redhat.com>
496
497 * libsupc++/new: Remove pragma interface.
498 * libsupc++/typeinfo: Same.
499 * libsupc++/exception: Same.
500 * libsupc++/new_handler.cc: Remove pragma implementation.
501 (bad_alloc::~bad_alloc()): Add.
502 * libsupc++/exception_support.cc: Same.
503 (exception::~exception): Add.
504 (bad_exception::~bad_exception): Add.
505 * libsupc++/tinfo.cc: Same.
506 (bad_cast::~bad_cast): Add.
507 (bad_typeid::~bad_typeid): Add.
508
509 2001-03-13 Phil Edwards <pme@sources.redhat.com>
510
511 * mkcheck.in: Fix IFS regression for non-bash-2.01 hosts.
512
513 2001-03-12 Felix Lee <flee@redhat.com>
514
515 * mkcheck.in: workaround for bash 2.01 IFS bug.
516
517 2001-03-12 Benjamin Kosnik <bkoz@redhat.com>
518
519 Fixups for -fno-for-scope
520 * include/bits/locale_facets.tcc (__match_parallel): Fixup.
521 * src/valarray-inst.cc (__gslice_to_index): Same.
522
523 2001-03-12 Rodney Brown <RodneyBrown@mynd.com>
524
525 * src/gen-num-limits.cc (traps) [SPECIALIZE_TRAPPING]: Add fflush
526 prior to trapping signal (UnixWare 7 workaround).
527
528 2001-03-12 Craig Rodrigues <rodrigc@mediaone.net>
529
530 * include/backward/hashtable.h: Same.
531 * include/backward/rope.h: Fix include.
532
533 2001-03-12 Benjamin Kosnik <bkoz@redhat.com>
534
535 * include/backward/vector.h: Include std_vector.h.
536
537 * include/bits/istream.tcc (basic_istream<_CharT, _Traits>&
538 operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)):
539 Fix typo.
540
541 2001-03-11 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
542
543 * include/ext/stl_hashtable.h: Change type of __n to size_t
544 * include/backward/bvector.h: Include <ext/stl_bvector.h>
545
546 2001-03-09 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
547
548 * include/bits/istream.tcc ( basic_istream<_CharT, _Traits>&
549 operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)):
550 Use streamsize, not int_type.
551
552 2001-03-08 Benjamin Kosnik <bkoz@redhat.com>
553
554 * testsuite/27_io/streambuf.cc (test06): New test, disabled at the
555 moment.
556
557 2001-03-08 Andreas Schwab <schwab@suse.de>
558
559 * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Fix syntax in test
560 command.
561 * aclocal.m4, configure: Regenerated.
562
563 2001-03-07 Benjamin Kosnik <bkoz@redhat.com>
564
565 * include/bits/std_iosfwd.h: Remove string forward decls here.
566 * include/bits/stringfwd.h: Add forward decls for char_traits
567 specializations.
568 * config/c_io_libio.h (wstreamoff): Delete.
569 * config/c_io_stdio.h (wstreamoff): Same.
570 * include/bits/char_traits.h: Use streamoff not wstreamoff for
571 char_traits<wchar_t>::off_type.
572 Remove duplicate typedefs.
573 * include/bits/fpos.h: Define streampos/wstreampos here.
574 * testsuite/27_io/istream_seeks.cc (test04): Explicitly cast int
575 values to off_type.
576 (test05): Same.
577 Changeup output files.
578 * testsuite/27_io/istream_unformatted.cc: Change output files.
579 * testsuite/27_io/istream_seeks-1.txt: Add.
580 * testsuite/27_io/istream_seeks-2.tst: Add.
581 * testsuite/27_io/istream_seeks-1.tst: Add.
582 * testsuite/27_io/istream_unformatted-2.tst: Delete.
583 * testsuite/27_io/istream_unformatted-3.tst: Delete.
584 * testsuite/27_io/istream_unformatted-3.txt: Delete.
585
586 2001-03-07 Alexandre Oliva <aoliva@redhat.com>
587
588 Add Irix 5.2, 6.3 support.
589 * config/os/irix/bits: Renamed to...
590 * config/os/irix/irix6.5/bits: this.
591 * config/os/irix/irix5.2/bits: New, copied from irix6.5/bits.
592 * config/os/irix/irix5.2/bits/ctype_base.h: Use _U, _L, _N,
593 _X, _S, _P, _C and _B instead of IRIX-6.5 _IS* macros.
594 * config/os/irix/irix5.2/bits/ctype_noninline.h
595 (ctype<char>::ctype): Initialize _M_table with __ctype.
596 * configure.target: Adjust.
597
598 2001-03-06 Benjamin Kosnik <bkoz@redhat.com>
599
600 libstdc++/2181
601 * include/bits/istream.tcc (basic_istream<_CharT, _Traits>::
602 operator>>(__istream_type& (*__pf)(__istream_type&)): Don't use
603 sentry.
604 (basic_istream<_CharT, _Traits>:: operator>>(__ios_type&
605 (*__pf)(__ios_type&)): Same.
606 (basic_istream<_CharT, _Traits>:: operator>>(ios_base&
607 (*__pf)(ios_base&))): Same.
608 * testsuite/27_io/istream_extractor_other.cc: Add tests.
609 * testsuite/27_io/istream_manip.cc (test01): Fix.
610
611 2001-03-06 Nathan Myers <ncm@cantrip.org>
612 Benjamin Kosnik <bkoz@redhat.com>
613
614 * include/c_std/bits/std_cerrno.h: Don't define errno in std::.
615 * testsuite/17_intro/header_cerrno.cc (test01): New file.
616 * testsuite/17_intro/header_cassert.cc (test01): New file.
617 * testsuite/17_intro/header_cstddef.cc (test01): New file.
618 * testsuite/17_intro/header_csetjmp.cc (test01): New file.
619 * testsuite/17_intro/header_cstdarg.cc (test01): New file.
620
621 2001-03-05 scott snyder <snyder@fnal.gov>
622
623 libstdc++/2190
624 * include/c_std/bits/std_cmath.h: Move abs(long), div(long,long)
625 from here...
626 * include/c_std/bits/std_cstdlib.h: ... to here.
627 * testsuite/17_intro/header_cstdlib.cc: Add test.
628
629 2001-03-05 Stephen M. Webb <stephen.webb@cybersafe.com>
630
631 * libsupc++/vec.cc (__cxxa_vec_new2): Qualify size_t.
632
633 2001-03-05 Laurynas Biveinis <lauras@softhome.net>
634
635 * config/os/djgpp/ctype_base.h (ctype_base): fix __to_type
636 definition. Replace enum with static const variables.
637
638 * config/os/djgpp/ctype_inline.h (ctype<char>::is): remove
639 throw specification, fix typos, use <static_cast>.
640 (ctype<char>::scan_is): remove throw specification.
641 (ctype<char>::scan_not): likewise.
642
643 * config/os/djgpp/ctype_noninline.h (ctype<char>::ctype): fix typo.
644 (ctype<char>::do_toupper(char)): use <static_cast>.
645 (ctype<char>::do_toupper(char *, const char *)): likewise.
646 (ctype<char>::do_tolower(char)): likewise.
647 (ctype<char>::do_tolower(char *, const char *)): likewise.
648
649 2001-03-04 Phil Edwards <pme@sources.redhat.com>
650
651 http://gcc.gnu.org/ml/libstdc++/2001-03/msg00015.html
652 * include/backward/algo.h: Use std not __STD. Remove unneeded
653 macros and "never happens" code. Adjust to C++STYLE guidelines.
654 * include/backward/algobase.h: Likewise.
655 * include/backward/alloc.h: Likewise.
656 * include/backward/bvector.h: Likewise.
657 * include/backward/deque.h: Likewise.
658 * include/backward/function.h: Likewise.
659 * include/backward/hash_map.h: Likewise.
660 * include/backward/hash_set.h: Likewise.
661 * include/backward/hashtable.h: Likewise.
662 * include/backward/heap.h: Likewise.
663 * include/backward/iterator.h: Likewise.
664 * include/backward/list.h: Likewise.
665 * include/backward/map.h: Likewise.
666 * include/backward/multimap.h: Likewise.
667 * include/backward/multiset.h: Likewise.
668 * include/backward/pair.h: Likewise.
669 * include/backward/rope.h: Likewise.
670 * include/backward/set.h: Likewise.
671 * include/backward/slist.h: Likewise.
672 * include/backward/stack.h: Likewise.
673 * include/backward/strstream: Likewise.
674 * include/backward/tempbuf.h: Likewise.
675 * include/backward/tree.h: Likewise.
676 * include/backward/vector.h: Likewise.
677 * include/bits/basic_ios.h: Likewise.
678 * include/bits/basic_ios.tcc: Likewise.
679 * include/bits/basic_string.h: Likewise.
680 * include/bits/c++config: Likewise.
681 * include/bits/concept_checks.h: Likewise.
682 * include/bits/fpos.h: Likewise.
683 * include/bits/fstream.tcc: Likewise.
684 * include/bits/functexcept.h: Likewise.
685 * include/bits/ios_base.h: Likewise.
686 * include/bits/istream.tcc: Likewise.
687 * include/bits/mask_array.h: Likewise.
688 * include/bits/ostream.tcc: Likewise.
689 * include/bits/pthread_allocimpl.h: Likewise.
690 * include/bits/sbuf_iter.h: Likewise.
691 * include/bits/slice.h: Likewise.
692 * include/bits/slice_array.h: Likewise.
693 * include/bits/sstream.tcc: Likewise.
694 * include/bits/std_bitset.h: Likewise.
695 * include/bits/std_fstream.h: Likewise.
696 * include/bits/std_iomanip.h: Likewise.
697 * include/bits/std_ios.h: Likewise.
698 * include/bits/std_istream.h: Likewise.
699 * include/bits/std_iterator.h: Likewise.
700 * include/bits/std_memory.h: Likewise.
701 * include/bits/std_ostream.h: Likewise.
702 * include/bits/std_sstream.h: Likewise.
703 * include/bits/std_streambuf.h: Likewise.
704 * include/bits/std_string.h: Likewise.
705 * include/bits/std_valarray.h: Likewise.
706 * include/bits/stl_algo.h: Likewise.
707 * include/bits/stl_algobase.h: Likewise.
708 * include/bits/stl_alloc.h: Likewise.
709 * include/bits/stl_construct.h: Likewise.
710 * include/bits/stl_deque.h: Likewise.
711 * include/bits/stl_function.h: Likewise.
712 * include/bits/stl_heap.h: Likewise.
713 * include/bits/stl_iterator.h: Likewise.
714 * include/bits/stl_iterator_base.h: Likewise.
715 * include/bits/stl_list.h: Likewise.
716 * include/bits/stl_map.h: Likewise.
717 * include/bits/stl_multimap.h: Likewise.
718 * include/bits/stl_multiset.h: Likewise.
719 * include/bits/stl_numeric.h: Likewise.
720 * include/bits/stl_pair.h: Likewise.
721 * include/bits/stl_pthread_alloc.h: Likewise.
722 * include/bits/stl_queue.h: Likewise.
723 * include/bits/stl_raw_storage_iter.h: Likewise.
724 * include/bits/stl_relops.h: Likewise.
725 * include/bits/stl_set.h: Likewise.
726 * include/bits/stl_stack.h: Likewise.
727 * include/bits/stl_tempbuf.h: Likewise.
728 * include/bits/stl_threads.h: Likewise.
729 * include/bits/stl_tree.h: Likewise.
730 * include/bits/stl_uninitialized.h: Likewise.
731 * include/bits/stl_vector.h: Likewise.
732 * include/bits/streambuf.tcc: Likewise.
733 * include/bits/type_traits.h: Likewise.
734 * include/bits/valarray_meta.h: Likewise.
735 * include/ext/bvector: Likewise.
736 * include/ext/hash_map: Likewise.
737 * include/ext/hash_set: Likewise.
738 * include/ext/ropeimpl.h: Likewise.
739 * include/ext/slist: Likewise.
740 * include/ext/stl_bvector.h: Likewise.
741 * include/ext/stl_hash_fun.h: Likewise.
742 * include/ext/stl_hashtable.h: Likewise.
743 * include/ext/stl_rope.h: Likewise.
744 * src/complex_io.cc: Likewise.
745 * src/ios.cc: Likewise.
746 * src/locale-inst.cc: Likewise.
747 * src/locale.cc: Likewise.
748 * src/localename.cc: Likewise.
749 * src/misc-inst.cc: Likewise.
750 * src/stdexcept.cc: Likewise.
751 * src/stl-inst.cc: Likewise.
752 * src/strstream.cc: Likewise.
753 * src/valarray-inst.cc: Likewise.
754
755 2001-03-03 Benjamin Kosnik <bkoz@redhat.com>
756
757 * src/misc-inst.cc (__copy_streambufs): Fix typo for alpha.
758
759 2001-03-02 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
760
761 * include/bits/istream.tcc: change type of __extracted to __size_type
762
763 2001-03-02 Benjamin Kosnik <bkoz@redhat.com>
764
765 * src/wstring-inst.cc: New file.
766 * src/Makefile.am (EXTRA_LTLIBRARIES): Remove.
767 (libinst_wstring_la_SOURCES): Remove.
768 (libstdc___la_LIBADD): Remove libinst_wstring_la.
769 (sources): Add wstring-inst.cc
770 * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Remove
771 libinst_wstring_la.
772
773 2001-03-02 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
774
775 * src/locale.cc: initialise __ret with zero
776 * src/strstream.cc:cast gptr to int_type
777
778 2001-03-01 Phil Edwards <pme@sources.redhat.com>
779
780 * docs/html/faq/index.html: Update broken links.
781 * docs/html/faq/index.txt: Regenerated.
782
783 2001-02-28 Benjamin Kosnik <bkoz@redhat.com>
784
785 libstdc++/2064
786 * configure.target: Change irix* to irix6.5* in target_os table.
787
788 2001-02-28 Benjamin Kosnik <bkoz@redhat.com>
789
790 libstdc++/2103
791 * include/bits/c++config (__GLIBCPP__): Bump number in
792 anticipation of 2.92.
793
794 * include/bits/codecvt.h: Fix typo.
795 * include/bits/basic_file.h (__basic_file): Don't use _M_wfile for
796 stdio model.
797 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Enable wchar_t
798 instantiations for stdio model.
799
800 2001-02-28 Phil Edwards <pme@sources.redhat.com>
801
802 * acinclude.m4 (GLIBCPP_CONFIGURE): Remove GLIBCPP_CFLAGS
803 and GLIBCPP_CXXFLAGS as unused variables.
804 * configure.host: Likewise.
805 * configure.target: Likewise.
806 * aclocal.m4: Regenerated.
807 * configure: Regenerated.
808 * Makefile.in: Regenerated.
809 * libio/Makefile.in: Regenerated.
810 * libmath/Makefile.in: Regenerated.
811 * libsupc++/Makefile.in: Regenerated.
812 * src/Makefile.in: Regenerated.
813
814 2001-02-27 Benjamin Kosnik <bkoz@redhat.com>
815
816 libstdc++/1886
817 * include/bits/basic_file.h: Include basic_file_model.h.
818 * config/c_io_libio.cc: Move to...
819 * config/basic_file_libio.cc: Here.
820 * config/basic_file_libio.h: New file.
821 * config/c_io_stdio.cc: Move to...
822 * config/basic_file_stdio.cc: Here.
823 * config/basic_file_stdio.h: New file.
824 * config/c_io_libio.h: Tweak.
825 * config/c_io_stdio.h: Tweak.
826 * src/Makefile.am (build_headers): Add basic_file_model.h.
827 (sources): Add basic_file.cc, remove c++io.cc.
828 * src/Makefile.in: Regenerate.
829 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Add support for
830 basic_file_model.h and basic_file.cc.
831 * aclocal.m4: Regenerate.
832 * configure: Regenerate.
833 * testsuite/27_io/filebuf.cc (test05): Add regression.
834
835 2001-02-27 Benjamin Kosnik <bkoz@redhat.com>
836
837 Correct license.
838 * config/cpu/alpha/bits/atomicity.h: Change.
839 * config/cpu/arm/bits/atomicit3y.h
840 * config/cpu/generic/bits/atomicity.h
841 * config/cpu/i386/bits/atomicity.h
842 * config/cpu/i486/bits/atomicity.h
843 * config/cpu/ia64/bits/atomicity.h
844 * config/cpu/powerpc/bits/atomicity.h
845 * config/cpu/sparc/sparc32/bits/atomicity.h
846 * config/cpu/sparc/sparc64/bits/atomicity.h
847 * config/os/aix/bits/atomicity.h
848 * config/os/irix/bits/atomicity.h
849
850 2001-02-27 Benjamin Kosnik <bkoz@redhat.com>
851
852 * include/bits/std_stdexcept.h (runtime_error): Make string
853 member non-const.
854 (logic_error): Same.
855 * testsuite/19_diagnostics/stdexceptions.cc (test04): Add test.
856 (test03): Fix.
857
858 2001-02-26 Benjamin Kosnik <bkoz@redhat.com>
859
860 libstdc++/1972
861 libstdc++/2089
862 * include/bits/std_stdexcept.h (logic_error::logic_error): Use
863 string object, not reference.
864 (runtime_error::runtime_error): Same.
865 * testsuite/19_diagnostics/stdexceptions.cc: New file.
866
867 2001-02-26 Phil Edwards <pme@sources.redhat.com>
868
869 * acinclude.m4 (GLIBCPP_CONFIGURE): Update required compiler version.
870 (GLIBCPP_CHECK_COMPILER_FEATURES): Can safely assume new
871 diagnostics. Remove WFMT_FLAGS.
872 * configure.in: Replace WFMT_FLAGS with diagnostics options.
873 * libsupc++/Makefile.am: Likewise.
874 * src/Makefile.am: Likewise.
875 * aclocal.m4: Regenerated.
876 * configure: Regenerated.
877 * Makefile.in: Regenerated.
878 * libio/Makefile.in: Regenerated.
879 * libmath/Makefile.in: Regenerated.
880 * libsupc++/Makefile.in: Regenerated.
881 * src/Makefile.in: Regenerated.
882
883 2001-02-26 Phil Edwards <pme@sources.redhat.com>
884
885 Fixes libstdc++/2079
886 * include/backward/iomanip.h: Expose <ios> manipulators to global
887 namespace.
888 * include/backward/iostream.h: Also expose std::ws.
889
890 2001-02-25 Greg Freemyer <freemyer@NorcrossGroup.com>
891
892 * libmath/mathconf.h (GET_LDOUBLE_MSW64): Fix thinko.
893
894 2001-02-23 Benjamin Kosnik <bkoz@redhat.com>
895
896 * include/bits/codecvt.h: Use __builtin_alloca.
897 * include/bits/ostream.tcc: Same.
898 * include/bits/fstream.tcc: Same.
899
900 2001-02-23 Alexandre Oliva <aoliva@redhat.com>
901
902 * mknumeric_limits (CC): Use VAR=${VAR=...} form.
903
904 2001-02-23 David Edelsohn <dje@watson.ibm.com>
905
906 * mknumeric_limits (CC): Use $BUILD_DIR/../../gcc/xgcc
907
908 2001-02-23 Phil Edwards <pme@sources.redhat.com>
909
910 c++/2052
911 * include/backward/iostream.h: Expose std::flush in old headers.
912
913 2001-02-23 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
914
915 * mknumeric_limits: Remove special-casing on target. Use gcc
916 instead of g++ to build gen-num-limits.cc
917
918 2001-02-22 Benjamin Kosnik <bkoz@redhat.com>
919
920 * tests_flags.in (CXXFLAGS): Add -rpath to gcc build dir.
921
922 * include/bits/codecvt.h: Use alloca instead of __extension__ for
923 the time being.
924 * include/bits/ostream.tcc: Same.
925 * include/bits/std_ostream.h: Same.
926 * include/bits/fstream.tcc: Same.
927 * include/bits/locale_facets.tcc: Add typename.
928 * include/bits/c++config (_GLIBCPP_FULLY_COMPLIANT_HEADERS): Enable.
929
930 2001-02-21 Phil Edwards <pme@sources.redhat.com>
931
932 * tests_flags.in: Remove -n flag from call to echo.
933
934 2001-02-20 Benjamin Kosnik <bkoz@redhat.com>
935
936 * config/c_locale_gnu.h: Add clocale include.
937
938 2001-02-20 Phil Edwards <pme@sources.redhat.com>
939
940 * include/bits/stl_config.h: Remove file.
941 * src/Makefile.am (base_headers): Remove from list.
942 * configure: Regenerate.
943 * Makefile.in: Ditto.
944 * libio/Makefile.in: Ditto.
945 * libmath/Makefile.in: Ditto.
946 * libsupc++/Makefile.in: Ditto.
947 * src/Makefile.in: Ditto.
948
949 * include/bits/c++config: Move relevant macros to here.
950 * include/backward/alloc.h: Include c++config.h instead.
951 * include/backward/function.h: Ditto.
952 * include/backward/heap.h: Ditto.
953 * include/backward/pair.h: Ditto.
954 * include/bits/pthread_allocimpl.h: Ditto.
955 * include/bits/std_functional.h: Ditto.
956 * include/bits/std_iterator.h: Ditto.
957 * include/bits/std_numeric.h: Ditto.
958 * include/bits/std_utility.h: Ditto.
959 * include/bits/stl_algobase.h: Ditto.
960 * include/bits/type_traits.h: Ditto.
961 * src/stl-inst.cc: Ditto.
962
963 2001-02-19 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
964
965 * include/bits/basic_file.h: Add #pragma system_header
966 * include/bits/basic_ios.h: Ditto.
967 * include/bits/basic_string.h: Ditto.
968 * include/bits/char_traits.h: Ditto.
969 * include/bits/codecvt.h: Ditto.
970 * include/bits/cpp_type_traits.h: Ditto.
971 * include/bits/fpos.h: Ditto.
972 * include/bits/gslice.h: Ditto.
973 * include/bits/gslice_array.h: Ditto.
974 * include/bits/indirect_array.h: Ditto.
975 * include/bits/ios_base.h: Ditto.
976 * include/bits/limits_generic.h: Ditto.
977 * include/bits/locale_facets.h: Ditto.
978 * include/bits/localefwd.h: Ditto.
979 * include/bits/mask_array.h: Ditto.
980 * include/bits/sbuf_iter.h: Ditto.
981 * include/bits/sequence_concepts.h: Ditto.
982 * include/bits/slice.h: Ditto.
983 * include/bits/slice_array.h: Ditto.
984 * include/bits/std_algorithm.h: Likewise.
985 * include/bits/std_bitset.h: Likewise.
986 * include/bits/std_complex.h: Likewise.
987 * include/bits/std_deque.h: Likewise.
988 * include/bits/std_fstream.h: Likewise.
989 * include/bits/std_functional.h: Likewise.
990 * include/bits/std_iomanip.h: Likewise.
991 * include/bits/std_ios.h: Likewise.
992 * include/bits/std_iosfwd.h: Likewise.
993 * include/bits/std_iostream.h: Likewise.
994 * include/bits/std_istream.h: Likewise.
995 * include/bits/std_iterator.h: Likewise.
996 * include/bits/std_list.h: Likewise.
997 * include/bits/std_locale.h: Likewise.
998 * include/bits/std_map.h: Likewise.
999 * include/bits/std_memory.h: Likewise.
1000 * include/bits/std_numeric.h: Likewise.
1001 * include/bits/std_ostream.h: Likewise.
1002 * include/bits/std_queue.h: Likewise.
1003 * include/bits/std_set.h: Likewise.
1004 * include/bits/std_sstream.h: Likewise.
1005 * include/bits/std_stack.h: Likewise.
1006 * include/bits/std_stdexcept.h: Likewise.
1007 * include/bits/std_streambuf.h: Likewise.
1008 * include/bits/std_string.h: Likewise.
1009 * include/bits/std_utility.h: Likewise.
1010 * include/bits/std_valarray.h: Likewise.
1011 * include/bits/std_vector.h: Likewise.
1012 * include/bits/stringfwd.h: Likewise.
1013 * include/bits/type_traits.h: Likewise.
1014 * include/bits/valarray_array.h: Likewise.
1015 * include/bits/valarray_meta.h: Likewise.
1016
1017 2001-02-19 Andreas Jaeger <aj@suse.de>
1018
1019 * config/cpu/sparc/sparc64/bits/atomicity.h (__compare_and_swap):
1020 Fix typo.
1021
1022 2001-02-16 Greg Bumgardner <bumgard@roguewave.com>
1023
1024 libstdc++/1734
1025 * include/bits/std_ostream.h: Replaced usage of
1026 _Traits::_S_eos() with _CharT() as per section 17.2.2.1.3.
1027 * include/bits/char_traits.h: Removed non-standard
1028 methods that cannot be used elsewhere.
1029
1030 libstdc++/1885
1031 * include/bits/basic_ios.h: Uncommented #include of
1032 bits/basic_ios.tcc
1033
1034 libstdc++/1897
1035 * include/bits/codecvt.h: See next...
1036 * include/bits/fstream.tcc: See next...
1037 * include/bits/ostream.tcc: Add __extension__
1038 to variable-length arrays.
1039
1040 libstdc++/1967
1041 * include/bits/localefwd.h: Changed int counter type to size_t.
1042
1043 libstdc++/1968
1044 * include/bits/std_fstream.h: Added typedef for __ctype_type.
1045
1046 2001-02-16 Benjamin Kosnik <bkoz@redhat.com>
1047
1048 * testsuite/21_strings/char_traits.cc: Move to ...
1049 * testsuite/21_strings/char_traits_requirements.cc: ..here.
1050 * testsuite/21_strings/char_traits-int_type.cc: Move to ...
1051 * testsuite/21_strings/char_traits_typedefs.cc: ..here.
1052
1053 2001-02-16 Gabriel Dos Reis <gdr@codesourcery.com>
1054
1055 * libmath/mathconf.h (FINITE_P, INFINITE_P): Remove macro
1056 definitions.
1057
1058 2001-02-15 Benjamin Kosnik <bkoz@redhat.com>
1059
1060 * include/bits/c++config: Revert.
1061
1062 2001-02-15 Mark Mitchell <mark@codesourcery.com>
1063
1064 * include/bits/istream.tcc: Use ios_base::iostate in place of
1065 iostate throughout. Insert `typename' keyword where necessary.
1066 * include/bits/ostream.tcc: Insert `typename' keyword where
1067 necessary.
1068
1069 2001-02-15 Jeffrey Oldham <oldham@codesourcery.com>
1070
1071 * include/bits/c++config (_GLIBCPP_FULLY_COMPLIANT_HEADERS):
1072 Define so library is compliant.
1073
1074 2001-02-15 Anthony Green <green@redhat.com>
1075
1076 * acinclude.m4 (glibcpp_toolexeclibdir): Fix test for cross
1077 compilation.
1078 * aclocal.m4: Regenerate.
1079 * configure: Regenerate.
1080
1081 2001-02-15 Rodney Brown <RodneyBrown@mynd.com>
1082
1083 * acinclude.m4 (GLIBCPP_CHECK_MATH_DECL_1):
1084 Include ieeefp.h for fpclass on UnixWare{2,7}.
1085 * aclocal.m4: Regenerate.
1086 * configure: Regenerate.
1087 * mkcheck.in (size_command): Do without GNU-grep when using
1088 size from binutils.
1089
1090 2001-02-15 Mark Mitchell <mark@codesourcery.com>
1091
1092 Remove old ABI support from libsupc++.
1093 * libsupc++/cxxabi.h: Remove conditionally compiled code.
1094 * libsupc++/exception_support.cc: Likewise.
1095 * libsupc++/pure.cc: Likewise.
1096 * libsupc++/tinfo.cc: Likewise.
1097 * libsupc++/tinfo.h: Likewise.
1098 * libsupc++/tinfo2.cc: Likewise.
1099 * libsupc++/typeinfo: Likewise.
1100 * libsupc++/vec.cc: Likewise.
1101
1102 2001-02-15 Benjamin Kosnik <bkoz@redhat.com>
1103
1104 Add support for -fno-exceptions.
1105 * include/bits/exception_support.h: Remove.
1106 * include/bits/basic_string.h: Remove exception_support.
1107 (string::_M_check): Replace __OUTOFRANGE with __throw_out_of_range.
1108 (string::at): Same.
1109 (string::substr): Same.
1110 * include/bits/basic_string.tcc (string::reserve): Replace
1111 __LENGTHERROR with __throw_length_error.
1112 (string::_S_create): Same.
1113 (string::resize): Same.
1114 (string::_M_replace): Same.
1115 (string::replace): Same.
1116 (string::copy): Replace __OUTOFRANGE with __throw_out_of_range.
1117 (string::compare): Same.
1118 * include/bits/stl_vector.h: Remove exception_support.
1119 * src/Makefile.am (base_headers): Remove here.
1120 * src/Makefile.in: Regenerate.
1121
1122 * include/bits/stl_range_errors.h: Remove.
1123 * include/bits/stl_deque.h: Use __throw_range_error.
1124 * include/bits/std_deque.h: Include functexcept.h.
1125 * include/bits/std_vector.h: Same.
1126 * src/Makefile.am (base_headers): Remove here.
1127 * src/Makefile.in: Regenerate.
1128 * include/ext/stl_bvector.h (class __BVECTOR): Use __throw_range_error.
1129 * include/ext/bvector: Remove stl_range_errors.h
1130
1131 * include/bits/c++config (_GLIBCPP_USE_EXCEPTIONS): Remove.
1132
1133 * include/bits/functexcept.h: New file.
1134 * src/functexcept.cc: New file. Definitions for function-based
1135 exception routines.
1136 * src/Makefile.am (sources): Add functexcept.cc.
1137 * src/Makefile.in: Regenerate.
1138
1139 * include/bits/stl_config.h (__STL_USE_EXCEPTIONS): Wrap with
1140 __EXCEPTIONS.
1141
1142 * include/bits/localefwd.h: Include functexcept.h.
1143 * include/bits/std_iosfwd.h: Same.
1144
1145 * include/bits/basic_ios.h: Use __throw_ios_failure instead of
1146 throw basic_ios::failure.
1147 * include/bits/fstream.tcc (filebuf::_M_allocate_buffers):
1148 Use __throw_exception_again.
1149 (filebuf::_M_filebuf_init): Same.
1150 * include/bits/streambuf.tcc (__copy_streambufs): Same.
1151 * include/bits/ostream.tcc (ostream::operator<<): Same.
1152 * include/bits/istream.tcc (istream::operator>>): Same.
1153 * include/bits/basic_string.tcc (string::_M_mutate): Same.
1154 (string::_S_construct): Same.
1155 (string::_M_clone): Same.
1156 * include/bits/locale_facets.tcc (use_facet(const locale&)): Use
1157 __throw_bad_cast.
1158 (num_put<_CharT, _OutIter>::do_put): Use __throw_exception_again.
1159 * src/localename.cc (locale::_Imp::_Imp(const _Impl&, size_t): Use
1160 __throw_exception_again.
1161 (locale::_Imp::_Imp(string, size_t): Same.
1162 (locale::_Imp::_M_replace_facet): Use __throw_runtime_error.
1163 * src/locale.cc (locale::_M_coalesce): Use __throw_exception_again.
1164 (locale::locale(const char*)): Use __throw_runtime_error.
1165 (locale::classic): Use __throw_exception_again.
1166 (locale::_S_normalize_category): Use __throw_runtime_error.
1167
1168 * src/stdexcept.cc: Remove cruft.
1169
1170 * libsupc++/exception_defines.h: New file.
1171 * libsupc++/new_opnt.cc: Include exception_defines.h.
1172 * libsupc++/vec.cc: Same.
1173 (__cxa_vec_new2): Use __throw_exception_again.
1174 (__cxa_vec_new3): Same.
1175 (__cxa_vec_ctor): Same.
1176 (__cxa_vec_delete3): Same.
1177 (__cxa_vec_cctor): Same.
1178 (__cxa_vec_delete2): Same.
1179 (__cxa_vec_dtor): Same.
1180 * libsupc++/exception_support.cc: Include exception_defines.h. Only
1181 compile exception-handling bits if __EXCEPTIONS is defined.
1182 Remove old ABI support.
1183 * libsupc++/new_op.cc (new): Include exception_defines.h. Use
1184 std::__throw_bad_alloc() instead of throw bad_alloc.
1185 * libsupc++/Makefile.am: Add exception_defines.h.
1186 * libsupc++/Makefile.in: Reformat.
1187 * libsupc++/*: Format.
1188
1189 2001-02-15 Phil Edwards <pme@sources.redhat.com>
1190
1191 * docs/html/configopts.html: Minor updates and typo fixes.
1192 * docs/html/faq/index.html: Updates of the "not really bugs" list.
1193 * docs/html/faq/index.txt: Regenerated.
1194
1195 2001-02-15 Gabriel Dos Reis <gdr@codesourcery.com>
1196
1197 * testsuite/lib/libstdc++.exp: Lift, temporarily, out of
1198 dejagnu/dg.exp. Adapt to log options used to run testcases.
1199
1200 2001-02-13 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
1201
1202 * testsuite/lib/libstdc++.exp(dg-test): Lift temporarily from
1203 dejagnu/dg.exp.
1204
1205 2001-02-13 Dirk Mueller <dmuell@gmx.net>
1206 Phil Edwards <pme@sources.redhat.com>
1207
1208 * include/backward/function.h: Do not use rel_ops for older
1209 headers either.
1210 * include/backward/pair.h: Likewise.
1211
1212 2001-02-12 Mark Mitchell <mark@codesourcery.com>
1213
1214 * src/locale.cc: Remove bogus locale::id definitions.
1215
1216 2001-02-11 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
1217
1218 * include/bits/std_valarray.h: #undef _DEFINE_LOGICAL_OPERATOR,
1219 not _DEFINE_VALARRAY_OPERATOR which is not existent.
1220
1221 * include/bits/valarray_meta.h (_RefFunClos<>_RefRunClos): Fix
1222 thinko in member initialisation.
1223
1224 2001-02-11 Gabriel Dos Reis <gdr@codesourcery.com>
1225
1226 * include/bits/std_valarray.h(valarray<>::shift): Avoid
1227 comparaison between signed and unsigned integer types.
1228 (valarray<>::cshift): Reformat.
1229
1230 2001-02-11 Alexandre Oliva <aoliva@redhat.com>
1231
1232 * src/gen-num-limits.cc: Use sigsetjmp and siglongjmp if available.
1233 * mknumeric_limits: Compile it with -DHAVE_CONFIG_H.
1234 * configure.in: Test for sigsetjmp.
1235 * configure, config.h.in: Rebuilt.
1236
1237 2001-02-11 Gabriel Dos Reis <gdr@codesourcery.com>
1238
1239 * src/valarray-inst.cc (gslice::_Indexer::_Indexer): Don't flip
1240 lengths and strides.
1241 (__gslice_to_index): Document.
1242
1243 2001-02-11 Gabriel Dos Reis <gdr@codesourcery.com>
1244
1245 * include/bits/char_traits.h char_traits<char>::int_type: Change
1246 to `int' to match 21.1.3.1/2.
1247
1248 * testsuite/21_strings/char_traits-int_type.C: New test.
1249
1250 2001-02-10 Gabriel Dos Reis <gdr@codesourcery.com>
1251
1252 * testsuite/Makefile.am: New file.
1253
1254 2001-02-09 Nathan Sidwell <nathan@codesourcery.com>
1255
1256 * include/c_shadow/bits/std_cstdlib.h (lldiv_t): Fix typo.
1257
1258 2001-02-08 Loren J. Rittle <ljrittle@acm.org>
1259
1260 * src/locale-inst.cc (fill_n): Instantiate with size_t arguments.
1261
1262 2001-02-08 David Edelsohn <edelsohn@gnu.org>
1263
1264 * configure.target (aix4*): Remove extra set of brackets.
1265
1266 2001-02-07 Benjamin Kosnik <bkoz@redhat.com>
1267
1268 Clean up stdexcept.
1269 * include/bits/stringfwd.h: New file.
1270 * include/bits/stl_string_fwd.h: Remove.
1271 * include/bits/localefwd.h: Remove declaration for allocator.
1272 * include/bits/std_iosfwd: Same.
1273 * include/bits/std_string.h: Include it.
1274 * include/bits/std_ios.h: Remove include.
1275 * include/bits/basic_string.h: Tweak.
1276 * libsupc++/new: Format.
1277 * src/Makefile.am (base_headers): Add stringfwd.h, remove
1278 stl_string_fwd.h
1279 * src/Makefile.in: Regenerate.
1280 * include/bits/std_stdexcept.h: Rewrite.
1281 * src/stdexcept.cc: Same.
1282
1283 2001-02-06 Benjamin Kosnik <bkoz@redhat.com>
1284
1285 * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Deal with library
1286 install locations too.
1287 * aclocal.m4: Regenerate.
1288 * configure.in: Remove USE_LIBDIR.
1289 * configure: Regenerate.
1290 * src/Makefile.am (toolexecdir): Simplify, use
1291 glibcpp_toolexecdir, glibcpp_toolexeclibdir.
1292 * src/Makefile.in: Regenerate.
1293 * libsupc++/Makefile.am: Same.
1294 * libsupc++/Makefile.in: Regenerate.
1295
1296 * src/Makefile.am: Just remove special rules for locale-inst.cc and
1297 misc-inst.cc as no longer necessary.
1298
1299 Follow C++STYLE for naming non-static functions.
1300 * include/bits/ostream.tcc (_S_pad_char): Not static, rename to
1301 __pad_char.
1302 * include/bits/streambuf.tcc: Same.
1303 * include/bits/ostream.tcc: Same.
1304 * include/bits/istream.tcc: Same.
1305 * include/bits/locale_facets.tcc (_S_pad_numeric): To __pad_numeric.
1306 (_S_output_float): To __output_float.
1307 * include/bits/std_streambuf.h (_S_copy_streambufs): To
1308 __copy_streambufs.
1309 * include/bits/locale_facets.tcc (_S_build_float_format): To
1310 __build_float_format.
1311 (_S_format): To __output_integer.
1312 (_S_fill): To __pad.
1313 * src/locale.cc: Same.
1314 * src/misc-inst.cc: Fix formatting. Fix signature for wchar_t. Correct
1315 names.
1316 * include/bits/locale_facets.tcc (_S_group_digits): To
1317 __group_digits.
1318 * src/locale-inst.cc: Fixup names. Add use_facet instantiations
1319 for collate, numpunct.
1320
1321 2001-02-06 Phil Edwards <pme@sources.redhat.com>
1322
1323 * docs/html/configopts.html: Fix HTML markup.
1324 * docs/html/install.html: Bring up to date.
1325 * docs/html/17_intro/C++STYLE: Add global variable conventions.
1326 * docs/html/21_strings/howto.html: More notes.
1327 * docs/html/22_locale/howto.html: Fix HTML markup.
1328 * docs/html/27_io/howto.html: More notes.
1329 * docs/html/27_io/binary_iostreams_kanze.txt: New file.
1330 * docs/html/27_io/binary_iostreams_kuehl.txt: New file.
1331
1332 2001-02-06 Jeffrey Oldham <oldham@codesourcery.com>
1333
1334 * src/misc-inst.cc (_S_pad_char): Modify declaration's parameters
1335 to match header files.
1336 (_S_output_float): Likewise.
1337 (_S_copy_streambufs): Likewise.
1338
1339 2001-02-06 Hyman Rosen <Hyman.Rosen@kbcfp.com>
1340 Phil Edwards <pme@sources.redhat.com>
1341
1342 * include/bits/std_istream.h (op>> signed,unsigned char): Must
1343 use reinterpret_cast, not static_cast.
1344
1345 2001-02-06 Benjamin Kosnik <bkoz@redhat.com>
1346
1347 * acinclude.m4 (gxx_include_dir): Quote, fix regression.
1348 * aclocal.m4: Regenerate.
1349 * configure: Regenerate.
1350
1351 2001-02-05 Benjamin Kosnik <bkoz@redhat.com>
1352
1353 * include/bits/locale_facets.h (class moneypunct): Fix typos.
1354 * libsupc++/pure.cc: Revert.
1355
1356 2001-02-05 Benjamin Kosnik <bkoz@redhat.com>
1357
1358 * acinclude.m4 (GLIBCPP_CHECK_MATH_DECL_1): New macro.
1359 (GLIBCPP_CHECK_MATH_DECL_2): New macro.
1360 (GLIBCPP_CHECK_MATH_DECL_3): New macro.
1361 (GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_1): Use it, check for _* too.
1362 (GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_2): Same.
1363 (GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_3): Same.
1364 (GLIBCPP_CHECK_MATH_SUPPORT): Remove explicit checks for _* versions.
1365 * aclocal.m4: Regenerate.
1366 * configure: Regenerate.
1367
1368 2001-02-05 Mark Mitchell <mark@codesourcery.com>
1369
1370 * include/bits/locale_facets.tcc: Remove `static' keyword on
1371 function definitions.
1372 * include/bits/std_streambuf.h: Likewise.
1373 * src/Makefile.am: Remove use of -fimplicit-templates.
1374 * src/Makefile.in: Regenerated.
1375 * src/locale-inst.cc: Explicitly instantiate more functions.
1376 * src/misc-inst.cc: Likewise.
1377 * src/string-inst.cc: Likewise.
1378
1379 2001-02-05 Benjamin Kosnik <bkoz@redhat.com>
1380
1381 * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): New
1382 macro. Consolidate all the bits to do with where includes might be
1383 installed.
1384 * aclocal.m4: Regenerate.
1385 * configure.in: Use it.
1386 * configure: Regenerate.
1387 * src/Makefile.am (targetincludep): Use simplified rules.
1388 (targetincludep): Rename gxx_target_include_dir.
1389 (myincludep): Rename gxx_include_dir.
1390 * src/Makefile.in: Regenerate.
1391 * libsupc++/Makefile.am: Use simplified rules.
1392 * libsupc++/Makefile.in: Regenerate.
1393
1394 2001-02-05 Benjamin Kosnik <bkoz@redhat.com>
1395
1396 * include/c_std/bits/std_cerrno.h: Correct date format for copyright.
1397 * include/c_std/bits/std_cctype.h: Same.
1398 * include/c_std/bits/std_cassert.h: Same.
1399 * include/c_std/bits/std_cstdarg.h: Same.
1400 * include/c_std/bits/std_cstddef.h: Same.
1401
1402 * include/c_std/bits/std_cstdio.h: Undefine all names brought into
1403 namespace std.
1404 * include/c_std/bits/std_ctime.h: Same.
1405 * include/c_std/bits/std_clocale.h: Same.
1406 * include/c_std/bits/std_cmath.h: Same.
1407 * include/c_std/bits/std_csetjmp.h: Same.
1408 * include/c_std/bits/std_csignal.h: Same.
1409 * include/c_std/bits/std_cstring.h: Same.
1410 * include/c_std/bits/std_cstdlib.h: Same.
1411 * include/c_std/bits/std_cwchar.h: Same.
1412
1413 2001-02-05 Phil Edwards <pme@sources.redhat.com>
1414
1415 * testsuite/27_io/ios_base_members_static.cc: Swap order of tests.
1416
1417 2001-02-05 Mark Mitchell <mark@codesourcery.com>
1418
1419 * src/string-inst.cc (string::_M_replace): Explicitly instantiate.
1420 (string::_S_construct): Likewise.
1421
1422 2001-02-05 Gabriel Dos Reis <gdr@codesourcery.com>
1423
1424 * testsuite/config/default.exp: New file.
1425 * testsuite/config: New directory.
1426
1427 2001-02-04 Mark Mitchell <mark@codesourcery.com>
1428
1429 * libsupc++/typeinfo (__GXX_MERGED_TYPEINFO_NAMES): New macro.
1430 * libsupc++/tinfo.cc (std::typeinfo::operator==): Use strcmp
1431 whenever !__GXX_MERGED_TYPEINFO_NAMES.
1432 * libsupc++/tinfo2.cc (std::typeinfo::before): Likewise.
1433
1434 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
1435 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1436
1437 * Makefile.am (mkinstalldirs): Set.
1438 * src/Makefile.am (mkinstalldirs): Set.
1439 * libmath/Makefile.am (mkinstalldirs): Set.
1440 * libsup++/Makefile.am (mkinstalldirs): Set.
1441 * libio/Makefile.am (mkinstalldirs): Set.
1442 * */Makefile.in: Regenerate.
1443
1444 2001-02-03 Benjamin Kosnik <bkoz@redhat.com>
1445
1446 * include/bits/stl_threads.h (struct _STL_mutex_lock): Same.
1447 * include/bits/localefwd.h: More initialization cleanups.
1448
1449 2001-02-03 Jeffrey A Law <law@cygnus.com>
1450
1451 * include/bits/ios_base.h (_S_ios_fmtflags_end): Initialize
1452 correctly targets with 16bit ints.
1453 (_S_ios_openmode_end): Similarly.
1454 (_S_ios_iostate_end): Similarly.
1455 (_S_ios_Seekdir_end): Similarly.
1456
1457 2001-02-02 Phil Edwards <pme@sources.redhat.com>
1458
1459 * mkcheck.in: Also limit virtual memory size, for mmap-based mallocs.
1460
1461 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
1462
1463 * configure.in (toplevel_srcdir, auxdir): Set.
1464 * acinclude.m4 (glibcpp_basedir): Set based on auxdir.
1465 * aclocal.m4, configure, Makefile.in: Rebuilt.
1466 * libio/Makefile.in, math/Makefile.in, src/Makefile.in: Likewise.
1467 * libsupc++-v3/Makefile.am (INCLUDES): Use toplevel_srcdir.
1468 * libsupc++-v3/Makefile.in: Rebuilt.
1469 * libsupc++-v3/configure.in, libsupc++-v3/configure: Removed.
1470 * libsupc++-v3/aclocal.m4, libsupc++-v3/config.h.in: Likewise.
1471
1472 2001-01-30 Benjamin Kosnik <bkoz@redhat.com>
1473
1474 * config/c_locale_generic.cc: Remove langinfo include.
1475
1476 2001-01-29 Benjamin Kosnik <bkoz@redhat.com>
1477
1478 Preliminary named locales.
1479 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): New macro.
1480 * aclocal.m4: Regenerate.
1481 * configure.in: Use it.
1482 * configure: Regerate.
1483 * src/Makefile.am (sources): Add c++locale.cc.
1484 (build_headers): Add c++locale.h.
1485 * src/Makefile.in: Regenerate.
1486 * config/c_locale_gnu.h: New file.
1487 * config/c_locale_gnu.cc: New file. Non-inline member functions
1488 for named locales, gnu-specific.
1489 * config/c_locale_generic.h: New file.
1490 * config/c_locale_generic.cc: New file. Non-inline member
1491 functions for named locales, generic version.
1492 * docs/html/configopts.html: Add documentation on new options.
1493
1494 * include/bits/locale_facets.h (class _Messages): Remove.
1495 (class _Moneypunct): Remove.
1496 * src/locale-inst.cc: Remove.
1497
1498 * include/bits/locale_facets.h (class _Collate): Remove.
1499 * src/locale-inst.cc (std): Remove.
1500 * src/locale.cc: And here.
1501
1502 * include/bits/localefwd.h (locale::_M_coalesce): New
1503 function. Correctly put together multi-name locales.
1504 (_Impl(const _Impl&, category, size_t)): Remove.
1505
1506 * include/bits/localefwd.h (locale::_Impl): Remove _M_construct_*
1507 member functions.
1508 (_M_normalize_category_names): Remove.
1509 (_M_replace_categories): Fix.
1510
1511 * src/localename.cc (locale::_Impl::_M_construct_collate): Remove.
1512 (locale::_Impl::_M_construct_ctype): Remove.
1513 (locale::_Impl::_M_construct_monetary): Remove.
1514 (locale::_Impl::_M_construct_numeric): Remove.
1515 (locale::_Impl::_M_construct_time): Remove.
1516 (locale::_Impl::_M_construct_messages): Remove.
1517
1518 * include/bits/locale_facets.h (_Bad_use_facet): Remove.
1519 (_Use_facet_failure_handle): Remove.
1520 * src/locale.cc: Remove definitions.
1521 * src/locale-inst.cc: And here.
1522
1523 * testsuite/22_locale/ctor_copy_dtor.cc (test01): Fixup. Add tests.
1524
1525 * src/localename.cc (locale::facet::_S_create_c_locale): Properly
1526 create and error-check underlying locale object.
1527 (locale::facet::_S_destroy_c_locale): Add, take care of properly
1528 tearing down underlying locale object.
1529 * include/bits/localefwd.h (locale::facet): Declare.
1530 * testsuite/22_locale/members.cc: Don't test "fr_FR" locale for
1531 correctness, as glibc apparently has incorrect info in it. Test
1532 with it when it works again.....
1533
1534 * include/bits/localefwd.h (locale::_Impl::__vec_string):
1535 Remove. Number of categories is fixed at six, so just simplify and
1536 make this an array of strings.
1537 (locale::_Impl::_M_has_name): Remove.
1538 (locale::_Impl::_M_name): Remove.
1539 (locale::_Impl::_M_category_names): Turns into...
1540 (locale::_Impl::_M_names): ...this.
1541 (locale::_Impl::_M_has_same_name()): New function.
1542 * src/localename.cc (locale::_Impl::~_Impl()): Remove here.
1543 (locale::_Impl::_Impl(size_t __refs, string __str)): Simplify
1544 signature.
1545 * src/locale.cc (locale::name()): Construct mangled name
1546 accurately reflecting combined locale categories.
1547
1548 * src/locale.cc (locale::classic()): Don't initialize here.
1549 * src/localename.cc (locale::_Impl::_Impl(size_t __num, size_t
1550 __refs, bool __has_name, string __str): Do it here.
1551
1552 * include/bits/localefwd.h: _S_categories_num to
1553 _S_num_categories. _S_facets_num to _S_num_facets.
1554 (locale::id::id()): Explicitly set _M_index to zero.
1555 * src/locale.cc: Same.
1556
1557 * src/locale.cc: (locale::locale(const char*)): Construct named
1558 locales uniquely.
1559
1560 * src/locale.cc: Remove numpunct_byname ctors.
1561 * testsuite/22_locale/numpunct_byname.cc: New file.
1562 * testsuite/22_locale/numpunct.cc: New file.
1563
1564 * include/bits/localefwd.h (class locale): Change data members to
1565 protected, from private.
1566 (_Impl::_M_get_c_locale): Add member function.
1567 (locale::facet::_M_get_global_impl()): Add member function.
1568 * include/bits/locale_facets.h (numpunct::_M_init): Change to take
1569 a __c_locale pointer.
1570 (numpunct::numpunct( __c_locale*, size_t)): Add additonal ctor for
1571 named locales.
1572 * testsuite/22_locale/members.cc: New file, test name and combine.
1573
1574 * include/bits/locale_facets.h (class numpunct): Remove class
1575 _Punct and _Numpunct. Rewrite class numpunct to be correct for
1576 named locales.
1577 * include/bits/localefwd.h (locale::_Imp::_M_c_locale): Add.
1578 * src/localename.cc (_Impl::~_Impl()): Call __frelocale.
1579 (_Imp::_Impl(size_t, size_t, bool, string)) Initialize _M_c_locale.
1580 * src/locale-inst.cc: Remove _Numpunct, _Punct instantiations.
1581 * testsuite/22_locale/numpunct_char_members.cc: New file.
1582
1583 2001-01-28 Gabriel Dos Reis <gdr@codesourcery.com>
1584
1585 * testsuite/README: Add more comment.
1586 * testsuite/lib/libstdc++.exp: Tweak comment.
1587
1588 2001-01-26 Benjamin Kosnik <bkoz@kredhat.com>
1589
1590 * libsupc++/pure.cc (writestr): Just use cstdio and std::fputs.
1591
1592 2001-01-25 Loren J. Rittle <ljrittle@acm.org>
1593
1594 * testsuite/21_strings/inserters_extractors.cc: Remove
1595 explicit reference to 'testsuite/'.
1596
1597 2001-01-25 Richard Henderson <rth@redhat.com>
1598
1599 * config/cpu/alpha/bits/atomicity.h: Remove tricky .subsetion
1600 bits. Fixes Tru64 build issues.
1601
1602 2001-01-25 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1603
1604 * acinclude.m4 (GLIBCPP_CHECK_GNU_MAKE): Bourne shell portability bug
1605 (use ${MAKE-make}, not ${MAKE:-make}).
1606 * aclocal.m4, configure: Regenerate.
1607
1608 2001-01-25 Mark Mitchell <mark@codesourcery.com>
1609
1610 * src/ios.cc: Remove accidental inclusion of <stdio.h> in last
1611 checkin.
1612
1613 * src/Makefile.am (sources): Add globals.cc.
1614 * src/Makefile.in: Regenerated.
1615 * src/globals.cc: New file.
1616 * src/ios.cc (cin): Don't define here, just declare extern.
1617 (cout): Likewise.
1618 (cerr): Likewise.
1619 (clog): Likewise.
1620 (wcin): Likewise.
1621 (wcout): Likewise.
1622 (wcerr): Likewise.
1623 (wclog): Likewise.
1624
1625 2001-01-25 Phil Edwards <pme@sources.redhat.com>
1626
1627 * include/bits/std_iterator.h: Do not include stl_relops.h.
1628 * include/bits/std_numeric.h: Ditto.
1629 * include/bits/stl_algobase.h: Ditto.
1630 * include/bits/stl_relops.h: Add comment warning about problems.
1631
1632 2001-01-25 Gabriel Dos Reis <gdr@codesourcery.com>
1633
1634 * testsuite/27_io/*.cc: Remove explicit reference to 'testsuite/'
1635 in testcases. Prepare for the DejaGnu based framework.
1636 * mkcheck.in: Adjust call to tests_flags. Don't mmkdir testsuite
1637 directory -- it is now mkcheck working directory.
1638 * tests_flags.in: Remove reference to $(top_srcdir). Use
1639 ${SRC_DIR} instead.
1640 * Makefile.am (check, check-install): Change mkcheck invocation
1641 logic.
1642 * Makefile.in: Regenerate.
1643
1644 2001-01-24 Mark Mitchell <mark@codesourcery.com>
1645
1646 * config/os/aix/bits/atomicity.h (__compare_and_swap): Remove.
1647 (__always_swap): Likewise.
1648
1649 2001-01-23 Chris Demetriou <cgd@broadcom.com>
1650
1651 * libsupc++/exception_support.cc (__terminate_func): Remove
1652 declaration.
1653 (__terminate_func_ptr): New typedef.
1654 (__terminate, __terminate_set_func): New extern function
1655 prototypes.
1656 (std::terminate): Use __terminate function.
1657 (std::set_terminate): Use __terminate_set_func function.
1658
1659 2001-01-23 Benjamin Kosnik <bkoz@redhat.com>
1660
1661 * configure.target: Just use os_include_dir always.
1662 * configure.in: Remove calls to GLIBCPP_CHECK_CTYPE_SUPPORT.
1663 Link atomicity files and ctype files here.
1664 * configure: Regenerate.
1665 * acinclude.m4 (GLIBCPP_CHECK_CTYPE_SUPPORT): Remove.
1666 (GLIBCPP_ENABLE_ATOMICITY): Remove.
1667 * aclocal.m4: Regenerate.
1668
1669 2001-01-23 Chris Demetriou <cgd@broadcom.com>
1670
1671 * configure.in: Place definition of MULTISUBDIR in
1672 libsupc++/Makefile as is done for src/Makefile.
1673 * configure: Regenerate.
1674
1675 2001-01-23 Phil Edwards <pme@sources.redhat.com>
1676
1677 * acinclude.m4: Cosmetic changes only.
1678 * aclocal.m4: Regenerated.
1679 * configure: Regenerated.
1680 * configure.target: Update documented list of changed variables.
1681 * docs/html/install.html: Fix typo.
1682 * docs/html/20_util/howto.html: More notes on auto_ptr.
1683 * docs/html/27_io/howto.html: More notes on streabufs.
1684 * docs/html/faq/index.html: Add rel_ops problem and mention the
1685 DEC as(1) .subsection difficulty.
1686 * docs/html/faq/index.txt: Regenerated.
1687
1688 2001-01-23 Mark Mitchell <mark@codesourcery.com>
1689
1690 * ainclude.m4 (GLIBCPP_CHEC_MATH_DECLS_AND_LINKAGE_1): New macro.
1691 (GLIBCPP_CHECK_MATH_SUPPORT): Use it.
1692 (GLIBCPP_CHECK_TYPE_SUPPORT): Don't autoconf ctype information if
1693 its already provided in config.target.
1694 * aclocal.m4: Regenerated.
1695 * configure: Likewise.
1696 * configure.target: Set ctype_include_dir for lots of systems.
1697 * libsupc++/Makefile.am: Explicitly include --tag disable-shared.
1698 * libsupc++/Makefile.in: Regenerated.
1699
1700 2001-01-23 Gabriel Dos Reis <gdr@codesourcery.com>
1701
1702 * testsuite/lib/libstdc++.exp: Improve. Add support for @xxx#
1703 keyword capability.
1704
1705 * testsuite/README: Add comment.
1706
1707 2001-01-21 Phil Edwards <pme@sources.redhat.com>
1708
1709 * docs/html/configopts.html: Update for current status. Fix HTML.
1710 * docs/html/install.html: Update for current status.
1711
1712 2001-01-20 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
1713
1714 * testsuite/libstdc++.tests/tests.exp: New file.
1715 * testsuite/lib/libstdc++.exp: Itou.
1716 * testsuite/README: Itou.
1717
1718 2001-01-20 Gabriel Dos Reis <gdr@codesourcery.com>
1719
1720 * tests_flags.in: Just output the bare minimum to run tests.
1721 Let's the caller do its own arrangement.
1722
1723 * mkcheck.in: Rename INC_PATH to INCLUDES. Adjust flags
1724 computations.
1725
1726 2001-01-19 Gabriel Dos Reis <gdr@codesourcery.com>
1727
1728 * testsuite/17_intro: Prepare testcases for new style DejaGnu
1729 framework.
1730
1731 2001-01-18 Gabriel Dos Reis <gdr@codesourcery.com>
1732
1733 * testsuite/libstdc++.tests, testsuite/lib: New directories.
1734
1735 2001-01-17 Loren J. Rittle <ljrittle@acm.org>
1736
1737 * mkcheck.in: Construct file names that match $objdir structure.
1738 * testsuite/27_io/filebuf_members-1.txt: New file.
1739 * testsuite/27_io/ifstream_members-1.txt: New file.
1740 * testsuite/27_io/ostream_inserter_char-1.txt: New file.
1741
1742 * testsuite/27_io/ios_base_members_static.cc (test02): Add test.
1743 * testsuite/27_io/ios_base_members_static-1.tst: Add expected output.
1744
1745 2001-01-17 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
1746
1747 * testsuite/27_io/istream_sentry.cc (test02): Fix.
1748
1749 2001-01-17 Benjamin Kosnik <bkoz@redhat.com>
1750
1751 libstdc++/1605
1752 * include/bits/ios_base.h (ios_base::failure): Tighten up throw specs.
1753 * src/ios.cc (ios_base::failure): Make definitions match.
1754 * libsupc++/typeinfo (class bad_typeid): Add throw specs.
1755 (class bad_cast): Same.
1756 * libsupc++/exception (class exception): Add throw specs.
1757 * libsupc++/exception_support.cc (set_terminate): Add throw specs.
1758 (set_unexpected): Same.
1759 (uncaught_exception): Same.
1760 (what): Same.
1761
1762 * docs/html/17_intro/C++STYLE (classname): Fix.
1763
1764 2001-01-16 Mark Mitchell <mark@codesourcery.com>
1765
1766 * src/gen-num-limits.cc (INSTANTIATIONS): New macro.
1767 Use it do explicitly instantiate predicate<T> and value<T> for
1768 all the builtin Ts.
1769
1770 2001-01-16 Nathan Sidwell <nathan@codesourcery.com>
1771
1772 * libsupc++/exception_support.cc (__cp_pop_exception): Fix
1773 uninitialized thinko in last change.
1774
1775 2001-01-16 Mark Mitchell <mark@codesourcery.com>
1776
1777 * libsupc++/exception_support.cc (__cp_pop_exception): Change
1778 prototype.
1779
1780 2001-01-16 Benjamin Kosnik <bkoz@redhat.com>
1781
1782 * docs/html/17_intro/C++STYLE (classname): Add more existing
1783 and stylish patterns.
1784
1785 libstdc++/944
1786 * include/bits/istream.tcc (istream::sentry::sentry()): Set
1787 failbit if the state of the stream is not good.
1788 * testsuite/27_io/istream_sentry.cc (test02): Add test.
1789 * testsuite/27_io/istream_manip.cc (test01): Modify.
1790
1791 libstdc++/1019
1792 reported by Paolo Carlini <pcarlini@unitus.it>
1793 * include/bits/istream.tcc (operator>>(istream&, string&)): Fix.
1794 * testsuite/21_strings/inserters_extractors.cc (test08): Add test.
1795
1796 libstdc++/1057
1797 * include/bits/std_streambuf.h (setp): Set _M_buf_size correctly.
1798 * include/bits/streambuf.tcc (xsputn): Remove outside if clause.
1799 (xsgetn): Same. Simplify.
1800 * testsuite/27_io/streambuf.cc (test04): Add testcases.
1801
1802 reported by Larry Evans <jcampbell3@prodigy.net>
1803 * include/bits/streambuf.tcc (streambuf::xsputn): Just check for
1804 equality with eof on returned value from overflow.
1805
1806 2001-01-14 Andreas Jaeger <aj@suse.de>
1807
1808 * libio/libio.h: Add test for glibc 2.0.
1809
1810 2001-01-12 Benjamin Kosnik <bkoz@redhat.com>
1811
1812 * config/os/djgpp/bits/*: Fix dates.
1813
1814 * include/bits/basic_string.h (_S_find(const _CharT* __beg, const
1815 _CharT* __end, _CharT __c): Remove.
1816 * include/bits/basic_string.tcc: Substitute traits::find for _S_find.
1817 * include/bits/char_traits.h: Tweak.
1818
1819 2001-01-12 Laurynas Biveinis <lauras@softhome.net>
1820
1821 * acinclude.m4 (GLIBCPP_CHECK_CTYPE_SUPPORT): check for DJGPP <ctype.h>
1822 (LIB_AC_PROG_CXX): replace [/\\] with [\\/] to work around older
1823 bash bug.
1824 * aclocal.m4: regenerated.
1825 * configure.target: set os_include_dir to config/os/djgpp under DJGPP.
1826 * configure: regenerated.
1827 * config/os/djgpp, config/os/djgpp/bits: new directories.
1828 * config/os/djgpp/bits/ctype_base.h,
1829 config/os/djgpp/bits/ctype_inline.h,
1830 config/os/djgpp/bits/ctype_noninline.h,
1831 config/os/djgpp/bits/os_defines.h: new files.
1832
1833 2001-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
1834
1835 * include/c_std/bits/std_cstdio.h: Undef printf.
1836
1837 2001-01-10 Benjamin Kosnik <bkoz@redhat.com>
1838
1839 * src/ios.cc: Fix typo: change cout->wcout.
1840
1841 * src/Makefile.am (targetincludep): Fix for version-specific-libs.
1842 * src/Makefile.in: Regenerate.
1843
1844 2001-01-10 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
1845
1846 * include/bits/std_complex.h: Fix a typo.
1847
1848 2001-01-09 Benjamin Kosnik <bkoz@redhat.com>
1849 <kainz@ilm.com>
1850
1851 Fixes for libstdc++/1576
1852 * src/stdstreams.cc: Initialize with NULL filebuf. Delete
1853 file, move contents into....
1854 * src/ios.cc: ...Here. Put defines for iostreams objects and
1855 initialization routines into one file to simplify DSO interaction.
1856 * include/bits/std_iostream.h: Touch.
1857 * include/bits/ios_base.h (_S_synched_with_stdio): Make static.
1858 * src/Makefile.am (sources): Remove stdstreams.cc.
1859 * src/Makefile.in: Regenerate.
1860
1861 2001-01-10 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
1862
1863 * tests_flags.in (check_directory): Fix typo.
1864
1865 2001-01-09 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
1866
1867 * include/bits/std_complex.h: Fix a typo.
1868
1869 2001-01-09 Loren J. Rittle <ljrittle@acm.org>
1870
1871 * config/os/bsd/freebsd/bits/ctype_inline.h (is): (Make right
1872 code path:) Remove magic constants and restructure to handle
1873 ctype.h bit mask layout changes more gracefully. (Make fast
1874 code path:) Use __maskrune (), if available.
1875 (is): Remove special case for digit and xdigit masks.
1876
1877 2001-01-09 Robert Lipe <robertlipe@usa.net>
1878
1879 * include/c_std/bits/std_ctime.h: Undefine difftime.
1880
1881 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
1882
1883 * src/gen-num-limits.cc (signal_adapter): New template function.
1884 (signal_handler): Use it, instead of signal.
1885 (traps<T>): Likewise. Install SIGTRAP handler too. Don't
1886 require both tests to trap to set trap_flag.
1887
1888 2001-01-08 Benjamin Kosnik <bkoz@redhat.com>
1889
1890 * include/bits/fpos.h (fpos:::fpos(streamoff __pos)): Explicitly
1891 initialize mbstate_t member, name offset data members *off, not pos.
1892 * include/bits/fstream.tcc (filebuf::filebuf): Same.
1893
1894 2001-01-08 Benjamin Kosnik <bkoz@redhat.com>
1895
1896 reported by Chris G. Demetriou <cgd@sibyte.com>
1897 * configure.in: Change -linux-* to -linux*.
1898 * configure: Regenerate.
1899
1900 2001-01-05 Benjamin Kosnik <bkoz@redhat.com>
1901
1902 Fix 27_io/filebuf_members.cc
1903 * src/localename.cc (locale::_Impl::_Impl(const _Impl& __imp,
1904 const string& __name, category __cat, size_t __refs): Set
1905 _M_has_name with _M_name.
1906 * include/bits/localefwd.h (locale::operator!=): Protect member
1907 function call with this->.
1908 * src/locale.cc (locale::operator==): Make fast checks first.
1909 * include/bits/basic_ios.tcc (basic_ios::init): Simplify.
1910
1911 * include/bits/ios_base.h (_M_synced_with_stdio): Add data member
1912 to ios_base::Init.
1913 * src/ios.cc (ios_base::Init::Init): Initialize here.
1914 (ios_base::sync_with_stdio): Set here.
1915
1916 2001-01-04 Loren J. Rittle <ljrittle@acm.org>
1917
1918 * config/c_io_stdio.cc (__basic_file<_CharT>::sys_open()): On
1919 systems that support it, call dup() before fdopen().
1920
1921 2001-01-03 Benjamin Kosnik <bkoz@redhat.com>
1922
1923 * include/c_std/bits/std_cwctype.h: Include std_cwchar.h for wint_t.
1924 * testsuite/17_intro/header_cwctype.cc (main): New file.
1925
1926 * src/Makefile.am (base_headers): Change.
1927 * include/bits/std_string.h: And here.
1928 * include/bits/string.tcc: Tweaks, move to...
1929 * include/bits/basic_string.tcc: ...Here.
1930 * src/string-inst.cc: Simplify, just instantiate the whole class,
1931 not member-by-member.
1932
1933 2001-01-02 Benjamin Kosnik <bkoz@redhat.com>
1934
1935 * acinclude.m4 (GLIBCPP_ENABLD_CSTDIO): Add in default value.
1936 * aclocal.m4: Regenerate.
1937 * configure: Regenerate.
1938
1939 * include/bits/c++config (__GLIBCPP__): Bump version number.
1940
1941 * ChangeLog: Start new log for year 2001
1942 * ChangeLog-2000: New file.
1943
1944 * docs/html/configopts.html: Make sure default values are current,
1945 add commentary.
1946
1947 2001-01-01 Benjamin Kosnik <bkoz@fillmore.redhat.com>
1948
1949 * include/c_std/bits/std_cwchar.h: Same.
1950 * testsuite/17_intro/header_cwchar.cc: Same.
1951 * include/c_std/bits/std_ctime.h: Same.
1952 * testsuite/17_intro/header_ctime.cc: Same.
1953 * include/c_std/bits/std_cstdlib.h: Same.
1954 Clean up undefs, make consistent with cwchar and cmath, etc.
1955 * testsuite/17_intro/header_cstdlib.cc: Same.
1956 * include/c_std/bits/std_cstdio.h: Same here.
1957 * testsuite/17_intro/header_cstring.cc: Same.
1958 * include/c_std/bits/std_cstring.h: Include std_cstddef.h for size_t.
1959 * testsuite/17_intro/header_cstring.cc: New file. Check for
1960 size_t in namespace std.
1961
1962 * include/c_std/bits/std_cwchar.h: Explicit checks for mbstate_t.
1963 * acconfig.h (HAVE_MBSTATE_T): Add.
1964 * config.h.in: Regenerate.
1965 * acinclude.m4(GLIBCPP_CHECK_WCHAR_T_SUPPORT): Always test for
1966 mbstate_t.
1967 * aclocal.m4: Regenerate.
1968 * configure: Regenerate.
1969 * testsuite/17_intro/headers_c++.cc: New file.
1970 * testsuite/17_intro/headers_c.cc: Small changes.
1971
1972 2001-01-01 David Billinghurst <David.Billinghurst@riotinto.com>
1973
1974 * tests_flags.in: Fix typo in usage.
1975
1976 * tests_flags.in: Set target specific LIBS for cygwin.