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