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