]> git.ipfire.org Git - thirdparty/gcc.git/blob - libstdc++-v3/ChangeLog
testsuite_allocator.h: New file.
[thirdparty/gcc.git] / libstdc++-v3 / ChangeLog
1 2002-11-25 Stephen M. Webb <stephen@bregmasoft.com>
2
3 * testsuite/testsuite_allocator.h: New file.
4 * testsuite/testsuite_allocator.cc: New file.
5 * testsuite/Makefile.am: Added testsuite_allocator to test library.
6 * testsuite/testsuite_hooks.h: Added more detailed tracker objects
7 gnu_copy_constructor, gnu_assignment_operator, and gnu_destructor.
8 * testsuite/testsuite_hooks.cc: Added new static objects definitions.
9 * testsuite/23_containers/vector_capacity.cc: Added reserve() tests.
10 * testsuite/23_containers/vector_ctor.cc: Added a plethora of tests.
11 * testsuite/23_containers/deque_ctor.cc: Added a slew of new tests.
12
13 2002-11-25 Mark Mitchell <mark@codesourcery.com>
14
15 * libsupc++/Makefile.am (sources): Add guard.cc.
16 * libsupc++/Makefile.in: Regenerated.
17 * libsupc++/cxxabi.h (__cxa_guard_acquire): New function.
18 (__cxa_guard_release): Likewise.
19 (__cxa_guard_abort): Likewise.
20 * libsupc++/guard.cc: New file.
21
22 2002-11-25 Wolfgang Bangerth <bangerth@ticam.utexas.edu>
23
24 * include/std/std_complex.h
25 (operator<<(basic_ostream&, const complex&)): Prefer 'x'
26 to "x" for efficiency sake.
27 * src/locale.cc (locale::locale(const char*)): Ditto.
28
29 2002-11-24 Paolo Carlini <pcarlini@unitus.it>
30
31 * src/locale.cc (locale::locale(const char*)):
32 Trivial cosmetic tweaks.
33
34 2002-11-22 Laszlo Ersek <erseklaszlo@chello.hu>
35 Paolo Carlini <pcarlini@unitus.it>
36
37 PR libstdc++/8645
38 * include/bits/stl_tree.h (_Rb_tree_rebalance_for_erase):
39 Don't check that __w->_M_left != 0 and __w->_M_right != 0
40 when they can't be otherwise.
41
42 2002-11-21 Phil Edwards <pme@gcc.gnu.org>
43
44 * docs/html/documentation.html: Fix broken/thinko'd URL.
45
46 2002-11-21 Phil Edwards <pme@gcc.gnu.org>
47
48 * docs/doxygen/run_doxygen: Tighter search expression for sed.
49 * docs/doxygen/stdheader.cc: Handle the case of good headers.
50
51 2002-11-21 Phil Edwards <pme@gcc.gnu.org>
52
53 * acinclude.m4: Uniform formatting.
54 * configure.in: Warn when generic atomicity.h is used.
55 * configure.target: Fix comment.
56 * aclocal.m4, configure: Regenerate.
57
58 2002-11-21 Phil Edwards <pme@gcc.gnu.org>
59
60 * include/bits/streambuf.tcc (basic_streambuf::sputbackc): Prefix
61 "this->" to call to pbackfail.
62
63 2002-11-21 Phil Edwards <pme@gcc.gnu.org>
64
65 * docs/doxygen/style.css: Update.
66 * docs/doxygen/user.cfg.in: Update.
67 * docs/html/documentation.html: Regenerate.
68 * docs/html/17_intro/howto.html: Tweak I/O sentry entry.
69 * docs/html/27_io/howto.html: New section on headers.
70 * docs/html/faq/index.html: Add i386 threading entry.
71 * docs/html/faq/index.txt: Regenerate.
72
73 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
74 Import R23.
75
76 2002-11-21 Phil Edwards <pme@gcc.gnu.org>
77
78 * docs/doxygen/TODO: Note change in clause 27 docs.
79 * include/bits/basic_ios.h, include/bits/fpos.h,
80 include/bits/ios_base.h, include/bits/stl_deque.h,
81 include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
82 include/std/std_iomanip.h, include/std/std_iosfwd.h,
83 include/std/std_iostream.h, include/std/std_istream.h,
84 include/std/std_ostream.h, include/std/std_sstream.h,
85 include/std/std_streambuf.h: Doxygenate all I/O entities.
86
87 2002-11-20 Benjamin Kosnik <bkoz@redhat.com>
88 Jonathan Lennox <lennox@cs.columbia.edu>
89
90 * include/bits/streambuf.tcc (__copy_streambufs):
91 Revert previous fix for the interactive half of
92 libstdc++/6745, use _M_buf_size_opt to set dynamically
93 the correct buffer size.
94
95 2002-11-20 Jonathan Wakely <redi@gcc.gnu.org>
96
97 * docs/html/21_strings/howto.html: Fix example code, cite Gaby's
98 explanation of "<unknown type>" error with toupper/tolower.
99 * docs/html/22_locale/howto.html: Be more consistent with
100 example in 21_strings.
101
102 2002-11-19 John Gustafsson <forgoil@rsn.bth.se>
103
104 * docs/html/20_util/howto.html: Fix typo.
105
106 2002-11-18 Jonathan Lennox <lennox@cs.columbia.edu>
107
108 * include/bits/streambuf.tcc (__copy_streambufs): verify
109 __sbin->gptr() + __bufsize < __sbin->egptr() before using.
110 * testsuite/27_io/ostream_inserter_other.cc (test_buffer_4): Add.
111 (test05): Use test_buffer_4. Delete unused ostringstream
112 variables.
113
114 2002-11-18 Paolo Carlini <pcarlini@unitus.it>
115
116 PR libstdc++/6745 (continued)
117 * include/bits/streambuf.tcc (__copy_streambufs):
118 Deal with interactive input by using isatty as in the
119 fix for libstdc++/8399.
120
121 2002-11-17 Jakub Jelinek <jakub@redhat.com>
122
123 * config/linker-map.gnu: Export _S_construct even if size_t is
124 unsigned long. Collapse std::codecvt<char>::codecvt(size_t)
125 and std::codecvt<wchar_t>::codecvt(size_t) into one export pattern.
126
127 2002-11-15 Benjamin Kosnik <bkoz@redhat.com>
128 Gabriel Dos Reis <gdr@integrable-solutions.net>
129
130 PR libstdc++/8230
131 * include/bits/stl_alloc.h: Use builtin_expect for the most
132 obvious limit checks.
133 (__default_alloc_template::allocate): Check for null, throw
134 bad_alloc.
135 * include/bits/vector.tcc: Formatting tweaks.
136 * include/bits/stl_vector.h: Same.
137 * testsuite/20_util/allocator_members.cc (test02): Add.
138 * testsuite/23_containers/vector_capacity.cc (test03): Add.
139
140 2002-11-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
141
142 * src/ios.cc [_GLIBCPP_HAVE_UNISTD_H]: Include unistd.h.
143
144 2002-11-15 Paolo Carlini <pcarlini@unitus.it>
145 Loren J. Rittle <ljrittle@acm.org>
146
147 PR libstdc++/8399
148 * acinclude.m4
149 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): New macro to
150 check for unistd.h functions.
151 (GLIBCPP_CHECK_UNISTD_SUPPORT): New macro, check for isatty
152 in unistd.h.
153 * configure.in: Call here.
154 * src/ios.cc (ios_base::Init::_S_ios_create(bool)):
155 Use _GLIBCPP_HAVE_ISATTY: ifdef, in case of interactive
156 input __in_size = 1 even when sync_with_stdio is false;
157 otherwise fall back to __in_size = 1.
158 * aclocal.m4: Regenerate.
159 * config.h.in: Regenerate.
160 * configure: Regenerate.
161
162 2002-11-13 Benjamin Kosnik <bkoz@redhat.com>
163
164 * acconfig.h (HAVE_DRAND48): Add.
165 (HAVE_GETPAGESIZE): Add.
166 (HAVE_SETENV): Add.
167 (HAVE_SIGSETJMP): Add.
168 * config.h.in: Regenerate.
169 * configure: Regenerate.
170
171 2002-11-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
172
173 * config/os/hpux/os_defines.h (_GLIBCPP_INST_ATOMICITY_LOCK): Define
174 on hppa when there is no weak support.
175
176 2002-11-13 Benjamin Kosnik <bkoz@redhat.com>
177
178 PR libstdc++/8230
179 * include/bits/vector.tcc (vector::reserve): Throw length_error if
180 requested size is bigger than max_size().
181 * include/bits/stl_bvector.h (vector<bool>::reserve): Same.
182 * testsuite/23_containers/vector_capacity.cc (test02): Add.
183
184 2002-11-13 Benjamin Kosnik <bkoz@redhat.com>
185
186 * config/linker-map.gnu: Export all _S_construct.
187
188 2002-11-13 Loren J. Rittle <ljrittle@acm.org>
189
190 PR libstdc++/7445
191 * src/locale.cc (std::locale::classic()): Weaken locking protocol.
192
193 2002-11-13 Jonathan Wakely <redi@gcc.gnu.org>
194
195 * docs/html/install.html, docs/html/22_locale/locale.html: HTML fix.
196
197 2002-11-11 Benjamin Kosnik <bkoz@redhat.com>
198
199 PR libstdc++/6746
200 * include/bits/fstream.tcc (filebuf::open): Set input pointers.
201 * config/io/basic_file_stdio.cc (__basic_file::_M_open_mode): Set
202 __p_mode as well.
203 (__basic_file::open): Set to non-block for input.
204 * testsuite/27_io/istream_unformatted.cc (test12): Add.
205 (test13): Same.
206
207 2002-11-11 Jonathan Wakely <redi@gcc.gnu.org>
208
209 * docs/html/17_intro/howto.html: Make "chapter 22 notes" a link.
210 * docs/html/faq/index.html: Mention that GCC ships with a newer
211 version of the library than the last snapshot. Make "see below" a
212 link. Add missing <html> tag.
213 * docs/html/faq/index.txt: Regenerate.
214 * docs/html/22_locale/locale.html, docs/html/22_locale/messages.html,
215 docs/html/23_containers/howto.html, docs/html/24_iterators/howto.html,
216 docs/html/25_algorithms/howto.html, docs/html/26_numerics/howto.html,
217 docs/html/27_io/howto.html, docs/html/ext/howto.html,
218 docs/html/ext/sgiexts.html: Add missing <html> tag.
219
220 2002-11-07 Phil Edwards <pme@gcc.gnu.org>
221 Richard Earnshaw <rearnsha@arm.com>
222
223 * config/cpu/generic/atomicity.h: Provide atomic __exchange_and_add
224 and __atomic_add.
225
226 2002-11-08 Paolo Carlini <pcarlini@unitus.it>
227
228 * config/locale/gnu/monetary_members.cc
229 (moneypunct<wchar_t, true>::_M_initialize_moneypunct(__c_locale,
230 const char*),
231 moneypunct<wchar_t, false>::_M_initialize_moneypunct(__c_locale,
232 const char*)): Tweak parameters for glibc2.3 systems, thus
233 avoiding unused parameter warnings.
234
235 2002-11-05 Jonathan Wakely <cow@compsoc.man.ac.uk>
236
237 * include/std/std_sstream.h
238 (basic_stringbuf::str(const __string_type&)):
239 Prefer data() to c_str(), thus avoiding assigning the
240 unnecessary NULL-terminator.
241
242 2002-11-05 Benjamin Kosnik <bkoz@redhat.com>
243
244 PR libstdc++/8258
245 * include/bits/istream.tcc (istream::readsome): Don't set eofbit
246 for null buffer.
247 (istream::operator>>(_CharT*)): Use traits_type.
248 (istream::ws): Same.
249 (istream::operator>>(string)): Same.
250 * testsuite/27_io/istream_unformatted.cc (test11): Add.
251
252 2002-11-05 Paolo Carlini <pcarlini@unitus.it>
253
254 PR libstdc++/8466
255 * include/std/std_sstream.h
256 (basic_stringbuf::str(const __string_type&)):
257 Cannot use simple assignment since the COW-nature of v3
258 basic_string is not taken into account in basic_stringbuf.
259 * testsuite/27_io/stringstream_members.cc: Add test04 from PR.
260
261 2002-11-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
262
263 * configure.target (hppa*): Define cpu_include_dir.
264 * config/os/hpux/os_defines.h (_GLIBCPP_INST_ATOMICITY_LOCK): Define.
265 * src/misc-inst.cc: Instantiate atomicity lock when
266 _GLIBCPP_INST_ATOMICITY_LOCK is defined.
267 * config/cpu/hppa/atomicity.h: New file.
268
269 2002-11-05 Benjamin Kosnik <bkoz@redhat.com>
270
271 PR libstdc++/8463
272 * include/bits/ios_base.h (~ios_base): Make virtual.
273
274 2002-11-04 Benjamin Kosnik <bkoz@redhat.com>
275
276 * config/linker-map.gnu: Export string operator+.
277 Export __default_alloc_template::_S_force_new.
278 * testsuite/abi_check.cc: Output tweaks.
279
280 2002-11-01 Benjamin Kosnik <bkoz@redhat.com>
281
282 PR libstdc++/8172
283 * src/string-inst.cc: Add instantiation.
284
285 2002-11-01 Benjamin Kosnik <bkoz@redhat.com>
286
287 PR libstdc++/7926
288 * configure.target: Simplify.
289 * config/cpu/i386/atomicity.h: Remove.
290 * config/cpu/i386: Remove.
291 * config/cpu/arm/atomicity.h: Remove.
292 * config/cpu/arm: Remove.
293 * config/cpu/x86-64/atomicity.h: Remove.
294 * config/cpu/x86-64: Remove.
295
296 2002-11-01 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
297
298 PR libstdc++/8197
299 * config/link-map.gnu: Export math stubbs.
300
301 2002-11-01 Benjamin Kosnik <bkoz@redhat.com>
302
303 PR libstdc++/8318
304 * include/std/std_iostream.h: Tweak.
305 * include/std/std_iosfwd.h: Add _GLIBCPP_USE_WCHAR_T.
306 * include/std/std_iomanip.h: Same.
307 * include/bits/stringfwd.h: Same.
308 * include/bits/basic_string.tcc: Same.
309 * include/bits/sstream.tcc: Same.
310 * include/bits/fstream.tcc: Same.
311 * include/bits/basic_ios.tcc: Same.
312 * include/bits/streambuf.tcc: Same.
313 * include/bits/locale_facets.tcc: Same.
314
315 2002-11-01 John Carter <john.carter@tait.co.nz>
316
317 PR libstdc++/7961
318 * include/bits/basic_string.tcc
319 (compare(const _CharT* __s)): Don't access __s past its length.
320
321 2002-10-31 Benjamin Kosnik <bkoz@redhat.com>
322
323 PR libstdc++/8348
324 * include/bits/istream.tcc (istream::tellg): Remove sentry bits.
325 (istream::seekg): Same.
326 * testsuite/27_io/istream_seeks.cc (test06): New.
327
328 2002-10-28 Jason Thorpe <thorpej@wasabisystems.com>
329
330 * testsuite/thread/pthread5.cc: Include <unistd.h>
331 if _GLIBCPP_HAVE_UNISTD_H is defined.
332 (main): Only use pthread_attr_setscope if
333 _POSIX_THREAD_PRIORITY_SCHEDULING is defined.
334
335 2002-10-28 Jason Thorpe <thorpej@wasabisystems.com>
336
337 * testsuite/thread/pthread1.cc: Enable on *-*-netbsd*.
338 * testsuite/thread/pthread2.cc: Likewise.
339 * testsuite/thread/pthread3.cc: Likewise.
340 * testsuite/thread/pthread4.cc: Likewise.
341 * testsuite/thread/pthread5.cc: Likewise.
342 * testsuite/thread/pthread6.cc: Likewise.
343
344 2002-10-27 Paolo Carlini <pcarlini@unitus.it>
345
346 PR libstdc++/8347
347 * include/bits/basic_string.tcc
348 (string::_S_construct(_InIter, _InIter, const _Alloc&,
349 forward_iterator_tag)): Do not throw logic error if
350 __beg == NULL && __end == __beg.
351 (string::string(const _CharT*, const _Alloc&)): Tweak.
352 * testsuite/21_strings/ctor_copy_dtor.cc: Add test05 from PR.
353
354 2002-10-24 Hans-Peter Nilsson <hp@bitrange.com>
355
356 PR other/3337
357 PR bootstrap/6763
358 PR bootstrap/8122
359 * testsuite/testsuite_hooks.cc (__set_testsuite_memlimit): Use
360 __typeof__ (r.rlim_cur), not rlim_t in declaration of limit.
361
362 2002-10-23 Jakub Jelinek <jakub@redhat.com>
363
364 * testsuite/22_locale/num_put_members_char.cc (test01): Swap size
365 and decimal_point arguments of find.
366 * testsuite/22_locale/num_put_members_wchar_t.cc (test01): Likewise.
367
368 2002-10-22 Jakub Jelinek <jakub@redhat.com>
369
370 * Makefile.am (check-abi, new-abi-baseline): Use @glibcpp_srcdir@
371 instead of ${top_srcdir}.
372 * Makefile.in: Rebuilt.
373
374 2002-10-22 Loren J. Rittle <ljrittle@acm.org>
375
376 * testsuite/18_support/numeric_limits.cc (test_extrema<long double>):
377 Remove specialization for FreeBSD systems.
378
379 2002-10-18 Loren J. Rittle <ljrittle@acm.org>
380
381 * configure.target (freebsd*): Use abi_baseline_triplet.
382 * config/abi/i386-unknown-freebsd4/baseline_symbols.txt: New file.
383 * config/abi/i386-unknown-freebsd4.7/baseline_symbols.txt: Remove.
384
385 * testsuite/thread/pthread1.cc: Remove needless workaround
386 for FreeBSD 5.
387
388 2002-10-18 Loren J. Rittle <ljrittle@acm.org>
389 Brad Spencer <spencer@infointeractive.com> (provided alternate
390 patch and improvements)
391
392 * docs/html/23_containers/howto.html (GLIBCPP_FORCE_NEW): Document
393 new environment variable which replaces all uses of __USE_MALLOC
394 macro.
395 * docs/html/ext/howto.html (GLIBCPP_FORCE_NEW): Likewise.
396 (__mem_interface): Remove all references to old internal typedef.
397 * include/backward/alloc.h (__USE_MALLOC): Remove it and all
398 guarded code.
399 * include/bits/c++config (__USE_MALLOC): Update related error
400 message and comment.
401 * include/bits/stl_alloc.h (__USE_MALLOC): Remove it and all
402 guarded code. Update all related comments.
403 (__mem_interface): Unconditionally replace it with __new_alloc.
404 However, leave the typedef around in case anyone used it.
405 (__default_alloc_template<>::_S_force_new): New class static.
406 (__default_alloc_template<>::allocate, deallocate): Add
407 run-time controlled feature similar to what __USE_MALLOC code
408 path had provided.
409 * src/stl-inst.cc (__USE_MALLOC): Remove it and all
410 guarded code.
411 * testsuite/21_strings/capacity.cc: Remove reference to __USE_MALLOC.
412 Add documentation on GLIBCPP_FORCE_NEW environment variable.
413 * testsuite/ext/allocators.cc: Likewise.
414
415 2002-10-18 Phil Edwards <pme@gcc.gnu.org>
416
417 * configure.in: Use target, not target_alias, when matching triplet
418 patterns.
419 * configure: Regenerate.
420
421 2002-10-17 Momchil Velikov <velco@fadata.bg>
422 Loren J. Rittle <ljrittle@acm.org>
423
424 * configure.in: Add *-freebsd* to cross list.
425 * configure: Rebuilt.
426
427 2002-10-16 Benjamin Kosnik <bkoz@redhat.com>
428
429 * include/bits/locale_facets.h (__timepunct::__timepunct): Allocate
430 _M_name_timepunct.
431 (__timepunct::~__timepunct): Deallocate, remove specialization
432 declarations.
433 (messages::messages): Allocate _M_name_messages.
434 (messages::~messages): Deallocate.
435 (messages_byname): Same.
436 * config/locale/gnu/time_members.cc (__timepunct::~__timepunct):
437 Remove.
438 * config/locale/generic/time_members.cc (__timepunct::~__timepunct):
439 Remove.
440
441 * docs/html/install.html: Add es_MX, en_PH to required locales list.
442
443 2002-10-16 Benjamin Kosnik <bkoz@redhat.com>
444
445 * config/linker-map.gnu: Add exports for codecvt constructors
446 where size_t == unsigned long.
447
448 2002-10-14 Benjamin Kosnik <bkoz@redhat.com>
449
450 * src/globals.cc (__gnu_cxx::c_locale_impl_compat): Add, alias to
451 c_locale_impl.
452 * testsuite/abi_check.cc (line_to_symbol_info): Collect size info.
453 * docs/html/abi.txt: Update.
454
455 2002-10-14 Benjamin Kosnik <bkoz@redhat.com>
456
457 * testsuite/22_locale/static_members.cc (test02): Less provincial.
458
459 2002-10-14 Benjamin Kosnik <bkoz@redhat.com>
460
461 * testsuite/22_locale/static_members.cc (test02): Disable for
462 systems without named locale support.
463 * testsuite/22_locale/ctor_copy_dtor.cc (test04): Don't assume
464 running the testsuites in "C" environment.
465 Add new tests.
466 * docs/html/22_locale/locale.html: Update.
467
468 2002-10-13 Danny Smith <dannysmith@users.sourceforge.net>
469
470 * include/bits/stl_threads.h (_GLIBCPP_mutex,
471 _GLIBCPP_mutex_init,_GLIBCPP_mutex_address,
472 _GLIBCPP_mutex_address_init, _GLIBCPP_once):
473 Declare in namespace __gnu_cxx.
474 (_STL_mutex_lock::_M_initialize): Qualify __gnu_cxx
475 names.
476 Adjust copyright.
477
478 2002-10-12 Benjamin Kosnik <bkoz@redhat.com>
479
480 * testsuite/abi_check.cc (hash<string>): Specialize.
481 Simplify. Check compatible symbol versions.
482 * config/linker-map.gnu: Clarify, explicitly export
483 std::codecvt::c* symbols.
484
485 * testsuite/22_locale/static_members.cc (test02): Avoid null strings.
486
487 2002-10-12 Jonathan Wakely <jw@kayari.org>
488 Gabriel Dos Reis <gdr@integrable-solutions.net>
489
490 * docs/html/21_strings/howto.html#5: Correct nasting of XHTML
491 elements. Correct allocator-related text.
492
493 2002-10-11 Benjamin Kosnik <bkoz@redhat.com>
494
495 * testsuite/22_locale/static_members.cc (test02): Fix.
496
497 2002-10-11 Benjamin Kosnik <bkoz@redhat.com>
498
499 * acconfig.h (_GLIBCPP_SYMVER): Add.
500 (_GLIBCPP_ASM_SYMVER): Add.
501 * acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Define _GLIBCPP_SYMVER.
502 * aclocal.m4: Regenerate.
503 * config.h.in: Regenerate.
504 * configure: Regenerate.
505 * include/bits/c++config (_GLIBCPP_AT_AT): Define, as an expedient
506 hack around m4 issues with quoting '@'.
507 * src/locale.cc: Use _GLIBCPP_ASM_SYMVER.
508 * src/globals.cc: Same.
509
510 * testsuite/22_locale/ctor_copy_dtor.cc (test04): Fix for
511 non-glibc systems.
512
513 2002-10-10 Benjamin Kosnik <bkoz@redhat.com>
514
515 * config/linker-map.gnu (GLIBCPP_3.2.1): Add.
516 (GLIBCPP_3.2): Don't export locale::_S_*.
517 * src/ios.cc: Move globals into __gnu_cxx. Make old exported
518 symbols match.
519 * src/locale.cc: Same.
520 * src/localename.cc: Same.
521 * src/globals.cc: Same.
522
523 2002-10-10 Phil Edwards <pme@gcc.gnu.org>
524
525 * docs/html/21_strings/howto.html: Write #5, char_traits.
526 * docs/html/17_intro/porting.texi: Expand on os_include_dir.
527 * docs/html/17_intro/porting.html: Regenerate.
528
529 2002-10-09 Benjamin Kosnik <bkoz@redhat.com>
530
531 * src/locale.cc: Fix comments, move ctors together.
532 * testsuite/22_locale/static_members.cc (test03): Add.
533
534 2002-10-08 Jonathan Lennox <lennox@cs.columbia.edu>
535
536 PR libstdc++/8071, libstdc++/8127, libstdc++/6745
537 * streambuf.tcc (__copy_streambufs): Handle cases where
538 __sbin->in_avail() returns 0, or where __sbin doesn't set gptr().
539 * testsuite/27_io/ostream_inserter_other.cc (test05): Add.
540
541 2002-10-08 Paolo Carlini <pcarlini@unitus.it>
542 Benjamin Kosnik <bkoz@redhat.com>
543
544 * include/bits/localefwd.h (class locale): Add static member
545 _S_num_extra_categories, encoding the number of additional
546 categories.
547 Change _S_num_categories to _S_categories_size.
548 (class locale::_Impl): Add _M_c_cats.
549 (class locale::_Impl::_M_names): Change to array of chars.
550 (class locale::_Impl::_M_check_same_name): Use
551 _S_extra_categories_size, tweak.
552 (locale::locale(const locale&, _Facet*)): Ditto.
553 * src/locale.cc (locale::locale(const char* )): Rewrite to deal
554 with the environment in a POSIX-compliant way while being thread
555 safe.
556 (locale::name()): Update to output POSIX environment strings.
557 * src/localename.cc
558 (locale::_Impl::_Impl(const _Impl&, size_t): Use
559 _S_categories_size_*, tweak.
560 (locale::_Impl::_Impl(facet**, size_t, bool)): Ditto.
561 (locale::_Impl::_Impl(const char*, size_t)): Name each category
562 individually.
563 (locale::_Impl::_M_replace_categories): Use strcpy.
564
565 * include/bits/locale_facets.h (numpunct::_M_initialize_numpunct):
566 Change default argument to NULL from _S_c_locale.
567 (timepunct::_M_initialize_timepunct): Same.
568 _S_c_locale cleanups.
569 * src/codecvt.c: _S_c_locale simplification.
570 * src/ctype.c: Same.
571 * src/globals.cc: Add fake_name.
572 * src/locale-inst.cc: Remove extra includes.
573 * src/locale.cc: Remove extra includes.
574 Add _S_extra_categories_size definition.
575 Correct "C" initialization.
576 (locale::facet::facet): Don't initialize _S_c_locale.
577 (locale::facet::_M_remove_reference): Adjust.
578 * src/localename: Use facet_vec, facet_name.
579 (locale::_Impl::_Impl(facet** __f, size_t __refs, bool)): Set
580 facet ref counts to one. Initialize _S_c_locale.
581 (locale::_Impl::_M_install_facet(id*, facet*)): Adjust facet ref
582 counts when installing unilaterally.
583
584 * config/locale/generic/c_locale.cc: Add _S_categories definition.
585 * config/locale/generic/c_locale.h: Add _GLIBCPP_NUM_CATEGORIES macro.
586 * config/locale/generic/time_members.cc: _S_c_locale cleanup.
587
588 * config/locale/gnu/c_locale.cc: Add _S_categories definition.
589 (_S_destroy_c_locale): Move checks against _S_c_locale here.
590 * config/locale/gnu/c_locale.h: Add _GLIBCPP_NUM_CATEGORIES macro.
591 * config/locale/gnu/ctype_members.cc: Simplify _S_destroy_c_locale
592 calls, _S_c_locale usage.
593 * config/locale/gnu/monetary_members.cc: Same, tweaks.
594 * config/locale/gnu/monetary_members.cc: Same.
595 * config/locale/gnu/time_members.cc: Same.
596 * config/os/gnu-linux/ctype_noninline.h: Use locale::classic().
597
598 * docs/html/22_locale/locale.html: Add bits about global locales
599 and "C" setlocale.
600
601 * testsuite/22_locale/facet.cc (test02): Add.
602 * testsuite/22_locale/static_members.cc (test02): Add.
603 * testsuite/22_locale/ctor_copy_dtor.cc (test04): Add.
604
605 2002-10-07 Jonathan Wakely <jw@kayari.org>
606
607 * docs/html/configopts.html, docs/html/documentation.html,
608 docs/html/explanations.html, docs/html/install.html,
609 docs/html/17_intro/contribute.html, docs/html/17_intro/howto.html,
610 docs/html/17_intro/license.html, docs/html/18_support/howto.html,
611 docs/html/19_diagnostics/howto.html, docs/html/20_util/howto.html,
612 docs/html/21_strings/howto.html, docs/html/22_locale/codecvt.html,
613 docs/html/22_locale/ctype.html, docs/html/22_locale/howto.html,
614 docs/html/22_locale/locale.html, docs/html/22_locale/messages.html,
615 docs/html/23_containers/howto.html, docs/html/24_iterators/howto.html,
616 docs/html/25_algorithms/howto.html, docs/html/26_numerics/howto.html,
617 docs/html/27_io/howto.html, docs/html/ext/howto.html,
618 docs/html/ext/sgiexts.html, docs/html/faq/index.html: Add DOCTYPEs.
619
620 2002-10-03 Richard Earnshaw <rearnsha@arm.com>
621
622 PR libstdc++/3584
623 * config/cpu/arm/atomicity.h (__exchange_and_add): Don't try to use
624 ASM sequences that don't give us atomic addition operations. Instead
625 just add a comment explaining why it doesn't work.
626 (__atomic_add): Just use __exchange_and_add.
627 (__test_and_set, __always_swap): Delete.
628
629 2002-10-02 Andreas Jaeger <aj@suse.de>
630
631 * config/abi/x86_64-unknown-linux-gnu/baseline_symbols.txt:
632 New file.
633
634 2002-10-01 Phil Edwards <pme@gcc.gnu.org>
635
636 * Makefile.am (check-abi): Add @ to rule.
637 * Makefile.in: Regenerated.
638
639 2002-09-27 Paolo Carlini <pcarlini@unitus.it>
640
641 * include/bits/locale_facets.tcc (num_put::_M_widen_int):
642 Deal correctly with grouped, showbased (oct or hex) zero.
643 * testsuite/22_locale/num_put_members_char.cc: Add test05.
644 * testsuite/22_locale/num_put_members_wchar_t.cc: Ditto.
645
646 2002-09-27 Richard Henderson <rth@redhat.com>
647
648 * config/os/hpux/cpu_limits.h: Remove.
649
650 * include/std/std_limits.h (numeric_limits<T>::is_iec559): False
651 if denormals are not supported.
652
653 2002-09-25 Benjamin Kosnik <bkoz@redhat.com>
654
655 * include/Makefile.am (target_headers): Remove cpu_limits.h.
656 * include/Makefile.in: Regenerate.
657 * configure.in (CPU_LIMITS_INC_SRCDIR): Remove
658 * configure: Regenerate.
659 * configure.target (CPULIMITS): Remove.
660
661 * include/std/std_limits.h: Remove cpu_limits.h include.
662
663 * config/os/solaris/solaris2.7/os_defines.h (__glibcpp_long_bits):
664 Remove.
665 * config/os/irix/irix6.5/os_defines.h
666 (__glibcpp_long_double_bits): Remove.
667 (__glibcpp_wchar_t_bits): Remove.
668 (__glibcpp_long_bits): Remove.
669 * config/os/irix/irix5.2/os_defines.h
670 (__glibcpp_long_double_bits): Remove.
671 (__glibcpp_long_bits): Remove.
672 * config/os/hpux/os_defines.h (__glibcpp_wchar_t_is_signed): Remove.
673 * config/os/bsd/freebsd/os_defines.h:
674 (__glibcpp_long_double_bits): Remove.
675 * config/os/aix/os_defines.h (__glibcpp_wchar_t_bits): Remove.
676 (__glibcpp_wchar_t_is_signed): Remove.
677 (__glibcpp_long_bits): Remove.
678 * config/os/gnu-linux/os_defines.h (__glibcpp_long_bits): Remove.
679 (__glibcpp_long_double_bits): Remove.
680
681 * config/os/osf/osf5.0/cpu_limits.h: Remove.
682 * config/cpu/alpha/cpu_limits.h: Remove.
683 * config/cpu/arm/cpu_limits.h: Remove.
684 * config/cpu/cris/cpu_limits.h: Remove.
685 * config/cpu/generic/cpu_limits.h: Remove.
686 * config/cpu/generic/limits.h: Remove.
687 * config/cpu/ia64/cpu_limits.h: Remove.
688 * config/cpu/m68k/cpu_limits.h: Remove.
689 * config/cpu/mmix/cpu_limits.h: Remove.
690 * config/cpu/powerpc/cpu_limits.h: Remove.
691 * config/cpu/S390/cpu_limits.h: Remove.
692
693 2002-09-25 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
694
695 * testsuite/18_support/numeric_limits.cc: Check the maximum and
696 minimum values of the wchar_t type.
697
698 2002-09-25 Mark Mitchell <mark@codesourcery.com>
699
700 * include/std/std_limits.h (numeric_limits<unsigned char>::digits):
701 Fix typo.
702
703 2002-09-23 Richard Henderson <rth@redhat.com>
704
705 * include/std/std_limits.h (__glibcpp_plain_char_is_signed,
706 __glibcpp_wchar_t_is_signed, __glibcpp_s8_max, __glibcpp_s8_min,
707 __glibcpp_s8_digits, __glibcpp_s8_digits10, __glibcpp_u8_min,
708 __glibcpp_u8_max, __glibcpp_u8_digits, __glibcpp_u8_digits10,
709 __glibcpp_s16_max, __glibcpp_s16_min, __glibcpp_s16_digits,
710 __glibcpp_s16_digits10, __glibcpp_u16_min, __glibcpp_u16_max,
711 __glibcpp_u16_digits, __glibcpp_u16_digits10, __glibcpp_s32_max,
712 __glibcpp_s32_min, __glibcpp_s32_digits, __glibcpp_s32_digits10,
713 __glibcpp_u32_min, __glibcpp_u32_max, __glibcpp_u32_digits,
714 __glibcpp_u32_digits10, __glibcpp_s64_max, __glibcpp_s64_min,
715 __glibcpp_s64_digits, __glibcpp_s64_digits10, __glibcpp_u64_min,
716 __glibcpp_u64_max, __glibcpp_u64_digits, __glibcpp_u64_digits10,
717 __glibcpp_bool_digits, __glibcpp_signed_char_min,
718 __glibcpp_signed_char_max, __glibcpp_signed_char_digits,
719 __glibcpp_signed_char_digits10, __glibcpp_unsigned_char_min,
720 __glibcpp_unsigned_char_max, __glibcpp_unsigned_char_digits,
721 __glibcpp_unsigned_char_digits10, __glibcpp_char_min,
722 __glibcpp_char_max, __glibcpp_char_digits, __glibcpp_char_digits10,
723 __glibcpp_signed_short_min, __glibcpp_signed_short_max,
724 __glibcpp_signed_short_digits, __glibcpp_signed_short_digits10,
725 __glibcpp_unsigned_short_min, __glibcpp_unsigned_short_max,
726 __glibcpp_unsigned_short_digits, __glibcpp_unsigned_short_digits10,
727 __glibcpp_signed_int_min, __glibcpp_signed_int_max,
728 __glibcpp_signed_int_digits, __glibcpp_signed_int_digits10,
729 __glibcpp_unsigned_int_min, __glibcpp_unsigned_int_max,
730 __glibcpp_unsigned_int_digits, __glibcpp_unsigned_int_digits10,
731 __glibcpp_signed_long_min, __glibcpp_signed_long_max,
732 __glibcpp_unsigned_long_digits, __glibcpp_unsigned_long_digits10,
733 __glibcpp_signed_long_long_min, __glibcpp_signed_long_long_max,
734 __glibcpp_signed_long_long_digits, __glibcpp_signed_long_long_digits10,
735 __glibcpp_wchar_t_min, __glibcpp_wchar_t_max, __glibcpp_wchar_t_digits,
736 __glibcpp_wchar_t_digits10): Remove.
737 (__glibcpp_byte, __glibcpp_word_bits, __glibcpp_word): Remove.
738 (__float_storage, __double_storage, __long_double_storage): Remove.
739 (__glibcpp_signed, __glibcpp_min, __glibcpp_max): New.
740 (__glibcpp_digits, __glibcpp_digits10): New.
741 (numeric_limits<T>::min): Use __glibcpp_min or limits.h builtins.
742 (numeric_limits<T>::max): Use __glibcpp_max or limits.h builtins.
743 (numeric_limits<T>::is_signed, T=char,wchar_t): Use __glibcpp_signed.
744 (numeric_limits<T>::digits): Use __glibcpp_digits.
745 (numeric_limits<T>::digits10): Use __glibcpp_digits10.
746 * testsuite/18_support/numeric_limits.cc (test03): Don't use
747 __glibcpp_s8_digits10 et al; check vs the installed versions
748 of digits10 for particular sizes.
749
750 * include/std/std_limits.h (__glibcpp_float_is_modulo,
751 __glibcpp_double_is_modulo, __glibcpp_long_double_is_modulo): Kill.
752 (numeric_limits<T>::is_modulo, T floating): Use false.
753
754 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
755
756 * Makefile.am (all-multi): Fix multilib parallel build.
757
758 2002-09-22 Richard Henderson <rth@redhat.com>
759
760 * include/std/std_limits.h (__glibcpp_f32_round_error,
761 __glibcpp_f64_round_error, __glibcpp_f80_round_error,
762 __glibcpp_f96_round_error, __glibcpp_f128_round_error,
763 __glibcpp_float_round_error, __glibcpp_double_round_error,
764 __glibcpp_long_double_round_error, __glibcpp_float_round_style,
765 __glibcpp_double_round_style, __glibcpp_long_double_round_style): Kill.
766 (numeric_limits<char>::epsilon, round_error): Use constant 0.
767 (numeric_limits<float>::round_error): Use constant 0.5.
768 (numeric_limits<float>::round_style): Use round_to_nearest.
769 (numeric_limits<double>, numeric_limits<long double>): Similarly.
770
771 * include/std/std_limits.h (__glibcpp_f32_is_iec559,
772 __glibcpp_f64_is_iec559, __glibcpp_f80_is_iec559,
773 __glibcpp_f96_is_iec559, __glibcpp_f128_is_iec559,
774 __glibcpp_float_is_iec559, __glibcpp_double_is_iec559,
775 __glibcpp_long_double_is_iec559): Remove.
776 (numeric_limits<float>::is_iec559): Use has_infinity & has_quiet_NaN.
777 (numeric_limits<double>, numeric_limits<long double>): Similarly.
778
779 * include/std/std_limits.h (__glibcpp_integral_traps): New.
780 (__glibcpp_char_traps, __glibcpp_short_traps, __glibcpp_int_traps,
781 __glibcpp_long_traps, __glibcpp_wchar_t_traps,
782 __glibcpp_long_long_traps, __glibcpp_plain_char_traps,
783 __glibcpp_signed_char_traps, __glibcpp_unsigned_char_traps,
784 __glibcpp_signed_short_traps, __glibcpp_unsigned_short_traps,
785 __glibcpp_signed_int_traps, __glibcpp_unsigned_int_traps,
786 __glibcpp_signed_long_traps, __glibcpp_unsigned_long_traps,
787 __glibcpp_signed_long_long_traps, __glibcpp_unsigned_long_long_traps,
788 __glibcpp_char_is_modulo, __glibcpp_signed_char_is_modulo,
789 __glibcpp_signed_short_is_modulo, __glibcpp_signed_int_is_modulo,
790 __glibcpp_signed_long_is_modulo, __glibcpp_signed_long_long_is_modulo,
791 __glibcpp_wchar_t_is_modulo, __glibcpp_float_is_bounded,
792 __glibcpp_double_is_bounded, __glibcpp_long_double_is_bounded): Kill.
793 (numeric_limits<T>::traps, T integral): Use __glibcpp_integral_traps.
794 (numeric_limits<T>::is_modulo, T integral): Use true.
795 (numeric_limits<T>::is_bounded, T floating): Use true.
796
797 2002-09-18 Loren J. Rittle <ljrittle@acm.org>
798
799 * testsuite/18_support/numeric_limits.cc (test_epsilon): New.
800
801 2002-09-18 Richard Henderson <rth@redhat.com>
802
803 * testsuite/18_support/numeric_limits.cc: Add -mieee for alpha.
804
805 2002-09-16 Benjamin Kosnik <bkoz@redhat.com>
806
807 * include/c_shadow: Remove.
808 * include/bits/generic_shadow.h: Remove.
809 * include/Makefile.am: Remove generic_shadow.h.
810 * acinclude.m4: Remove c_shadow references.
811 * aclocal.m4: Regenerate.
812 * configure: Regenerate.
813 * mkcshadow: Remove.
814 * mkinclosure: Remove.
815
816 2002-09-16 Loren J. Rittle <ljrittle@acm.org>
817
818 libstdc++/7922
819 * include/ext/stl_rope.h (rope<>): Qualify dependent names
820 with `typename'.
821
822 2002-09-16 Richard Henderson <rth@redhat.com>
823
824 * include/std/std_limits.h (__glibcpp_f32_QNaN_bytes,
825 __glibcpp_f32_has_QNaN, __glibcpp_f32_SNaN_bytes,
826 __glibcpp_f32_has_SNaN, __glibcpp_f64_QNaN_bytes,
827 __glibcpp_f64_has_QNaN, __glibcpp_f64_SNaN_bytes,
828 __glibcpp_f64_has_SNaN, __glibcpp_f80_QNaN_bytes,
829 __glibcpp_f80_has_QNaN, __glibcpp_f80_SNaN_bytes,
830 __glibcpp_f80_has_SNaN, __glibcpp_f96_QNaN_bytes,
831 __glibcpp_f96_has_QNaN, __glibcpp_f96_SNaN_bytes,
832 __glibcpp_f96_has_SNaN, __glibcpp_f128_QNaN_bytes,
833 __glibcpp_f128_has_QNaN, __glibcpp_f128_SNaN_bytes,
834 __glibcpp_f128_has_SNaN, __glibcpp_float_QNaN_bytes,
835 __glibcpp_float_has_QNaN, __glibcpp_float_SNaN_bytes,
836 __glibcpp_float_has_SNaN, __glibcpp_double_QNaN_bytes,
837 __glibcpp_double_has_QNaN, __glibcpp_double_SNaN_bytes,
838 __glibcpp_double_has_SNaN, __glibcpp_long_double_QNaN_bytes,
839 __glibcpp_long_double_has_QNaN, __glibcpp_long_double_SNaN_bytes,
840 __glibcpp_long_double_has_SNaN): Remove.
841 (__glibcpp_f128_is_iec559): True if IEEE.
842 (__glibcpp_float_QNaN, __glibcpp_float_SNaN): Remove.
843 (__glibcpp_double_QNaN, __glibcpp_double_SNaN): Remove.
844 (__glibcpp_long_double_QNaN, __glibcpp_long_double_SNaN): Remove.
845 (std::numeric_limits<float>::has_quiet_NaN): Use __builtin_nanf.
846 (std::numeric_limits<float>::has_signaling_NaN): Mirror has_quiet_NaN.
847 (std::numeric_limits<float>::quiet_NaN): Use __builtin_nanf.
848 (std::numeric_limits<float>::signaling_NaN): Use __builtin_nansf.
849 (std::numeric_limits<double>): Similarly.
850 (std::numeric_limits<long double>): Similarly.
851 * src/limits.cc (__glibcpp_float_QNaN, __glibcpp_float_SNaN): Remove.
852 (__glibcpp_double_QNaN, __glibcpp_double_SNaN): Remove.
853 (__glibcpp_long_double_QNaN, __glibcpp_long_double_SNaN): Remove.
854
855 * testsuite/18_support/numeric_limits.cc (test_infinity): New.
856 (test_denorm_min, test_qnan, test_is_iec559): New.
857
858 2002-09-16 Phil Edwards <pme@gcc.gnu.org>
859
860 * testsuite/abi_check.cc: Pull shell fragments out into...
861 * config/abi/extract_symvers: ...here. New file.
862 * Makefile.am (check_abi): Change to match.
863 (new-abi-baseline): New target.
864 * Makefile.in: Regenerated.
865
866 2002-09-16 Richard Henderson <rth@redhat.com>
867
868 * include/std/std_limits.h (__glibcpp_f32_denorm_min_bytes,
869 __glibcpp_f32_has_denorm, __glibcpp_f64_denorm_min_bytes,
870 __glibcpp_f64_has_denorm, __glibcpp_f80_denorm_min_bytes,
871 __glibcpp_f80_has_denorm, __glibcpp_f96_denorm_min_bytes,
872 __glibcpp_f96_has_denorm, __glibcpp_f128_denorm_min_bytes,
873 __glibcpp_f128_has_denorm, __glibcpp_float_denorm_min_bytes,
874 __glibcpp_float_has_denorm, __glibcpp_double_denorm_min_bytes,
875 __glibcpp_double_has_denorm, __glibcpp_long_double_denorm_min_bytes,
876 __glibcpp_long_double_has_denorm): Remove.
877 (__glibcpp_float_denorm_min, __glibcpp_double_denorm_min,
878 __glibcpp_long_double_denorm_min): Remove.
879 (std::numeric_limits<float>::has_denorm): Use __FLT_DENORM_MIN__.
880 (std::numeric_limits<float>::denorm_min): Likewise.
881 (std::numeric_limits<double>): Similarly.
882 (std::numeric_limits<long double>): Similarly.
883 * src/limits.cc (__glibcpp_float_denorm_min,
884 __glibcpp_double_denorm_min, __glibcpp_long_double_denorm_min): Remove.
885
886 2002-09-13 Andy Felt <afelt@uwsp.edu>
887
888 * docs/html/17_intro/howto.html: Update link.
889
890 2002-09-13 Phil Edwards <pme@gcc.gnu.org>
891
892 * docs/doxygen/run_doxygen: Massage man page for Iterator_types.3.
893 * docs/html/faq/index.html: Whitespace fixes.
894
895 2002-09-12 Benjamin Kosnik <bkoz@redhat.com>
896
897 * libmath/Makefile.am (LIBTOOL): Use --tag CC always for this
898 directory.
899 * libmath/Makefile.in: Regenerate.
900 * src/Makefile.am: Tweak comment.
901 * src/Makefile.in: Regenerate.
902
903 * config/locale/gnu/c_locale.h: Remove warnings.
904 Inject __uselocale into __gnu_cxx.
905 * config/locale/generic/c_locale.h: Match.
906
907 2002-09-11 Benjamin Kosnik <bkoz@redhat.com>
908
909 * include/bits/locale_facets.tcc (__convert_from_v): Remove.
910 * config/locale/gnu/c_locale.h (__convert_from_v): Add.
911 * config/locale/generic/c_locale.h (__convert_from_v): Add.
912
913 2002-09-11 Paolo Carlini <pcarlini@unitus.it>
914
915 * include/bits/locale_facets.tcc (__convert_from_v):
916 Use __uselocale instead of setlocale for glibc 2.3+.
917
918 2002-09-10 Benjamin Kosnik <bkoz@redhat.com>
919
920 * src/Makefile.am (sources): Edit.
921 (target_sources): New.
922 (target_sources_extra): New.
923 * src/Makefile.in: Regenerate.
924 * acinclude.m4: Set CCODECVT_CC.
925 * aclocal.m4: Regenerate.
926 * configure: Regenerate.
927 * src/locale.cc: Move ctype definitions...
928 * src/ctype.cc: ...here. New file.
929 * src/locale.cc: Move codecvt definitions...
930 * src/codecvt.cc: ...here.
931 * config/generic/codecvt_members.cc: ...and here.
932 * config/gnu/codecvt_members.cc: ...and here.
933 * include/bits/codecvt.h: Tweak.
934 * include/bits/locale_facets: Tweak.
935
936 * src/bitset.cc: Correct license text.
937 * src/concept-inst.cc: Same.
938 * src/strstream.cc: Same.
939 * src/vterminate.cc: Same.
940
941 2002-09-10 Gabriel Dos Reis <gdr@soliton.integrable-solutions.net>
942
943 * include/bits/stl_vector.h (vector<>): Don't use a name with
944 different meanings before and after re-evaluation in the completed
945 scope.
946 * include/bits/basic_string.h (basic_string<>): Likewise.
947 * include/bits/stl_bvector.h (vector<bool>): Likewise.
948 * include/bits/stl_deque.h (std): Likewise.
949 * include/bits/stl_list.h (list<>): Likewise.
950 * include/bits/stl_tree.h (_Rb_tree<>): Likewise.
951
952 2002-09-10 Paolo Carlini <pcarlini@unitus.it>
953
954 * include/bits/codecvt.h (class __codecvt_abstract_base):
955 Add __c_locale type _M_c_locale_codecvt member.
956 (class codecvt<char, char, mbstate_t>,
957 class codecvt<wchar_t, char, mbstate_t>): Add new
958 codecvt(__c_locale, size_t) constructor.
959 (codecvt_byname::codecvt_byname): Update.
960 * src/codecvt.cc (class codecvt<char, char, mbstate_t>,
961 class codecvt<wchar_t, char, mbstate_t>): Update codecvt(size_t)
962 constructor and ~codecvt() destructor; define
963 codecvt(__c_locale, size_t) constructor.
964 (codecvt::do_out): Switch to _M_c_locale_codecvt around wcsrtombs call.
965 (codecvt::do_in): Ditto for mbsrtowcs call.
966 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t)):
967 Tweak construction of codecvt facets.
968
969 2002-09-10 Danny Smith <dannysmith@users.sourceforge.net>
970
971 * include/bits/locale_facets.tcc (__convert_from_v):
972 Replace strdup with ISO malloc and strcpy.
973
974 2002-09-09 Benjamin Kosnik <bkoz@redhat.com>
975
976 * docs/html/configopts.html: Change grouping. Note ABI impacts.
977 Update information for locale model defaults.
978 * docs/html/install.html: Update include directory
979 information.
980 Update testing information.
981 Update linux issues for named locales.
982 * docs/html/abi.txt: Fix typos.
983 Add more info.
984
985 * src/misc-inst.cc: Add missing instantiations.
986
987 * testsuite/abi_check.cc: Make output results more verbose.
988
989 * config/os/gnu-linux/ctype_base.h: Remove shadow headers injections.
990
991 2002-09-07 Jakub Jelinek <jakub@redhat.com>
992
993 * config/locale/generic/messages_members.cc: Add specialization for
994 messages<wchar_t>.
995 * config/locale/ieee_1003.1-20021/messages_members.cc: Likewise.
996
997 2002-09-06 Benjamin Kosnik <bkoz@redhat.com>
998
999 * include/bits/localefwd.h: Tweak formatting.
1000 * docs/html/abi.txt: Add.
1001
1002 2002-09-06 Jakub Jelinek <jakub@redhat.com>
1003
1004 * configure.target: Use cpu_include_dir="config/cpu/sparc" for all
1005 sparc targets.
1006 * config/cpu/sparc/atomicity.h: New file.
1007 * config/cpu/sparc/sparc32/atomicity.h: Removed.
1008 * config/cpu/sparc/sparc64/atomicity.h: Removed.
1009
1010 2002-09-06 Jakub Jelinek <jakub@redhat.com>
1011
1012 * config/os/gnu-linux/ctype_noninline.h
1013 [_GLIBCPP_USE_SHADOW_HEADERS]: Remove using _C_legacy::__ctype_*.
1014 (ctype<char>::classic_table): If _GLIBCPP_C_LOCALE_GNU, return
1015 _S_c_locale->__ctype_b, otherwise temporarily switch to "C" locale
1016 and return __ctype_b.
1017 (ctype<char>::ctype(__c_locale, const mask*, bool, size_t)): If not
1018 _GLIBCPP_C_LOCALE_GNU, temporarily switch to "C" locale and
1019 initialize using __ctype_{b,tolower,toupper}.
1020 (ctype<char>::ctype(const mask*, bool, size_t)): If
1021 _GLIBCPP_C_LOCALE_GNU, initialize using
1022 _S_c_locale->__ctype_{b,tolower,toupper}, otherwise temporarily
1023 switch to "C" locale and initialize using __ctype_{b,tolower,toupper}.
1024
1025 2002-09-05 Paolo Carlini <pcarlini@unitus.it>
1026 Roland McGrath <roland@redhat.com>
1027
1028 PR libstdc++/7811
1029 * src/locale.cc (locale::locale(__s)): Use getenv instead
1030 of setenv for the environment locale.
1031 * testsuite/22_locale/ctor_copy_dtor.cc (test03): New.
1032
1033 2002-09-05 Jakub Jelinek <jakub@redhat.com>
1034
1035 * config/abi/ia64-unknown-linux-gnu: Add.
1036 * config/abi/ia64-unknown-linux-gnu/baseline_symbols.txt: New file.
1037 * config/abi/alphaev67-unknown-linux-gnu: Add.
1038 * config/abi/alphaev67-unknown-linux-gnu/baseline_symbols.txt: New file.
1039
1040 2002-09-05 Jonathan Wakely <jw@kayari.org>
1041
1042 * docs/html/Makefile: Use more portable shell wildcard.
1043 * docs/html/makedoc.awk: Nest elements correctly for XHTML conversion.
1044 * docs/html/configopts.html, docs/html/documentation.html,
1045 docs/html/explanations.html, docs/html/install.html,
1046 docs/html/17_intro/contribute.html, docs/html/17_intro/howto.html,
1047 docs/html/17_intro/license.html, docs/html/18_support/howto.html,
1048 docs/html/19_diagnostics/howto.html, docs/html/20_util/howto.html,
1049 docs/html/21_strings/howto.html, docs/html/22_locale/codecvt.html,
1050 docs/html/22_locale/ctype.html, docs/html/22_locale/howto.html,
1051 docs/html/22_locale/locale.html, docs/html/22_locale/messages.html,
1052 docs/html/23_containers/howto.html, docs/html/24_iterators/howto.html,
1053 docs/html/25_algorithms/howto.html, docs/html/26_numerics/howto.html,
1054 docs/html/27_io/howto.html, docs/html/ext/howto.html,
1055 docs/html/ext/sgiexts.html, docs/html/faq/index.html: Convert
1056 to XHTML.
1057 * docs/html/faq/index.txt: Regenerate.
1058
1059 2002-09-05 Jakub Jelinek <jakub@redhat.com>
1060
1061 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_widen(char)):
1062 Switch to _M_c_locale_ctype around btowc call.
1063 (ctype<wchar_t>::do_widen(const char*, const char *, wchar_t*)):
1064 Switch to _M_c_locale_ctype around mbsrtowcs call.
1065 (ctype<wchar_t>::do_narrow(char)): Switch to _M_c_locale_ctype around
1066 wctob call.
1067 (ctype<wchar_t>::do_narrow(const char*, const char *, wchar_t*)):
1068 Switch to _M_c_locale_ctype around wcsrtombs call.
1069
1070 2002-09-05 Jakub Jelinek <jakub@redhat.com>
1071
1072 * config/locale/gnu/monetary_members.cc
1073 (moneypunct<wchar_t, true>::_M_initialize_moneypunct,
1074 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Use
1075 __uselocale instead of setlocale for glibc 2.3.
1076
1077 2002-09-05 Jakub Jelinek <jakub@redhat.com>
1078
1079 * config/locale/generic/c++locale_internal.h: New header.
1080 * config/locale/gnu/c++locale_internal.h: New header.
1081 * config/locale/gnu/c_locale.cc: Include it.
1082 * config/locale/gnu/collate_members.cc: Include it.
1083 * config/locale/gnu/ctype_members.cc: Include it.
1084 * config/locale/gnu/messages_members.cc: Include it.
1085 * config/locale/gnu/monetary_members.cc: Include it.
1086 * config/locale/gnu/numeric_members.cc: Include it.
1087 * config/locale/gnu/time_members.cc: Include it.
1088 (_M_put): Reorder __strftime_l and __wcsftime_l arguments to match
1089 glibc.
1090 (_M_initialize_timepunct): Initialize _M_c_locale_timepunct for
1091 C locale.
1092 * acinclude.m4: Include string.h when testing strcoll_l.
1093 For glibc 2.3 provide __-prefixed prototypes.
1094 (CLOCALE_INTERNAL_H): Set, add AC_LINK_FILES line.
1095 * aclocal.m4, configure: Rebuilt.
1096
1097 2002-09-05 Benjamin Kosnik <bkoz@redhat.com>
1098
1099 * include/bits/locale_facets.h: Add declaration of specialization
1100 here.
1101 * config/locale/gnu/messages_members.cc: Add specialization for
1102 messages<wchar_t>.
1103 * config/locale/gnu/messages_members.h: Remove generic definition
1104 of do_get.
1105
1106 2002-09-04 Richard Henderson <rth@redhat.com>
1107
1108 * include/std/std_limits.h (__glibcpp_f32_infinity_bytes,
1109 __glibcpp_f32_has_infinity, __glibcpp_f64_infinity_bytes,
1110 __glibcpp_f64_has_infinity, __glibcpp_f80_infinity_bytes,
1111 __glibcpp_f80_has_infinity, __glibcpp_f96_infinity_bytes,
1112 __glibcpp_f96_has_infinity, __glibcpp_f128_infinity_bytes,
1113 __glibcpp_f128_has_infinity, __glibcpp_float_infinity_bytes,
1114 __glibcpp_float_has_infinity, __glibcpp_double_infinity_bytes,
1115 __glibcpp_double_has_infinity, __glibcpp_long_double_infinity_bytes,
1116 __glibcpp_long_double_has_infinity): Remove.
1117 (std::numeric_limits<float>, std::numeric_limits<double>,
1118 std::numeric_limits<long double>): Use __builtin_huge_val
1119 to implement has_infinity and infinity().
1120 * src/limits.cc (__glibcpp_float_infinity, __glibcpp_double_infinity,
1121 __glibcpp_long_double_infinity): Remove.
1122
1123 2002-09-03 Richard Henderson <rth@redhat.com>
1124
1125 * include/std/std_limits.h (__glibcpp_f32_min, __glibcpp_f32_max,
1126 __glibcpp_f32_digits, __glibcpp_f32_digits10, __glibcpp_f32_radix,
1127 __glibcpp_f32_epsilon, __glibcpp_f32_min_exponent,
1128 __glibcpp_f32_min_exponent10, __glibcpp_f32_max_exponent,
1129 __glibcpp_f32_max_exponent10, __glibcpp_f64_min, __glibcpp_f64_max,
1130 __glibcpp_f64_digits, __glibcpp_f64_digits10, __glibcpp_f64_radix,
1131 __glibcpp_f64_min_exponent, __glibcpp_f64_min_exponent10,
1132 __glibcpp_f64_max_exponent, __glibcpp_f64_max_exponent10,
1133 __glibcpp_f80_min, __glibcpp_f80_max, __glibcpp_f80_digits,
1134 __glibcpp_f80_digits10, __glibcpp_f80_radix, __glibcpp_f80_epsilon,
1135 __glibcpp_f80_min_exponent, __glibcpp_f80_min_exponent10,
1136 __glibcpp_f80_max_exponent, __glibcpp_f80_max_exponent10,
1137 __glibcpp_f96_min, __glibcpp_f96_max, __glibcpp_f96_digits,
1138 __glibcpp_f96_digits10, __glibcpp_f96_radix, __glibcpp_f96_epsilon,
1139 __glibcpp_f96_min_exponent, __glibcpp_f96_min_exponent10,
1140 __glibcpp_f96_max_exponent, __glibcpp_f96_max_exponent10,
1141 __glibcpp_f128_min, __glibcpp_f128_max, __glibcpp_f128_digits,
1142 __glibcpp_f128_digits10, __glibcpp_f128_radix, __glibcpp_f128_epsilon,
1143 __glibcpp_f128_min_exponent, __glibcpp_f128_min_exponent10,
1144 __glibcpp_f128_max_exponent, __glibcpp_f128_max_exponent10,
1145 __glibcpp_float_min, __glibcpp_float_max, __glibcpp_float_digits,
1146 __glibcpp_float_digits10, __glibcpp_float_radix,
1147 __glibcpp_float_epsilon, __glibcpp_float_min_exponent,
1148 __glibcpp_float_min_exponent10, __glibcpp_float_max_exponent,
1149 __glibcpp_float_max_exponent10, __glibcpp_double_min,
1150 __glibcpp_double_max, __glibcpp_double_digits,
1151 __glibcpp_double_digits10, __glibcpp_double_radix,
1152 __glibcpp_double_epsilon, __glibcpp_double_min_exponent,
1153 __glibcpp_double_min_exponent10, __glibcpp_double_max_exponent,
1154 __glibcpp_double_max_exponent10, __glibcpp_long_double_min,
1155 __glibcpp_long_double_max, __glibcpp_long_double_digits,
1156 __glibcpp_long_double_digits10, __glibcpp_long_double_radix,
1157 __glibcpp_long_double_epsilon, __glibcpp_long_double_min_exponent,
1158 __glibcpp_long_double_min_exponent10,
1159 __glibcpp_long_double_max_exponent,
1160 __glibcpp_long_double_max_exponent10): Remove macros.
1161 (std::numeric_limits<float>, std::numeric_limits<double>,
1162 std::numeric_limits<long double>): Use protected float.h macros.
1163
1164 2002-09-01 Phil Edwards <pme@gcc.gnu.org>
1165
1166 * testsuite/Makefile.am: Use LD_RUN_PATH when linking abi_check.
1167 Fix spelling in comment.
1168 * testsuite/Makefile.in: Regenerate.
1169 * testsuite/abi_check.cc: Use string literals to build 'cmd' rather
1170 than 'quote' and 'bslash'.
1171
1172 2002-08-31 Phil Edwards <pme@gcc.gnu.org>
1173
1174 * acinclude.m4: Minor comment tweaks.
1175
1176 * docs/html/makedoc.awk: New file...
1177 * docs/html/Makefile: ...called from here...
1178 * docs/html/documentation.html: ...to help generate this.
1179
1180 * docs/html/21_strings/howto.html: Prepare for new entry.
1181 * include/bits/basic_string.h: Initial basic_stirng hook for
1182 doxygen. Remove trailing whitespace.
1183 * include/bits/char_traits.h: Point to onlinedocs for new entry.
1184 * include/bits/stringfwd.h: Add doxygen hooks for string and
1185 wstring typedefs.
1186
1187 2002-08-29 Richard Earnshaw <rearnshaw@arm.com>
1188
1189 * config/cpu/arm/cpu_limits.h: New file.
1190 * configure.target: Use config/cpu/arm for XScale and StrongARM
1191 configurations.
1192
1193 2002-08-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
1194
1195 * include/std/std_limits.h (__glibcpp_char_bits,
1196 __glibcpp_short_bits, __glibcpp_int_bits, __glibcpp_long_bits,
1197 __glibcpp_long_long_bits, __glibcpp_float_bits,
1198 __glibcpp_double_bits, __glibcpp_long_double_bits): Remove. Use
1199 compiler predifined macros.
1200 (__glibcpp_wchar_t_is_signed): Define based on compiler predefined
1201 __WCHAR_UNSIGNED__.
1202
1203 2002-08-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1204
1205 * include/std/std_limits.h (__glibcpp_f32_infinity_bytes,
1206 __glibcpp_f32_has_infinity, __glibcpp_f32_QNaN_bytes,
1207 __glibcpp_f32_has_QNaN, __glibcpp_f32_SNaN_bytes,
1208 __glibcpp_f32_has_SNaN, __glibcpp_f32_denorm_min_bytes,
1209 __glibcpp_f32_has_denorm, __glibcpp_f32_is_iec559,
1210 __glibcpp_f64_infinity_bytes,
1211 __glibcpp_f64_has_infinity, __glibcpp_f64_QNaN_bytes,
1212 __glibcpp_f64_has_QNaN, __glibcpp_f64_SNaN_bytes,
1213 __glibcpp_f64_has_SNaN, __glibcpp_f64_denorm_min_bytes,
1214 __glibcpp_f64_has_denorm, __glibcpp_f64_is_iec559,
1215 __glibcpp_f80_infinity_bytes,
1216 __glibcpp_f80_has_infinity, __glibcpp_f80_QNaN_bytes,
1217 __glibcpp_f80_has_QNaN, __glibcpp_f80_SNaN_bytes,
1218 __glibcpp_f80_has_SNaN, __glibcpp_f80_denorm_min_bytes,
1219 __glibcpp_f80_has_denorm, __glibcpp_f80_is_iec559,
1220 __glibcpp_f96_infinity_bytes,
1221 __glibcpp_f96_has_infinity, __glibcpp_f96_QNaN_bytes,
1222 __glibcpp_f96_has_QNaN, __glibcpp_f96_SNaN_bytes,
1223 __glibcpp_f96_has_SNaN, __glibcpp_f96_denorm_min_bytes,
1224 __glibcpp_f96_has_denorm, __glibcpp_f96_is_iec559,
1225 __glibcpp_f128_infinity_bytes,
1226 __glibcpp_f128_has_infinity, __glibcpp_f128_QNaN_bytes,
1227 __glibcpp_f128_has_QNaN, __glibcpp_f128_SNaN_bytes,
1228 __glibcpp_f128_has_SNaN, __glibcpp_f128_denorm_min_bytes,
1229 __glibcpp_f128_has_denorm, __glibcpp_f128_is_iec559,
1230 __glibcpp_float_infinity_bytes,
1231 __glibcpp_float_has_infinity, __glibcpp_float_QNaN_bytes,
1232 __glibcpp_float_has_QNaN, __glibcpp_float_SNaN_bytes,
1233 __glibcpp_float_has_SNaN, __glibcpp_float_denorm_min_bytes,
1234 __glibcpp_float_has_denorm, __glibcpp_float_is_iec559,
1235 __glibcpp_double_infinity_bytes,
1236 __glibcpp_double_has_infinity, __glibcpp_double_QNaN_bytes,
1237 __glibcpp_double_has_QNaN, __glibcpp_double_SNaN_bytes,
1238 __glibcpp_double_has_SNaN, __glibcpp_double_denorm_min_bytes,
1239 __glibcpp_double_has_denorm, __glibcpp_double_is_iec559,
1240 __glibcpp_long_double_infinity_bytes,
1241 __glibcpp_long_double_has_infinity, __glibcpp_long_double_QNaN_bytes,
1242 __glibcpp_long_double_has_QNaN, __glibcpp_long_double_SNaN_bytes,
1243 __glibcpp_long_double_has_SNaN, __glibcpp_long_double_denorm_min_bytes,
1244 __glibcpp_long_double_has_denorm, __glibcpp_long_double_is_iec559:
1245 New macros.
1246 (__glibcpp_word_bits, __glibcpp_word): Likewise.
1247 (__glibcpp_byte): New typedef.
1248 (__float_storage, __double_storage, __long_double_storage): New types.
1249 (__glibcpp_float_infinity, __glibcpp_float_QNaN,
1250 __glibcpp_float_SNaN, __glibcpp_float_denorm_min): Now
1251 objects. Declare.
1252 (__glibcpp_double_infinity, __glibcpp_double_QNaN,
1253 __glibcpp_double_SNaN, __glibcpp_double_denorm_min): Likewise.
1254 (__glibcpp_long_double_infinity, __glibcpp_long_double_QNaN,
1255 __glibcpp_long_double_SNaN, __glibcpp_long_double_denorm_min):
1256 Likewise.
1257
1258 * src/limits.cc (__glibcpp_float_infinity, __glibcpp_float_QNaN,
1259 __glibcpp_float_SNaN, __glibcpp_float_denorm_min): Define.
1260 (__glibcpp_double_infinity, __glibcpp_double_QNaN,
1261 __glibcpp_double_SNaN, __glibcpp_double_denorm_min): Likewise.
1262 (__glibcpp_long_double_infinity, __glibcpp_long_double_QNaN,
1263 __glibcpp_long_double_SNaN, __glibcpp_long_double_denorm_min):
1264 Likewise.
1265
1266 2002-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1267
1268 * include/std/std_limits.h: Indent conditional macro definitions.
1269
1270 2002-08-23 Phil Edwards <pme@gcc.gnu.org>
1271
1272 * Makefile.am (check-abi): Specify current directory.
1273 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Fix shell syntax, use
1274 abi_baseline_triplet in baseline_file.
1275 * Makefile.in, aclocal.m4, configure: Regenerate.
1276 * configure.target: Add abi_baseline_triplet with default.
1277 * testsuite/abi_check.cc: More error checking.
1278
1279 2002-08-23 Phil Edwards <pme@gcc.gnu.org>
1280
1281 * config/linker-map.gnu: Verbose comments, clean up spacing.
1282 * include/bits/stl_alloc.h: Fix indentation of 'if' bodies, return
1283 statements.
1284 __allocator: Change class declaration to struct.
1285 * docs/html/17_intro/C++STYLE: Fix typo.
1286 * include/bits/stl_deque.h, include/bits/stl_list.h,
1287 include/bits/stl_map.h, include/bits/stl_multimap.h,
1288 include/bits/stl_vector.h: Fix fallout from typo.
1289
1290 2002-08-22 Benjamin Kosnik <bkoz@redhat.com>
1291
1292 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Set
1293 GLIBCPP_BUILD_ABI_CHECK based on cross compiling, build, host
1294 variables.
1295 * aclocal.m4: Regenerate.
1296 * testsuite/Makefile.am (noinst_PROGRAMS): Make conditional on
1297 native compiling.
1298 * testsuite/Makefile.in: Regenerate.
1299
1300 2002-08-22 Loren J. Rittle <ljrittle@acm.org>
1301
1302 * testsuite/abi_check.cc: Enhance shell portability.
1303 Support older binutils/readelf.
1304 * config/abi/i386-unknown-freebsd4.6: Add.
1305 * config/abi/i386-unknown-freebsd4.6/baseline_symbols.txt: New file.
1306
1307 2002-08-22 Paolo Carlini <pcarlini@unitus.it>
1308
1309 * docs/html/faq/index.html: Add Loren James Rittle and
1310 Paolo Carlini to the list of v3 maintainers.
1311 * docs/html/faq/index.txt: Ditto.
1312 * docs/html/17_intro/RELEASE-NOTES: Ditto.
1313
1314 2002-08-22 Benjamin Kosnik <bkoz@redhat.com>
1315 Phil Edwards <pme@gcc.gnu.org>
1316 Ulrich Drepper <drepper@redhat.com>
1317
1318 * Makefile.am (check-abi): New rule.
1319 * Makefile.in: Regenerate.
1320 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Export baseline_file.
1321 * aclocal.m4: Regenerate.
1322 * configure: Regenerate.
1323 * testsuite/Makefile.am (noinst_PROGRAMS): Add abi_check.
1324 (abi_check_SOURCES): Add.
1325 * testsuite/Makefile.in: Regenerate.
1326 * testsuite/abi_check.cc: New file.
1327 * config/abi: Add.
1328 * config/abi/i686-pc-linux-gnu: Add.
1329 * config/abi/i686-pc-linux-gnu/baseline_symbols.txt: New file.
1330
1331 2002-08-19 Benjamin Kosnik <bkoz@redhat.com>
1332
1333 * configure.in (libtool_VERSION): Update to 5:1:0.
1334 * configure: Regenerate.
1335
1336 2002-08-19 Jonathan Wakely <jw@kayari.org>
1337
1338 * docs/html/configopts.html, docs/html/documentation.html,
1339 docs/html/install.html, docs/html/22_locale/codecvt.html,
1340 docs/html/22_locale/ctype.html, docs/html/22_locale/howto.html,
1341 docs/html/22_locale/locale.html,
1342 docs/html/22_locale/messages.html: Conform to HTML 4.01 standard.
1343
1344 2002-08-15 Benjamin Kosnik <bkoz@redhat.com>
1345
1346 * include/ext/stdio_filebuf.h (stdio_filebuf): Explicitly set
1347 _M_buf_size_opt to zero when unbuffering.
1348 * include/bits/fstream.tcc (filebuf::showmanyc): Simplify.
1349 Consistency checks for _M_buf_size_opt.
1350
1351 Revert PR libstdc++/7445
1352 * src/locale.cc (locale::classic): Revert.
1353
1354 * docs/html/17_intro/TODO: Add.
1355
1356 2002-08-15 Phil Edwards <pme@gcc.gnu.org>
1357
1358 * docs/html/documentation.html: Update doxygen links for 3.2.
1359
1360 2002-08-15 Steve Ellcey <sje@cup.hp.com>
1361
1362 * libsupc++/unwind-cxx.h (__cxa_exception): Change catchTemp
1363 type from void* to _Unwind_Ptr.
1364 * libsupc++/eh_personality.cc (PERSONALITY_FUNCTION):
1365 Do not cast landing_pad or base_of_encoded_value to (void *).
1366 * libsupc++/eh_throw.cc (__gxx_exception_cleanup):
1367 Accept _URC_NO_REASON as a valid reason code.
1368
1369 2002-08-14 Jonathan Wakely <jw@kayari.org>
1370
1371 * docs/html/22_locale/messages.html: Use HTML entities for
1372 punctuation.
1373
1374 2002-08-13 Jonathan Wakely <jw@kayari.org>
1375 Phil Edwards <pme@gcc.gnu.org>
1376
1377 * docs/html/documentation.html: Use HTML entities for punctuation.
1378
1379 2002-08-09 Phil Edwards <pme@gcc.gnu.org>
1380
1381 * include/bits/deque.tcc, include/bits/list.tcc,
1382 include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
1383 include/bits/stl_list.h, include/bits/stl_map.h,
1384 include/bits/stl_multimap.h, include/bits/stl_queue.h,
1385 include/bits/stl_stack.h, include/bits/stl_vector.h,
1386 include/bits/vector.tcc: Re-indent contents of namespace std,
1387 re-wrap comment lines as necessary.
1388
1389 2002-08-08 Danny Smith <dannysmith@users.sourceforge.net>
1390 Benjamin Kosnik <bkoz@redhat.com>
1391
1392 * include/bits/istream.tcc (basic_istream::ignore): Use sbumpc,
1393 not snextc.
1394 * testsuite/27_io/narrow_stream_objects.cc (test10): Add.
1395
1396 2002-08-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
1397
1398 * libsupc++/Makefile.am (LTCOMPILE): Add LIBSUPCXX_PICFLAGS.
1399 * libsupc++/Makefile.in: Regenerate.
1400
1401 2002-08-05 Gabriel Dos Reis <gdr@nerim.net>
1402
1403 PR/7491
1404 * include/bits/slice_array.h(_DEFINE_VALARRAY_OPERATOR):
1405 Instantiate with new function objects.
1406 * include/bits/mask_array.h (_DEFINE_VALARRAY_OPERATOR): Likewise.
1407 Reformat. Uglify.
1408 * include/bits/gslice_array.h: Likewise.
1409 * include/bits/indirect_array.h: Likewise.
1410
1411 2002-08-03 Gabriel Dos Reis <gdr@nerim.net>
1412
1413 * testsuite/26_numerics/valarray_name_lookup.cc: Rename from
1414 testsuite/26_numerics/valarray_name_lookup.C
1415
1416 * include/bits/valarray_array.h (_DEFINE_ARRAY_FUNCTION): Use our
1417 object function surrogates.
1418 * include/bits/valarray_meta.h (__shift_left): Fix typo.
1419 (_BinFunClos<>): Remove.
1420 (_BinFunBase<>): Likewise.
1421 (_BinFunBase1<>):Likewise.
1422 (_BinFunBase2<>): Likewise.
1423 (_DEFINE_EXPR_RELATIONAL_OPERATOR): Likewise.
1424 (_DEFINE_EXPR_UNARY_OPERATOR): Adjust definition.
1425 (_DEFINE_EXPR_BINARY_OPERATOR): Likewise.
1426 (_DEFINE_EXPR_BINARY_FUNCTION): Likewise.
1427 * include/std/std_valarray.h: Dont #include <functional> anymore.
1428 (_Bitwise_or<>, _Bitwise_and<>, _Bitwise_xor<>, _Shift_left<>,
1429 _Shift_right<>): Remove.
1430 (_DEFINE_VALARRAY_AUGMENTED_ASSIGNMENT): Adjust instantiation.
1431 (_DEFINE_BINARY_OPERATOR): Tweak definition.
1432 (_DEFINE_LOGICAL_OPERATOR): Remove.
1433 * testsuite/26_numerics/valarray_name_lookup.C (main): Add more tests.
1434
1435 2002-08-02 Gabriel Dos Reis <gdr@nerim.net>
1436
1437 * include/bits/valarray_meta.h (_UnFunBase<>): Remove.
1438 (_UnFunClos<>): Same.
1439 (_UnBase<>): Reformat. Make first template-parameter non
1440 template.
1441 (_UnClos<>): Likewise.
1442 (_Expr<>): Reformate. Adjust unary member operator return types.
1443 (_DEFINE_EXPR_UNARY_OPERATOR): Adjust definition.
1444 (_DEFINE_EXPR_UNARY_FUNCTION): Likewise.
1445 * include/std/std_valarray.h (_UnClos<>): Adjust declaration.
1446 (valarray<>::_UnaryOp<>): New nested traits. Adjust unary member
1447 operator return types. Reformat.
1448 (_Bitwise_not): Remove.
1449 (_DEFINE_VALARRAY_UNARY_OPERATOR): Adjust definition.
1450 * testsuite/26_numerics/valarray_name_lookup.C: New test.
1451
1452 2002-08-02 Danny Smith <dannysmith@users.sourceforge.net>
1453
1454 * config/os/newlib/ctype_inline.h (is): Don't offset _M_table.
1455 (scan_is): Use this->is.
1456 (scan_not): Likewise.
1457
1458 2002-08-02 Benjamin Kosnik <bkoz@redhat.com>
1459
1460 Revert PR libstdc++/6594
1461 * src/strstream.cc (strstreambuf): Revert.
1462 (strstreambuf::overflow): Same.
1463 (strstreambuf::~strstreambuf): Same.
1464 * testsuite/backward/strstream_members.cc (test02): Add.
1465
1466 * docs/html/abi.txt: Update. Spell check.
1467
1468 * testsuite/19_diagnostics/stdexceptions.cc (test04): Add bool test.
1469
1470 * testsuite/Makefile.am (INCLUDES): Add LIBSUPCXX_INCLUDES.
1471 * testsuite/Makefile.in: Regenerate.
1472 * testsuite/testsuite_hooks.h: Use __throw_exception_again,
1473 include functexcept.h so that -fno-exceptions will build.
1474
1475 2002-08-02 Gabriel Dos Reis <gdr@nerim.net>
1476
1477 * include/bits/valarray_meta.h (__unary_plus, __negate,
1478 __bitwise_not, __plus, __minus, __multiplies, __divides,
1479 __modulus, __bitwise_xor, __bitwise_or, __bitwise_and,
1480 __shift_left, __shift_right, __logical_and, __logical_or,
1481 __logical_not, __equal_to, __not_equal_to, __less, __less_equal,
1482 __greater_equal, __greater, __atan2, __pow): New function object
1483 classes.
1484 (__fun<>): New function traits class.
1485
1486 2002-08-01 Rick Danos <rdanos@hotmail.com>
1487
1488 PR libstdc++/7461
1489 * config/os/newlib/ctype_noninline.h (classic_table): Add offset.
1490 * config/os/newlib/ctype_inline.h (is): Use static_cast.
1491
1492 2002-08-01 Neil Booth <neil@daikokuya.co.uk>
1493
1494 * libsupc++/Makefile.am (LT_COMPILE): Remove C++ flags.
1495 * libsupc++/Makefile.in: Regenerate.
1496
1497 2002-08-01 Benjamin Kosnik <bkoz@redhat.com>
1498 Jakub Jelinek <jakub@redhat.com>
1499
1500 * config/linker-map.gnu: Change CXXABI_1 to CXXABI_1.2,
1501 GLIBCPP_3.1 to GLIBCPP_3.2.
1502
1503 2002-07-31 Benjamin Kosnik <bkoz@redhat.com>
1504 Mark Mitchell <mark@codesourcery.com>
1505
1506 PR libstdc++/7442
1507 * libsupc++/cxxabi.h (class __base_class_type_info::hwm_bit):
1508 Change to __hwm_bit.
1509 (__class_type_info): And here.
1510
1511 2002-07-31 Benjamin Kosnik <bkoz@redhat.com>
1512
1513 PR libstdc++/7442
1514 * libsupc++/cxxabi.h
1515 (__base_class_info): Change to __base_class_type_info. 2.9.5p6c
1516 (__base_class_info::__base): Change to __base_type. 2.9.5p6c
1517 (__base_class_info::offset_shift): Change to __offset_shift. 2.9.5p6c
1518 (__vmi_class_type_info::__base_info): Don't make const, of type
1519 __base_class_type_info, as per 2.9.5p6c
1520 (__pbase_type_info::__qualifier_flags): Change to __flags, as per
1521 2.9.5p7.
1522 (__pbase_type_info::__qualifier_masks): Change to __masks, as per
1523 2.9.5p7.
1524 (__pointer_to_member_type_info::__context_class): Change member to
1525 __context, as per 2.9.5p9.
1526 * libsupc++/tinfo2.cc (__pointer_catch): Change __context_class to
1527 __context.
1528 * libsupc++/tinfo2.cc (__do_catch): Change __qualifier_flags to
1529 __flags.
1530 * libsupc++/tinfo.cc (__do_find_public_src): Change __base to
1531 __base_type.
1532 * libsupc++/tinfo.cc (__do_dyncast): Same.
1533 * libsupc++/tinfo.cc (__do_upcast): Same.
1534
1535 2002-07-31 Benjamin Kosnik <bkoz@redhat.com>
1536
1537 * src/fstream.cc: Add _GLIBCPP_USE_WCHAR_T guards.
1538
1539 2002-07-31 Simon Whomsley <whomsley@avacadcam.com>
1540
1541 * docs/html/22_locale/howto.html: Fix.
1542
1543 2002-07-31 Alex Kompel <shurik@sequoiap.com>
1544
1545 PR libstdc++/7445
1546 * src/locale.cc (locale::classic): Move locks inside !_S_classic
1547 block.
1548
1549 2002-07-31 Benjamin Kosnik <bkoz@redhat.com>
1550
1551 * docs/html/abi.txt: Update.
1552
1553 2002-07-30 Benjamin Kosnik <bkoz@redhat.com>
1554 Gabriel Dos Reis <gdr@nerim.net>
1555
1556 * include/bits/char_traits.h: Remove generic definitions.
1557 * include/bits/streambuf_iterator.h (istreambuf_iterator): Use
1558 eof, not -2.
1559 * include/bits/istream.tcc (istream::readsome): Don't check
1560 against eof, instead use constants.
1561 (istream::sync): Same.
1562 (istream::sentry::sentry): Use eq_int_type.
1563 (istream::get): Same.
1564 * include/bits/ostream.tcc: Change __pad to
1565 __pad<_CharT, _Traits>::_S_pad.
1566 * include/bits/locale_facets.h: Add __pad_traits generic and
1567 ostreambuf_iterator specialization.
1568 * include/bits/locale_facets.tcc: Change __pad into struct __pad
1569 with a _CharT and _Traits template parameter and _S_pad static
1570 member function.
1571 * src/locale-inst.cc: Update __pad instantiations.
1572
1573 * include/std/std_fstream.h: Declare _M_underflow_common
1574 specializations.
1575 * src/fstream.cc: New. Add _M_underflow_common specializations.
1576 * include/bits/fstream.tcc (filebuf::close): Use traits_type.
1577 (filebuf::_M_underflow_common(bool)): Remove generic version, as
1578 sys_ungetc and custom int_types don't get along.
1579 * include/std/std_streambuf.h: Add _M_pos.
1580 * src/Makefile.am (sources): Add fstream.cc.
1581 * src/Makefile.in: Regenerate.
1582
1583 * testsuite/21_strings/capacity.cc: Add char_traits specializations.
1584 * testsuite/22_locale/codecvt_members_unicode_char.cc: Same.
1585 * testsuite/22_locale/codecvt_members_unicode_wchar_t.cc: Same.
1586 * testsuite/22_locale/ctor_copy_dtor.cc: Same.
1587 * testsuite/27_io/filebuf_virtuals.cc (test07): Move to...
1588 * testsuite/27_io/filebuf.cc: ...here.
1589 * testsuite/testsuite_hooks.h: Add gnu_char, gnu_int, char_traits
1590 specialization for both.
1591 * testsuite/27_io/streambuf.cc: Add instantiation test,
1592 testsuite_hooks include.
1593 * testsuite/27_io/istream.cc: Same.
1594 * testsuite/27_io/ostream.cc: Same.
1595 * testsuite/27_io/fstream.cc: Same.
1596 * testsuite/27_io/stringstream.cc: Same.
1597 * testsuite/27_io/filebuf.cc: Same.
1598 * testsuite/27_io/stringbuf.cc: Same.
1599
1600 2002-07-29 Alan Modra <amodra@bigpond.net.au>
1601
1602 * config/cpu/powerpc/cpu_limits.h (__glibcpp_long_bits): Define.
1603 * configure.target (cpu_include_dir): Use cpu/powerpc for powerpc64.
1604 * config/cpu/powerpc/atomicity.h (__always_swap): Remove.
1605 (__test_and_set): Remove.
1606 (_STWCX): Define and use.
1607
1608 2002-07-26 Phil Edwards <pme@gcc.gnu.org>
1609
1610 * libsupc++/new (placement delete): Remove unused parameter names.
1611
1612 2002-07-25 Benjamin Kosnik <bkoz@redhat.com>
1613
1614 PR libstdc++/7216
1615 * include/std/std_istream.h (basic_iostream): Add typedefs for
1616 char_type, int_type, pos_type, off_type, and traits_type.
1617 * testsuite/27_io/iostream.cc (test01): Add typedef tests.
1618 * testsuite/27_io/istream.cc: Same.
1619 * testsuite/27_io/ostream.cc: Same.
1620 * testsuite/27_io/filebuf.cc: Same.
1621 * testsuite/27_io/stringbuf.cc: Replace content, move to...
1622 * testsuite/27_io/stringbuf_members.cc: ...here.
1623 * testsuite/27_io/streambuf.cc: Replace content, move to...
1624 * testsuite/27_io/streambuf_members.cc: ...here.
1625 * testsuite/27_io/stringstream.cc: Replace content, move to...
1626 * testsuite/27_io/stringstream_members.cc: ...here.
1627 * testsuite/27_io/ios.cc: New file.
1628 * testsuite/27_io/fstream.cc: New file.
1629 * testsuite/27_io/ifstream.cc: New file.
1630 * testsuite/27_io/ofstream.cc: New file.
1631 * testsuite/27_io/istringstream.cc: New file.
1632 * testsuite/27_io/ostringstream.cc: New file.
1633
1634 2002-07-25 Benjamin Kosnik <bkoz@redhat.com>
1635
1636 PR libstdc++/7220
1637 * include/bits/istream.tcc (istream::ignore): Don't extract on
1638 zero.
1639 * testsuite/27_io/istream_unformatted.cc (test10): Add.
1640
1641 2002-07-25 Benjamin Kosnik <bkoz@redhat.com>
1642
1643 * testsuite/27_io/ios_base_type.cc: Move to...
1644 * testsuite/27_io/ios_base_types.cc: ...here.
1645
1646 2002-07-24 Benjamin Kosnik <bkoz@redhat.com>
1647
1648 PR libstdc++/7222
1649 * src/locale.cc (locale::locale(const char*)): Use setlocale NULL.
1650 * testsuite/22_locale/ctor_copy_dtor.cc (test02): New.
1651
1652 2002-07-24 Benjamin Kosnik <bkoz@redhat.com>
1653
1654 PR libstdc++/7230
1655 * config/linker-map.gnu: Revert strstream patch from 2002-07-01.
1656 * include/Makefile.am (backward_headers): Use strstream, not
1657 strstream.h.
1658 * include/Makefile.in: Regenerate.
1659 * include/backward/strstream: Revert.
1660 * include/backward/strstream.h: Remove.
1661 * src/strstream.cc: Revert.
1662 * testsuite/backward/strstream_members.cc: Change include.
1663
1664 2002-07-24 Benjamin Kosnik <bkoz@redhat.com>
1665
1666 PR libstdc++/7219
1667 * include/bits/ios_base.h (ios_base::streampos): Add.
1668 (ios_base::streamoff): Add.
1669 * testsuite/27_io/ios_base_type.cc: New.
1670
1671 2002-07-24 Benjamin Kosnik <bkoz@redhat.com>
1672
1673 PR libstdc++/7286
1674 * libsupc++/new: Add placement delete.
1675 * testsuite/18_support/new_delete_placement.cc: New.
1676
1677 * docs/html/abi.txt: Fix typos.
1678
1679 2002-07-23 Benjamin Kosnik <bkoz@redhat.com>
1680
1681 * docs/html/documentation.html: Remove libstdc++-v3.0.86 links,
1682 confusing usage of "latest."
1683 De-tangle contributor information from introductory notes.
1684 Move abi.txt link placement, activate.
1685 Re-organize.
1686 Move chapter info into old FAQ format.
1687 * docs/html/organization.html: Removed, obsoleted by doxygen work.
1688 * docs/html/abi.txt: Add notes on testing ABI changes.
1689
1690 2002-07-20 Phil Edwards <pme@gcc.gnu.org>
1691
1692 * docs/html/abi.txt: New file.
1693 * docs/html/23_containers/howto.html: Tweak vector-overhead text.
1694 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
1695 Import from upstream, R22.
1696
1697 * include/bits/char_traits.h, include/bits/stl_iterator.h,
1698 include/bits/stl_iterator_base_types.h, libsupc++/exception,
1699 libsupc++/new, libsupc++/typeinfo: Use @brief markup.
1700
1701 * include/bits/deque.tcc, include/bits/stl_alloc.h,
1702 include/bits/stl_deque.h, include/bits/stl_list.h: Postpone removal
1703 of deprecated functions until 3.4. (Same timeframe, different text.)
1704 * include/bits/stl_vector.h: Ditto. Also do the same cleanups that
1705 the other sequence classes received.
1706
1707 2002-07-18 Brendan Kehoe <brendan@zen.org>
1708
1709 * bits/slice_array.h (_DEFINE_VALARRAY_OPERATOR): Fix typo of
1710 _Nname to _Name.
1711
1712 2002-07-19 Gabriel Dos Reis <gdr@nerim.net>
1713
1714 DR/123
1715 * include/bits/slice_array.h
1716 (slice_array<T>::operator=(const T&)): Constify.
1717 * include/bits/gslice_array.h
1718 (gslice_array<T>::operator=(const T&)): Likewise.
1719 * include/bits/mask_array.h
1720 (mask_array<T>::operator=(const T&)): Likewise.
1721 * include/bits/indirect_array.h
1722 (indirect_array<T>::operator=(const T&): Likewise.
1723
1724 2002-07-17 Phil Edwards <pme@gcc.gnu.org>
1725
1726 * docs/doxygen/run_doxygen: Remove template parameter names from
1727 "Compound List" summary page. Reformat.
1728 * docs/html/documentation.html: XHTML fixes.
1729
1730 2002-07-16 Andreas Schwab <schwab@suse.de>
1731
1732 * libsupc++/new (set_new_handler): Declare to not throw any
1733 exceptions.
1734 * libsupc++/new_handler.cc (set_new_handler): Likewise.
1735
1736 2002-07-16 Gabriel Dos Reis <gdr@nerim.net>
1737
1738 * include/Makefile.am (bits_headers): Remove slice.h
1739 * include/Makefile.in: Regenerate.
1740 * include/bits/slice.h (slice): move to include/bits/slice_array.h
1741 * include/bits/slice.h Remove.
1742 * include/std/std_valarray.h: Don't #include bits/slice.h anymore.
1743 * include/bits/slice_array.h: Comply to official coding styles.
1744 * testsuite/26_numerics/slice.cc: New test.
1745
1746 2002-07-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1747
1748 * config/os/solaris/solaris2.5/ctype_base.h (ctype_base): Fix
1749 print to match vendor <ctype.h>.
1750
1751 2002-07-15 Phil Edwards <pme@gcc.gnu.org>
1752
1753 * docs/html/faq/index.html: Fix download links.
1754 * docs/html/faq/index.txt: Regenerate.
1755 * docs/html/17_intro/porting.html: Regenerate from earlier changes.
1756
1757 2002-07-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1758
1759 * configure.target (target_os switch): Allow for irix6*o32
1760 configurations.
1761
1762 2002-07-10 Gabriel Dos Reis <gdr@nerim.net>
1763
1764 * include/bits/valarray_meta.h (_UnFunBase): Take a second
1765 template parameter. Remove _M_func data member.
1766 (_UnFunClos): Take a third template parameter.
1767 (__abs, __cos, __acos, __cosh, __sin, __asin, __sinh, __tan,
1768 __atan, __tanh, __exp, __log, __log10, __sqrt): New classes.
1769 (_DEFINE_EXPR_UNARY_OPERATOR): Adjust definition.
1770
1771 2002-07-08 Eric Christopher <echristo@redhat.com>
1772
1773 * configure.target: Fix comment for mips atomicity. Add
1774 mips*-*-linux* target, enable atomic operations there.
1775 * config/cpu/mips/atomicity.h: Fix comments, remove
1776 #ifndef/#endif. Add push/pop mips2.
1777
1778 2002-07-08 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
1779
1780 * include/bits/stl_deque.h (_Deque_alloc_base): Change order of
1781 member declarations to avoid compiler warnings and restore 3.1 ABI.
1782
1783 2002-07-08 Phil Edwards <pme@gcc.gnu.org>
1784
1785 * docs/html/23_containers/howto.html: Link to dk_std::vector paper
1786 and homepage.
1787
1788 2002-07-07 Paolo Carlini <pcarlini@unitus.it>
1789
1790 PR libstdc++/7186
1791 * include/bits/stl_deque.h (_Deque_iterator::operator-):
1792 Make non-member, as already happens for the comparison
1793 operators in accord with DR179 (Ready).
1794 * testsuite/23_containers/deque_operators.cc: Add test02.
1795
1796 2002-07-04 Benjamin Kosnik <bkoz@redhat.com>
1797 Jack Reeves <jackw_reeves@hotmail.com>
1798
1799 * include/std/std_streambuf.h (basic_streambuf::_M_buf): Change to
1800 size_t, from int_type.
1801 (basic_streambuf::_M_buf_size_opt): Same.
1802 (basic_streambuf::_S_pback_sizex): Same.
1803 * include/bits/streambuf.tcc: Same.
1804 * include/std/std_streambuf.h (basic_streambuf::snextc): Use
1805 eq_int_type.
1806 (basic_streambuf::uflow): Same.
1807 * include/bits/sstream.tcc (basic_stringbuf::overflow): Use
1808 to_char_type.
1809 * include/bits/basic_ios.tcc (basic_ios::init): Use _CharT().
1810 * include/bits/streambuf.tcc (basic_streambuf::xsgetn): Use
1811 eq_int_type.
1812 (basic_streambuf::xsputn): Same.
1813 (__copy_streambufs): Same.
1814
1815 2002-07-03 Benjamin Kosnik <bkoz@redhat.com>
1816
1817 * include/std/std_memory.h: Fix formatting.
1818 * testsuite/20_util/auto_ptr_neg.cc: New.
1819 * testsuite/20_util/auto_ptr.cc: Tweaks.
1820 * testsuite/23_containers/map_operators.cc (test01): Split into..
1821 * testsuite/23_containers/map_operators_neg.cc (test01): ...this. New.
1822 * testsuite/23_containers/set_operators.cc: Move to...
1823 * testsuite/23_containers/set_operators_neg.cc: ...here.
1824 * testsuite/README: Add some more naming rules.
1825
1826 2002-07-03 Steev Wilcox <steev@paradigmds.com>
1827
1828 PR libstdc++/7057
1829 * include/ext/stl_hashtable.h: Fix.
1830 * testsuite/ext/hash_map.cc: New.
1831
1832 2002-07-03 Jack Reeves <jackw_reeves@hotmail.com>
1833 Kenny Simpson <theonetruekenny@yahoo.com>
1834 Phil Edwards <pme@gcc.gnu.org>
1835
1836 PR libstdc++/3946
1837 * testsuite/20_util/auto_ptr.cc (test08): New test.
1838 * include/std/std_memory.h (auto_ref_ptr): Make constructor explicit.
1839 (auto_ptr::operator auto_ptr_ref): Fix typo.
1840 General reformatting and doxygenating of the whole file.
1841
1842 2002-07-03 Benjamin Kosnik <bkoz@redhat.com>
1843
1844 PR libstdc++/7097
1845 * include/c/std_cwchar.h: Fix.
1846
1847 2002-07-02 Benjamin Kosnik <bkoz@redhat.com>
1848
1849 PR libstdc++/6410
1850 * include/bits/locale_facets.h (moneypunct::moneypunct): Add const
1851 char* name parameter.
1852 * config/locale/gnu/monetary_members.cc: Use it.
1853 * config/locale/generic/monetary_members.cc: Same.
1854 * src/localename.cc (_Impl::_Impl(const char*, size_t)): Use it.
1855
1856 * include/backward/strstream.h: Update date.
1857
1858 2002-07-02 Paolo Carlini <pcarlini@unitus.it>
1859
1860 PR libstdc++/6642
1861 * include/bits/stl_iterator.h
1862 (__normal_iterator::operator-(const __normal_iterator&)):
1863 Make non-member, as already happens for the comparison
1864 operators in accord with DR179 (Ready).
1865 * testsuite/24_iterators/iterator.cc: Add test from the PR.
1866
1867 2002-07-02 Phil Edwards <pme@gcc.gnu.org>
1868
1869 PR libstdc++/7173
1870 * acinclude.m4: Simplify determination of gcc_version, and move
1871 up to GLIBCPP_CONFIGURE.
1872 * configure.in (release_VERSION): Really remove.
1873 (AM_INIT_AUTOMAKE, AM_CONFIG_HEADER): Move after GLIBCPP_CONFIGURE.
1874 * aclocal.m4, configure: Regenerate.
1875
1876 2002-07-02 Phil Edwards <pme@gcc.gnu.org>
1877
1878 * docs/html/configopts.html, docs/html/install.html: Tweaks.
1879 * include/ext/algorithm, include/ext/hash_map, include/ext/hash_set,
1880 include/ext/iterator, include/ext/numeric, include/ext/rb_tree,
1881 include/ext/slist, include/ext/stl_rope.h: Add doxygen hooks.
1882
1883 2002-07-01 Benjamin Kosnik <bkoz@redhat.com>
1884
1885 * include/backward/strstream: Remove namespace std. Transfer to...
1886 * include/backward/strstream.h: ...here. Qualify std names.
1887 * src/strstream.cc: Remove namespace std.
1888 * include/Makefile.am (backward_headers): Remove strstream.h.
1889 * include/Makefile.in: Regenerate.
1890 * config/linker-map.gnu: Export strstream bits.
1891
1892 * src/fstream-inst.cc: Tweak.
1893 * src/io-inst.cc: Same.
1894 * src/istream-inst.cc: Same.
1895 * src/misc-inst.cc: Same.
1896 * src/ostream-inst.cc: Same.
1897 * src/sstream-inst.cc: Same.
1898 * src/valarray-inst.cc: Same.
1899 * src/misc-inst.cc: Remove unused instantiations.
1900
1901 2002-07-01 Benjamin Kosnik <bkoz@redhat.com>
1902
1903 * configure.in (libtool_VERSION): Bump to 5:0:0.
1904 * configure: Regenerate.
1905
1906 2002-06-28 Phil Edwards <pme@gcc.gnu.org>
1907
1908 PR libstdc++/7157, PR libstdc++/7158, PR libstdc++/7161
1909 * include/std/std_queue.h: Include deque.tcc, vector.tcc.
1910 * include/std/std_stack.h: Include deque.tcc.
1911 * testsuite/23_containers/adaptors.cc: New file.
1912
1913 2002-06-27 Phil Edwards <pme@gcc.gnu.org>
1914
1915 * include/bits/stl_alloc.h: Deprecate all 'reallocate' memfns.
1916 * docs/html/ext/howto.html: Update allocator notes.
1917
1918 2002-06-26 Benjamin Kosnik <bkoz@redhat.com>
1919
1920 * configure.in (INTERFACE): Remove.
1921 (release_VERSION): Remove.
1922 * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Change include placement.
1923 (libstdcxx_interface): Change. Use gcc methods to determine version.
1924 * configure: Regenerate.
1925 * aclocal.m4: Regenerate.
1926
1927 2002-06-25 DJ Delorie <dj@redhat.com>
1928
1929 * acinclude.m4 (GLIBCPP_CONFIGURE): Split out
1930 GLIBCPP_TOPREL_CONFIGURE.
1931 * aclocal.m4: Likewise.
1932 * configure.in: Call it before AC_CANONICAL_SYSTEM.
1933 * configure: Regenerate.
1934
1935 2002-06-25 Jessica Han <jessica@cup.hp.com>
1936
1937 * config/os/hpux/os_defines.h Define _GLIBCPP_VTABLE_PADDING
1938 * libsupc++/tinfo.cc Handle the 8 byte aligned vtable entries when
1939 _GLIBCPP_VTABLE_PADDING is defined.
1940
1941 2002-06-25 Benjamin Kosnik <bkoz@redhat.com>
1942
1943 * include/bits/stl_alloc.h: Additional formatting.
1944
1945 2002-06-24 Phil Edwards <pme@gcc.gnu.org>
1946
1947 * include/bits/stl_alloc.h: Reformat as per C++STYLE.
1948
1949 2002-06-24 Phil Edwards <pme@gcc.gnu.org>
1950
1951 * config/cpu/*/bits/*: Move header files up a level. Remove bits.
1952 * config/os/*/bits/*: Likewise.
1953 * configure.in: Update.
1954 * configure: Regenerate.
1955 * configure.target: Update.
1956 * docs/html/17_intro/porting.texi: Update.
1957
1958 2002-06-21 Phil Edwards <pme@gcc.gnu.org>
1959
1960 * include/bits/stl_map.h, include/bits/stl_multimap.h,
1961 include/bits/stl_queue.h, include/bits/stl_stack.h: Reformat and
1962 complete doxygenation.
1963 * include/bits/boost_concept_check.h: Minor comment.
1964
1965 2002-06-21 Benjamin Kosnik <bkoz@redhat.com>
1966
1967 * include/c_compatibility: New.
1968 * include/c_compatibility/assert.h: New.
1969 * include/c_compatibility/ctype.h: New.
1970 * include/c_compatibility/errno.h: New.
1971 * include/c_compatibility/float.h: New.
1972 * include/c_compatibility/iso646.h: New.
1973 * include/c_compatibility/limits.h: New.
1974 * include/c_compatibility/locale.h: New.
1975 * include/c_compatibility/math.h: New.
1976 * include/c_compatibility/setjmp.h: New.
1977 * include/c_compatibility/signal.h: New.
1978 * include/c_compatibility/stdarg.h: New.
1979 * include/c_compatibility/stddef.h: New.
1980 * include/c_compatibility/stdio.h: New.
1981 * include/c_compatibility/stdlib.h: New.
1982 * include/c_compatibility/string.h: New.
1983 * include/c_compatibility/time.h: New.
1984 * include/c_compatibility/wchar.h: New.
1985 * include/c_compatibility/wctype.h: New.
1986
1987 * include/c/std_cerrno.h: Get out of the way... define errno.
1988 * include/c/std_cmath.h: Add abs, modf overloads.
1989 Undefine C99 isms. Still not sure how to deal with this sanely.
1990 * include/c/std_csetjmp.h: Tweak.
1991 * include/c/std_cwchar.h: Include cstddef for size_t.
1992
1993 * include/c_std/std_cmath.h: Remove extra function.
1994
1995 Pendantic std usage in testsuites.
1996 * testsuite/17_intro/header_cstdlib.cc (test01): Qualify ldiv_t
1997 with std.
1998 * testsuite/17_intro/header_cwchar.cc: Tweak.
1999 * testsuite/22_locale/codecvt_members_char_char.cc (test03): Use
2000 std::setlocale.
2001 * testsuite/22_locale/ctype_to_wchar_t.cc (test05): Same.
2002 * testsuite/22_locale/ctype_to_char.cc (test05): Same.
2003 * testsuite/22_locale/ctype_is_wchar_t.cc (test05): Same.
2004 * testsuite/22_locale/ctype_is_char.cc (test05): Same.
2005 * testsuite/22_locale/codecvt_members_wchar_t_char.cc (test03): Same.
2006 * testsuite/22_locale/time_get_members_wchar_t.cc (test08): Same.
2007 * testsuite/22_locale/time_get_members_char.cc (test08): Same.
2008 * testsuite/22_locale/time_put_members_wchar_t.cc (test04): Same.
2009 * testsuite/22_locale/time_put_members_char.cc (test04): Same.
2010 * testsuite/22_locale/num_put_members_wchar_t.cc (test04): Same.
2011 * testsuite/22_locale/num_put_members_char.cc (test04): Same.
2012 * testsuite/22_locale/numpunct_members_wchar_t.cc (test03): Same.
2013 * testsuite/22_locale/numpunct_members_char.cc (test03): Same.
2014 * testsuite/22_locale/num_get_members_wchar_t.cc: Same.
2015 * testsuite/22_locale/num_get_members_char.cc: Same.
2016 * testsuite/22_locale/money_put_members_wchar_t.cc (test07): Same.
2017 * testsuite/22_locale/money_put_members_char.cc (test07): Same.
2018 * testsuite/22_locale/moneypunct_members_wchar_t.cc (test03): Same.
2019 * testsuite/22_locale/moneypunct_members_char.cc (test03): Same.
2020 * testsuite/22_locale/money_get_members_wchar_t.cc (test08): Same.
2021 * testsuite/22_locale/money_get_members_char.cc (test08): Same.
2022 * testsuite/22_locale/messages_members_char.cc (test03): Same.
2023 * testsuite/22_locale/collate_members_wchar_t.cc (test04): Same.
2024 * testsuite/22_locale/collate_members_char.cc (test04): Same.
2025 * testsuite/26_numerics/fabs_inline.cc: Use std::printf.
2026 * testsuite/27_io/istream_seeks.cc (test02): Qualify abort.
2027 * testsuite/27_io/istream_extractor_arith.cc (test11): Qualify strtol.
2028
2029 2002-06-20 Benjamin Kosnik <bkoz@redhat.com>
2030
2031 * libsupc++/Makefile.am (libsupc__convenience_la_SOURCES): Add
2032 c_sources.
2033
2034 2002-06-20 Benjamin Kosnik <bkoz@redhat.com>
2035
2036 * src/ext-inst.cc (__gnu_cxx): Use instead of std:: for extensions.
2037 Use size_type instead of unsigned long.
2038
2039 2002-06-20 Steve Ellcey <sje@cup.hp.com>
2040
2041 * src/ext-inst.cc (_S_fetch): Add explicit templates for char and
2042 wchar types.
2043 (_S_min_len): Ditto.
2044
2045 2002-06-20 Benjamin Kosnik <bkoz@redhat.com>
2046
2047 * include/Makefile.am: Add rules.
2048 * include/Makefile.in: Regenerate.
2049
2050 * acinclude.m4: Define GLIBCPP_C_HEADERS_COMPATIBILITY.
2051 * aclocal.m4: Regenerate.
2052 * configure: Regenerate.
2053 * configure.target (c_model, c_compatibility): Add.
2054
2055 * libsupc++/Makefile.am (c_sources): New.
2056 (libsupc___la_SOURCES): Add c_sources.
2057 (LTCOMPILE): Remove INCLUDES.
2058 (GCC_INCLUDES): New.
2059 (C_COMPILE): New, like COMPILE but without INCLUDES.
2060 (cxa_demangle.o): Use C_COMPILE.
2061 (dyn-string.o): Use C_COMPILE.
2062
2063 * include/c/std_cstdarg.h: Define __need___va_list.
2064 * include/c/std_cstddef.h: Define need_size_t, need_ptrdiff_t,
2065 need_NULL, need_offsetof.
2066
2067 2002-06-19 Steve Ellcey <sje@cup.hp.com>
2068
2069 * configure.in (HAVE_FINITE*, HAVE_ISINF*, HAVE_ISNAN*): Remove
2070 definitions in hpux11 cross-build because these functions do
2071 not exist on hpux11 (but some exist on hpux10); move defaults out
2072 into existing sections.
2073 * configure: Regenerate.
2074
2075 2002-06-18 Benjamin Kosnik <bkoz@redhat.com>
2076
2077 * include/c/std_cwchar.h: Guard. Add mbstate_t bits.
2078 * include/c/std_cwctype.h: Guard.
2079
2080 * libsupc++/eh_alloc.cc: Tweak include order.
2081 * libsupc++/pure.cc: Use cstdio.
2082 * libsupc++/new_op.cc: Remove malloc forward declaration, as
2083 cstdlib brings it in. Use std::malloc.
2084
2085 * src/Makefile.am (sources): Remove cmath.cc.
2086 * src/Makefile.in: Regenerate.
2087 * src/cmath.cc: Remove.
2088
2089 2002-06-18 Phil Edwards <pme@gcc.gnu.org>
2090
2091 * configure.target: Force mips to use the generic cpu routines.
2092
2093 2002-06-18 Phil Edwards <pme@gcc.gnu.org>
2094
2095 * configure.host: Delete file.
2096 * configure.target: More documentation. Factor out common parts of
2097 script into "intelligent" settings about defaults. Remove redundancy.
2098
2099 * acinclude.m4: Update comments. Do not call configure.host.
2100 (GLIBCPP_ENABLE_SYMVERS): If disabled, do not bother checking for
2101 libgcc_s.
2102 * configure.in: Slight reformatting, more comments. Factor out
2103 "config/" from all the directories.
2104 * docs/html/17_intro/porting.texi: Update and expand.
2105 * testsuite/Makefile.am (AM_RUNTESTFLAGS): Move empty setting
2106 from configure.host.
2107
2108 * aclocal.m4, configure, docs/html/17_intro/porting.html,
2109 testsuite/Makefile.in: Regenerate.
2110
2111 2002-06-16 Phil Edwards <pme@gcc.gnu.org>
2112
2113 * docs/doxygen/TODO: Update.
2114 * docs/doxygen/tables.html: Uncomment magical middle column.
2115 * docs/doxygen/user.cfg.in: Kludge to ignore function-like macros.
2116 * include/bits/stl_queue.h: Doxygenate and reformat.
2117 * include/bits/ios_base.h, include/std/std_streambuf.h: Add comment
2118 for deprecated names required by the standard.
2119
2120 2002-06-14 J.T. Conklin <jtc@acorntoolworks.com>
2121
2122 * configure.in (target_alias): Fix.
2123 * configure: Regenerate.
2124 * aclocal.m4: Regenerate.
2125
2126 2002-06-12 Phil Edwards <pme@gcc.gnu.org>
2127
2128 * include/Makefile.am: Add new files.
2129 * include/Makefile.in: Regenerate.
2130
2131 * include/bits/stl_deque.h, include/bits/stl_list.h,
2132 include/bits/stl_vector.h: Clean up, reformat. Move definitions...
2133 * include/bits/deque.tcc, include/bits/list.tcc,
2134 include/bits/vector.tcc: ...to here. New files.
2135
2136 * include/ext/stl_hashtable.h: Inclide correct full headers.
2137 * include/std/std_deque.h: Include .tcc files for now.
2138 * include/std/std_list.h: Likewise.
2139 * include/std/std_vector.h: Likewise.
2140
2141 2002-06-12 Daniel Jacobowitz <drow@mvista.com>
2142
2143 * Makefile.am: Add FLAGS_TO_PASS.
2144 * Makefile.in: Regenerated.
2145
2146 2002-06-11 J.T. Conklin <jtc@acorntoolworks.com>
2147 Benjamin Kosnik <bkoz@redhat.com>
2148
2149 * configure.target: Set os_include_dir to config/os/qnx/qnx6.1
2150 under *-qnx6.[12]*.
2151 * configure.in: Add support for *-qnx6.[12]*.
2152 * configure: Regenerate.
2153
2154 * config/os/qnx, config/os/qnx/qnx6.1, config/os/qnx/qnx6.1/bits:
2155 New directories.
2156 * config/os/qnx/qnx6.1/bits/ctype_base.h, ctype_inline.h,
2157 ctype_noninline.h, os_defines.h: New files.
2158
2159 2002-06-10 Loren J. Rittle <ljrittle@acm.org>
2160
2161 * acinclude.m4 (GLIBCPP_CHECK_SETRLIMIT_ancilliary): Reorder and
2162 include all required headers for test against older POSIX standard.
2163 (GLIBCPP_CHECK_SETRLIMIT): Likewise.
2164 (ac_setrlimit): Likewise.
2165 * aclocal.m4: Regenerate.
2166 * configure: Regenerate.
2167 * testsuite/testsuite_hooks.cc: Reorder and include all
2168 required headers for use against older POSIX standard.
2169
2170 2002-06-08 Paolo Carlini <pcarlini@unitus.it>
2171
2172 * testsuite/backwards/strstream_members.cc: New.
2173
2174 2002-06-08 Benjamin Kosnik <bkoz@redhat.com>
2175
2176 * include/backwards/strstream: Format.
2177 * src/strstream.cc: Format.
2178
2179 2002-06-08 Andreas Schwab <schwab@suse.de>
2180
2181 * src/strstream.cc (strstreambuf::overflow): Set _M_buf,
2182 _M_buf_size and _M_buf_size_opt to the new buffer and size.
2183
2184 2002-06-08 Benjamin Kosnik <bkoz@redhat.com>
2185
2186 * config/os/generic/bits/ctype_noninline.h: Tweak format.
2187
2188 2002-06-07 Steve Ellcey <sje@cup.hp.com>
2189
2190 * src/locale-inst.cc (__codecvt_abstract_base):
2191 Put inside _GLIBCPP_USE_WCHAR_T ifdef.
2192 * include/bits/istream.tcc (basic_istream): Ditto.
2193 (ws) Ditto.
2194 (operator>>) Ditto.
2195 * include/bits/ostream.tcc (basic_ostream): Ditto.
2196 (endl): Ditto.
2197 (ends): Ditto.
2198 (flush): Ditto.
2199 (operator<<): Ditto.
2200
2201 2002-06-07 Phil Edwards <pme@gcc.gnu.org>
2202
2203 * mkcheck.in: Link against local testsuite library.
2204 * testsuite/testsuite_hooks.h (__set_testsuite_memlimit): Move null
2205 implementation out...
2206 * testsuite/testsuite_hooks.cc: ...to here.
2207
2208 2002-06-06 Loren J. Rittle <ljrittle@acm.org>
2209
2210 * src/Makefile.am (AUTOMAKE_OPTIONS): Use cygnus-style generation.
2211 * include/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
2212 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
2213 * src/Makefile.in: Regenerate (explicitly with --cygnus option).
2214 * testsuite/Makefile.in: Likewise.
2215
2216 2002-06-05 David Edelsohn <edelsohn@gnu.org>
2217
2218 * config/os/aix/bits/ctype_noninline.h (do_toupper,do_tolower):
2219 Call external symbol.
2220
2221 2002-06-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2222
2223 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3_target_compile):
2224 Search correct multilib testsuite dir for libv3test.
2225
2226 2002-06-04 Paolo Carlini <pcarlini@unitus.it>
2227 Gaby Dos Reis <gdr@codesourcery.com>
2228
2229 * include/bits/basic_string.tcc
2230 (basic_string::_S_construct(forward_iterator_tag):
2231 Fix typo in null pointer check.
2232 * testsuite/21_strings/ctor_copy_dtor.cc: Add test04.
2233
2234 2002-06-04 Paolo Carlini <pcarlini@unitus.it>
2235
2236 * testsuite/22_locale/money_get_members_char.cc
2237 (test02): Add decimal point to long double constants.
2238 * testsuite/22_locale/money_get_members_wchar_t.cc
2239 (test02): Likewise.
2240 * testsuite/22_locale/money_put_members_char.cc
2241 (test02, test03, test06): Likewise.
2242 * testsuite/22_locale/money_put_members_wchar_t.cc:
2243 (test02, test03, test06): Likewise.
2244 * testsuite/22_locale/num_get_members_char.cc:
2245 (test02, test01): Likewise; suffix long long constants with LL.
2246 * testsuite/22_locale/num_get_members_wchar_t.cc:
2247 (test02, test01): Likewise.
2248 * testsuite/22_locale/num_put_members_char.cc:
2249 (test02, test01): Likewise.
2250 * testsuite/22_locale/num_put_members_wchar_t.cc:
2251 (test02, test01): Likewise.
2252
2253 2002-06-03 Marc Espie <espie@openbsd.org>
2254
2255 * config/cpu/m68k/bits/atomicity.h(__exchange_and_add): Fix inline
2256 assembly for old assemblers.
2257
2258 2002-06-03 Phil Edwards <pme@gcc.gnu.org>
2259
2260 * include/bits/stl_bvector.h (swap(_Bit_reference,_Bit_reference)):
2261 Move/rename...
2262 (vector<bool>::swap(reference,reference)): ...to this.
2263
2264 2002-06-03 Phil Edwards <pme@gcc.gnu.org>
2265
2266 * docs/doxygen/TODO: Update.
2267 * docs/doxygen/user.cfg.in (SORT_MEMBER_DOCS): Set to off, now that
2268 some class members are in 14882 order.
2269 * docs/html/ext/howto.html: 3.1 is in the past now, not the future.
2270
2271 * include/std/std_bitset.h: Update comment.
2272 * src/bitset.cc: Update comments, clean up spacing.
2273
2274 * src/Makefile.am (sources): Alphabetize for convenience.
2275 * src/Makefile.in: Regenerate.
2276
2277 2002-06-03 Phil Edwards <pme@gcc.gnu.org>
2278
2279 * include/bits/stl_deque.h, include/bits/stl_list.h,
2280 include/bits/stl_vector.h: Reformat to (mostly) match C++STYLE.
2281 Reorder to match 14882. Doxygen blocks for all public members.
2282
2283 2002-05-31 Marcus Meissner <meissner@suse.de>
2284
2285 PR libstdc++/6886
2286 * include/bits/stl_bvector.h: Use UL suffix for unsigned longs.
2287 * testsuite/23_containers/vector_bool.cc (test02): New test.
2288
2289 2002-05-30 Marc Espie <espie@openbsd.org>
2290
2291 * configure.in: Always check for sys/types.h
2292 * configure: Regenerate.
2293
2294 2002-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2295
2296 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init):
2297 Rebuild the wrapper file every time this proc is called.
2298
2299 2002-05-28 Phil Edwards <pme@gcc.gnu.org>
2300
2301 * testsuite/Makefile.am (noinst_LIBRARIES): New target. Pull in
2302 CXX/INCLUDES.
2303 * testsuite/Makefile.in: Regenerate.
2304 * testsuite/testsuite_hooks.h (gnu_copy_tracker): Move from
2305 list_modifiers.cc and rename from 'T'. Move code bodies...
2306 * testsuite/testsuite_hooks.cc: ...to here. New file.
2307 * testsuite/23_containers/list_modifiers.cc: Move 'T' class out.
2308 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3_target_compile):
2309 Add libv3test.a to link options.
2310
2311 2002-05-27 Benjamin Kosnik <bkoz@redhat.com>
2312
2313 * src/misc-inst.cc: Define unnecessary algorithm
2314 instantiations. Break apart instantiations into groupings below.
2315 * src/fstream-inst.cc: New.
2316 * src/io-inst.cc: New.
2317 * src/istream-inst.cc: New.
2318 * src/ostream-inst.cc: New.
2319 * src/streambuf-inst.cc: New.
2320 * src/sstream-inst.cc: New.
2321 * src/Makefile.am (sources): Add files.
2322 * src/Makefile.in: Regenerate.
2323
2324 * acinclude.m4: Work around automake 1.4-p5 bug, change
2325 AM_GNU_GETTEXT in comments to AM-GNU-GETTEXT.
2326
2327 2002-05-27 Benjamin Kosnik <bkoz@redhat.com>
2328
2329 PR libstdc++/6795.
2330 * config/os/solaris/solaris2.6/bits/ctype_noninline.h
2331 (classic_table): Fix.
2332 * config/os/solaris/solaris2.5/bits/ctype_noninline.h: Same.
2333
2334 2002-05-27 Benjamin Kosnik <bkoz@redhat.com>
2335
2336 * testsuite/22_locale/ctype_is_wchar_t.cc: Guard with
2337 _GLIBCPP_USE_WCHAR_T.
2338 * testsuite/22_locale/ctype_narrow_wchar_t.cc: Same.
2339 * testsuite/22_locale/ctype_to_wchar_t.cc: Same.
2340 * testsuite/22_locale/ctype_widen_wchar_t.cc: Same.
2341
2342 2002-05-26 Carlo Wood <carlo@alinoe.com>
2343 Paolo Carlini <pcarlini@unitus.it>
2344
2345 PR libstdc++/6811
2346 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
2347 (__enc_traits::operator=): add missing return statement.
2348
2349 2002-05-24 Phil Edwards <pme@gcc.gnu.org>
2350
2351 PR libstdc++/6282
2352 * include/std/std_bitset.h (_Base_biteset<0>): New specialization.
2353 (operator>>): If nothing was extracted, don't fail in the
2354 zero-length case.
2355 * testsuite/23_containers/bitset_ctor.cc (test02): New test.
2356
2357 2002-05-24 Benjamin Kosnik <bkoz@redhat.com>
2358
2359 PR libstdc++/6701
2360 * testsuite/22_locale/ctype_narrow_char.cc: New.
2361 * testsuite/22_locale/ctype_narrow_wchar_t.cc: New.
2362 * testsuite/22_locale/ctype_widen_char.cc: New.
2363 * testsuite/22_locale/ctype_widen_wchar_t.cc: New.
2364 * testsuite/22_locale/ctype_members_char.cc: Move some bits into...
2365 * testsuite/22_locale/ctype_is_char.cc: ...this.
2366 * testsuite/22_locale/ctype_to_char.cc: ...and this.
2367 * testsuite/22_locale/ctype_members_wchar_t.cc: Move some bits into...
2368 * testsuite/22_locale/ctype_is_wchar_t.cc: ...this.
2369 * testsuite/22_locale/ctype_to_wchar_t.cc: ...and this.
2370
2371 * testsuite/22_locale/ctype_scan_wchar_t.cc: Should pass.
2372
2373 2002-05-24 Dale Peakall <dale@peakall.net>
2374
2375 PR libstdc++/6701
2376 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_narrow): Fix.
2377 * config/locale/generic/ctype_members.cc: Same.
2378
2379 2002-05-24 Benjamin Kosnik <bkoz@redhat.com>
2380
2381 PR libstdc++/6750
2382 * include/bits/ostream.tcc (ostream::operator<<(const char*)): Fix
2383 for empty string literal.
2384 (ostream::operator<<(const _CharT*)): Same.
2385 (ostream<char>::operator<<(const char*)): Same.
2386 (ostream<char>::operator<<(streambuf*)): Same.
2387 * testsuite/27_io/ostream_inserter_char.cc (test08): Add tests.
2388 * testsuite/27_io/ostream_inserter_other.cc (test02): Modify.
2389
2390 2002-05-23 Benjamin Kosnik <bkoz@redhat.com>
2391
2392 * configure.in (release_VERSION): Update to 3.1.1.
2393 (libtool_VERSION): Update to 4:1:0.
2394 * configure: Regenerate.
2395
2396 2002-05-21 Phil Edwards <pme@gcc.gnu.org>
2397
2398 * include/bits/stl_pair.h: Tweak comment markup.
2399
2400 2002-05-21 Phil Edwards <pme@gcc.gnu.org>
2401
2402 * include/ext/stdio_filebuf.h: Add header guards. Doxygenate.
2403
2404 2002-05-21 Phil Edwards <pme@gcc.gnu.org>
2405
2406 * docs/doxygen/user.cfg.in (EXCLUDE): Add 'CVS'.
2407
2408 2002-05-21 Phil Edwards <pme@gcc.gnu.org>
2409
2410 * include/bits/stl_vector.h: Reformat to follow C++STYLE.
2411 Doxygenate all public members. Reorder to follow 14882.
2412 (vector::push_back(void)): Remove previously-deprecated fn.
2413 (vector::insert(iterator), vector::_M_insert_aux(iterator)):
2414 Deprecate for removal in 3.3.
2415
2416 2002-05-20 Phil Edwards <pme@gcc.gnu.org>
2417
2418 * docs/html/faq/index.html (5.4): Recommend against -I options for
2419 finding the ext headers.
2420 * docs/html/faq/index.txt: Regenerate.
2421
2422 2002-05-19 Paolo Carlini <pcarlini@unitus.it>
2423
2424 * testsuite/23_containers/deque_operators.cc (test01):
2425 Fix minor typo in last commit.
2426
2427 2002-05-18 Paolo Carlini <pcarlini@unitus.it>
2428
2429 PR libstdc++/6503
2430 * include/bits/stl_deque.h (_Deque_iterator::operator==,
2431 operator!=, operator<, operator>, operator>=, operator<=):
2432 Make non-member functions, to allow comparing const and
2433 non-const iterators in any order.
2434 * testsuite/23_containers/deque_operators.cc: New testfile.
2435
2436 2002-05-16 Phil Edwards <pme@gcc.gnu.org>
2437
2438 * docs/html/faq/index.html: Update not-a-bug list with basic_file.h.
2439 * docs/html/faq/index.txt: Regenerate.
2440
2441 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2442
2443 * Makefile.am: Allow for PWDCMD to override hardcoded pwd.
2444 * acinclude.m4: Likewise.
2445 * docs/html/Makefile: Likewise.
2446 * aclocal.m4: Regenerate.
2447 * configure: Regenerate.
2448 * Makefile.in: Regenerate.
2449
2450 2002-05-15 Loren J. Rittle <ljrittle@acm.org>
2451
2452 libstdc++/6641
2453 * include/bits/c++config (__USE_MALLOC): Report case where
2454 the user improperly defined it on the command line.
2455
2456 2002-05-15 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2457
2458 * testsuite/testsuite_hooks.h (__set_testsuite_memlimit):
2459 Retrieve current limits before setting.
2460
2461 2002-05-15 Benjamin Kosnik <bkoz@redhat.com>
2462
2463 PR libstdc++/6518
2464 * include/bits/ostream.tcc (ostream::operator<<(const char*)): Fix
2465 for null case.
2466 (ostream::operator<<(const _CharT*)): Same.
2467 (ostream<char>::operator<<(const char*)): Same.
2468 * testsuite/27_io/ostream_inserter_char.cc (test07): Add test.
2469
2470 2002-05-15 Benjamin Kosnik <bkoz@redhat.com>
2471
2472 PR libstdc++/6594
2473 * src/strstream.cc (strstreambuf): Fix leak.
2474
2475 2002-05-15 Paolo Carlini <pcarlini@unitus.it>
2476
2477 PR libstdc++/6648
2478 * include/bits/istream.tcc (istream::getline, ignore):
2479 Upon __idelim (__delim) call sbumpc() not snextc().
2480 * testsuite/27_io/narrow_stream_objects.cc:
2481 Add test08 and test09.
2482
2483 2002-05-13 Benjamin Kosnik <bkoz@redhat.com>
2484
2485 * testsuite/22_locale/ctype_scan_char.cc: Tweak.
2486 * testsuite/22_locale/ctype_scan_wchar_t.cc: New.
2487
2488 * docs/html/install.html: Fix.
2489
2490 2002-05-13 Benjamin Kosnik <bkoz@redhat.com>
2491
2492 * include/bits/fstream.tcc
2493 (basic_filebuf::_M_allocate_internal_buffer): Remove extraneous
2494 try/catch blocks.
2495 * src/localename.cc (locale::_Impl::_M_install_facet): Same.
2496
2497 * docs/html/install.html: Tweak, add bits about required locales
2498 for the 22_locale tests when using the gnu model.
2499
2500 * testsuite/27_io/istream_sentry.cc: Tweak.
2501
2502 2002-05-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2503
2504 * config/os/irix/irix5.2/bits/ctype_inline.h (scan_is, scan_not):
2505 Fix typo, use this->is() rather than manually (and perhaps
2506 incorrectly) inlining it.
2507 * config/os/irix/irix6.5/bits/ctype_inline.h (scan_is, scan_not):
2508 Likewise.
2509 * testsuite/22_locale/ctype_scan_char.cc: New file.
2510
2511 2002-05-13 Paolo Carlini <pcarlini@unitus.it>
2512 Jakub Jelinek <jakub@redhat.com>
2513
2514 * testsuite/22_locale/money_get_members_char.cc
2515 (test01, test02, test04): Use the de_DE@euro named locale
2516 instead of de_DE to allow for an uniform behaviour with
2517 both old and Euro-era localedata; tweak some tests.
2518 * testsuite/22_locale/money_get_members_wchar_t.cc
2519 (test01, test02, test04): Likewise.
2520 * testsuite/22_locale/money_put_members_char.cc
2521 (test01, test02, test04): Likewise.
2522 * testsuite/22_locale/money_put_members_wchar_t.cc
2523 (test01, test02, test04): Likewise.
2524
2525 2002-05-13 Paolo Carlini <pcarlini@unitus.it>
2526
2527 * testsuite/22_locale/codecvt_members_char_char.cc
2528 (test03): Robustify wrt localedata.
2529 * testsuite/22_locale/codecvt_members_wchar_t_char.cc (test03): Likewise.
2530 * testsuite/22_locale/collate_members_char.cc (test04): Likewise.
2531 * testsuite/22_locale/collate_members_wchar_t.cc (test04): Likewise.
2532 * testsuite/22_locale/ctype_members_char.cc (test05): Likewise.
2533 * testsuite/22_locale/ctype_members_wchar_t.cc (test04): Likewise.
2534 * testsuite/22_locale/messages_members_char.cc (test03): Likewise.
2535 * testsuite/22_locale/money_get_members_char.cc (test08): Likewise.
2536 * testsuite/22_locale/money_get_members_wchar_t.cc (test08): Likewise.
2537 * testsuite/22_locale/money_put_members_char.cc (test07): Likewise.
2538 * testsuite/22_locale/money_put_members_wchar_t.cc (test07): Likewise.
2539 * testsuite/22_locale/moneypunct_members_char.cc (test03): Likewise.
2540 * testsuite/22_locale/moneypunct_members_wchar_t.cc (test03): Likewise.
2541 * testsuite/22_locale/num_get_members_char.cc (test06): Likewise.
2542 * testsuite/22_locale/num_get_members_wchar_t.cc (test06): Likewise.
2543 * testsuite/22_locale/num_put_members_char.cc (test04): Add comment.
2544 * testsuite/22_locale/num_put_members_wchar_t.cc (test04): Likewise.
2545 * testsuite/22_locale/numpunct_members_char.cc (test03): Likewise.
2546 * testsuite/22_locale/numpunct_members_wchar_t.cc (test03): Likewise.
2547 * testsuite/22_locale/time_get_members_char.cc (test08): Likewise.
2548 * testsuite/22_locale/time_get_members_wchar_t.cc (test08): Likewise.
2549 * testsuite/22_locale/time_put_members_char.cc (test04): Likewise.
2550 * testsuite/22_locale/time_put_members_wchar_t.cc (test04): Likewise.
2551
2552 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2553
2554 * config/os/irix/irix5.2/bits/os_defines.h: Revert 2002-05-06
2555 change.
2556
2557 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
2558
2559 * config/os/gnu-linux/bits/os_defines.h (__glibcpp_long_bits): Define
2560 to 64 for hppa 64-bit port.
2561 (__glibcpp_long_double_bits): Define to 64 for all hppa ports.
2562
2563 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2564
2565 * acinclude.m4 (enable_symvers): Quote $LD.
2566 * aclocal.m4: Regenerate.
2567 * configure: Likewise.
2568
2569 2002-05-09 Jakub Jelinek <jakub@redhat.com>
2570
2571 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Append all
2572 multilib dirs containing libgcc_s*.so.1 below gcc object dir to
2573 LD_LIBRARY_PATH.
2574
2575 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
2576
2577 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2578 script entry, and set LD to it when configuring multilibs.
2579 * configure: Rebuilt.
2580
2581 2002-05-07 Mark Mitchell <mark@codesourcery.com>
2582
2583 * configure.in: Add support for WindISS.
2584 * configure: Regenerated.
2585 * configure.target: Add support for WindISS.
2586 * config/os/windiss/bits/ctype_base.h: New file.
2587 * config/os/windiss/bits/ctype_inline.h: Likewise.
2588 * config/os/windiss/bits/ctype_noninline.h: Likewise.
2589 * config/os/windiss/bits/os_defines.h: Likewise.
2590
2591 2002-05-06 Paolo Carlini <pcarlini@unitus.it>
2592
2593 Test all the facets for the temporary "C" locale switch issue.
2594 * testsuite/22_locale/codecvt_members_char_char.cc: Add test03.
2595 * testsuite/22_locale/codecvt_members_wchar_t_char.cc: Likewise.
2596 * testsuite/22_locale/collate_members_char.cc: Add test04.
2597 * testsuite/22_locale/collate_members_wchar_t.cc: Likewise.
2598 * testsuite/22_locale/ctype_members_char.cc: Add test05.
2599 * testsuite/22_locale/ctype_members_wchar_t.cc: Add test04.
2600 * testsuite/22_locale/messages_members_char.cc: Add test03.
2601 * testsuite/22_locale/money_get_members_char.cc: Add test08.
2602 * testsuite/22_locale/money_get_members_wchar_t.cc: Likewise.
2603 * testsuite/22_locale/money_put_members_char.cc: Add test07.
2604 * testsuite/22_locale/money_put_members_wchar_t.cc: Likewise.
2605 * testsuite/22_locale/moneypunct_members_char.cc: Add test03.
2606 * testsuite/22_locale/moneypunct_members_wchar_t.cc: Likewise.
2607 * testsuite/22_locale/num_get_members_char.cc: Add test06.
2608 * testsuite/22_locale/num_get_members_wchar_t.cc: Likewise.
2609 * testsuite/22_locale/numpunct_members_char.cc: Add test03.
2610 * testsuite/22_locale/numpunct_members_wchar_t.cc: Likewise.
2611 * testsuite/22_locale/time_get_members_char.cc: Add test08.
2612 * testsuite/22_locale/time_get_members_wchar_t.cc: Likewise.
2613 * testsuite/22_locale/time_put_members_char.cc: Add test04.
2614 * testsuite/22_locale/time_put_members_wchar_t.cc: Likewise.
2615
2616 * testsuite/22_locale/num_put_members_char.cc (test04): Add comment.
2617 * testsuite/22_locale/num_put_members_wchar_t.cc (test04): Likewise.
2618
2619 2002-05-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2620
2621 * config/os/irix/irix5.2/bits/os_defines.h (_SGI_SOURCE,
2622 __EXTENSIONS__): Ensure they are always defined.
2623
2624 2002-05-06 Phil Edwards <pme@gcc.gnu.org>
2625
2626 * docs/html/documentation.html: Fix broken link.
2627
2628 2002-05-04 Benjamin Kosnik <bkoz@redhat.com>
2629 Paolo Carlini <pcarlini@unitus.it>
2630
2631 * testsuite/22_locale/num_put_members_char.cc: Add test04(),
2632 testing for the locale_facets.tcc entry of the previous commit.
2633 * testsuite/22_locale/num_put_members_wchar_t.cc: Likewise.
2634
2635 2002-05-04 Takeshi Kobayakawa <tskoba@mte.biglobe.ne.jp>
2636
2637 * config/locale/generic/c_locale.cc
2638 (__convert_to_v(float, double, long double)):
2639 Fix the temporary switch to the "C" locale, saving and
2640 restoring in the proper way the current locale.
2641 * config/locale/generic/time_members.cc
2642 (__timepunct<char, wchar_t>::_M_put): Likewise.
2643 * config/locale/gnu/messages_members.cc
2644 (messages<char>::do_get): Likewise.
2645 * config/locale/gnu/messages_members.h
2646 (messages<_CharT>::do_get): Likewise.
2647 * config/locale/gnu/time_members.cc
2648 (__timepunct<char, wchar_t>::_M_put): Likewise.
2649 * include/bits/locale_facets.tcc (__convert_from_v): Likewise.
2650
2651 2002-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2652
2653 * configure.in (AC_CHECK_HEADERS): Check for string.h & stdlib.h.
2654 * libsupc++/Makefile.am (LTCOMPILE): Add $(DEFS).
2655
2656 * Makefile.in, config.h.in, configure: Regenerate.
2657
2658 2002-05-03 Benjamin Kosnik <bkoz@redhat.com>
2659
2660 PR libstdc++/6549.
2661 * include/bits/fstream.tcc (filebuf::_M_underflow_common): Revert.
2662 * testsuite/27_io/narrow_stream_objects.cc (test07): Add.
2663
2664 2002-05-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2665
2666 * config/os/irix/irix5.2/bits/ctype_noninline.h (classic_table):
2667 Return __ctype + 1.
2668 (ctype:_M_table): Initialize to classic_table(), not __ctype.
2669
2670 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2671
2672 * configure.in: Update local install.html, configopts.html paths.
2673 * configure: Regenerate.
2674
2675 2002-05-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2676
2677 * config/os/irix/irix5.2/bits/os_defines.h
2678 (__glibcpp_long_double_bits, __glibcpp_long_bits): Define.
2679
2680 * config/os/irix/irix5.2/bits/ctype_inline.h: Cast to unsigned
2681 char.
2682
2683 2002-05-02 Phil Edwards <pme@gcc.gnu.org>
2684
2685 * docs/html/faq/index.html: Update list in #4.1.
2686 * docs/html/faq/index.txt: Regenerated.
2687
2688 2002-05-02 Benjamin Kosnik <bkoz@redhat.com>
2689
2690 * docs/html/17_intro/RELEASE-NOTES (New): Update.
2691
2692 2002-05-01 Phil Edwards <pme@gcc.gnu.org>
2693
2694 * include/std/std_bitset.h: Fix doxygen comments.
2695 * docs/html/documentation.html: Minor tweaks for 3.1.
2696 * docs/html/27_io/howto.html: Likewise.
2697 * docs/html/ext/howto.html: Likewise, mention stdio_filebuf.
2698 * docs/html/faq/index.html: Likewise.
2699 * docs/html/faq/index.txt: Regenerated.
2700
2701 2002-05-01 Benjamin Kosnik <bkoz@redhat.com>
2702
2703 PR libstdc++/6533
2704 * include/bits/streambuf_iterator.h (istreambuf_iterator::_M_get): New.
2705 (istreambuf_iterator::equal): Use it.
2706 (istreambuf_iterator::operator*): Use it.
2707
2708 2002-05-01 Paolo Carlini <pcarlini@unitus.it>
2709
2710 PR libstdc++/6513
2711 * include/bits/stl_uninitialized.h
2712 (uninitialized_copy(_InputIter, _InputIter, _ForwardIter)):
2713 Fix typo in 2001-07-17 commit: typedef _ValueType to
2714 iterator_traits<_ForwardIter> not <_InputIter>.
2715 * testsuite/23_containers/vector_ctor.cc: Add test04.
2716
2717 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
2718
2719 PR libstdc++/6501
2720 * include/c_std/std_cctype.h: Include bits/c++config.h.
2721 * config/os/hpux/bits/os_defines.h (_SB_CTYPE_MACROS): Define.
2722
2723 2002-04-30 Benjamin Kosnik <bkoz@redhat.com>
2724
2725 * include/ext/stdio_filebuf.h: New file.
2726 * include/ext/enc_filebuf.h: New file.
2727 * config/io/basic_file_stdio.h (__basic_file::sys_open): Add fd ctor.
2728 * config/io/basic_file_stdio.cc: Same.
2729 * include/bits/fstream.tcc (filebuf::_M_allocate_internal_buffer):
2730 Remove _M_unbuf hacks.
2731 (filebuf::_M_destroy_internal_buffer): Same.
2732 (filebuf::filebuf(cfile, openmode, int_type): Remove definition.
2733 (filebuf::fd): Remove.
2734 * include/std/std_fstream.h (filebuf::_M_unbuf): Remove.
2735 (filebuf::filebuf(__c_file*, openmode, int_type)): Remove.
2736 (filebuf::fd): Remove.
2737 * src/ios.cc (ios_base::_S_ios_create): Change to use specialized
2738 filebufs.
2739 (ios_base::_S_ios_destroy): Same.
2740 * src/misc-inst.cc (file_filebuf<char>): Add instantiation.
2741 * include/Makefile.am (ext_headers): Add ext_filebuf.h,
2742 stdio_filebuf.h. * include/Makefile.in: Regenerate.
2743
2744 2002-04-30 Benjamin Kosnik <bkoz@redhat.com>
2745
2746 PR libstdc++/6511
2747 * config/os/solaris/solaris2.7/bits/ctype_noninline.h: Fix typo.
2748
2749 2002-04-29 Benjamin Kosnik <bkoz@redhat.com>
2750
2751 PR libstdc++/5820
2752 * include/bits/fstream.tcc (basic_filebuf::_M_underflow_common):
2753 Check for eof.
2754 * include/bits/streambuf_iterator.h: Match stream_iterator.h.
2755 (istreambuf_iterator::operator++): Invalidate on eof.
2756 (istreambuf_iterator::operator++(int)): Same.
2757 (istreambuf_iterator::operator*): Same.
2758
2759 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2760
2761 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Set all
2762 of LD_LIBRARY_PATH, SHLIB_PATH, LD_LIBRARYN32_PATH,
2763 LD_LIBRARY64_PATH.
2764
2765 2002-04-28 Benjamin Kosnik <bkoz@redhat.com>
2766
2767 PR libstdc++/5820
2768 * config/io/basic_file_stdio.h (__basic_file::sys_getc): Return int.
2769 (__basic_file::sys_ungetc): Take int.
2770 * config/io/basic_file_stdio.cc (__basic_file::sys_ungetc): Same.
2771 * include/bits/fstream.tcc (basic_filebuf::_M_underflow_common):
2772 Use sys_getc for unbuffered input.
2773 * testsuite/27_io/narrow_stream_objects.cc (test06): New.
2774
2775 * src/ios.cc (_M_grow_words): Adjust error checking.
2776 * testsuite/27_io/ios_base_storage.cc: Same.
2777
2778 2002-04-28 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
2779
2780 * include/ext/stl_hashtable.h: Import __iterator_category
2781
2782 2002-04-28 Paolo Carlini <pcarlini@unitus.it>
2783 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
2784
2785 * testsuite/ext/hash_set.cc: New testfile.
2786
2787 2002-04-27 Benjamin Kosnik <bkoz@redhat.com>
2788
2789 * config/os/solaris/solaris2.5/bits/os_defines.h: Remove
2790 _G_USING_THUNKS.
2791 * config/os/solaris/solaris2.6/bits/os_defines.h: Same.
2792 * config/os/solaris/solaris2.7/bits/os_defines.h: Same.
2793
2794 2002-04-26 Paolo Carlini <pcarlini@unitus.it>
2795
2796 * include/bits/basic_string.h (replace(__pos, __n1, __s, __n2):
2797 Fix and tighten __throw_length_error check.
2798 * testsuite/21_strings/replace.cc (test05): New.
2799 * testsuite/21_strings/replace.cc (test02, test03, test04): Tweak.
2800
2801 2002-04-23 Loren J. Rittle <ljrittle@acm.org>
2802
2803 * include/std/std_fstream.h (basic_filebuf::sync): Hoist
2804 unconditional flush on lower-layer handle to here...
2805 * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow):
2806 ...from here. Optimize remaining _M_file.sync() call pattern.
2807 * testsuite/27_io/narrow_stream_objects.cc (test04): New test.
2808 (test05): Likewise.
2809
2810 2002-04-23 Jason Merrill <jason@redhat.com>
2811
2812 * include/bits/fstream.tcc (basic_filebuf::seekoff): Fix for
2813 output-only filebufs.
2814 * include/std/std_fstream.h (basic_filebuf::_M_set_indeterminate):
2815 Likewise.
2816 (basic_filebuf::_M_set_determinate): Likewise.
2817
2818 PR libstdc++/6414
2819 * include/bits/fstream.tcc (basic_filebuf::seekoff): Adjust return
2820 value properly in the trivial case.
2821 * testsuite/27_io/istream_seeks.cc (test04): Make sure that
2822 tellg() returns the right value after a read.
2823
2824 2002-04-23 Hans-Peter Nilsson <hp@bitrange.com>
2825
2826 * config/cpu/mmix/bits/cpu_limits.h: New file.
2827 * configure.target (CPULIMITSH): Use it.
2828
2829 2002-04-22 Loren J. Rittle <ljrittle@acm.org>
2830
2831 * docs/html/17_intro/porting.texi (_GLIBCPP_AVOID_FSEEK): Remove.
2832 * docs/html/17_intro/porting.html: Rebuilt.
2833
2834 2002-04-20 Jason Merrill <jason@redhat.com>
2835
2836 PR libstdc++/4150
2837 * include/std/std_streambuf.h (basic_streambuf::_M_set_indeterminate):
2838 Move to filebuf.
2839 (basic_streambuf::_M_set_determinate): Likewise.
2840 (basic_streambuf::_M_is_indeterminate): Likewise.
2841 * include/bits/std_fstream.h (basic_filebuf::_M_filepos): New
2842 non-static data member.
2843 (basic_filebuf::_M_underflow_common): New non-static member function.
2844 (basic_filebuf::_M_underflow, _M_uflow): Call it.
2845 (basic_filebuf::sync): Avoid useless seeking.
2846 (basic_filebuf::_M_set_indeterminate): Move here from streambuf.
2847 Set _M_filepos.
2848 (basic_filebuf::_M_set_determinate): Likewise.
2849 (basic_filebuf::_M_is_indeterminate): Likewise.
2850 * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow): Seek
2851 back to _M_out_beg if necessary.
2852 (basic_filebuf::seekoff): Likewise.
2853 (basic_filebuf::_M_underflow_common): Generalization of old
2854 underflow(). Don't seek back to _M_in_beg.
2855 * src/ios.cc: Lose _GLIBCPP_AVOID_FSEEK stuff.
2856 * config/os/solaris/solaris2.?/bits/os_defines.h: Likewise.
2857 * config/os/bsd/freebsd/bits/os_defines.h: Likewise.
2858 * config/os/mingw32/bits/os_defines.h: Likewise.
2859 * testsuite/27_io/filebuf_virtuals.cc (test05): Don't overspecify
2860 ungetc test.
2861
2862 2002-04-22 Benjamin Kosnik <bkoz@redhat.com>
2863
2864 * include/bits/istream.tcc (istream::read): Fix.
2865 * testsuite/27_io/istream_unformatted.cc (main): Add.
2866
2867 2002-04-20 Benjamin Kosnik <bkoz@redhat.com>
2868
2869 PR libstdc++/6360
2870 * include/bits/istream.tcc (istream::ignore): Streamline, use
2871 delimiter as is.
2872 * include/bits/streambuf.tcc: Use this->gptr.
2873 * testsuite/27_io/istream_unformatted.cc (test08): Add test.
2874
2875 2002-04-18 Benjamin Kosnik <bkoz@redhat.com>
2876
2877 * include/bits/localefwd.h (locale::id::_M_id): Do this correctly,
2878 as type safety is important, especially on solaris.
2879 * include/bits/istream.tcc (istream::read): Clean.
2880 (istream::readsome): Same.
2881 * locale.cc: Wrap lines.
2882
2883 * testsuite/21_strings/inserters_extractors.cc: Tweaks.
2884 * testsuite/27_io/instantiations.cc (test): Add bool variable...
2885 * testsuite/21_strings/capacity.cc: Clean.
2886
2887 2002-04-17 Phil Edwards <pme@gcc.gnu.org>
2888
2889 * docs/doxygen/doxygroups.cc: New group on binary searching.
2890 * include/bits/stl_algo.h: Document binary searches and merges.
2891 * include/bits/stl_deque.h: The 'map' member is not the 'map' class.
2892
2893 2002-04-17 Phil Edwards <pme@gcc.gnu.org>
2894
2895 * docs/doxygen/mainpage.html: Doxygen logo is now a PNG file.
2896 * docs/doxygen/run_doxygen: Bump required version.
2897 * docs/doxygen/user.cfg.in: Revert accidental change.
2898 * docs/html/faq/index.html: Reindent a block of links.
2899 (4.4): New note on using dlsym.
2900 * docs/html/faq/index.txt: Regenerated.
2901
2902 2002-04-17 Phil Edwards <pme@gcc.gnu.org>
2903
2904 * testsuite_flags.in (cxxflags): Also pass @EXTRA_CXX_FLAGS@.
2905
2906 2002-04-17 Benjamin Kosnik <bkoz@redhat.com>
2907
2908 * config/linker-map.gnu (__malloc_alloc_template): Add.
2909 (__default_alloc_template): Same.
2910 * include/bits/stl_alloc.h (__malloc_alloc_template): Add extern
2911 template.
2912 (__default_alloc_template): Same.
2913
2914 2002-04-17 Benjamin Kosnik <bkoz@redhat.com>
2915
2916 * testsuite/27_io/filebuf_virtuals.cc: Add _S_pback_size instantiation.
2917
2918 2002-04-16 Benjamin Kosnik <bkoz@redhat.com>
2919
2920 * src/concept-inst.cc (vector<locale::facet*>): Remove instantiations.
2921 * src/stl-inst.cc (vector::_M_insert_aux): Remove instantiation.
2922 (__malloc_alloc_template): Conditionalize.
2923
2924 * include/bits/istream.tcc: Remove sputbackc calls.
2925
2926 * testsuite/19_diagnostics/stdexceptions.cc: Fix comment.
2927
2928 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
2929
2930 * testsuite/24_iterators/rel_ops.cc: New test.
2931
2932 2002-04-16 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
2933
2934 * include/bits/type_traits.h (__normal_iterator): Declare in
2935 __gnu_cxx. Adjust use at global namespace.
2936 * include/bits/stl_iterator.h (__normal_iterator): Move definition
2937 into __gnu_cxx::. Add more operator overloads. Tidy existing ones.
2938 * include/bits/basic_string.h (basic_string): Adjust use of
2939 __normal_iterator.
2940 * include/bits/stl_vector.h (_Alloc>): Likewise.
2941 * src/concept-inst.cc (__gnu_cxx): __normal_iterator<> is now here.
2942 * src/string-inst.cc (operator==): Instantiate in __gnu_cxx.
2943
2944 2002-04-15 Benjamin Kosnik <bkoz@redhat.com>
2945
2946 PR libstdc++/4164
2947 Valgrind fixes.
2948 * config/io/basic_file_stdio.cc (__basic_file::~__basic_file):
2949 Call close.
2950 (__basic_file::close): Call fflush. Correct return if fclose ok.
2951 (__basic_file::is_open): Make const.
2952 Change __c_file_type to __c_file.
2953 * config/io/basic_file_stdio.h: Change __c_file_type to __c_file.
2954 (__basic_file::is_open): Make const.
2955 * config/io/c_io_stdio.h: Change __c_file_type to __c_file.
2956 * include/std/std_fstream.h (filebuf::_M_allocate_file): Remove.
2957 (filebuf::_M_unbuf): Add.
2958 (filebuf::_M_file): Change to non-pointer.
2959 (filebuf::_M_allocate_pback_buffer): Remove.
2960 * include/bits/fstream.tcc (filebuf::_M_allocate_file): Remove.
2961 (filebuf::_M_allocate_internal_buffer): Use _M_unbuf.
2962 Change initialization list for _M_file change.
2963 (filebuf::_M_allocate_pback_buffer): Remove.
2964 Change _M_file usage to reflect non-pointer data member.
2965
2966 * config/locale/generic/c_locale.cc
2967 (locale::facet::_S_create_c_locale): Add parameter.
2968 * config/locale/generic/collate_members.cc: Change
2969 _M_compare_helper to _M_compare.
2970 Change _M_transform_helper to _M_transform.
2971 * config/locale/generic/monetary_members.cc: Changeup data types.
2972 Add dtors.
2973 * config/locale/generic/numeric_members.cc: Add dtors.
2974 * config/locale/generic/time_members.cc: Add dtors.
2975 * config/locale/gnu/c_locale.cc: Add parameter.
2976 * config/locale/gnu/collate_members.cc:Change
2977 _M_compare_helper to _M_compare.
2978 Change _M_transform_helper to _M_transform.
2979 * config/locale/gnu/ctype_members.cc: Better error checking.
2980 * config/os/gnu-linux/bits/ctype_noninline.h: Better error checking.
2981 * config/locale/gnu/messages_members.cc: Tweak comment.
2982 * config/locale/gnu/monetary_members.cc: Change data types.
2983 Add dtors.
2984 * config/locale/gnu/numeric_members.cc: Add dtors, better error
2985 checking.
2986 * config/locale/gnu/time_members.cc: Same.
2987 * config/locale/ieee_1003.1-2001/c_locale.cc
2988 (locale::facet::_S_create_c_locale): Add parameter.
2989 * config/locale/ieee_1003.1-2001/c_locale.h: Correct typedef.
2990 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Remove
2991 bogus ctor.
2992
2993 * include/bits/locale_facets.h (moneypunct): Use string literals.
2994 Don't define dtor.
2995 (numpunct): Same.
2996 (__timepunct): Same.
2997 (locale::_Impl::_M_facets): Change from vector to array.
2998 (locale::_Impl::_M_names): Change from array of strings to array
2999 of string literals.
3000 (locale::facet::_S_create_c_locale): Add parameter.
3001 (locale::locale::_S_num_facets): Move to...
3002 (locale::_Impl::_M_facets_size): Here.
3003 * include/bits/locale_facets.tcc: Fixups for _M_facets, _M_name
3004 changes.
3005 * include/bits/localefwd.h: (locale::id::_M_id): Add member function.
3006 (locale::_Impl::_Impl(facet**, size_t, bool)): Add.
3007 (locale::_Impl::_Impl(string, size_t)): Change to
3008 (locale::_Impl::_Impl(const char*, size_t)): This.
3009
3010 * include/bits/streambuf.tcc (streambuf::_S_pback_size): Define.
3011 * include/std/std_streambuf.h (streambuf::_M_pback_size): Change to
3012 (streambuf::_S_pback_size): This.
3013
3014 * src/globals.cc: Add pre-allocations for "C" facets.
3015 * src/locale-inst.cc: Remove vector instantiations.
3016 * src/locale.cc: Remove vector include. Fixups for _M_names,
3017 _M_facets changes.
3018 * src/localename.cc: Same.
3019
3020 * include/bits/stl_vector.h: Fix odd formatting.
3021
3022 * include/bits/basic_string.tcc: Tweak comment.
3023
3024 * libsupc++/new: Make sure parameters are uglified.
3025 * libsupc++/typeinfo: Same.
3026
3027 * testsuite/22_locale/num_get_members_char.cc: Fixup.
3028 * testsuite/22_locale/num_get_members_wchar_t.cc: Same.
3029 * testsuite/27_io/filebuf_members.cc: Same.
3030
3031 2002-04-12 Steve Ellcey <sje@cup.hp.com>
3032
3033 * gcc/libstdc++-v3/config/os/hpux/bits/os_defines.h
3034 (strtoll, strtoull): In 64 bit mode HP-UX (IA64 and HPPA)
3035 does not define strtoll or strtoull, but does define strtol
3036 and strtoul which are the same since in 64 bit mode
3037 sizeof(long) == sizeof(long long).
3038
3039 2002-04-12 Phil Edwards <pme@gcc.gnu.org>
3040
3041 * include/std/std_bitset.h: Doxygenate std::bitset<>. Clean up
3042 trailing spaces, indentation, and macro names. Make exception
3043 messages more informative.
3044
3045 2002-04-11 Richard Henderson <rth@redhat.com>
3046
3047 * include/bits/fstream.tcc (basic_filebuf<>::open): Fix & ordering.
3048 * include/bits/ostream.tcc (basic_ostream<>::operator<<(long)): Same.
3049 (basic_ostream<>::operator<<(long long)): Same.
3050
3051 2002-04-11 Richard Henderson <rth@redhat.com>
3052
3053 * config/linker-map.gnu: Add __gxx_personality_sj0.
3054
3055 2002-04-09 Benjamin Kosnik <bkoz@redhat.com>
3056
3057 libstdc++/1072
3058 * include/bits/localefwd.h (locale::_Impl::_M_facets): Change from
3059 pointer to vector.
3060 Remove forward declaration of vector.
3061 Include vector.
3062 * include/bits/locale_facets.tcc: Remove vector include.
3063 (use_locale): Adjust.
3064 (has_locale): Adjust.
3065 * src/locale.cc: Adjust.
3066 * src/localename.cc: Same.
3067
3068 2002-04-09 Benjamin Kosnik <bkoz@redhat.com>
3069 Richard Henderson <rth@redhat.com>
3070
3071 * include/bits/sstream.tcc: Clean up bit ops.
3072 * include/bits/fstream.tcc: Same.
3073
3074 2002-04-09 Jakub Jelinek <jakub@redhat.com>
3075
3076 * include/bits/locale_facets.h (__num_base::_S_scale_hex): Remove.
3077 (__num_base::_S_scale_oct): Remove.
3078 * src/locale.cc (__num_base::_S_scale_hex): Remove.
3079 (__num_base::_S_scale_oct): Remove.
3080
3081 2002-04-09 Benjamin Kosnik <bkoz@redhat.com>
3082
3083 libstdc++/6124
3084 * testsuite/23_containers/bitset_members.cc: New test.
3085 * include/std/std_bitset.h (_Bit_count::_S_bit_count): Move..
3086 (_S_bit_count): Here.
3087 (_First_one::_S_first_one): Move...
3088 (_S_first_one): Here.
3089 Format.
3090 * src/bitset.cc: Adjust.
3091 * config/linker-map.gnu: Export.
3092
3093 2002-04-08 Benjamin Kosnik <bkoz@redhat.com>
3094
3095 libstdc++/5180
3096 * include/bits/fstream.tcc (filebuf::seekpos): Fix.
3097 * include/std/std_fstream.h: Clean.
3098 * include/bits/ostream.tcc: Remove extraneous variables.
3099 * include/bits/sstream.tcc (stringbuf::seekoff): Be strict about
3100 open modes and which modes.
3101 (stringbuf::seekpos): Same.
3102 * testsuite/27_io/stringbuf_virtuals.cc: New tests.
3103
3104 2002-04-05 Jonathan Wakely <jw@kayari.org>
3105
3106 * include/bits/stl_algo.h (unique_copy, __gcd, rotate, rotate_copy,
3107 random_shuffle, partition, stable_partition, sort, stable_sort,
3108 partial_sort, partial_sort_copy, nth_element): Doxygenate.
3109
3110 2002-04-05 David S. Miller <davem@redhat.com>
3111
3112 * config/os/gnu-linux/bits/os_defines.h
3113 (__glibcpp_long_double_bits): Set to 64 on 32-bit Sparc.
3114
3115 2002-04-04 Benjamin Kosnik <bkoz@redhat.com>
3116
3117 libstdc++/3457
3118 via gawrilow@math.tu-berlin.de
3119 * acinclude.m4 (version_specific_libs): Fix combo usage with
3120 --with-gxx-include-dir.
3121 * aclocal.m4: Regenerate.
3122 * configure: Same.
3123
3124 2002-04-03 Benjamin Kosnik <bkoz@redhat.com>
3125
3126 As per DR 184, libstdc++/3139
3127 * include/std/std_limits.h (__glibcpp_bool_digits): Change to 1.
3128 (numeric_limits<bool>::is_iec559): False.
3129 (numeric_limits<bool>::is_modulo): False.
3130
3131 * testsuite/27_io/ios_init.cc: Add instantiations.
3132
3133 2002-04-02 Benjamin Kosnik <bkoz@redhat.com>
3134
3135 libstdc++/5268
3136 * src/ios.cc: (ios_base::Init::_S_ios_destroy): Remove flush calls.
3137 * testsuite/27_io/ios_init.cc (tests04): Add test.
3138
3139 libstdc++/3983
3140 * include/bits/basic_ios.h (basic_ios::_M_get_fctype_ios): Remove.
3141 (basic_ios::_M_ios_fctype): Consistently name to _M_fctype.
3142 * include/bits/basic_ios.tcc: Same. Remove outdated comments.
3143 * include/bits/istream.tcc: Use _M_fctype, make consistent with
3144 ostream.
3145 * testsuite/27_io/ios_init.cc (tests03): Add test.
3146
3147 2002-04-02 Phil Edwards <pme@gcc.gnu.org>
3148
3149 * include/Makefile.am (install-data-local): Use mkinstalldirs.
3150 * include/Makefile.in: Regenerate.
3151
3152 2002-04-02 Paolo Carlini <pcarlini@unitus.it>
3153 Nathan Myers <ncm@cantrip.org>
3154 Philip Martin <philip@codematters.co.uk>
3155
3156 * include/bits/basic_string.h
3157 (replace(i1, i2, _CharT* k1, _CharT* k2),
3158 replace(i2, i2, const _CharT* k1, const _CharT* k2),
3159 replace(i1, i2, iterator k1, iterator k2,
3160 replace(i1, i2, const_iterator k1, const_iterator k2):
3161 New specializations to optimize for the common cases of
3162 pointers and iterators.
3163 (replace(pos, n1, s, n2)): Tweak.
3164 * include/bits/basic_string.tcc: Tweak comments.
3165 * testsuite/21_strings/replace.cc (test04): New tests.
3166
3167 2002-04-01 Benjamin Kosnik <bkoz@redhat.com>
3168
3169 libstdc++/5542
3170 * acinclude: More extensive checks for msgfmt, --enable-nls.
3171 * aclocal.m4: Regenerate.
3172 * configure: Regenerate.
3173
3174 2002-04-01 Phil Edwards <pme@gcc.gnu.org>
3175
3176 * libsupc++/exception (__verbose_terminate_handler): Point to docs.
3177 * docs/doxygen/doxygroups.cc: Doxygen hooks for abi::__cxa_demangle.
3178 * docs/html/18_support/howto.html: Document the demangler.
3179 * docs/html/17_intro/howto.html: And link to it.
3180
3181 * docs/doxygen/mainpage.html: Describe user-vs-maintainer docs.
3182 * docs/doxygen/run_doxygen: Print user-vs-maintainer.
3183
3184 2002-04-01 Phil Edwards <pme@gcc.gnu.org>
3185
3186 * config/linker-map.gnu: Export __verbose_terminate_handler.
3187 * libsupc++/Makefile.am (sources): Add cxa_demangle.c, dyn-string.c.
3188 Make new LTCOMPILE variable, use it in new special build rules.
3189 * libsupc++/Makefile.in: Rebuild.
3190 * src/vterminate.cc (__verbose_terminate_handler): Enable use of
3191 runtime __cxa_demangle.
3192
3193 * docs/html/install.html: Update prereqs and instructions.
3194 * docs/html/19_diagnostics/howto.html: Bring naming for
3195 verbose_terminate_handler into line with reality.
3196
3197 2002-04-01 Benjamin Kosnik <bkoz@redhat.com>
3198
3199 libstdc++/3129
3200 * include/bits/basic_ios.h (basic_ios::_M_exception): Move.
3201 (basic_ios::_M_streambuf_state): Move.
3202 * include/bits/ios_base (ios_base): To here.
3203 * include/bits/ios_base.h (ios_base::_S_local_words): To
3204 _S_local_word_size.
3205 (ios_base::_M_word_array): To _M_local_word.
3206 (ios_base::_M_words_limit): To _M_word_size.
3207 (ios_base::_M_words): To _M_word.
3208 Comment.
3209 * include/bits/basic_ios.tcc: Adjust.
3210 * src/ios.cc (ios_base::_M_grow_words): Tweak.
3211 * testsuite/27_io/ios_base_storage.cc: Add tests.
3212
3213 libstdc++/5207
3214 Kenny Simpson <theonetruekenny@yahoo.com>
3215 * include/bits/ios_base.h: Fix.
3216
3217 Richard Henderson <rth@redhat.com>
3218 * include/bits/ostream.tcc (ostream::operator<<(_CharT)): Correct
3219 last change.
3220
3221 * include/bits/basic_string.h: Tweak formatting.
3222
3223 2002-04-01 Paolo Carlini <pcarlini@unitus.it>
3224
3225 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
3226 (codecvt::do_out, codecvt::do_unshift, codecvt::do_in):
3227 By definition, sizeof(char) == 1.
3228 * include/bits/locale_facets.tcc (money_get::do_get,
3229 money_put::do_put): Ditto.
3230 * testsuite/21_strings/inserters_extractors.cc
3231 (test04): Ditto.
3232
3233 2002-03-30 Richard Henderson <rth@redhat.com>
3234
3235 PR c++/3719
3236 * libsupc++/eh_personality.cc (__cxa_call_unexpected): Copy handler
3237 data out of the exception struct before calling unexpectedHandler.
3238
3239 2002-03-28 Roger Sayle <roger@eyesopen.com>
3240
3241 * include/c_std/std_cmath.h: To prevent problems overloading
3242 g++ builtins, use the double variants from the global namespace
3243 before defining float and long double variants in std::.
3244
3245 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
3246
3247 * testsuite/18_support/numeric_limits.cc (test_extrema): Fix typo.
3248
3249 2002-03-28 Paolo Carlini <pcarlini@unitus.it>
3250
3251 * testsuite/24_iterators/istream_iterator.cc
3252 (test02): New tests.
3253
3254 2002-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3255 Paolo Carlini <pcarlini@unitus.it>
3256
3257 * testsuite/22_locale/codecvt_members_unicode_wchar_t.cc
3258 (test01): Protect the test with _GLIBCPP_USE_WCHAR_T;
3259 fix i_lit_base e_lit_base arrays, making them independent
3260 from the endianness of the platform; tweak UCS4 to UCS-4BE.
3261
3262 2002-03-27 Benjamin Kosnik <bkoz@redhat.com>
3263
3264 * include/bits/ostream.tcc (ostream::operator<<(_CharT)): Always
3265 allocate at least a byte.
3266
3267 * testsuite/18_support/numeric_limits.cc (test_extrema): Make
3268 debugger-friendly.
3269 * testsuite/27_io/streambuf.cc (test07): Fix.
3270 (test06): Enable.
3271
3272 2002-03-27 Phil Edwards <pme@gcc.gnu.org>
3273
3274 * docs/doxygen/Intro.3: Date tweak.
3275 * docs/doxygen/TODO: Update.
3276 * docs/doxygen/doxygroups.cc: Point to tables.html.
3277 * docs/doxygen/mainpage.html: Date tweak.
3278 * docs/doxygen/run_doxygen: Version tweak. Copy tables.html over.
3279 * docs/doxygen/tables.html: Fill in the blanks.
3280
3281 * docs/doxygen/user.cfg.in (ALIASES): Remove maint and endmaint.
3282 * include/bits/stl_algo.h: Likewise; use expanded form.
3283 * include/bits/stl_alloc.h: Likewise.
3284 * include/bits/stl_construct.h: Likewise.
3285 * include/bits/stl_deque.h: Likewise.
3286 * include/bits/stl_iterator_base_types.h: Likewise.
3287 * include/bits/stl_list.h: Likewise.
3288 * include/bits/stl_relops.h: Likewise.
3289 * include/bits/stl_tempbuf.h: Likewise.
3290 * include/bits/stl_vector.h: Likewise.
3291 * include/std/std_memory.h: Likewise.
3292
3293 * include/bits/stl_deque.h: Point into tables.html and add @ingroup.
3294 * include/bits/stl_list.h: Likewise.
3295 * include/bits/stl_vector.h: Likewise.
3296
3297 2002-03-26 Benjamin Kosnik <bkoz@redhat.com>
3298
3299 * include/c/: Guard with _CPP_.
3300 * include/c_std/: Same.
3301 * include/Makefile.am: Fixup install, link routines for null
3302 c_base_headers_extra scenarios.
3303 * include/Makefile.in: Regerate.
3304
3305 2002-03-25 Paolo Carlini <pcarlini@unitus.it>
3306 Richard Henderson <rth@redhat.com>
3307
3308 * testsuite/22_locale/codecvt_members_unicode_char.cc
3309 (test01, test02): make sure that the i_lit_base array
3310 is sufficiently aligned.
3311
3312 2002-03-25 Benjamin Kosnik <bkoz@redhat.com>
3313
3314 * config/os/newlib/bits/ctype_noninline.h (ctype::classic): Set to
3315 _ctype_.
3316
3317 2002-03-25 Paolo Carlini <pcarlini@unitus.it>
3318
3319 * testsuite/22_locale/collate_byname.cc
3320 (test01): compare the result of collate::compare with
3321 that of collate::transform + string::compare, not with
3322 that of collate::transform + collate::compare; values
3323 returned by collate::compare are normalized, therefore
3324 test against +-1.
3325
3326 2002-03-25 Benjamin Kosnik <bkoz@redhat.com>
3327 Jakub Jelinek <jakub@redhat.com>
3328
3329 * config/locale/gnu/messages_members.h: Correct conditional.
3330 * config/locale/gnu/messages_members.cc: Same.
3331 * config/locale/gnu/time_members.cc: Same.
3332
3333 2002-03-25 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3334 Paolo Carlini <pcarlini@unitus.it>
3335
3336 * testsuite/22_locale/codecvt_members_unicode_char.cc
3337 (test01, test02): Fix i_lit_base arrays, making them
3338 independent from the endianness of the platform.
3339
3340 2002-03-22 Benjamin Kosnik <bkoz@redhat.com>
3341
3342 * acinclude.m4 (GLIBCPP_CHECK_COMPLEX_MATH_SUPP): Just test for
3343 signbit and __signbit directly.
3344 * aclocal.m4: Regenerate.
3345 * configure: Regenerate.
3346 * config.h.in: Regenerate.
3347 * libmath/Makefile.am: Simplify.
3348 * libmath/Makefile.in: Regenerate.
3349 * include/c_std/std_cmath.h: Update paths for include of cmath.tcc.
3350
3351 * include/Makefile.am: Clean up handling of extra "C" header files.
3352 Add hooks for "C" compatibility headers.
3353 * include/Makefile.in: Regenerate.
3354
3355 * include/c/*: Formatting tweaks, cleanups.
3356 * include/c_std/*: Same.
3357
3358 2002-03-22 Benjamin Kosnik <bkoz@redhat.com>
3359
3360 * config/locale/gnu/messages_members.h: Add __uselocale bits.
3361 * config/locale/gnu/messages_members.cc: Same.
3362 * config/locale/gnu/time_members.cc: Same.
3363
3364 2002-03-22 Benjamin Kosnik <bkoz@redhat.com>
3365
3366 * src/vterminate.cc: Format, -fno-exceptions cleanup.
3367
3368 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3369
3370 * acinclude.m4 (GLIBCPP_CHECK_STDLIB_DECL_AND_LINKAGE_3): New.
3371 (GLIBCPP_CONFIGURE_TESTSUITE): Use it to check for setenv.
3372 * aclocal.m4: Regenerate.
3373 * configure: Likewise.
3374
3375 2002-03-19 Paolo Carlini <pcarlini@unitus.it>
3376 Ulrich Drepper <drepper@redhat.com>
3377
3378 * src/locale-inst.cc (__convert_from_v): Add an additional
3379 __size parameter in the declarations.
3380 * include/bits/locale_facets.tcc
3381 (__convert_from_v): When available (that is,
3382 _GLIBCPP_USE_C99 defined) use snprintf instead of sprintf.
3383 (num_put::_M_convert_float): Depending on _GLIBCPP_USE_C99
3384 being defined or not, call and use __convert_from_v in the
3385 appropriate way.
3386 (num_put::_M_convert_int): Same here.
3387 (money_put::do_put(long double)): Same here.
3388
3389 2002-03-19 Phil Edwards <pme@gcc.gnu.org>
3390
3391 * docs/html/faq/index.html (#3.6): Rewrap and close <a href> tags.
3392 * docs/html/faq/index.txt: Regenerate.
3393
3394 2002-03-19 Steve Ellcey <sje@cup.hp.com>
3395
3396 * acinclude.m4 (GLIBCPP_ENABLE_LIBUNWIND_EXCEPTIONS): Define
3397 GLIBCPP_ENABLE_LIBUNWIND_EXCEPTIONS to set LIBUNWIND_FLAG if
3398 --enable-libunwind-exceptions is set.
3399 * configure.in (GLIBCPP_ENABLE_LIBUNWIND_EXCEPTIONS): Call new
3400 macro to check for libunwind.
3401 * configure: Regenerate.
3402 * src/Makefile.am (libstdc___la_LDFLAGS): Add
3403 LIBUNWIND_FLAG to libstdc link line.
3404 * src/Makefile.in: Regenerate.
3405
3406 2002-03-19 Benjamin Kosnik <bkoz@redhat.com>
3407
3408 * docs/html/faq/index.html: Add OS X workaround.
3409 * docs/html/17_intro/TODO: Update.
3410
3411 2002-03-18 Paolo Carlini <pcarlini@unitus.it>
3412
3413 * include/bits/locale_facets.tcc
3414 (money_put::do_put(long double)): Fix dimensioning of
3415 temporary buffers to avoid risk of overruns.
3416 (money_put::do_put(string)): Same for the buffer used to
3417 add the grouping chars.
3418 * testsuite/22_locale/money_put_members_char.cc: Add test06.
3419 * testsuite/22_locale/money_put_members_wchar_t.cc: Ditto.
3420
3421 * include/bits/locale_facets.tcc
3422 (collate::do_transform): Simplify.
3423
3424 2002-03-18 Phil Edwards <pme@gcc.gnu.org>
3425
3426 * acinclude.m4 (GLIBCPP_CONFIGURE): Make indentation/spacing uniform.
3427 * configure.in: Add comments pointing the way for autoconf 2.5x.
3428 * aclocal.m4, config.h.in, configure: Regenerate.
3429
3430 2002-03-18 Philipp Thomas <pthomas@suse.de>
3431
3432 * include/backward/hash_map.h: hash, hashtable, hash_map and
3433 hash_multimap are in namespace __gnu_cxx.
3434 include/backward/hash_set.h: hash, hashtable, hash_set and
3435 hash_multiset are in namespace __gnu_cxx.
3436 include/backward/hashtable.h: hash and hashtable are in
3437 namespace __gnu_cxx.
3438 include/backward/rope.h: char_producer, sequence_buffer,
3439 rope, crope and wrope are in namespace __gnu_cxx.
3440 include/backward/slist.h: slist is in namespace __gnu_cxx.
3441 * testsuite/backward/header_hash_map_h.cc
3442 testsuite/backward/header_hash_set_h.cc
3443 testsuite/backward/header_hashtable_h.cc
3444 testsuite/backward/header_rope_h.cc
3445 testsuite/backward/header_slist_h.cc
3446 testsuite/backward/header_tempbuf_h.cc: New tests for
3447 checking that we're using the correct namespace.
3448
3449 2002-03-17 Jason Merrill <jason@redhat.com>
3450
3451 PR c++/4381
3452 * libsupc++/eh_personality.cc (get_adjusted_ptr): New static fn.
3453 (check_exception_spec): Call it. Take the thrown pointer.
3454 (__cxa_call_unexpected): Pass it.
3455 (PERSONALITY_FUNCTION): Likewise. Use get_adjusted_ptr.
3456
3457 2002-03-15 Anthony Green <green@redhat.com>
3458
3459 * configure.in: Remove useless is_mingw32.
3460 * configure: Rebuilt.
3461
3462 2002-03-15 Paolo Carlini <pcarlini@unitus.it>
3463
3464 * testsuite/22_locale/collate_members_char.cc
3465 (test01): compare the result of collate::compare with
3466 that of collate::transform + string::compare, not with
3467 that of collate::transform + collate::compare.
3468 (test01): values returned by collate::compare are
3469 normalized, therefore test against +-1.
3470 * testsuite/22_locale/collate_members_wchar_t.cc: Ditto.
3471
3472 2002-03-12 Loren Rittle <ljrittle@acm.org>
3473
3474 reported by Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
3475 * testsuite/thread/pthread4.cc: Lower nominal iteration counter.
3476
3477 2002-03-12 Benjamin Kosnik <bkoz@redhat.com>
3478 Per Liboriussen <liborius@stofanet.dk>
3479
3480 * config/os/gnu-linux/bits/ctype_noninline.h: Cast to
3481 unsigned char.
3482 * config/os/gnu-linux/bits/ctype_inline.h: Same.
3483
3484 * config/os/irix/irix6.5/bits/ctype_inline.h: Same.
3485
3486 * config/os/solaris/solaris2.5/bits/ctype_inline.h: Same.
3487 * config/os/solaris/solaris2.5/bits/ctype_noninline.h: Same.
3488
3489 * config/os/solaris/solaris2.6/bits/ctype_inline.h: Same.
3490 * config/os/solaris/solaris2.6/bits/ctype_noninline.h: Same.
3491
3492 * config/os/solaris/solaris2.7/bits/ctype_inline.h: Same.
3493 * config/os/solaris/solaris2.7/bits/ctype_noninline.h: Same.
3494
3495 * testsuite/22_locale/ctype_members_char.cc (main): Add tests.
3496
3497 2002-03-12 Benjamin Kosnik <bkoz@redhat.com>
3498
3499 * include/bits/basic_string.tcc (string::_S_construct(_InIter,
3500 _InIter, const _Alloc&, forward_iterator_tag): Check for null.
3501 (string::basic_string(const _CharT* __s, const _Alloc& __a)): Same.
3502 * testsuite/21_strings/ctor_copy_dtor.cc (test01): Re-enable, now
3503 that memory limits are in place.
3504 (test03): Add tests.
3505
3506 2002-03-11 Benjamin Kosnik <bkoz@redhat.com>
3507
3508 * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Check for wctype.h.
3509 * aclocal.m4: Regenerate.
3510 * config.h.in: Regenerate.
3511 * configure: Regenerate.
3512 * include/c_std/std_cwctype.h: Guard.
3513
3514 2002-03-11 Chris Demetriou <cgd@broadcom.com>
3515
3516 * acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Enhance check for
3517 whether GLIBCPP_CHECK_LINKER_FEATURES has been used.
3518 * aclocal.m4: Regenerate.
3519 * configure: Regenerate.
3520
3521 2002-03-11 Benjamin Kosnik <bkoz@redhat.com>
3522
3523 * include/bits/stl_bvector.h: Fix warning.
3524
3525 2002-03-11 Richard Henderson <rth@redhat.com>
3526
3527 * include/bits/stl_bvector.h (_Bit_type): New. Use throughout.
3528
3529 2002-03-11 Phil Edwards <pme@gcc.gnu.org>
3530
3531 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-list-sourcefiles):
3532 New function. Build the list of tests to run in testsuite_files.
3533 * testsuite/libstdc++-v3.dg/dg.exp: Use it.
3534
3535 2002-03-11 Phil Edwards <pme@gcc.gnu.org>
3536
3537 * testsuite/21_strings/capacity.cc: Only explicitly instantiate on
3538 platforms with no weak support.
3539 * testsuite/27_io/ios_init.cc: Likewise.
3540
3541 2002-03-10 Paolo Carlini <pcarlini@unitus.it>
3542
3543 * include/bits/locale_facets.tcc (time_put::do_put):
3544 Consider sizeof(char_type) in allocating the buffer.
3545
3546 * include/bits/locale_facets.tcc (collate::do_tranform):
3547 Remove redundant variable.
3548
3549 2002-03-10 Ulrich Drepper <drepper@redhat.com>
3550 Paolo Carlini <pcarlini@unitus.it>
3551
3552 * config/locale/generic/collate_members.cc
3553 (collate<char,wchar_t>::_M_compare_helper): normalize
3554 values returned by strcoll and wcscoll.
3555 * config/locale/gnu/collate_members.cc
3556 (collate<char,wchar_t>::_M_compare_helper): ditto
3557 for __strcoll_l and __wcscoll_l.
3558
3559 2002-03-10 Anthony Green <green@redhat.com>
3560
3561 * configure.in: Support cross builds to mingw32 target.
3562 * configure: Rebuilt.
3563
3564 2002-03-09 Paolo Carlini <pcarlini@unitus.it>
3565
3566 * include/bits/locale_facets.tcc (collate::do_transform):
3567 Rewrite to fix problems with long transformed strings.
3568
3569 2002-03-08 Benjamin Kosnik <bkoz@redhat.com>
3570
3571 * c_locale_generic.cc: Move to...
3572 * generic/c_locale.cc
3573 * c_locale_generic.h: Move to...
3574 * generic/c_locale.h
3575 * codecvt_specializations_generic.h: Move to...
3576 * generic/codecvt_specializations.h
3577 * collate_members_generic.cc: Move to...
3578 * generic/collate_members.cc
3579 * ctype_members_generic.cc: Move to...
3580 * generic/ctype_members.cc
3581 * messages_members_generic.cc: Move to...
3582 * generic/messages_members.cc
3583 * messages_members_generic.h: Move to...
3584 * generic/messages_members.h
3585 * moneypunct_members_generic.cc: Move to...
3586 * generic/monetary_members.cc
3587 * numpunct_members_generic.cc: Move to...
3588 * generic/numeric_members.cc
3589 * time_members_generic.cc: Move to...
3590 * generic/time_members.cc
3591 * c_locale_gnu.cc: Move to...
3592 * gnu/c_locale.cc
3593 * c_locale_gnu.h: Move to...
3594 * gnu/c_locale.h
3595 * collate_members_gnu.cc: Move to...
3596 * gnu/collate_members.cc
3597 * ctype_members_gnu.cc: Move to...
3598 * gnu/ctype_members.cc
3599 * messages_members_gnu.cc: Move to...
3600 * gnu/messages_members.cc
3601 * messages_members_gnu.h: Move to...
3602 * gnu/messages_members.h
3603 * moneypunct_members_gnu.cc: Move to...
3604 * gnu/monetary_members.cc
3605 * numpunct_members_gnu.cc: Move to...
3606 * gnu/numeric_members.cc
3607 * time_members_gnu.cc: Move to...
3608 * gnu/time_members.cc
3609 * c_locale_ieee_1003.1-200x.cc: Move to...
3610 * ieee_1003.1-2001/c_locale.cc
3611 * c_locale_ieee_1003.1-200x.h: Move to...
3612 * ieee_1003.1-2001/c_locale.h
3613 * codecvt_specializations_ieee_1003.1-200x.h: Move to...
3614 * ieee_1003.1-2001/codecvt_specializations.h
3615 * messages_members_ieee_1003.1-200x.cc: Move to...
3616 * ieee_1003.1-2001/messages_members.cc
3617 * messages_members_ieee_1003.1-200x.h: Move to...
3618 * ieee_1003.1-2001/messages_members.h
3619
3620 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Make consistent.
3621 * aclocal.m4: Regenerate.
3622 * configure: Regenerate.
3623 * src/Makefile.am (sources): Change to monetary and numeric.
3624 * src/Makefile.in: Regenerate.
3625 * docs/html/configopts.html: Update to ieee_1003.1-2001.
3626
3627 2002-03-08 scott snyder <snyder@fnal.gov>
3628
3629 libstdc++/5875
3630 * include/bits/locale_facets.tcc (num_put::_M_convert_float):
3631 Allow one more digit of precision.
3632 * testsuite/27_io/ostream_inserter_arith.cc: Test that we can
3633 write a double and read back in the same value.
3634
3635 2002-03-08 Benjamin Kosnik <bkoz@redhat.com>
3636
3637 * include/std/std_limits.h: Move static const data members out of
3638 generic template, into base class __numeric_limits_base.
3639 * src/limits.cc: Add definitions.
3640 * config/linker-map.gnu: Add __numeric_limits_base.
3641 * testsuite/18_support/numeric_limits.cc: Declare test in scope.
3642
3643 2002-03-07 Benjamin Kosnik <bkoz@redhat.com>
3644
3645 * include/bits/stl_alloc.h: Add extern implicit allocator
3646 instantiations.
3647 * include/bits/basic_string.tcc: Tweak.
3648 * include/bits/locale_facets.tcc: Remove default args. Add
3649 has_facet, use_facet extern instantiations.
3650 * src/stl-inst.cc: Add explicit instantiation.
3651 * src/locale-inst.cc: Clean. Remove locale member template
3652 instantiations.
3653
3654 * testsuite/22_locale/operators.cc (test02): Enable.
3655
3656 2002-03-06 Benjamin Kosnik <bkoz@redhat.com>
3657 Stephen M. Webb <stephen.webb@bregmasoft.com>
3658
3659 * include/bits/stl_tree.h (_S_rb_tree_red): Make enum.
3660 (_S_rb_tree_black): Make enum.
3661 Clean. Format.
3662 * include/bits/stl_bvector.h (__WORD_BIT): To _M_word_bit, enum.
3663 * include/bits/stl_algo.h (__stl_chunk_size): _M_chunk_size, enum.
3664 (__stl_threshold): _M_threshold, enum.
3665 * src/stl-inst.cc: Same.
3666 * config/linker-map.gnu: Remove.
3667
3668 * testsuite/23_containers/vector_bool.cc: New.
3669
3670 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
3671
3672 * docs/doxygen/user.cfg.in: Also document deprecated entries.
3673 * docs/html/Makefile: Example rule to rebuild porting-howto.html.
3674 * docs/html/17_intro/howto.html: "gcc"->"GCC" changes, when
3675 referring to the collection as a whole. New section on which macros
3676 can be redefined by the user.
3677 * docs/html/19_diagnostics/howto.html: Update note for concepts.
3678 * docs/html/20_util/howto.html: Update link to SGI.
3679 * docs/html/faq/index.html: Update snapshot versions. New entry
3680 on why g++ (but not gcc) must currently predefine certain macros.
3681 * docs/html/faq/index.txt: Regenerated.
3682
3683 * include/bits/basic_string.h (basic_string::_S_construct): Fix
3684 names in declaration.
3685 (basic_string::compare): These are no longer optional.
3686 * include/bits/ostream.tcc: Tweak closing brace placement.
3687 * include/bits/stl_algo.h: Lots of initial doxygen comment hooks.
3688 * include/std/std_sstream.h: Fix typo in comment.
3689 * include/bits/locale_facets.tcc: Remove unneeded header inclusion.
3690 * src/locale.cc: Likewise.
3691
3692 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
3693
3694 PR libstdc++/5734
3695 * include/bits/stl_vector.h (vector::push_back()): Guard with
3696 _GLIBCPP_DEPRECATED.
3697
3698 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
3699
3700 * include/bits/c++config: Fix misplaced leading blanks on first line.
3701
3702 2002-03-05 Benjamin Kosnik <bkoz@redhat.com>
3703
3704 * docs/html/17_intro/RELEASE-NOTES: Fix usage.
3705 * README (libmath): Make clear.
3706
3707 2002-03-05 Jakub Jelinek <jakub@redhat.com>
3708
3709 * acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Check for version
3710 script globbing in ld.
3711 * aclocal.m4: Rebuilt.
3712 * configure: Rebuilt.
3713
3714 2002-03-05 Benjamin Kosnik <bkoz@redhat.com>
3715
3716 * docs/html/17_intro/RELEASE-NOTES: Update.
3717 * README: Format subdirectories.
3718
3719 2002-03-05 Paolo Carlini <pcarlini@unitus.it>
3720
3721 libstdc++/5816
3722 * include/bits/locale_facets.tcc
3723 (num_get::_M_extract_float): Fix the parsing of __dec, since
3724 the standard prescribes that if no grouping characters are
3725 seen, no grouping check is applied.
3726 * testsuite/22_locale/num_get_members_char.cc: Add test05
3727 distilled from the PR.
3728 * testsuite/22_locale/num_get_members_wchar_t.cc: Ditto.
3729
3730 2002-03-04 Craig Rodrigues <rodrigc@gcc.gnu.org>
3731
3732 * docs/html/17_intro/porting-howto.xml: Refer to
3733 http://www.oasis-open.org for docbookx.dtd.
3734 * docs/html/17_intro/porting-howto.html: Regenerated.
3735
3736 2002-03-03 Phil Edwards <pme@gcc.gnu.org>
3737
3738 PR libstdc++/3955
3739 * include/std/std_sstream.h: Remove trailing spaces.
3740 (basic_stringbuf::_M_stringbuf_init): Also check for ios_base::app.
3741 * testsuite/27_io/stringbuf.cc (test05, test06): New tests.
3742
3743 2002-03-02 Paolo Carlini <pcarlini@unitus.it>
3744
3745 * testsuite/22_locale/num_get_members_char.cc (test04):
3746 Use a named locale expecting grouping (de_DE).
3747 * testsuite/22_locale/num_get_members_wchar_t.cc (test04):
3748 Ditto.
3749 * testsuite/27_io/ios_manip_basefield.cc (test01):
3750 Extend coverage, uniform treatment of hexs and octs.
3751
3752 2002-02-28 Richard Henderson <rth@redhat.com>
3753
3754 * config/linker-map.gnu: Export operator new with unsigned long,
3755 and with std::nothrow_t. Likewise operator delete.
3756
3757 2002-02-28 Paolo Carlini <pcarlini@unitus.it>
3758
3759 * include/bits/locale_facets.tcc (num_get::_M_extract_int):
3760 Admit grouping for octals and hexadecimals too.
3761 * testsuite/22_locale/num_get_members_char.cc: Add test04.
3762 (test01): Tweak "." -> "," in void* test.
3763 * testsuite/22_locale/num_get_members_wchar_t.cc: Ditto.
3764
3765 * testsuite/27_io/ios_manip_basefield.cc: Remove static keyword.
3766 * testsuite/27_io/ios_manip_fmtflags.cc: Remove two of them.
3767
3768 2002-02-27 Paolo Carlini <pcarlini@unitus.it>
3769
3770 * testsuite/27_io/ios_manip_basefield.cc (test01):
3771 Fix for 64 bit machines.
3772
3773 2002-02-26 Benjamin Kosnik <bkoz@redhat.com>
3774
3775 libstdc++/3983
3776 * include/bits/basic_ios.tcc (basic_ios::init): Set _M_fill to zero.
3777 Adjust comment.
3778 * include/bits/basic_ios.h (basic_ios::_M_fill): Make mutable.
3779 (basic_ios::_M_fill_init): New.
3780 (basic_ios::fill()): Delay dealing with _M_fill.
3781 Adjust comment.
3782 * ios.cc (ios_base::ios_base()): Initialize _M_callbacks, _M_words.
3783 (ios_base::_M_call_callbacks): Adjust.
3784 * testsuite/27_io/ios_init.cc (test02): Adjust testcase.
3785
3786 2002-02-26 Loren Rittle <ljrittle@acm.org>
3787
3788 * include/Makefile.am (thread_target_headers): Unconditionally
3789 stage and install gthr-posix.h.
3790 (${target_builddir}/gthr-posix.h): New rule cloned off
3791 ${target_builddir}/gthr-default.h.
3792 (${target_builddir}/gthr-default.h): Support chained inclusion
3793 of gthr support headers.
3794 * include/Makefile.in: Rebuilt.
3795
3796 2002-02-26 Paolo Carlini <pcarlini@unitus.it>
3797
3798 * include/bits/locale_facets.tcc (num_put::_M_widen_int):
3799 Group all the integral types, not only decs.
3800 * testsuite/27_io/ios_manip_basefield.cc (test01): Tweak existing
3801 tests, add a few more.
3802
3803 2002-02-25 Benjamin Kosnik <bkoz@redhat.com>
3804
3805 * src/ios.cc (ios_base::~ios_base): Tweak.
3806 (ios_base::_M_call_callbacks): Deal with null __p.
3807 (ios_base::ios_base): Set _M_callbacks.
3808 * include/bits/basic_ios.tcc (basic_ios::init): Adjust comment.
3809 * testsuite/27_io/ios_init.cc (test02): Fix.
3810
3811 * mkcheck.in (static_fail): Failed links go to output file.
3812
3813 2002-02-25 Phil Edwards <pme@gcc.gnu.org>
3814
3815 * docs/html/faq/index.html: Update.
3816 * docs/html/faq/index.txt: Regenerate.
3817
3818 2002-02-22 Phil Edwards <pme@gcc.gnu.org>
3819
3820 * acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Fix comment.
3821 * aclocal.m4: Regenerate.
3822 * docs/html/configopts.html: Document --enable-symvers.
3823 * config/linker-map.gnu: Break libsupc++ symbols out to their own tag.
3824
3825 2002-02-22 Philipp Thomas <pthomas@suse.de>
3826
3827 * include/backward/tempbuf.h: get_temporary_buffer and
3828 return_temporary_buffer are in namespace std, not in __gnu_cxx.
3829
3830 2002-02-21 Benjamin Kosnik <bkoz@redhat.com>
3831
3832 * configure.in (target_alias): Default to yes.
3833 * acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Add check for shared
3834 libgcc to default case.
3835
3836 2002-02-20 Phil Edwards <pme@gcc.gnu.org>
3837
3838 * acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES): Also check version.
3839 (GLIBCPP_ENABLE_SYMVERS): Redo logic, use linker version.
3840 * configure.in (GLIBCPP_ENABLE_SYMVERS): Move later in the script.
3841 * aclocal.m4: Regenerate.
3842 * configure: Regenerate.
3843 * config/linker-map.dummy: New file. Contains nothing useful.
3844
3845 2002-02-20 Benjamin Kosnik <bkoz@redhat.com>
3846
3847 * testsuite/22_locale/money_put_members_char.cc: Fix.
3848 * testsuite/22_locale/money_put_members_wchar_t.cc: Fix.
3849
3850 * testsuite/27_io/standard_manipulators.cc: New file.
3851
3852 * testsuite/27_io/ios_manip_basefield.cc: Check results, now failing.
3853 * testsuite/27_io/ios_manip_fmtflags.cc: Use locale::classic().
3854
3855 2002-02-20 Danny Smith <dannysmith@users.sourceforge.net>
3856
3857 * config/os/mingw32/bits/ctype_noninline.h
3858 (ctype<char>::ctype): Remove default args from parm list.
3859 * config/os/djgpp/bits/ctype_noninline.h: Same.
3860
3861 2002-02-19 Benjamin Kosnik <bkoz@redhat.com>
3862
3863 * include/std/std_iomanip.h: Inline, tweaks.
3864 * config/linker-map.gnu: Remove hacks.
3865
3866 * testsuite/21_strings/capacity.cc: Add explicit instantiations.
3867 * testsuite/27_io/ios_init.cc: Same.
3868 * testsuite/22_locale/money_get_members_char.cc (test07): Fix.
3869 * testsuite/22_locale/money_get_members_wchar_t.cc (test07): Same.
3870
3871 2002-02-19 Benjamin Kosnik <bkoz@redhat.com>
3872
3873 * config/linker-map.gnu: Export global vtable, typeinfo, guard
3874 variable, and thunk info as per CXXABI docs.
3875
3876 2002-02-19 Loren Rittle <ljrittle@acm.org>
3877
3878 * include/Makefile.am: Use CONFIG_HEADER instead of ad hoc names.
3879 * include/Makefile.in: Rebuilt.
3880
3881 2002-02-18 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
3882
3883 * testsuite/22_locale/collate_byname.cc (test01): Replace size4
3884 with size3 for the string collations of str5.
3885
3886 2002-02-18 Paolo Carlini <pcarlini@unitus.it>
3887
3888 libstdc++/5708
3889 * include/bits/locale_facets.tcc (money_put::do_put):
3890 For the space field use __fill instead of ' ', uniformly.
3891 * testsuite/22_locale/money_put_members_char.cc:
3892 Add test05 distilled from PR.
3893 (test01-02-03): Trim some '*' to ' '.
3894 * testsuite/22_locale/money_put_members_wchar_t.cc: Ditto.
3895
3896 2002-02-18 Loren Rittle <ljrittle@acm.org>
3897
3898 libstdc++/5697
3899 * include/Makefile.am (thread_builddir): Remove (map all
3900 existing uses to target_builddir).
3901 (thread_headers): Rename to...
3902 (thread_target_headers): ...this.
3903 (stamp-thread): Remove.
3904 (stamp-target): Correctly state the position as built.
3905 Update all dependencies to match the new reality. Remove all
3906 dependency calculations on directories.
3907 * include/Makefile.in: Rebuilt.
3908
3909 2002-02-16 Benjamin Kosnik <bkoz@redhat.com>
3910
3911 * include/bits/locale_facets.tcc: Add pragma GCC system_header.
3912 * include/bits/fstream.tcc: Same.
3913 * include/bits/sstream.tcc: Same.
3914 * include/bits/ostream.tcc: Same.
3915 * include/bits/istream.tcc: Same.
3916 * include/bits/streambuf.tcc: Same.
3917 * include/bits/basic_ios.tcc: Same.
3918 * include/bits/basic_string.tcc: Same.
3919
3920 2002-02-15 Benjamin Kosnik <bkoz@redhat.com>
3921
3922 * include/std/std_iosfwd.h: Don't guard typedefs with
3923 _GLIBCPP_USE_WCHAR_T
3924 * include/bits/stringfwd.h: Same.
3925
3926 2002-02-15 Benjamin Kosnik <bkoz@redhat.com>
3927
3928 * src/locale.cc (moneypunct_byname): Remove definitions.
3929 * include/std/std_streambuf.h (streambuf::operator=): Return.
3930
3931 2002-02-15 Benjamin Kosnik <bkoz@redhat.com>
3932
3933 Tune for size.
3934 * src/string-inst.cc (string::_Rep::_S_terminal): Remove redundant
3935 explicit instantiation.
3936 (string::_Rep::_S_max_size): Same.
3937 * include/bits/basic_string.tcc: Add extern explicit
3938 instantiations for string, wstring.
3939 * include/bits/basic_ios.tcc: Add extern explicit instantiations
3940 for ios, wios.
3941 * include/bits/streambuf.tcc: Same, for streambuf, wstreambuf.
3942 * include/bits/istream.tcc: Same, for istream, wistream.
3943 * include/bits/ostream.tcc: Same for ostream, wostream, iostream,
3944 wiostream.
3945 * include/bits/sstream.tcc: Same, for stringbuf, wstringbuf,
3946 istringstream, wistringstream, ostringstream, wostringstream,
3947 stringstream, wstringstream.
3948 * include/bits/fstream.tcc: Same, for filebuf, wfilebuf, ifstream,
3949 wifstream, ofstream, wofstream, fstream, wfstream.
3950 * src/misc-inst.cc: Correct comments.
3951 Add iomanip instantiations for wide streams.
3952 * include/std/std_iomanip.h: Same.
3953 * include/bits/locale_facets.tcc: Same.
3954
3955 * include/std/std_streambuf.h: Correct
3956 _GLIBCPP_FULLY_COMPLIANT_HEADERS guard.
3957 * include/std/std_sstream.h: Same.
3958 * include/std/std_ostream.h: Same.
3959 * include/std/std_istream.h: Same.
3960 * include/std/std_fstream.h: Same.
3961
3962 * include/std/std_streambuf.h: Add definitions for private copy
3963 ctor and assignment operator.
3964 * include/std/std_istream.h: Remove declared but undefined copy
3965 ctor and assignment operator. This is taken care of in ios_base,
3966 so adding it in the derived class as well is superfluous.
3967 * include/std/std_ostream.h: Same.
3968
3969 * include/bits/basic_ios.h (basic_ios::clear): Don't inline.
3970 * include/bits/basic_ios.tcc (basic_ios::clear): Move definition here.
3971
3972 2002-02-14 Benjamin Kosnik <bkoz@redhat.com>
3973
3974 * config/linker-map.gnu: Change tag from GCC_3.1 to GLIBCPP_3.1.
3975 Add typeinfo bits. Smooth.
3976 * aclocal.m4: Regenerate.
3977 * configure: Same.
3978 * src/Makefile.in: Same.
3979
3980 2001-02-14 Joel Sherrill <joel@OARcorp.com>
3981
3982 * config/cpu/m68k/bits/atomicity.h: Corrected for RTEMS targets
3983 which do not have a CAS instruction.
3984
3985 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
3986
3987 * acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): New macro, initial revision.
3988 * configure.in: Call it.
3989 * config/linker-map.gnu: New file, initial incomplete revision.
3990 * src/Makefile.am: Optionally pass version script to the linker.
3991 * aclocal.m4: Regenerate.
3992 * configure: Regenerate.
3993 * src/Makefile.in: Regenerate.
3994
3995 2002-02-13 Benjamin Kosnik <bkoz@redhat.com>
3996
3997 * src/localename.cc: Remove stdexcept include.
3998 * src/locale-inst.cc: Same.
3999 * src/locale.cc: Same.
4000 * src/functexcept.cc: Remove string includes.
4001 * include/std/std_bitset.h: Remove stdexcept include.
4002 * testsuite/23_containers/bitset_members.cc: Add stdexcept.
4003 * testsuite/23_containers/bitset_ctor.cc: Same.
4004
4005 2002-02-11 Benjamin Kosnik <bkoz@redhat.com>
4006
4007 * include/bits/stl_algo (__stl_threshold): Declare external.
4008 (__stl_chunk_size): Same.
4009 * include/bits/stl_bvector.h (__WORD_BIT): Same.
4010 * include/bits/stl_tree.h (_S_rb_tree_red): Same.
4011 (_S_rb_tree_black): Same.
4012 * src/stl-inst.cc (__stl_threshold): Define.
4013 (__stl_chunk_size): Same.
4014 (__WORD_BIT): Same.
4015 (_S_rb_tree_red): Same.
4016 (_S_rb_tree_black): Same.
4017
4018 * config/io/basic_file_libio.h (__basic_file): Add declarations.
4019 * include/bits/basic_file.h: Remove.
4020 * config/io/c_io_stdio.h: Remove _GLIBCPP_BASIC_FILE_ENCAPSULATION
4021 Declare generic types, specialization.
4022 * config/io/basic_file_stdio.cc: Definitions.
4023 * config/io/c_io_libio.h: Remove _GLIBCPP_BASIC_FILE_INHERITANCE.
4024 Declare generic types.
4025 * include/Makefile.am (bits_headers): Remove basic_file.h.
4026 (extra_target_headers): Change basic_file_model.h to basic_file.h.
4027 (stamp-target): Same.
4028
4029 * include/bits/stl_alloc.h: Tweaks.
4030 * include/bits/localefwd.h: Same.
4031
4032 2002-02-11 Aaron W LaFramboise <AWLaFramboise@aol.com>
4033
4034 * include/bits/locale_facets.tcc (collate::do_hash): Fix.
4035 * testsuite/22_locale/collate_members_char.cc (test03): New test.
4036 * testsuite/22_locale/collate_members_wchar_t.cc (test03): Same.
4037
4038 2002-02-10 Phil Edwards <pme@gcc.gnu.org>
4039
4040 * include/bits/stl_algo.h (transform (both signatures), generate_n):
4041 Use __typeof__ in concept checks.
4042
4043 2002-02-10 Jonathan Wakely <cow@compsoc.man.ac.uk>
4044
4045 * include/bits/stl_algo.h (__median, for_each, find, find_if,
4046 adjacent_find, count, count_if, search, search_n, swap_ranges,
4047 transform, replace, replace_if, replace_copy, replace_copy_if,
4048 generate, generate_n, remove_copy, remove_copy_if, remove, remove_if,
4049 unique, unique_copy, reverse, reverse_copy): Doxygenate.
4050
4051 2002-02-08 Benjamin Kosnik <bkoz@redhat.com>
4052
4053 * include/bits/locale_facets.h
4054 (numpunct<_CharT>::_M_initialize_numpunct): Remove definition.
4055 (__timepunct<_CharT>::_M_initialize_timepunct): Same.
4056 (__timepunct<_CharT>::_M_put_helper): Same.
4057 (moneypunct<_CharT, _Intl>::_M_initialize_moneypunct): Same.
4058
4059 * include/bits/fstream.tcc (filebuf::underflow): Remove
4060 __codecvt_type typedef.
4061 (filebuf::_M_convert_to_external): Same.
4062
4063 2002-02-08 Phil Edwards <pme@gcc.gnu.org>
4064
4065 * docs/doxygen/TODO: Update.
4066 * docs/doxygen/doxygroups.cc: Tweak __gnu_cxx description.
4067 * docs/doxygen/mainpage.html: Add TODO list link.
4068 * docs/doxygen/user.cfg.in: Add @doctodo hook.
4069 * docs/doxygen/tables.html: New file, emoty structure only.
4070
4071 * include/bits/stl_iterator.h: Doxygenate just about everything.
4072 * include/bits/stl_iterator_base_funcs.h: Ditto, clean up spaces.
4073 * include/bits/stl_iterator_base_types.h: Add notes.
4074
4075 2002-02-07 Stephan Buys <sbproxy@icon.co.za>
4076
4077 * include/bits/stl_map.h: Tweak doxygen markup.
4078 * include/bits/stl_multimap.h: Doxygenate and remove extra spaces.
4079 * include/bits/stl_vector.h: Likewise.
4080
4081 2002-02-07 Benjamin Kosnik <bkoz@redhat.com>
4082
4083 libstdc++/5286
4084 libstdc++/3860
4085 * include/std/std_fstream.h (filebuf::__file_type): Change to
4086 __basic_file<char>.
4087 (filebuf::_M_convert_to_external): Declare.
4088 * include/bits/fstream.tcc (filebuf::_M_convert_to_external): Define
4089 codecvt bits for wide streams.
4090 (filebuf::_M_really_overflow): Use it.
4091 (filebuf::underflow): Use codecvt.
4092 * config/locale/codecvt_specializations_ieee_1003.1-200x.h:
4093 (codecvt<__enc_traits>::do_out): Deal with partial.
4094 (codecvt<__enc_traits>::do_encoding): Return something useful.
4095 * src/codecvt.cc (codecvt<wchar_t>::do_encoding): Return sizeof
4096 wchar_t.
4097 * testsuite/22_locale/codecvt_members_unicode_char.cc (test01):
4098 Change expected encoding output.
4099 (test02): Same.
4100 * testsuite/22_locale/codecvt_members_wchar_t_char.cc (test01): Same.
4101 (test02): Same.
4102
4103 2002-02-07 Benjamin Kosnik <bkoz@redhat.com>
4104 Wolfgang Bangerth <wolfgang.bangerth@iwr.uni-heidelberg.de>
4105
4106 * include/bits/basic_ios.tcc (basic_ios::narrow): Add default value.
4107 (basic_ios::widen): Same.
4108
4109 2002-02-07 Paolo Carlini <pcarlini@unitus.it>
4110
4111 * testsuite/22_locale/money_get_members_char.cc:
4112 Add comment, tidy up.
4113 (test01): more "en_HK" tests (without showbase).
4114 * testsuite/22_locale/money_get_members_wchar_t.cc: Ditto.
4115
4116 2002-02-06 Loren Rittle <ljrittle@acm.org>
4117
4118 * config/locale/c_locale_generic.cc: Do not trust
4119 _GLIBCPP_HAVE_STRTOF or _GLIBCPP_HAVE_STRTOLD as
4120 set by configure.
4121
4122 2002-02-06 Loren Rittle <ljrittle@acm.org>
4123
4124 * acinclude.m4: Add C++ linkage check for strtof.
4125 * aclocal.m4: Rebuilt.
4126 * config.h.in: Rebuilt.
4127 * configure: Rebuilt.
4128 * config/locale/c_locale_generic.cc: Conditionally include
4129 <ieeefp.h>. Improve handling and error checking of float
4130 and long double input for non-C99 configurations.
4131
4132 2002-02-06 Paolo Carlini <pcarlini@unitus.it>
4133
4134 * include/bits/locale_facets.tcc (money_get::do_get(string)):
4135 In case money_base::symbol deal properly with multi-char sign
4136 for patterns {X,Y,Z,symbol} and {X,Y,symbol,none}.
4137 * testsuite/22_locale/money_get_members_char.cc: Add test07.
4138 * testsuite/22_locale/money_get_members_wchar_t.cc: Add test07.
4139
4140 2002-02-05 Paolo Carlini <pcarlini@unitus.it>
4141
4142 * include/bits/locale_facets.tcc (money_get::do_get(string)):
4143 First construct a tentative returned string, then, only if the
4144 parsing succeeds, copy it into the string passed by reference.
4145 * testsuite/22_locale/money_get_members_char.cc: Add test06.
4146 * testsuite/22_locale/money_get_members_wchar_t.cc: Add test06.
4147
4148 2002-02-04 Phil Edwards <pme@gcc.gnu.org>
4149
4150 * docs/doxygen/TODO: Impl-defined behavior now documented...
4151 * docs/html/17_intro/howto.html: ...here.
4152 * docs/doxygen/mainpage.doxy: Remove, rename...
4153 * docs/doxygen/mainpage.html: ...to this. Tweak HTML, add license.
4154 * docs/doxygen/style.css: Add small text.
4155 * docs/doxygen/run_doxygen: Adjust for new mainpage.
4156 * docs/doxygen/user.cfg.in: Likewise.
4157
4158 2002-02-04 Stephan Buys <sbproxy@icon.co.za>
4159
4160 * include/bits/stl_map.h: Initial doxygen markup.
4161 * include/std/std_fstream.h: Initial doxygen markup.
4162
4163 2002-02-04 Paolo Carlini <pcarlini@unitus.it>
4164
4165 libstdc++/5579
4166 * include/bits/locale_facets.tcc (money_get::do_get(string)):
4167 Deal correctly with !(__io.flags() & ios_base::showbase)
4168 for case money_base::symbol.
4169 * testsuite/22_locale/money_get_members_char.cc: Add test05.
4170 * testsuite/22_locale/money_get_members_wchar_t.cc: Add test05.
4171
4172 2002-02-02 Paolo Carlini <pcarlini@unitus.it>
4173
4174 * testsuite/22_locale/operators.cc
4175 (gnu_collate::do_compare()): Add return statement to
4176 suppress "no return statement" warning.
4177
4178 2002-02-01 Paolo Carlini <pcarlini@unitus.it>
4179
4180 * testsuite/27_io/ostream_manip.cc: Enable test02.
4181
4182 2002-02-01 Phil Edwards <pme@gcc.gnu.org>
4183
4184 * docs/html/documentation.html: Update for 3.0.96.
4185 * docs/html/faq/index.html: Update for 3.0.96.
4186 * docs/html/faq/index.txt: Regenerated.
4187 * docs/doxygen/TODO: Update notes.
4188 * docs/html/17_intro/howto.html: Initial impl-specific listing.
4189
4190 2002-01-31 Benjamin Kosnik <bkoz@redhat.com>
4191
4192 * config/locale/codecvt_specializations_ieee_1003.1-200x.h:
4193 Initialize all data members in copy ctor. Make ctors explicit.
4194 (__enc_traits::__enc_traits()): Default ctor does nothing.
4195 (__enc_traits::_M_init): Guard against multiple iconv_opens.
4196 * include/std/std_sstream.h (basic_stringbuf): Make data members
4197 protected.
4198 * include/std/std_fstream.h (basic_filebuf): Same.
4199 * include/std/std_streambuf.h: Tweak.
4200 * include/bits/streambuf.tcc: Same.
4201 * include/bits/sstream.tcc: Same.
4202 * include/bits/fstream.tcc: Same.
4203
4204 2002-01-31 Loren Rittle <ljrittle@acm.org>
4205
4206 * testsuite/22_locale/codecvt_members_char_char.cc: Do not
4207 allow NULL argument to be passed to setenv().
4208 * testsuite/22_locale/codecvt_members_wchar_t_char.cc: Likewise.
4209 * testsuite/22_locale/collate_members_char.cc: Likewise.
4210 * testsuite/22_locale/collate_members_wchar_t.cc: Likewise.
4211 * testsuite/22_locale/ctype_members_char.cc: Likewise.
4212 * testsuite/22_locale/ctype_members_wchar_t.cc: Likewise.
4213 * testsuite/22_locale/messages_members_char.cc: Likewise.
4214 * testsuite/22_locale/money_get_members_char.cc: Likewise.
4215 * testsuite/22_locale/money_get_members_wchar_t.cc: Likewise.
4216 * testsuite/22_locale/money_put_members_char.cc: Likewise.
4217 * testsuite/22_locale/money_put_members_wchar_t.cc: Likewise.
4218 * testsuite/22_locale/moneypunct_members_char.cc: Likewise.
4219 * testsuite/22_locale/moneypunct_members_wchar_t.cc: Likewise.
4220 * testsuite/22_locale/num_get_members_char.cc: Likewise.
4221 * testsuite/22_locale/num_get_members_wchar_t.cc: Likewise.
4222 * testsuite/22_locale/num_put_members_char.cc: Likewise.
4223 * testsuite/22_locale/num_put_members_wchar_t.cc: Likewise.
4224 * testsuite/22_locale/numpunct_members_char.cc: Likewise.
4225 * testsuite/22_locale/numpunct_members_wchar_t.cc: Likewise.
4226 * testsuite/22_locale/time_get_members_char.cc: Likewise.
4227 * testsuite/22_locale/time_get_members_wchar_t.cc: Likewise.
4228 * testsuite/22_locale/time_put_members_char.cc: Likewise.
4229 * testsuite/22_locale/time_put_members_wchar_t.cc: Likewise.
4230
4231 2002-01-30 Benjamin Kosnik <bkoz@redhat.com>
4232
4233 * config/locale/c_locale_gnu.cc: Same errno fixes as generic.
4234
4235 * ChangeLog-2001: Fix spelling errors...
4236 * docs/html/17_intro/RELEASE-NOTES: Update.
4237 * docs/html/17_intro/TODO: Update.
4238 * README (file): Update.
4239
4240 2002-01-30 Loren Rittle <ljrittle@acm.org>
4241
4242 * config/locale/c_locale_generic.cc: Check errno for ERANGE
4243 instead of non-zero to aid portability.
4244
4245 2002-01-30 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
4246
4247 * docs/html/22_locale/messages.html: Fix example code.
4248
4249 2002-01-30 Richard Henderson <rth@redhat.com>
4250
4251 * testsuite/27_io/ostream_inserter_arith.cc (test03_check): Break
4252 out from test03 and templatize.
4253 (test03): Use it.
4254
4255 2002-01-30 Paolo Carlini <pcarlini@unitus.it>
4256
4257 * config/locale/numpunct_members_gnu.cc
4258 (numpunct<char, wchar_t>::_M_initialize_numpunct()):
4259 Fix initialization of _M_grouping for locales which have
4260 _M_thousands_sep == '\0'(L'\0', respectively).
4261 * testsuite/22_locale/numpunct_byname.cc (test02): Add test.
4262
4263 2002-01-30 Paolo Carlini <pcarlini@unitus.it>
4264
4265 * testsuite/27_io/ostream_inserter_arith.cc (test03):
4266 Better fix for 32/64 bit architectures, avoiding the
4267 implicit assumption that CHAR_BIT == 8.
4268
4269 2002-01-28 Phil Edwards <pme@gcc.gnu.org>
4270
4271 * Makefile.am (doxygen, doxygen-maint, doxygen-man): Tweak targets.
4272 * Makefile.in: Regenerate.
4273
4274 * docs/doxygen/run_doxygen: Update, mostly for man pages.
4275 * docs/doxygen/Intro.3: Update.
4276 * docs/doxygen/TODO: Update.
4277 * docs/doxygen/doxygroups.cc: Add namespace hook for __gnu_cxx.
4278 * docs/doxygen/mainpage.doxy: Update.
4279 * docs/doxygen/user.cfg.in: Update for header rename. Also
4280 regenerate comments and variables with 1.2.12.
4281 * docs/doxygen/maint.cfg.in: Remove file.
4282
4283 * include/bits/stl_relops.h: Doxygenate.
4284 * include/bits/stl_tempbuf.h (std::_Temporary_buffer): Likewise.
4285
4286 * include/c_std/std_cassert.h, include/c_std/std_cctype.h,
4287 include/c_std/std_cerrno.h, include/c_std/std_cfloat.h,
4288 include/c_std/std_ciso646.h, include/c_std/std_climits.h,
4289 include/c_std/std_clocale.h, include/c_std/std_cmath.h,
4290 include/c_std/std_csetjmp.h, include/c_std/std_csignal.h,
4291 include/c_std/std_cstdarg.h, include/c_std/std_cstddef.h,
4292 include/c_std/std_cstdio.h, include/c_std/std_cstdlib.h,
4293 include/c_std/std_cstring.h, include/c_std/std_ctime.h,
4294 include/c_std/std_cwchar.h, include/c_std/std_cwctype.h,
4295 include/ext/algorithm, include/ext/functional, include/ext/hash_map,
4296 include/ext/hash_set, include/ext/iterator, include/ext/memory,
4297 include/ext/numeric, include/ext/rb_tree, include/ext/rope,
4298 include/ext/ropeimpl.h, include/ext/slist, include/ext/stl_hash_fun.h,
4299 include/ext/stl_hashtable.h, include/ext/stl_rope.h,
4300 include/std/std_algorithm.h, include/std/std_bitset.h,
4301 include/std/std_complex.h, include/std/std_deque.h,
4302 include/std/std_fstream.h, include/std/std_functional.h,
4303 include/std/std_iomanip.h, include/std/std_ios.h,
4304 include/std/std_iosfwd.h, include/std/std_iostream.h,
4305 include/std/std_istream.h, include/std/std_iterator.h,
4306 include/std/std_limits.h, include/std/std_list.h,
4307 include/std/std_locale.h, include/std/std_map.h,
4308 include/std/std_memory.h, include/std/std_numeric.h,
4309 include/std/std_ostream.h, include/std/std_queue.h,
4310 include/std/std_set.h, include/std/std_sstream.h,
4311 include/std/std_stack.h, include/std/std_stdexcept.h,
4312 include/std/std_streambuf.h, include/std/std_string.h,
4313 include/std/std_utility.h, include/std/std_valarray.h,
4314 include/std/std_vector.h: Add/correct @file doxygen hook.
4315
4316 * include/ext/memory: Doxygenate most of rest of file.
4317 * libsupc++/exception: Doxygen output formatting.
4318 * libsupc++/new: Say which header it is.
4319
4320 * testsuite/lib/libstdc++-v3-dg.exp: Fix spacing.
4321 * docs/html/19_diagnostics/howto.html: Describe concept-checks switch.
4322 * docs/html/23_containers/howto.html: Describe O(n) list::size().
4323 * docs/html/27_io/howto.html: Also link to Langer and Kreft text.
4324
4325 2002-01-28 Paolo Carlini <pcarlini@unitus.it>
4326 Charles Leggett <CGLeggett@lbl.gov>
4327
4328 * testsuite/27_io/filebuf_members.cc (test_05): Add test.
4329
4330 2002-01-28 Paolo Carlini <pcarlini@unitus.it>
4331
4332 * testsuite/27_io/ostream_inserter_arith.cc (test03):
4333 Fix to deal correctly with both 32 bit and 64 bit architectures
4334
4335 2002-01-25 Loren Rittle <ljrittle@acm.org>
4336
4337 * testsuite/thread/pthread1.cc: Use one condition variable
4338 per predicate instead of tricky use of one condition variable.
4339
4340 2002-01-25 Benjamin Kosnik <bkoz@redhat.com>
4341
4342 * include/bits/fstream.tcc (filebuf::close()): Fix close for input
4343 streams.
4344 (filebuf::_M_really_overflow): Match indeterminate and sync calls.
4345 * testsuite/27_io/filebuf.cc: Compile only.
4346 * testsuite/27_io/filebuf_members.cc: Move tests to here.
4347 * testsuite/27_io/filebuf_virtuals.cc: And here.
4348 Revert sungetc, sync changes for expected values.
4349 * testsuite/27_io/filebuf-*: Move to...
4350 * testsuite/27_io/filebuf_virtuals-*: ...here.
4351 * testsuite/27_io/istream.cc: Compile only, activate.
4352 * testsuite/27_io/ostream.cc: Same.
4353 * testsuite/27_io/iostream.cc: New.
4354 * testsuite/27_io/iostream_members.cc: New.
4355
4356 2002-01-25 David Billinghurst <David.Billinghurst@riotinto.com>
4357
4358 * testsuite/thread/pthread1.cc: Enable on cygwin.
4359 * testsuite/thread/pthread2.cc: Likewise.
4360 * testsuite/thread/pthread3.cc: Likewise.
4361 * testsuite/thread/pthread4.cc: Likewise.
4362 * testsuite/thread/pthread5.cc: Likewise.
4363 * testsuite/thread/pthread6.cc: Likewise.
4364
4365 2002-01-24 Benjamin Kosnik <bkoz@redhat.com>
4366
4367 * testsuite/27_io/ostream_inserter_char.cc (test07): New.
4368
4369 2002-01-24 Benjamin Kosnik <bkoz@redhat.com>
4370
4371 * include/bits/basic_ios.h (basic_ios::_M_check_facet): Make
4372 const, tweak.
4373 (basic_ios::fill(char_type)): Use fill().
4374 * include/bits/basic_ios.tcc (basic_ios::widen): Use _M_check_facet.
4375 (basic_ios::narrow): Same.
4376 (basic_ios::_M_cache_facets): Explicitly set cached facets to zero
4377 if they are invalid.
4378 (basic_ios::init): Comment.
4379 * testsuite/27_io/ios_init.cc (test02): New.
4380
4381 2002-01-24 Phil Edwards <pme@gcc.gnu.org>
4382
4383 * include/bits/stl_tempbuf.h (_Temporary_buffer): Add doxygen hook.
4384 * include/bits/stl_algo.h: Include stl_tempbuf.h.
4385 * include/ext/memory: Do not include stl_tempbuf.h.
4386 (temporary_buffer): Add doxygen hook.
4387 (__get_temporary_buffer, get_temporary_buffer,
4388 return_temporary_buffer): Move back to std:: header...
4389 * include/std/std_memory.h: ...here. Do not include stl_tempbuf.h.
4390 * include/ext/rope: Do not include stl_tempbuf.h.
4391 * include/ext/stl_hashtable.h: Likewise.
4392 * include/std/std_algorithm.h: Likewise.
4393 * testsuite/20_util/temporary_buffer.cc: New file.
4394
4395 2002-01-24 andrew@andypo.net
4396 (tweaks, test and commit by Loren J. Rittle <ljrittle@acm.org>)
4397
4398 libstdc++/5432
4399 * include/bits/ios_base.h: Use _Atomic_word for reference counts.
4400 * include/bits/localefwd.h: Likewise.
4401 Also use for std::locale::id::_S_highwater.
4402 * src/ios.cc (ios_base::xalloc): Use _Atomic_word.
4403 * src/locale.cc: Support new usage of _Atomic_word.
4404 (std::locale::classic): Guard entire function against reentry.
4405 * src/localename.cc: Support new usage of _Atomic_word.
4406
4407 2002-01-24 Benjamin Kosnik <bkoz@redhat.com>
4408
4409 * testsuite/22_locale/num_put_members_wchar_t.cc (test03): Use
4410 _GLIBCPP_HAVE_SETENV.
4411 * testsuite/22_locale/codecvt_members_wchar_t_char.cc (test02): Same.
4412 * testsuite/22_locale/collate_members_char.cc (test02): Same.
4413 * testsuite/22_locale/ctype_members_char.cc (test03): Same.
4414 * testsuite/22_locale/ctype_members_wchar_t.cc (test03): Same.
4415 * testsuite/22_locale/messages_members_char.cc (test02): Same.
4416 * testsuite/22_locale/moneypunct_members_char.cc (test02): Same.
4417 * testsuite/22_locale/moneypunct_members_wchar_t.cc (test02): Same.
4418 * testsuite/22_locale/money_put_members_char.cc (test04): Same.
4419 * testsuite/22_locale/money_put_members_wchar_t.cc (test04): Same.
4420 * testsuite/22_locale/num_get_members_char.cc (test03): Same.
4421 * testsuite/22_locale/num_get_members_wchar_t.cc (test03): Same.
4422 * testsuite/22_locale/numpunct_members_char.cc (test02): Same.
4423 * testsuite/22_locale/numpunct_members_wchar_t.cc (test02): Same.
4424 * testsuite/22_locale/time_get_members_char.cc (test07): Same.
4425 * testsuite/22_locale/time_get_members_wchar_t.cc (test07): Same.
4426 * testsuite/22_locale/time_put_members_char.cc (test03): Same.
4427 * testsuite/22_locale/time_put_members_wchar_t.cc (test03): Same.
4428 * testsuite/22_locale/num_put_members_char.cc (test03): Same.
4429 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Check for setenv.
4430 * aclocal.m4: Regenerate.
4431 * configure: Regenerate.
4432 * config.h.in: Regenerate.
4433
4434 2002-01-23 Loren Rittle <ljrittle@acm.org>
4435
4436 * testsuite/thread/pthread1.cc: New test.
4437 * testsuite/thread/pthread2.cc: New test adapted from libstdc++/5347.
4438 * testsuite/thread/pthread3.cc: Likewise.
4439 * testsuite/thread/pthread4.cc: New test adapted from
4440 http://gcc.gnu.org/ml/gcc-bugs/2002-01/msg00679.html
4441 * testsuite/thread/pthread5.cc: New test adapted from libstdc++/5464.
4442 * testsuite/thread/pthread6.cc: New test adapted from libstdc++/5444.
4443
4444 2002-01-23 Richard Henderson <rth@redhat.com>
4445
4446 PR libstdc++/5198
4447 * config/cpu/m68k/bits/atomicity.h (__exchange_and_add): Only use
4448 CAS on the cpu variants that support it. Add versions that use
4449 TAS and that disable interrupts.
4450 (__atomic_add): Use __exchange_and_add to guarantee atomicity.
4451
4452 2002-01-23 Matt Kraai <kraai@alumni.cmu.edu>
4453
4454 * include/bits/locale_facets.tcc: Remove old comments.
4455
4456 2002-01-23 Andreas Tobler <toa@pop.agri.ch>
4457
4458 * include/bits/locale_facets.tcc (__convert_to_v): Change template
4459 parameter to _Tv.
4460 (__convert_from_v): Same.
4461
4462 2002-01-23 Benjamin Kosnik <bkoz@redhat.com>
4463
4464 * include/bits/locale_facets.h (num_get::_M_extract_int): Change
4465 prototype.
4466 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Remove
4467 __max_digits checks, adjust arguments.
4468 (num_get::do_get(*)): Changeup.
4469
4470 2002-01-23 Loren Rittle <ljrittle@acm.org>
4471
4472 * config/locale/c_locale_generic.cc: Fix typename usage.
4473
4474 2002-01-22 Benjamin Kosnik <bkoz@redhat.com>
4475
4476 * config/locale/c_locale_generic.cc: Fix.
4477
4478 2002-01-22 Benjamin Kosnik <bkoz@redhat.com>
4479
4480 * docs/html/22_locale/messages.html: Remove angle brackets.
4481 * docs/html/17_intro/TODO: Add.
4482
4483 2002-01-22 Paolo Carlini <pcarlini@unitus.it>
4484
4485 * testsuite/27_io/ios_manip_basefield.cc: Enable test02.
4486 * testsuite/27_io/ostream_inserter_arith.cc: Enable test03.
4487 * testsuite/27_io/ostream_inserter_char.cc: Enable test01.
4488 * testsuite/27_io/ostream_inserter_other.cc: Enable test04.
4489
4490 2002-01-22 Benjamin Kosnik <bkoz@redhat.com>
4491
4492 Audit for LANG independence.
4493 * include/bits/localefwd.h: Tweaks.
4494 * include/bits/locale_facets.tcc (money_get::do_get(long double)):
4495 Use __convert_to_v.
4496 (time_get::do_get_year): Same.
4497 (__convert_from_v): Add.
4498 (num_put::_M_convert_float): Use.
4499 (num_put::_M_convert_int): Same.
4500 (money_put::do_put): Same.
4501
4502 * src/locale-inst.cc: Add instantiations for __convert_from_v.
4503 * config/locale/time_members_gnu.cc: Cleanup setlocale usage.
4504 * config/locale/time_members_generic.cc:
4505 * config/locale/messages_members_gnu.cc: Same.
4506 * config/locale/messages_members_gnu.h: Same.
4507
4508 * testsuite/22_locale/codecvt_members_wchar_t_char.cc (test02): New.
4509 * testsuite/22_locale/codecvt_members_char_char.cc (test02): New.
4510 * testsuite/22_locale/collate_members_wchar_t.cc (test02): New.
4511 * testsuite/22_locale/collate_members_char.cc (test02): New.
4512 * testsuite/22_locale/ctype_members_wchar_t.cc (test03): New.
4513 * testsuite/22_locale/ctype_members_char.cc (test03): New.
4514 * testsuite/22_locale/messages_members_char.cc (test02): New.
4515 * testsuite/22_locale/moneypunct_members_wchar_t.cc (test02): New.
4516 * testsuite/22_locale/moneypunct_members_char.cc (test02): New.
4517 * testsuite/22_locale/money_get_members_wchar_t.cc (test04): New.
4518 * testsuite/22_locale/money_get_members_char.cc (test04): New.
4519 * testsuite/22_locale/money_put_members_wchar_t.cc (test04): New.
4520 * testsuite/22_locale/money_put_members_char.cc (test04): New.
4521 * testsuite/22_locale/numpunct_members_wchar_t.cc (test02): New.
4522 * testsuite/22_locale/numpunct_members_char.cc (test02): New.
4523 * testsuite/22_locale/time_put_members_wchar_t.cc (test03): New.
4524 * testsuite/22_locale/time_put_members_char.cc (test03): New.
4525 * testsuite/22_locale/time_get_members_wchar_t.cc (test07): New.
4526 * testsuite/22_locale/time_get_members_char.cc (test07): New.
4527 * testsuite/22_locale/num_get_members_wchar_t.cc (test03): New.
4528 * testsuite/22_locale/num_get_members_char.cc (test03): New.
4529 * testsuite/22_locale/num_put_members_wchar_t.cc (test03): New.
4530 * testsuite/22_locale/num_put_members_char.cc (test03): New.
4531
4532 * testsuite/22_locale/time_get_members_char.cc: Fixups for global
4533 locale issues.
4534 * testsuite/22_locale/time_get_members_char.cc: Same.
4535
4536 2002-01-22 Benjamin Kosnik <bkoz@redhat.com>
4537
4538 libstdc++/5280
4539 * include/bits/localefwd.h: Tweak comments.
4540 * include/bits/locale_facets.h (__convert_to_v): Add.
4541 * include/bits/locale_facets.tcc (num_get::do_get(double)): Use it.
4542 (num_get::do_get(float)): Same.
4543 (num_get::do_get(long double)): Same.
4544 (num_get::do_get(bool)): Same.
4545 (num_get::do_get(long)): Same.
4546 (num_get::do_get(long long)): Same.
4547 (num_get::do_get(unsigned int)): Same.
4548 (num_get::do_get(unsigned short)): Same.
4549 (num_get::do_get(unsigned long)): Same.
4550 (num_get::do_get(unsigned long long)): Same.
4551 * config/locale/c_locale_gnu.cc (__convert_to_v): Specialize.
4552 * config/locale/c_locale_generic.cc: Same.
4553
4554 2002-01-22 Loren Rittle <ljrittle@acm.org>
4555
4556 * include/Makefile.am (c_base_builddir): Remove redundant slash.
4557 (std_builddir): Likewise.
4558 (std_headers_rename): Fix cut-n-paste typo.
4559 (install-data-local): Concat path per element instead of once to
4560 first element of list.
4561 * include/Makefile.in: Rebuilt.
4562
4563 2002-01-22 Benjamin Kosnik <bkoz@redhat.com>
4564
4565 * config/os/aix/bits/ctype_noninline.h: Fix formatting.
4566 * config/os/bsd/netbsd/bits/ctype_noninline.h: Fix typo.
4567 * config/os/bsd/freebsd/bits/ctype_noninline.h: Fix formatting.
4568
4569 2002-01-20 Benjamin Kosnik <bkoz@redhat.com>
4570
4571 * include/bits/locale_facets.h (ctype<char>::classic_table):
4572 Remove definition.
4573 (ctype<char>::_S_ctable): Remove.
4574 * config/os/gnu-linux/bits/ctype_noninline.h
4575 (ctype<char>::_S_table): Remove definition.
4576 (ctype<char>::classic_table): Define.
4577 (ctype<char>::ctype): Replace _S_ctable with classic_table().
4578 * config/os/aix/bits/ctype_noninline.h: Same.
4579 * config/os/bsd/freebsd/bits/ctype_noninline.h: Same.
4580 * config/os/bsd/netbsd/bits/ctype_noninline.h: Same.
4581 * config/os/djgpp/bits/ctype_noninline.h: Same.
4582 * config/os/generic/bits/ctype_noninline.h: Same.
4583 * config/os/gnu-linux/bits/ctype_noninline.h: Same.
4584 * config/os/hpux/bits/ctype_noninline.h: Same.
4585 * config/os/irix/irix5.2/bits/ctype_noninline.h: Same.
4586 * config/os/irix/irix6.5/bits/ctype_noninline.h: Same.
4587 * config/os/mingw32/bits/ctype_noninline.h: Same.
4588 * config/os/newlib/bits/ctype_noninline.h: Same.
4589 * config/os/solaris/solaris2.5/bits/ctype_noninline.h: Same.
4590 * config/os/solaris/solaris2.6/bits/ctype_noninline.h: Same.
4591 * config/os/solaris/solaris2.7/bits/ctype_noninline.h: Same.
4592
4593 2002-01-20 Danny Smith <dannysmith@users.sourceforge.net>
4594
4595 * config/os/mingw32/bits/ctype_noninline.h: Declare _ctype instead
4596 of _pctype. Use to define _S_ctable. Add definition for alternate
4597 ctor. Initialise _M_ctable to _S_ctable in ctors.
4598 (do_toupper, do_tolower): Use inline code appropriate for C-locale
4599 rather than ::toupper, ::tolower.
4600
4601 2002-01-18 Loren Rittle <ljrittle@acm.org>
4602
4603 * testsuite/18_support/numeric_limits.cc (test_extrema<long double>):
4604 Add specialization for FreeBSD systems only to avoid losing test
4605 only due to extra precision unmentioned in system headers.
4606
4607 2002-01-18 David Billinghurst <David.Billinghurst@riotinto.com>
4608
4609 * config/os/irix/irix6.5/bits/ctype_noninline.h: Fix typo
4610
4611 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
4612
4613 * testsuite/testsuite_hooks.h: Fix comment typo. Memory
4614 limiting is only attempted if _GLIBCPP_MEM_LIMIT is defined.
4615
4616 2002-01-17 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
4617
4618 * testsuite/22_locale/ctor_copy_dtor.cc: Remove check.
4619
4620 2002-01-17 David Edelsohn <edelsohn@gnu.org>
4621
4622 * configure.target: Define OPT_LDFLAGS for AIX case.
4623
4624 2002-01-17 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
4625
4626 * include/std/std_limits.h (__glibcpp_float_has_quiet_NaN,
4627 __glibcpp_double_has_quiet_NaN): Correct mispelling.
4628
4629 2002-01-17 Andreas Tobler <toa@pop.agri.ch>
4630
4631 * config/os/solaris/solaris2.6/bits/ctype_noninline.h: Fix.
4632
4633 2002-01-16 David Edelsohn <dje@watson.ibm.com>
4634
4635 * acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES): Do not clear
4636 SECTION_LDFLAGS and OPT_LDFLAGS. Fix ac_sectionLDflags type.
4637 * aclocal.m4: Regenerate.
4638 * configure: Regenerate.
4639
4640 2002-01-16 Benjamin Kosnik <bkoz@redhat.com>
4641
4642 * include/Makefile.am (c_base_headers_rename): New.
4643 (c_base_headers_extra): New.
4644 (stamp-c_base): Modify.
4645 (install-data-local): Use both.
4646 * include/Makefile.in: Regenerate.
4647 * include/c/[cctype ciso646 cmath cstdarg cstdlib cerrno climits
4648 csetjmp cstddef cstring cwchar cassert cfloat clocale csignal
4649 cstdio ctime cwctype]: Move to..
4650 * include/c/std_*: Here.
4651 * include/c_std/[cctype ciso646 cmath cstdarg cstdlib cerrno climits
4652 csetjmp cstddef cstring cwchar cassert cfloat clocale csignal
4653 cstdio ctime cwctype]: Move to..
4654 * include/c_std/std_*: Here.
4655
4656 Alexandre Oliva <aoliva@redhat.com>
4657 * include/Makefile.am (.PRECIOUS): Add rule.
4658 * include/Makefile.in: Regenerate.
4659
4660 2002-01-16 Benjamin Kosnik <bkoz@redhat.com>
4661 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
4662
4663 * include/bits/stl_iterator.h (reverse_iterator::_M_current):
4664 Deuglify, should be current.
4665 (back_insert_iterator::_M_container): Deuglify, should be container.
4666 (front_insert_iterator::_M_container): Same.
4667 (insert_iterator::_M_container): Same.
4668 * testsuite/24_iterators/reverse_iterator.cc: Add check.
4669 * testsuite/24_iterators/back_insert_iterator.cc: Add check.
4670 * testsuite/24_iterators/front_insert_iterator.cc: Same.
4671 * testsuite/24_iterators/insert_iterator.cc: Same.
4672
4673 2002-01-16 Benjamin Kosnik <bkoz@redhat.com>
4674
4675 * include/bits/locale_facets.h (ctype<char>::classic_table): Make
4676 static.
4677 (ctype<char>::_M_ctable): Make static, change name to _S_ctable.
4678 * config/os/gnu-linux/bits/ctype_noninline.h: Define _S_ctable.
4679 * config/os/solaris/solaris2.7/bits/ctype_noninline.h: Same.
4680 * config/os/solaris/solaris2.6/bits/ctype_noninline.h: Same.
4681 * config/os/solaris/solaris2.5/bits/ctype_noninline.h: Same.
4682 * config/os/newlib/bits/ctype_noninline.h: Same.
4683 * config/os/irix/irix6.5/bits/ctype_noninline.h: Same.
4684 * config/os/irix/irix5.2/bits/ctype_noninline.h: Same.
4685 * config/os/hpux/bits/ctype_noninline.h: Same.
4686 * config/os/djgpp/bits/ctype_noninline.h: Same.
4687 * config/os/bsd/netbsd/bits/ctype_noninline.h: Same.
4688 * config/os/bsd/freebsd/bits/ctype_noninline.h: Same.
4689 * config/os/aix/bits/ctype_noninline.h: Same.
4690
4691 Testcase by Dietmar Kühl via Peter Schmid
4692 * testsuite/22_locale/ctype_members_char.cc (char>): Add test for
4693 classic_table().
4694
4695 2002-01-16 Benjamin Kosnik <bkoz@redhat.com>
4696
4697 * libmath/signbitl.c: Copyright years as list, not range.
4698 * libmath/Makefile.am: Same.
4699 * libmath/Makefie.in: Regenerate.
4700 * libmath/signbit.c: Same.
4701 * libmath/nan.c: Same.
4702 * libmath/copysignf.c: Same.
4703 * libmath/signbitf.c: Same.
4704 * testsuite/22_locale/money_get_members_char.cc: Same.
4705 * testsuite/22_locale/money_get_members_wchar_t.cc: Same.
4706 * testsuite/22_locale/money_put_members_char.cc: Same.
4707 * testsuite/22_locale/money_put_members_wchar_t.cc: Same.
4708 * testsuite/22_locale/time_get_members_char.cc: Same.
4709 * testsuite/22_locale/time_get_members_wchar_t.cc: Same.
4710 * testsuite/22_locale/time_put_members_char.cc: Same.
4711 * testsuite/22_locale/time_put_members_wchar_t.cc: Same.
4712 * testsuite/21_strings/nonmember.cc: Same.
4713 * testsuite/21_strings/compare.cc: Same.
4714 * testsuite/27_io/stringstream.cc: Same.
4715 * testsuite/27_io/stringbuf.cc: Same.
4716 * testsuite/27_io/filebuf.cc: Same.
4717 * testsuite/27_io/ios_manip_basefield.cc: Same.
4718 * testsuite/27_io/ios_manip_fmtflags.cc: Same.
4719 * include/bits/cpp_type_traits.h: Same.
4720 * include/bits/generic_shadow.h: Same.
4721 * include/bits/gslice_array.h: Same.
4722 * include/bits/gslice.h: Same.
4723 * include/bits/indirect_array.h: Same.
4724 * include/bits/slice_array.h: Same.
4725 * include/bits/sstream.tcc: Same.
4726 * include/bits/streambuf_iterator.h: Same.
4727 * include/bits/valarray_array.tcc: Same.
4728 * include/bits/valarray_meta.h: Same.
4729 * include/bits/valarray_array.h: Same.
4730 * config/os/mingw32/bits/ctype_noninline.h: Same.
4731 * config/os/mingw32/bits/ctype_base.h: Same.
4732 * config/os/hpux/bits/ctype_noninline.h: Same.
4733 * config/os/hpux/bits/ctype_base.h: Same.
4734 * config/os/gnu-linux/bits/ctype_noninline.h: Same.
4735 * config/os/gnu-linux/bits/ctype_base.h: Same.
4736 * config/os/generic/bits/ctype_noninline.h: Same.
4737 * config/os/generic/bits/ctype_base.h: Same.
4738
4739 * libsupc++/tinfo.h: Tweaks.
4740
4741 2002-01-15 Benjamin Kosnik <bkoz@redhat.com>
4742
4743 * testsuite/22_locale/num_put_members_wchar_t.cc (test02): Same.
4744 * testsuite/22_locale/num_put_members_char.cc (test01): Tweak.
4745 * testsuite/22_locale/ctype_members_char.cc: Tweak.
4746
4747 2002-01-15 Benjamin Kosnik <bkoz@redhat.com>
4748
4749 * include/bits/locale_facets.tcc (num_put::do_put(bool): Fix.
4750 (num_put::do_put(void*)): Fix.
4751 * testsuite/22_locale/num_put_members_char.cc (test02): Add.
4752 * testsuite/22_locale/num_put_members_wchar_t.cc (test02): Add.
4753 * testsuite/22_locale/num_get_members_char.cc (test02): Add
4754 long double, void, bool types.
4755 * testsuite/22_locale/num_get_members_wchar_t.cc (test02): Add.
4756
4757 2002-01-15 Benjamin Kosnik <bkoz@redhat.com>
4758 Alexandre Oliva <aoliva@redhat.com>
4759
4760 * libmath/Makefile.am (LINK): Add --tag CC.
4761 * libmath/Makefile.in: Regenerate.
4762
4763 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
4764
4765 * config/os/hpux/bits/ctype_noninline.h: Use __SB_masks for address
4766 of character to attribute mapping table.
4767
4768 2002-01-15 David Billinghurst <David.Billinghurst@riotinto.com>
4769
4770 * testsuite/26_numerics/c99_classification_macros_c.cc
4771 Remove dg-error and dg-excess-errors comments.
4772
4773 2002-01-14 Benjamin Kosnik <bkoz@redhat.com>
4774
4775 * include/bits/locale_facets.tcc (time_put::put): Correct output
4776 iterator positions.
4777 * testsuite/22_locale/time_put_members_char.cc (test02): Add.
4778 * testsuite/22_locale/time_put_members_wchar_t.cc (test02): Add.
4779 * testsuite/22_locale/time_get_members_wchar_t.cc (test06): Add.
4780 * testsuite/22_locale/time_get_members_char.cc (test06): Add.
4781
4782 2002-01-14 Craig Rodrigues <rodrigc@gcc.gnu.org>
4783
4784 * docs/html/17_intro/porting-howto.xml: Update filebuf section.
4785
4786 2002-01-14 Paolo Carlini <pcarlini@unitus.it>
4787 Nathan Myers <ncm@cantrip.org>
4788
4789 * include/bits/basic_string.h
4790 (replace(__pos, __n1, __s, __n2)): Optimize by avoiding
4791 temporaries (i.e., call _M_replace_safe) when possible.
4792 (replace(__pos, __n, __str)): Call replace(__pos, __n1, __s, __n2).
4793 (replace(__pos, __n1, __s)): Call replace(__pos, __n1, __s , __n2).
4794 (replace(__i1, __i2, __str)): Call replace(__i1, __i2, __s, __n).
4795 (replace(__i1, __i2, __s)): Call replace(__i1, __i2, __s, __n).
4796 (replace(__i1, __i2, __s, __n)): Call replace(__pos1, __n1, __s, __n2).
4797 * include/bits/basic_string.tcc
4798 (replace(__pos1, __n1, __str, __pos2, __n2)): Call
4799 replace(__pos, __n1, __s, __n2).
4800 * testsuite/21_strings/replace.cc (test03): New testcases.
4801
4802 * include/bits/basic_string.h (insert(__pos, __s, __n)):
4803 Adjust comparison wrt overflow.
4804
4805 2002-01-12 Benjamin Kosnik <bkoz@redhat.com>
4806
4807 * include/Makefile.am (std_headers_rename): New variable.
4808 (install-data-local): Use it.
4809 * include/Makefile.in: Regenerate.
4810
4811 2002-01-12 Benjamin Kosnik <bkoz@redhat.com>
4812
4813 * include/bits/locale_facets.tcc (money_put::do_put(string):
4814 Correct output iterator value.
4815 * testsuite/22_locale/money_put_members_char.cc (test03): Add.
4816 * testsuite/22_locale/money_put_members_wchar_t.cc: Same.
4817
4818 2002-01-11 Phil Edwards <pme@gcc.gnu.org>
4819
4820 * include/Makefile.am, include/Makefile.in (stamp-std): Fix typo from
4821 previous commit.
4822
4823 2002-01-11 Phil Edwards <pme@gcc.gnu.org>
4824
4825 * include/Makefile.am (std_headers): Update list with new names.
4826 (stamp-std): Link to standardized name.
4827 * include/Makefile.in: Regenerate.
4828
4829 * include/std/algorithm, include/std/bitset, include/std/complex,
4830 include/std/deque, include/std/fstream, include/std/functional,
4831 include/std/iomanip, include/std/ios, include/std/iosfwd,
4832 include/std/iostream, include/std/istream, include/std/iterator,
4833 include/std/limits, include/std/list, include/std/locale,
4834 include/std/map, include/std/memory, include/std/numeric,
4835 include/std/ostream, include/std/queue, include/std/set,
4836 include/std/sstream, include/std/stack, include/std/stdexcept,
4837 include/std/streambuf, include/std/string, include/std/utility,
4838 include/std/valarray, include/std/vector: Rename to...
4839
4840 * include/std/std_algorithm.h, include/std/std_bitset.h,
4841 include/std/std_complex.h, include/std/std_deque.h,
4842 include/std/std_fstream.h, include/std/std_functional.h,
4843 include/std/std_iomanip.h, include/std/std_ios.h,
4844 include/std/std_iosfwd.h, include/std/std_iostream.h,
4845 include/std/std_istream.h, include/std/std_iterator.h,
4846 include/std/std_limits.h, include/std/std_list.h,
4847 include/std/std_locale.h, include/std/std_map.h,
4848 include/std/std_memory.h, include/std/std_numeric.h,
4849 include/std/std_ostream.h, include/std/std_queue.h,
4850 include/std/std_set.h, include/std/std_sstream.h,
4851 include/std/std_stack.h, include/std/std_stdexcept.h,
4852 include/std/std_streambuf.h, include/std/std_string.h,
4853 include/std/std_utility.h, include/std/std_valarray.h,
4854 include/std/std_vector.h: ...this.
4855
4856 2002-01-11 Loren Rittle <ljrittle@acm.org>
4857
4858 * include/Makefile.am (extra_target_headers): New list of all
4859 target files built with ad hoc naming rules.
4860 (stamp-*): Handle LN_S failure in manner portable across make
4861 implementations.
4862 (install-data-local): Install header files from human-maintained
4863 file lists and directory components instead of non-robust find.
4864 * include/Makefile.in: Rebuilt.
4865
4866 2002-01-11 Benjamin Kosnik <bkoz@redhat.com>
4867
4868 * include/bits/locale_facets.tcc (money_get::do_get(string)):
4869 Check for zero-length negative sign before adding it to output
4870 string.
4871 (money_get::do_get(long double)): Return beg.
4872 * testsuite/22_locale/money_get_members_char.cc (test02): Add
4873 iterator checks.
4874 * testsuite/22_locale/money_get_members_wchar_t.cc: Same.
4875
4876 2002-01-10 David Seymour <seymour_dj@yahoo.com>
4877
4878 libstdc++/5331
4879 * include/bits/locale_facets.h (num_get<>): Return advanced iterator
4880 for _M_extract_float and _M_extract_int
4881 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float)
4882 (num_get<>::_M_extract_int): Likewise, all callers changed
4883 * testsuite/22_locale/num_get_members_char.cc: Testcase
4884
4885 2002-01-09 Paolo Carlini <pcarlini@unitus.it>
4886
4887 * libsupc++/exception (bad_exception): Add comment.
4888 * libsupc++/new (bad_alloc): Same.
4889 * libsupc++/typeinfo (bad_cast, bad_typeid): Same.
4890
4891 2002-01-09 Paolo Carlini <pcarlini@unitus.it>
4892
4893 libstdc++/3150: revert 2001-11-30 commit. DR266 only means
4894 that the destructors should be removed from the descriptions
4895 in the standard: writing them explicitly allows the vtable
4896 heuristic to work. For additional information see:
4897 http://gcc.gnu.org/ml/libstdc++/2002-01/msg00090.html
4898 http://gcc.gnu.org/ml/libstdc++/2002-01/msg00110.html
4899 http://gcc.gnu.org/ml/libstdc++/2002-01/msg00155.html
4900 * libsupc++/exception (bad_exception::~bad_exception()):
4901 Reintroduce declaration.
4902 * libsupc++/new (bad_alloc::~bad_alloc()): Same.
4903 * libsupc++/typeinfo (bad_cast::~bad_cast()): Same.
4904 (bad_typeid::~bad_typeid()): Same.
4905 * libsupc++/eh_exception.cc (bad_exception::~bad_exception()):
4906 Reintroduce definition.
4907 * libsupc++/new_handler.cc (bad_alloc::~bad_alloc()): Same.
4908 * libsupc++/tinfo.cc (bad_cast::~bad_cast()): Same.
4909 (bad_typeid::~bad_typeid()): Same.
4910
4911 2002-01-09 Benjamin Kosnik <bkoz@redhat.com>
4912
4913 * include/Makefile.am (c_base_srcdir): Remove duplicate '/'.
4914 * include/Makefile.in: Regenerate.
4915
4916 2002-01-09 Bo Thorsen <bo@suse.co.uk>
4917
4918 * config/cpu/x86-64/bits/cpu_limits.h (__glibcpp_long_bits): Add
4919 definition.
4920
4921 2002-01-08 Benjamin Kosnik <bkoz@redhat.com>
4922
4923 libstdc++/2913
4924 libstdc++/4879
4925 * include/bits/fstream.tcc (filebuf::_M_really_overflow): Test
4926 return value of _M_file->sync().
4927 (filebuf::showmanyc): Check for is_open.
4928 * include/std/fstream (filebuf::sync): Tweak.
4929 * testsuite/27_io/filebuf.cc: Tweak.
4930
4931 2002-01-08 John Fardo <jfardo@laurelnetworks.com>
4932 Brad Garcia <garsh@attbi.com>
4933
4934 * testsuite/27_io/filebuf_members.cc: Add test.
4935
4936 2002-01-07 Benjamin Kosnik <bkoz@redhat.com>
4937 Craig Rodrigues <rodrigc@mediaone.net>
4938
4939 libstdc++/5174
4940 * po/Makefile.am (mkinstalldirs): Add.
4941 * po/Makefile.in: Regenerate.
4942
4943 2002-01-07 David Billinghurst <David.Billinghurst@riotinto.com>
4944
4945 * testsuite_flags.in: Add -fmessage-length=0 to CXXFLAGS *
4946 testsuite/lib/prune.exp: Delete lines ":In function ..." from
4947 compiler output.
4948 * testsuite/23_containers/map_operators.cc: Remove
4949 dg-excess-errors comment.
4950 * testsuite/23_containers/set_operators.cc: Likewise.
4951
4952 2002-01-06 Paolo Carlini <pcarlini@unitus.it>
4953
4954 * include/bits/stl_function.h: Remove two lines of comments;
4955 adjust copyright years.
4956
4957 2002-01-04 Benjamin Kosnik <bkoz@redhat.com>
4958
4959 * include/Makefile.am (std_headers): Remove cXXX from list.
4960 (c_base_srcdir): No bits subdirectory.
4961 (c_base_builddir): Same.
4962 (c_base_headers): Adjust names, add ciso646.
4963 (bits_headers): Remove std_xxx.h headers.
4964 * include/Makefile.in: Regenerate.
4965
4966 * include/ext/iterator: Adjust includes.
4967 * include/ext/ropeimpl.h: Same.
4968 * include/ext/stl_hash_fun.h: Same.
4969 * include/ext/algorithm: Same.
4970
4971 * include/backward/bvector.h: Adjust includes.
4972 * include/backward/vector.h: Same.
4973 * include/backward/strstream: Same.
4974 * include/backward/streambuf.h: Same.
4975 * include/backward/stack.h: Same.
4976 * include/backward/set.h: Same.
4977 * include/backward/queue.h: Same.
4978 * include/backward/multiset.h: Same.
4979 * include/backward/multimap.h: Same.
4980 * include/backward/map.h: Same.
4981 * include/backward/list.h: Same.
4982 * include/backward/iterator.h: Same.
4983 * include/backward/iostream.h: Same.
4984 * include/backward/iomanip.h: Same.
4985 * include/backward/fstream.h: Same.
4986 * include/backward/deque.h: Same.
4987 * include/backward/complex.h: Same.
4988
4989 * include/bits/std_algorithm.h: Move to...
4990 * include/std/algorithm: ...here.
4991 * include/bits/std_iosfwd.h, std_locale.h, std_stack.h,
4992 std_bitset.h, std_ios.h, std_map.h, std_stdexcept.h,
4993 std_complex.h, std_iostream.h, std_memory.h, std_streambuf.h,
4994 std_deque.h, std_istream.h, std_numeric.h, std_string.h,
4995 std_fstream.h, std_ostream.h, std_utility.h, std_iterator.h,
4996 std_queue.h, std_valarray.h, std_functional.h, std_limits.h,
4997 std_set.h, std_vector.h, std_iomanip.h, std_list.h, std_sstream.h:
4998 Same.
4999
5000 * include/c_std/bits/std_cassert.h: Move to...
5001 * include/c_std/cassert: Here.
5002 * include/c_std/std_cctype.h, std_cerrno.h, std_cfloat.h,
5003 std_climits.h, std_clocale.h, std_cmath.h, std_csetjmp.h,
5004 std_csignal.h, std_cstdarg.h, std_cstddef.h, std_cstdio.h,
5005 std_cstdlib.h, std_cstring.h, std_ctime.h, std_cwchar.h,
5006 std_cwctype.h: Same.
5007 * include/c_std/cmath: Adjust cmath.tcc include.
5008 * include/c_std/cstdlib: Adjust includes.
5009 * include/c_std/cwchar: Same.
5010 * include/c_std/ctime: Same.
5011 * include/c_std/cstring: Same.
5012 * include/c_std/cstdio: Same.
5013 * include/c_std/bits: Remove directory.
5014
5015 * include/c/bits/std_cassert.h: Move to...
5016 * include/c/cassert: Here.
5017 * include/c/std_cctype.h, std_cerrno.h, std_cfloat.h,
5018 std_climits.h, std_clocale.h, std_cmath.h, std_csetjmp.h,
5019 std_csignal.h, std_cstdarg.h, std_cstddef.h, std_cstdio.h,
5020 std_cstdlib.h, std_cstring.h, std_ctime.h, std_cwchar.h,
5021 std_cwctype.h: Same.
5022 * include/c/bits: Remove directory.
5023
5024 * include/std/cwctype: Remove.
5025 * include/std/cwchar: Remove.
5026 * include/std/ctime: Remove.
5027 * include/std/cstring: Remove.
5028 * include/std/cstdlib: Remove.
5029 * include/std/cstdio: Remove.
5030 * include/std/cstddef: Remove.
5031 * include/std/cstdarg: Remove.
5032 * include/std/csignal: Remove.
5033 * include/std/csetjmp: Remove.
5034 * include/std/cmath: Remove.
5035 * include/std/clocale: Remove.
5036 * include/std/climits: Remove.
5037 * include/std/ciso646: Remove.
5038 * include/std/cfloat: Remove.
5039 * include/std/cerrno: Remove.
5040 * include/std/cctype: Remove.
5041 * include/std/cassert: Remove.
5042
5043 * include/bits/fpos.h: Adjust includes, removing <bits/std_xxx.h>
5044 files and subsituting <xxx>.
5045 * include/bits/valarray_array.h: Same.
5046 * include/bits/stl_uninitialized.h: Same.
5047 * include/bits/stl_alloc.h: Same.
5048 * include/bits/stl_algobase.h: Same.
5049 * include/bits/sstream.tcc: Same.
5050 * include/bits/pthread_allocimpl.h: Same.
5051 * include/bits/ostream.tcc: Same.
5052 * include/bits/localefwd.h: Same.
5053 * include/bits/locale_facets.tcc: Same.
5054 * include/bits/locale_facets.h: Same.
5055 * include/bits/istream.tcc: Same.
5056 * include/bits/char_traits.h: Same.
5057 * include/bits/boost_concept_check.h: Same.
5058 * include/bits/basic_file.h: Same.
5059 * include/std/bitset: Same.
5060 * include/std/complex: Same.
5061 * include/std/fstream: Same.
5062 * include/std/functional: Same.
5063 * include/std/ios: Same.
5064 * include/std/iostream: Same.
5065 * include/std/ostream: Same.
5066 * include/std/sstream: Same.
5067 * include/std/streambuf: Same.
5068 * include/std/string: Same.
5069 * include/std/iterator: Same.
5070 * include/std/valarray: Same.
5071
5072 * src/ios.cc: Adjust includes.
5073 * src/valarray-inst.cc: Same.
5074 * src/string-inst.cc: Same.
5075 * src/stl-inst.cc: Same.
5076 * src/stdexcept.cc: Same.
5077 * src/misc-inst.cc: Same.
5078 * src/localename.cc: Same.
5079 * src/locale-inst.cc: Same.
5080 * src/locale.cc: Same.
5081 * src/limits.cc: Same.
5082 * src/concept-inst.cc: Same.
5083 * src/complex_io.cc: Same.
5084 * src/codecvt.cc: Same.
5085 * src/bitset.cc: Same.
5086 * src/cmath.cc: Same.
5087
5088 2002-01-04 Paolo Carlini <pcarlini@unitus.it>
5089
5090 * include/bits/stl_tree.h (rb_tree): Move to...
5091 * include/ext/rb_tree: ...here, new file.
5092 * include/Makefile.am (ext_headers): Add new file.
5093 * include/Makefile.in: Regenerate.
5094 * include/bits/stl_tempbuf.h (get_temporary_buffer + helper,
5095 return_temporary_buffer, struct temporary_buffer): Move to...
5096 * include/ext/memory: ...here.
5097 * testsuite/ext/headers.cc: Include <ext/rb_tree>.
5098 * include/backward/tempbuf.h: Include <ext/memory>, tweak.
5099 * include/backward/tree.h: Include <ext/rb_tree), tweak.
5100
5101 2002-01-03 Paolo Carlini <pcarlini@unitus.it>
5102
5103 * include/bits/stl_numeric.h (power + helpers, iota): Move to...
5104 * include/ext/numeric: ...here, new file.
5105 * include/bits/stl_function.h (identity_element, unary_compose,
5106 binary_compose, compose1, compose2, identity, select1st,
5107 select2nd, project1st + helper, project2nd + helper,
5108 constant_void_fun + helper, constant_unary_fun + helper,
5109 costant_binary_fun + helper, constant0, constant1, constant2,
5110 subtractive_rng, mem_fun1, mem_fun1_ref): Move to...
5111 * include/ext/functional: ...here, new file.
5112 * include/Makefile.am (ext_headers): Add new files.
5113 * include/Makefile.in: Regenerate.
5114 * testsuite/ext/headers.cc: Include <ext/numeric> and
5115 <ext/functional>.
5116 * include/backward/algo.h: Include <ext/numeric>, tweak.
5117 * include/backward/function.h: Include <ext/functional>, tweak.
5118 * include/ext/ropeimpl.h: Include <ext/numeric>.
5119
5120 2002-01-03 Jeffrey A Law <law@redhat.com>
5121
5122 * config/os/hpux/bits/os_defines.h: Prefix __strtoll and
5123 __strtoull declarations with __extension__.
5124
5125 2002-01-03 David Billinghurst <David.Billinghurst@riotinto.com>
5126
5127 * testsuite/lib/prune.exp: Correct regular expression for
5128 -ffunction-sections
5129
5130 2002-01-02 Phil Edwards <pme@gcc.gnu.org>
5131
5132 * include/bits/stl_algo.h (upper_bound, equal_range, binary_search):
5133 Change concept checks, as with lower_bound and PR 2054.
5134 * testsuite/ext/concept_checks.cc: Expand test to include those.
5135
5136 2002-01-02 Phil Edwards <pme@gcc.gnu.org>
5137
5138 * include/bits/boost_concept_check.h: Import some changes from
5139 upsteam (Boost) version.
5140
5141 2002-01-02 Paolo Carlini <pcarlini@unitus.it>
5142
5143 * include/bits/stl_algobase.h (copy_n + helpers,
5144 lexicographical_compare_3way + helpers): Move to...
5145 * include/ext/algorithm: ...here.
5146 * include/bits/stl_uninitialized.h (uninitialized_copy_n +
5147 helpers): Move to...
5148 * include/ext/memory: ...here, new file.
5149 * include/Makefile.am (ext_headers): Add new file.
5150 * include/Makefile.in: Regenerate.
5151 * testsuite/ext/headers.cc: Include <ext/memory>.
5152 * include/backward/algobase.h: Include <ext/memory> and
5153 <ext/algorithm>, tweak.
5154 * include/ext/ropeimpl.h: Include <ext/memory>, tweak.
5155 * include/ext/stl_rope.h: Include <ext/memory>, tweak.
5156
5157 2002-01-01 Roger Sayle <roger@eyesopen.com>
5158
5159 * libmath/stubs.c (sinf,cosf): Implement stubs to enable the
5160 equivalent ___builtin__ versions.
5161
5162 * include/c_shadow/bits/std_cmath.h: All __builtin math functions
5163 are available in libstdc++ as the necessary stub implementations
5164 are provided by libmath/stubs.c.
5165
5166 2002-01-01 Jason Thorpe <thorpej@wasabisystems.com>
5167
5168 * configure.in: Add support for NetBSD cross compiles.
5169 * configure: Regenerate.