71edd6af3c6c862e385da337fd9df7fc7ed942d8
[gcc.git] / libstdc++-v3 / ChangeLog
1 2001-02-15 Mark Mitchell <mark@codesourcery.com>
2
3 * include/bits/istream.tcc: Use ios_base::iostate in place of
4 iostate throughout. Insert `typename' keyword where necessary.
5 * include/bits/ostream.tcc: Insert `typename' keyword where
6 necessary.
7
8 2001-02-15 Jeffrey Oldham <oldham@codesourcery.com>
9
10 * include/bits/c++config (_GLIBCPP_FULLY_COMPLIANT_HEADERS):
11 Define so library is compliant.
12
13 2001-02-15 Anthony Green <green@redhat.com>
14
15 * acinclude.m4 (glibcpp_toolexeclibdir): Fix test for cross
16 compilation.
17 * aclocal.m4: Regenerate.
18 * configure: Regenerate.
19
20 2001-02-15 Rodney Brown <RodneyBrown@mynd.com>
21
22 * acinclude.m4 (GLIBCPP_CHECK_MATH_DECL_1):
23 Include ieeefp.h for fpclass on UnixWare{2,7}.
24 * aclocal.m4: Regenerate.
25 * configure: Regenerate.
26 * mkcheck.in (size_command): Do without GNU-grep when using
27 size from binutils.
28
29 2001-02-15 Mark Mitchell <mark@codesourcery.com>
30
31 Remove old ABI support from libsupc++.
32 * libsupc++/cxxabi.h: Remove conditionally compiled code.
33 * libsupc++/exception_support.cc: Likewise.
34 * libsupc++/pure.cc: Likewise.
35 * libsupc++/tinfo.cc: Likewise.
36 * libsupc++/tinfo.h: Likewise.
37 * libsupc++/tinfo2.cc: Likewise.
38 * libsupc++/typeinfo: Likewise.
39 * libsupc++/vec.cc: Likewise.
40
41 2001-02-15 Benjamin Kosnik <bkoz@redhat.com>
42
43 Add support for -fno-exceptions.
44 * include/bits/exception_support.h: Remove.
45 * include/bits/basic_string.h: Remove exception_support.
46 (string::_M_check): Replace __OUTOFRANGE with __throw_out_of_range.
47 (string::at): Same.
48 (string::substr): Same.
49 * include/bits/basic_string.tcc (string::reserve): Replace
50 __LENGTHERROR with __throw_length_error.
51 (string::_S_create): Same.
52 (string::resize): Same.
53 (string::_M_replace): Same.
54 (string::replace): Same.
55 (string::copy): Replace __OUTOFRANGE with __throw_out_of_range.
56 (string::compare): Same.
57 * include/bits/stl_vector.h: Remove exception_support.
58 * src/Makefile.am (base_headers): Remove here.
59 * src/Makefile.in: Regenerate.
60
61 * include/bits/stl_range_errors.h: Remove.
62 * include/bits/stl_deque.h: Use __throw_range_error.
63 * include/bits/std_deque.h: Include functexcept.h.
64 * include/bits/std_vector.h: Same.
65 * src/Makefile.am (base_headers): Remove here.
66 * src/Makefile.in: Regenerate.
67 * include/ext/stl_bvector.h (class __BVECTOR): Use __throw_range_error.
68 * include/ext/bvector: Remove stl_range_errors.h
69
70 * include/bits/c++config (_GLIBCPP_USE_EXCEPTIONS): Remove.
71
72 * include/bits/functexcept.h: New file.
73 * src/functexcept.cc: New file. Definitions for function-based
74 exception routines.
75 * src/Makefile.am (sources): Add functexcept.cc.
76 * src/Makefile.in: Regenerate.
77
78 * include/bits/stl_config.h (__STL_USE_EXCEPTIONS): Wrap with
79 __EXCEPTIONS.
80
81 * include/bits/localefwd.h: Include functexcept.h.
82 * include/bits/std_iosfwd.h: Same.
83
84 * include/bits/basic_ios.h: Use __throw_ios_failure instead of
85 throw basic_ios::failure.
86 * include/bits/fstream.tcc (filebuf::_M_allocate_buffers):
87 Use __throw_exception_again.
88 (filebuf::_M_filebuf_init): Same.
89 * include/bits/streambuf.tcc (__copy_streambufs): Same.
90 * include/bits/ostream.tcc (ostream::operator<<): Same.
91 * include/bits/istream.tcc (istream::operator>>): Same.
92 * include/bits/basic_string.tcc (string::_M_mutate): Same.
93 (string::_S_construct): Same.
94 (string::_M_clone): Same.
95 * include/bits/locale_facets.tcc (use_facet(const locale&)): Use
96 __throw_bad_cast.
97 (num_put<_CharT, _OutIter>::do_put): Use __throw_exception_again.
98 * src/localename.cc (locale::_Imp::_Imp(const _Impl&, size_t): Use
99 __throw_exception_again.
100 (locale::_Imp::_Imp(string, size_t): Same.
101 (locale::_Imp::_M_replace_facet): Use __throw_runtime_error.
102 * src/locale.cc (locale::_M_coalesce): Use __throw_exception_again.
103 (locale::locale(const char*)): Use __throw_runtime_error.
104 (locale::classic): Use __throw_exception_again.
105 (locale::_S_normalize_category): Use __throw_runtime_error.
106
107 * src/stdexcept.cc: Remove cruft.
108
109 * libsupc++/exception_defines.h: New file.
110 * libsupc++/new_opnt.cc: Include exception_defines.h.
111 * libsupc++/vec.cc: Same.
112 (__cxa_vec_new2): Use __throw_exception_again.
113 (__cxa_vec_new3): Same.
114 (__cxa_vec_ctor): Same.
115 (__cxa_vec_delete3): Same.
116 (__cxa_vec_cctor): Same.
117 (__cxa_vec_delete2): Same.
118 (__cxa_vec_dtor): Same.
119 * libsupc++/exception_support.cc: Include exception_defines.h. Only
120 compile exception-handling bits if __EXCEPTIONS is defined.
121 Remove old ABI support.
122 * libsupc++/new_op.cc (new): Include exception_defines.h. Use
123 std::__throw_bad_alloc() instead of throw bad_alloc.
124 * libsupc++/Makefile.am: Add exception_defines.h.
125 * libsupc++/Makefile.in: Reformat.
126 * libsupc++/*: Format.
127
128 2001-02-15 Phil Edwards <pme@sources.redhat.com>
129
130 * docs/html/configopts.html: Minor updates and typo fixes.
131 * docs/html/faq/index.html: Updates of the "not really bugs" list.
132 * docs/html/faq/index.txt: Regenerated.
133
134 2001-02-15 Gabriel Dos Reis <gdr@codesourcery.com>
135
136 * testsuite/lib/libstdc++.exp: Lift, temporarily, out of
137 dejagnu/dg.exp. Adapt to log options used to run testcases.
138
139 2001-02-13 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
140
141 * testsuite/lib/libstdc++.exp(dg-test): Lift temporarily from
142 dejagnu/dg.exp.
143
144 2001-02-13 Dirk Mueller <dmuell@gmx.net>
145 Phil Edwards <pme@sources.redhat.com>
146
147 * include/backward/function.h: Do not use rel_ops for older
148 headers either.
149 * include/backward/pair.h: Likewise.
150
151 2001-02-12 Mark Mitchell <mark@codesourcery.com>
152
153 * src/locale.cc: Remove bogus locale::id definitions.
154
155 2001-02-11 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
156
157 * include/bits/std_valarray.h: #undef _DEFINE_LOGICAL_OPERATOR,
158 not _DEFINE_VALARRAY_OPERATOR which is not existent.
159
160 * include/bits/valarray_meta.h (_RefFunClos<>_RefRunClos): Fix
161 thinko in member initialisation.
162
163 2001-02-11 Gabriel Dos Reis <gdr@codesourcery.com>
164
165 * include/bits/std_valarray.h(valarray<>::shift): Avoid
166 comparaison between signed and unsigned integer types.
167 (valarray<>::cshift): Reformat.
168
169 2001-02-11 Alexandre Oliva <aoliva@redhat.com>
170
171 * src/gen-num-limits.cc: Use sigsetjmp and siglongjmp if available.
172 * mknumeric_limits: Compile it with -DHAVE_CONFIG_H.
173 * configure.in: Test for sigsetjmp.
174 * configure, config.h.in: Rebuilt.
175
176 2001-02-11 Gabriel Dos Reis <gdr@codesourcery.com>
177
178 * src/valarray-inst.cc (gslice::_Indexer::_Indexer): Don't flip
179 lengths and strides.
180 (__gslice_to_index): Document.
181
182 2001-02-11 Gabriel Dos Reis <gdr@codesourcery.com>
183
184 * include/bits/char_traits.h char_traits<char>::int_type: Change
185 to `int' to match 21.1.3.1/2.
186
187 * testsuite/21_strings/char_traits-int_type.C: New test.
188
189 2001-02-10 Gabriel Dos Reis <gdr@codesourcery.com>
190
191 * testsuite/Makefile.am: New file.
192
193 2001-02-09 Nathan Sidwell <nathan@codesourcery.com>
194
195 * include/c_shadow/bits/std_cstdlib.h (lldiv_t): Fix typo.
196
197 2001-02-08 Loren J. Rittle <ljrittle@acm.org>
198
199 * src/locale-inst.cc (fill_n): Instantiate with size_t arguments.
200
201 2001-02-08 David Edelsohn <edelsohn@gnu.org>
202
203 * configure.target (aix4*): Remove extra set of brackets.
204
205 2001-02-07 Benjamin Kosnik <bkoz@redhat.com>
206
207 Clean up stdexcept.
208 * include/bits/stringfwd.h: New file.
209 * include/bits/stl_string_fwd.h: Remove.
210 * include/bits/localefwd.h: Remove declaration for allocator.
211 * include/bits/std_iosfwd: Same.
212 * include/bits/std_string.h: Include it.
213 * include/bits/std_ios.h: Remove include.
214 * include/bits/basic_string.h: Tweak.
215 * libsupc++/new: Format.
216 * src/Makefile.am (base_headers): Add stringfwd.h, remove
217 stl_string_fwd.h
218 * src/Makefile.in: Regenerate.
219 * include/bits/std_stdexcept.h: Rewrite.
220 * src/stdexcept.cc: Same.
221
222 2001-02-06 Benjamin Kosnik <bkoz@redhat.com>
223
224 * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Deal with library
225 install locations too.
226 * aclocal.m4: Regenerate.
227 * configure.in: Remove USE_LIBDIR.
228 * configure: Regenerate.
229 * src/Makefile.am (toolexecdir): Simplify, use
230 glibcpp_toolexecdir, glibcpp_toolexeclibdir.
231 * src/Makefile.in: Regenerate.
232 * libsupc++/Makefile.am: Same.
233 * libsupc++/Makefile.in: Regenerate.
234
235 * src/Makefile.am: Just remove special rules for locale-inst.cc and
236 misc-inst.cc as no longer necessary.
237
238 Follow C++STYLE for naming non-static functions.
239 * include/bits/ostream.tcc (_S_pad_char): Not static, rename to
240 __pad_char.
241 * include/bits/streambuf.tcc: Same.
242 * include/bits/ostream.tcc: Same.
243 * include/bits/istream.tcc: Same.
244 * include/bits/locale_facets.tcc (_S_pad_numeric): To __pad_numeric.
245 (_S_output_float): To __output_float.
246 * include/bits/std_streambuf.h (_S_copy_streambufs): To
247 __copy_streambufs.
248 * include/bits/locale_facets.tcc (_S_build_float_format): To
249 __build_float_format.
250 (_S_format): To __output_integer.
251 (_S_fill): To __pad.
252 * src/locale.cc: Same.
253 * src/misc-inst.cc: Fix formatting. Fix signature for wchar_t. Correct
254 names.
255 * include/bits/locale_facets.tcc (_S_group_digits): To
256 __group_digits.
257 * src/locale-inst.cc: Fixup names. Add use_facet instantiations
258 for collate, numpunct.
259
260 2001-02-06 Phil Edwards <pme@sources.redhat.com>
261
262 * docs/html/configopts.html: Fix HTML markup.
263 * docs/html/install.html: Bring up to date.
264 * docs/html/17_intro/C++STYLE: Add global variable conventions.
265 * docs/html/21_strings/howto.html: More notes.
266 * docs/html/22_locale/howto.html: Fix HTML markup.
267 * docs/html/27_io/howto.html: More notes.
268 * docs/html/27_io/binary_iostreams_kanze.txt: New file.
269 * docs/html/27_io/binary_iostreams_kuehl.txt: New file.
270
271 2001-02-06 Jeffrey Oldham <oldham@codesourcery.com>
272
273 * src/misc-inst.cc (_S_pad_char): Modify declaration's parameters
274 to match header files.
275 (_S_output_float): Likewise.
276 (_S_copy_streambufs): Likewise.
277
278 2001-02-06 Hyman Rosen <Hyman.Rosen@kbcfp.com>
279 Phil Edwards <pme@sources.redhat.com>
280
281 * include/bits/std_istream.h (op>> signed,unsigned char): Must
282 use reinterpret_cast, not static_cast.
283
284 2001-02-06 Benjamin Kosnik <bkoz@redhat.com>
285
286 * acinclude.m4 (gxx_include_dir): Quote, fix regression.
287 * aclocal.m4: Regenerate.
288 * configure: Regenerate.
289
290 2001-02-05 Benjamin Kosnik <bkoz@redhat.com>
291
292 * include/bits/locale_facets.h (class moneypunct): Fix typos.
293 * libsupc++/pure.cc: Revert.
294
295 2001-02-05 Benjamin Kosnik <bkoz@redhat.com>
296
297 * acinclude.m4 (GLIBCPP_CHECK_MATH_DECL_1): New macro.
298 (GLIBCPP_CHECK_MATH_DECL_2): New macro.
299 (GLIBCPP_CHECK_MATH_DECL_3): New macro.
300 (GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_1): Use it, check for _* too.
301 (GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_2): Same.
302 (GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_3): Same.
303 (GLIBCPP_CHECK_MATH_SUPPORT): Remove explicit checks for _* versions.
304 * aclocal.m4: Regenerate.
305 * configure: Regenerate.
306
307 2001-02-05 Mark Mitchell <mark@codesourcery.com>
308
309 * include/bits/locale_facets.tcc: Remove `static' keyword on
310 function definitions.
311 * include/bits/std_streambuf.h: Likewise.
312 * src/Makefile.am: Remove use of -fimplicit-templates.
313 * src/Makefile.in: Regenerated.
314 * src/locale-inst.cc: Explicitly instantiate more functions.
315 * src/misc-inst.cc: Likewise.
316 * src/string-inst.cc: Likewise.
317
318 2001-02-05 Benjamin Kosnik <bkoz@redhat.com>
319
320 * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): New
321 macro. Consolidate all the bits to do with where includes might be
322 installed.
323 * aclocal.m4: Regenerate.
324 * configure.in: Use it.
325 * configure: Regenerate.
326 * src/Makefile.am (targetincludep): Use simplified rules.
327 (targetincludep): Rename gxx_target_include_dir.
328 (myincludep): Rename gxx_include_dir.
329 * src/Makefile.in: Regenerate.
330 * libsupc++/Makefile.am: Use simplified rules.
331 * libsupc++/Makefile.in: Regenerate.
332
333 2001-02-05 Benjamin Kosnik <bkoz@redhat.com>
334
335 * include/c_std/bits/std_cerrno.h: Correct date format for copyright.
336 * include/c_std/bits/std_cctype.h: Same.
337 * include/c_std/bits/std_cassert.h: Same.
338 * include/c_std/bits/std_cstdarg.h: Same.
339 * include/c_std/bits/std_cstddef.h: Same.
340
341 * include/c_std/bits/std_cstdio.h: Undefine all names brought into
342 namespace std.
343 * include/c_std/bits/std_ctime.h: Same.
344 * include/c_std/bits/std_clocale.h: Same.
345 * include/c_std/bits/std_cmath.h: Same.
346 * include/c_std/bits/std_csetjmp.h: Same.
347 * include/c_std/bits/std_csignal.h: Same.
348 * include/c_std/bits/std_cstring.h: Same.
349 * include/c_std/bits/std_cstdlib.h: Same.
350 * include/c_std/bits/std_cwchar.h: Same.
351
352 2001-02-05 Phil Edwards <pme@sources.redhat.com>
353
354 * testsuite/27_io/ios_base_members_static.cc: Swap order of tests.
355
356 2001-02-05 Mark Mitchell <mark@codesourcery.com>
357
358 * src/string-inst.cc (string::_M_replace): Explicitly instantiate.
359 (string::_S_construct): Likewise.
360
361 2001-02-05 Gabriel Dos Reis <gdr@codesourcery.com>
362
363 * testsuite/config/default.exp: New file.
364 * testsuite/config: New directory.
365
366 2001-02-04 Mark Mitchell <mark@codesourcery.com>
367
368 * libsupc++/typeinfo (__GXX_MERGED_TYPEINFO_NAMES): New macro.
369 * libsupc++/tinfo.cc (std::typeinfo::operator==): Use strcmp
370 whenever !__GXX_MERGED_TYPEINFO_NAMES.
371 * libsupc++/tinfo2.cc (std::typeinfo::before): Likewise.
372
373 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
374 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
375
376 * Makefile.am (mkinstalldirs): Set.
377 * src/Makefile.am (mkinstalldirs): Set.
378 * libmath/Makefile.am (mkinstalldirs): Set.
379 * libsup++/Makefile.am (mkinstalldirs): Set.
380 * libio/Makefile.am (mkinstalldirs): Set.
381 * */Makefile.in: Regenerate.
382
383 2001-02-03 Benjamin Kosnik <bkoz@redhat.com>
384
385 * include/bits/stl_threads.h (struct _STL_mutex_lock): Same.
386 * include/bits/localefwd.h: More initialization cleanups.
387
388 2001-02-03 Jeffrey A Law <law@cygnus.com>
389
390 * include/bits/ios_base.h (_S_ios_fmtflags_end): Initialize
391 correctly targets with 16bit ints.
392 (_S_ios_openmode_end): Similarly.
393 (_S_ios_iostate_end): Similarly.
394 (_S_ios_Seekdir_end): Similarly.
395
396 2001-02-02 Phil Edwards <pme@sources.redhat.com>
397
398 * mkcheck.in: Also limit virtual memory size, for mmap-based mallocs.
399
400 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
401
402 * configure.in (toplevel_srcdir, auxdir): Set.
403 * acinclude.m4 (glibcpp_basedir): Set based on auxdir.
404 * aclocal.m4, configure, Makefile.in: Rebuilt.
405 * libio/Makefile.in, math/Makefile.in, src/Makefile.in: Likewise.
406 * libsupc++-v3/Makefile.am (INCLUDES): Use toplevel_srcdir.
407 * libsupc++-v3/Makefile.in: Rebuilt.
408 * libsupc++-v3/configure.in, libsupc++-v3/configure: Removed.
409 * libsupc++-v3/aclocal.m4, libsupc++-v3/config.h.in: Likewise.
410
411 2001-01-30 Benjamin Kosnik <bkoz@redhat.com>
412
413 * config/c_locale_generic.cc: Remove langinfo include.
414
415 2001-01-29 Benjamin Kosnik <bkoz@redhat.com>
416
417 Preliminary named locales.
418 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): New macro.
419 * aclocal.m4: Regenerate.
420 * configure.in: Use it.
421 * configure: Regerate.
422 * src/Makefile.am (sources): Add c++locale.cc.
423 (build_headers): Add c++locale.h.
424 * src/Makefile.in: Regenerate.
425 * config/c_locale_gnu.h: New file.
426 * config/c_locale_gnu.cc: New file. Non-inline member functions
427 for named locales, gnu-specific.
428 * config/c_locale_generic.h: New file.
429 * config/c_locale_generic.cc: New file. Non-inline member
430 functions for named locales, generic version.
431 * docs/html/configopts.html: Add documentation on new options.
432
433 * include/bits/locale_facets.h (class _Messages): Remove.
434 (class _Moneypunct): Remove.
435 * src/locale-inst.cc: Remove.
436
437 * include/bits/locale_facets.h (class _Collate): Remove.
438 * src/locale-inst.cc (std): Remove.
439 * src/locale.cc: And here.
440
441 * include/bits/localefwd.h (locale::_M_coalesce): New
442 function. Correctly put together multi-name locales.
443 (_Impl(const _Impl&, category, size_t)): Remove.
444
445 * include/bits/localefwd.h (locale::_Impl): Remove _M_construct_*
446 member functions.
447 (_M_normalize_category_names): Remove.
448 (_M_replace_categories): Fix.
449
450 * src/localename.cc (locale::_Impl::_M_construct_collate): Remove.
451 (locale::_Impl::_M_construct_ctype): Remove.
452 (locale::_Impl::_M_construct_monetary): Remove.
453 (locale::_Impl::_M_construct_numeric): Remove.
454 (locale::_Impl::_M_construct_time): Remove.
455 (locale::_Impl::_M_construct_messages): Remove.
456
457 * include/bits/locale_facets.h (_Bad_use_facet): Remove.
458 (_Use_facet_failure_handle): Remove.
459 * src/locale.cc: Remove definitions.
460 * src/locale-inst.cc: And here.
461
462 * testsuite/22_locale/ctor_copy_dtor.cc (test01): Fixup. Add tests.
463
464 * src/localename.cc (locale::facet::_S_create_c_locale): Properly
465 create and error-check underlying locale object.
466 (locale::facet::_S_destroy_c_locale): Add, take care of properly
467 tearing down underlying locale object.
468 * include/bits/localefwd.h (locale::facet): Declare.
469 * testsuite/22_locale/members.cc: Don't test "fr_FR" locale for
470 correctness, as glibc apparently has incorrect info in it. Test
471 with it when it works again.....
472
473 * include/bits/localefwd.h (locale::_Impl::__vec_string):
474 Remove. Number of categories is fixed at six, so just simplify and
475 make this an array of strings.
476 (locale::_Impl::_M_has_name): Remove.
477 (locale::_Impl::_M_name): Remove.
478 (locale::_Impl::_M_category_names): Turns into...
479 (locale::_Impl::_M_names): ...this.
480 (locale::_Impl::_M_has_same_name()): New function.
481 * src/localename.cc (locale::_Impl::~_Impl()): Remove here.
482 (locale::_Impl::_Impl(size_t __refs, string __str)): Simplify
483 signature.
484 * src/locale.cc (locale::name()): Construct mangled name
485 accurately reflecting combined locale categories.
486
487 * src/locale.cc (locale::classic()): Don't initialize here.
488 * src/localename.cc (locale::_Impl::_Impl(size_t __num, size_t
489 __refs, bool __has_name, string __str): Do it here.
490
491 * include/bits/localefwd.h: _S_categories_num to
492 _S_num_categories. _S_facets_num to _S_num_facets.
493 (locale::id::id()): Explicitly set _M_index to zero.
494 * src/locale.cc: Same.
495
496 * src/locale.cc: (locale::locale(const char*)): Construct named
497 locales uniquely.
498
499 * src/locale.cc: Remove numpunct_byname ctors.
500 * testsuite/22_locale/numpunct_byname.cc: New file.
501 * testsuite/22_locale/numpunct.cc: New file.
502
503 * include/bits/localefwd.h (class locale): Change data members to
504 protected, from private.
505 (_Impl::_M_get_c_locale): Add member function.
506 (locale::facet::_M_get_global_impl()): Add member function.
507 * include/bits/locale_facets.h (numpunct::_M_init): Change to take
508 a __c_locale pointer.
509 (numpunct::numpunct( __c_locale*, size_t)): Add additonal ctor for
510 named locales.
511 * testsuite/22_locale/members.cc: New file, test name and combine.
512
513 * include/bits/locale_facets.h (class numpunct): Remove class
514 _Punct and _Numpunct. Rewrite class numpunct to be correct for
515 named locales.
516 * include/bits/localefwd.h (locale::_Imp::_M_c_locale): Add.
517 * src/localename.cc (_Impl::~_Impl()): Call __frelocale.
518 (_Imp::_Impl(size_t, size_t, bool, string)) Initialize _M_c_locale.
519 * src/locale-inst.cc: Remove _Numpunct, _Punct instantiations.
520 * testsuite/22_locale/numpunct_char_members.cc: New file.
521
522 2001-01-28 Gabriel Dos Reis <gdr@codesourcery.com>
523
524 * testsuite/README: Add more comment.
525 * testsuite/lib/libstdc++.exp: Tweak comment.
526
527 2001-01-26 Benjamin Kosnik <bkoz@kredhat.com>
528
529 * libsupc++/pure.cc (writestr): Just use cstdio and std::fputs.
530
531 2001-01-25 Loren J. Rittle <ljrittle@acm.org>
532
533 * testsuite/21_strings/inserters_extractors.cc: Remove
534 explicit reference to 'testsuite/'.
535
536 2001-01-25 Richard Henderson <rth@redhat.com>
537
538 * config/cpu/alpha/bits/atomicity.h: Remove tricky .subsetion
539 bits. Fixes Tru64 build issues.
540
541 2001-01-25 Michael Sokolov <msokolov@ivan.Harhan.ORG>
542
543 * acinclude.m4 (GLIBCPP_CHECK_GNU_MAKE): Bourne shell portability bug
544 (use ${MAKE-make}, not ${MAKE:-make}).
545 * aclocal.m4, configure: Regenerate.
546
547 2001-01-25 Mark Mitchell <mark@codesourcery.com>
548
549 * src/ios.cc: Remove accidental inclusion of <stdio.h> in last
550 checkin.
551
552 * src/Makefile.am (sources): Add globals.cc.
553 * src/Makefile.in: Regenerated.
554 * src/globals.cc: New file.
555 * src/ios.cc (cin): Don't define here, just declare extern.
556 (cout): Likewise.
557 (cerr): Likewise.
558 (clog): Likewise.
559 (wcin): Likewise.
560 (wcout): Likewise.
561 (wcerr): Likewise.
562 (wclog): Likewise.
563
564 2001-01-25 Phil Edwards <pme@sources.redhat.com>
565
566 * include/bits/std_iterator.h: Do not include stl_relops.h.
567 * include/bits/std_numeric.h: Ditto.
568 * include/bits/stl_algobase.h: Ditto.
569 * include/bits/stl_relops.h: Add comment warning about problems.
570
571 2001-01-25 Gabriel Dos Reis <gdr@codesourcery.com>
572
573 * testsuite/27_io/*.cc: Remove explicit reference to 'testsuite/'
574 in testcases. Prepare for the DejaGnu based framework.
575 * mkcheck.in: Adjust call to tests_flags. Don't mmkdir testsuite
576 directory -- it is now mkcheck working directory.
577 * tests_flags.in: Remove reference to $(top_srcdir). Use
578 ${SRC_DIR} instead.
579 * Makefile.am (check, check-install): Change mkcheck invocation
580 logic.
581 * Makefile.in: Regenerate.
582
583 2001-01-24 Mark Mitchell <mark@codesourcery.com>
584
585 * config/os/aix/bits/atomicity.h (__compare_and_swap): Remove.
586 (__always_swap): Likewise.
587
588 2001-01-23 Chris Demetriou <cgd@broadcom.com>
589
590 * libsupc++/exception_support.cc (__terminate_func): Remove
591 declaration.
592 (__terminate_func_ptr): New typedef.
593 (__terminate, __terminate_set_func): New extern function
594 prototypes.
595 (std::terminate): Use __terminate function.
596 (std::set_terminate): Use __terminate_set_func function.
597
598 2001-01-23 Benjamin Kosnik <bkoz@redhat.com>
599
600 * configure.target: Just use os_include_dir always.
601 * configure.in: Remove calls to GLIBCPP_CHECK_CTYPE_SUPPORT.
602 Link atomicity files and ctype files here.
603 * configure: Regenerate.
604 * acinclude.m4 (GLIBCPP_CHECK_CTYPE_SUPPORT): Remove.
605 (GLIBCPP_ENABLE_ATOMICITY): Remove.
606 * aclocal.m4: Regenerate.
607
608 2001-01-23 Chris Demetriou <cgd@broadcom.com>
609
610 * configure.in: Place definition of MULTISUBDIR in
611 libsupc++/Makefile as is done for src/Makefile.
612 * configure: Regenerate.
613
614 2001-01-23 Phil Edwards <pme@sources.redhat.com>
615
616 * acinclude.m4: Cosmetic changes only.
617 * aclocal.m4: Regenerated.
618 * configure: Regenerated.
619 * configure.target: Update documented list of changed variables.
620 * docs/html/install.html: Fix typo.
621 * docs/html/20_util/howto.html: More notes on auto_ptr.
622 * docs/html/27_io/howto.html: More notes on streabufs.
623 * docs/html/faq/index.html: Add rel_ops problem and mention the
624 DEC as(1) .subsection difficulty.
625 * docs/html/faq/index.txt: Regenerated.
626
627 2001-01-23 Mark Mitchell <mark@codesourcery.com>
628
629 * ainclude.m4 (GLIBCPP_CHEC_MATH_DECLS_AND_LINKAGE_1): New macro.
630 (GLIBCPP_CHECK_MATH_SUPPORT): Use it.
631 (GLIBCPP_CHECK_TYPE_SUPPORT): Don't autoconf ctype information if
632 its already provided in config.target.
633 * aclocal.m4: Regenerated.
634 * configure: Likewise.
635 * configure.target: Set ctype_include_dir for lots of systems.
636 * libsupc++/Makefile.am: Explicitly include --tag disable-shared.
637 * libsupc++/Makefile.in: Regenerated.
638
639 2001-01-23 Gabriel Dos Reis <gdr@codesourcery.com>
640
641 * testsuite/lib/libstdc++.exp: Improve. Add support for @xxx#
642 keyword capability.
643
644 * testsuite/README: Add comment.
645
646 2001-01-21 Phil Edwards <pme@sources.redhat.com>
647
648 * docs/html/configopts.html: Update for current status. Fix HTML.
649 * docs/html/install.html: Update for current status.
650
651 2001-01-20 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
652
653 * testsuite/libstdc++.tests/tests.exp: New file.
654 * testsuite/lib/libstdc++.exp: Itou.
655 * testsuite/README: Itou.
656
657 2001-01-20 Gabriel Dos Reis <gdr@codesourcery.com>
658
659 * tests_flags.in: Just output the bare minimum to run tests.
660 Let's the caller do its own arrangement.
661
662 * mkcheck.in: Rename INC_PATH to INCLUDES. Adjust flags
663 computations.
664
665 2001-01-19 Gabriel Dos Reis <gdr@codesourcery.com>
666
667 * testsuite/17_intro: Prepare testcases for new style DejaGnu
668 framework.
669
670 2001-01-18 Gabriel Dos Reis <gdr@codesourcery.com>
671
672 * testsuite/libstdc++.tests, testsuite/lib: New directories.
673
674 2001-01-17 Loren J. Rittle <ljrittle@acm.org>
675
676 * mkcheck.in: Construct file names that match $objdir structure.
677 * testsuite/27_io/filebuf_members-1.txt: New file.
678 * testsuite/27_io/ifstream_members-1.txt: New file.
679 * testsuite/27_io/ostream_inserter_char-1.txt: New file.
680
681 * testsuite/27_io/ios_base_members_static.cc (test02): Add test.
682 * testsuite/27_io/ios_base_members_static-1.tst: Add expected output.
683
684 2001-01-17 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
685
686 * testsuite/27_io/istream_sentry.cc (test02): Fix.
687
688 2001-01-17 Benjamin Kosnik <bkoz@redhat.com>
689
690 libstdc++/1605
691 * include/bits/ios_base.h (ios_base::failure): Tighten up throw specs.
692 * src/ios.cc (ios_base::failure): Make definitions match.
693 * libsupc++/typeinfo (class bad_typeid): Add throw specs.
694 (class bad_cast): Same.
695 * libsupc++/exception (class exception): Add throw specs.
696 * libsupc++/exception_support.cc (set_terminate): Add throw specs.
697 (set_unexpected): Same.
698 (uncaught_exception): Same.
699 (what): Same.
700
701 * docs/html/17_intro/C++STYLE (classname): Fix.
702
703 2001-01-16 Mark Mitchell <mark@codesourcery.com>
704
705 * src/gen-num-limits.cc (INSTANTIATIONS): New macro.
706 Use it do explicitly instantiate predicate<T> and value<T> for
707 all the builtin Ts.
708
709 2001-01-16 Nathan Sidwell <nathan@codesourcery.com>
710
711 * libsupc++/exception_support.cc (__cp_pop_exception): Fix
712 uninitialized thinko in last change.
713
714 2001-01-16 Mark Mitchell <mark@codesourcery.com>
715
716 * libsupc++/exception_support.cc (__cp_pop_exception): Change
717 prototype.
718
719 2001-01-16 Benjamin Kosnik <bkoz@redhat.com>
720
721 * docs/html/17_intro/C++STYLE (classname): Add more existing
722 and stylish patterns.
723
724 libstdc++/944
725 * include/bits/istream.tcc (istream::sentry::sentry()): Set
726 failbit if the state of the stream is not good.
727 * testsuite/27_io/istream_sentry.cc (test02): Add test.
728 * testsuite/27_io/istream_manip.cc (test01): Modify.
729
730 libstdc++/1019
731 reported by Paolo Carlini <pcarlini@unitus.it>
732 * include/bits/istream.tcc (operator>>(istream&, string&)): Fix.
733 * testsuite/21_strings/inserters_extractors.cc (test08): Add test.
734
735 libstdc++/1057
736 * include/bits/std_streambuf.h (setp): Set _M_buf_size correctly.
737 * include/bits/streambuf.tcc (xsputn): Remove outside if clause.
738 (xsgetn): Same. Simplify.
739 * testsuite/27_io/streambuf.cc (test04): Add testcases.
740
741 reported by Larry Evans <jcampbell3@prodigy.net>
742 * include/bits/streambuf.tcc (streambuf::xsputn): Just check for
743 equality with eof on returned value from overflow.
744
745 2001-01-14 Andreas Jaeger <aj@suse.de>
746
747 * libio/libio.h: Add test for glibc 2.0.
748
749 2001-01-12 Benjamin Kosnik <bkoz@redhat.com>
750
751 * config/os/djgpp/bits/*: Fix dates.
752
753 * include/bits/basic_string.h (_S_find(const _CharT* __beg, const
754 _CharT* __end, _CharT __c): Remove.
755 * include/bits/basic_string.tcc: Substitute traits::find for _S_find.
756 * include/bits/char_traits.h: Tweak.
757
758 2001-01-12 Laurynas Biveinis <lauras@softhome.net>
759
760 * acinclude.m4 (GLIBCPP_CHECK_CTYPE_SUPPORT): check for DJGPP <ctype.h>
761 (LIB_AC_PROG_CXX): replace [/\\] with [\\/] to work around older
762 bash bug.
763 * aclocal.m4: regenerated.
764 * configure.target: set os_include_dir to config/os/djgpp under DJGPP.
765 * configure: regenerated.
766 * config/os/djgpp, config/os/djgpp/bits: new directories.
767 * config/os/djgpp/bits/ctype_base.h,
768 config/os/djgpp/bits/ctype_inline.h,
769 config/os/djgpp/bits/ctype_noninline.h,
770 config/os/djgpp/bits/os_defines.h: new files.
771
772 2001-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
773
774 * include/c_std/bits/std_cstdio.h: Undef printf.
775
776 2001-01-10 Benjamin Kosnik <bkoz@redhat.com>
777
778 * src/ios.cc: Fix typo: change cout->wcout.
779
780 * src/Makefile.am (targetincludep): Fix for version-specific-libs.
781 * src/Makefile.in: Regenerate.
782
783 2001-01-10 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
784
785 * include/bits/std_complex.h: Fix a typo.
786
787 2001-01-09 Benjamin Kosnik <bkoz@redhat.com>
788 <kainz@ilm.com>
789
790 Fixes for libstdc++/1576
791 * src/stdstreams.cc: Initialize with NULL filebuf. Delete
792 file, move contents into....
793 * src/ios.cc: ...Here. Put defines for iostreams objects and
794 initialization routines into one file to simplify DSO interaction.
795 * include/bits/std_iostream.h: Touch.
796 * include/bits/ios_base.h (_S_synched_with_stdio): Make static.
797 * src/Makefile.am (sources): Remove stdstreams.cc.
798 * src/Makefile.in: Regenerate.
799
800 2001-01-10 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
801
802 * tests_flags.in (check_directory): Fix typo.
803
804 2001-01-09 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
805
806 * include/bits/std_complex.h: Fix a typo.
807
808 2001-01-09 Loren J. Rittle <ljrittle@acm.org>
809
810 * config/os/bsd/freebsd/bits/ctype_inline.h (is): (Make right
811 code path:) Remove magic constants and restructure to handle
812 ctype.h bit mask layout changes more gracefully. (Make fast
813 code path:) Use __maskrune (), if available.
814 (is): Remove special case for digit and xdigit masks.
815
816 2001-01-09 Robert Lipe <robertlipe@usa.net>
817
818 * include/c_std/bits/std_ctime.h: Undefine difftime.
819
820 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
821
822 * src/gen-num-limits.cc (signal_adapter): New template function.
823 (signal_handler): Use it, instead of signal.
824 (traps<T>): Likewise. Install SIGTRAP handler too. Don't
825 require both tests to trap to set trap_flag.
826
827 2001-01-08 Benjamin Kosnik <bkoz@redhat.com>
828
829 * include/bits/fpos.h (fpos:::fpos(streamoff __pos)): Explicitly
830 initialize mbstate_t member, name offset data members *off, not pos.
831 * include/bits/fstream.tcc (filebuf::filebuf): Same.
832
833 2001-01-08 Benjamin Kosnik <bkoz@redhat.com>
834
835 reported by Chris G. Demetriou <cgd@sibyte.com>
836 * configure.in: Change -linux-* to -linux*.
837 * configure: Regenerate.
838
839 2001-01-05 Benjamin Kosnik <bkoz@redhat.com>
840
841 Fix 27_io/filebuf_members.cc
842 * src/localename.cc (locale::_Impl::_Impl(const _Impl& __imp,
843 const string& __name, category __cat, size_t __refs): Set
844 _M_has_name with _M_name.
845 * include/bits/localefwd.h (locale::operator!=): Protect member
846 function call with this->.
847 * src/locale.cc (locale::operator==): Make fast checks first.
848 * include/bits/basic_ios.tcc (basic_ios::init): Simplify.
849
850 * include/bits/ios_base.h (_M_synced_with_stdio): Add data member
851 to ios_base::Init.
852 * src/ios.cc (ios_base::Init::Init): Initialize here.
853 (ios_base::sync_with_stdio): Set here.
854
855 2001-01-04 Loren J. Rittle <ljrittle@acm.org>
856
857 * config/c_io_stdio.cc (__basic_file<_CharT>::sys_open()): On
858 systems that support it, call dup() before fdopen().
859
860 2001-01-03 Benjamin Kosnik <bkoz@redhat.com>
861
862 * include/c_std/bits/std_cwctype.h: Include std_cwchar.h for wint_t.
863 * testsuite/17_intro/header_cwctype.cc (main): New file.
864
865 * src/Makefile.am (base_headers): Change.
866 * include/bits/std_string.h: And here.
867 * include/bits/string.tcc: Tweaks, move to...
868 * include/bits/basic_string.tcc: ...Here.
869 * src/string-inst.cc: Simplify, just instantiate the whole class,
870 not member-by-member.
871
872 2001-01-02 Benjamin Kosnik <bkoz@redhat.com>
873
874 * acinclude.m4 (GLIBCPP_ENABLD_CSTDIO): Add in default value.
875 * aclocal.m4: Regenerate.
876 * configure: Regenerate.
877
878 * include/bits/c++config (__GLIBCPP__): Bump version number.
879
880 * ChangeLog: Start new log for year 2001
881 * ChangeLog-2000: New file.
882
883 * docs/html/configopts.html: Make sure default values are current,
884 add commentary.
885
886 2001-01-01 Benjamin Kosnik <bkoz@fillmore.redhat.com>
887
888 * include/c_std/bits/std_cwchar.h: Same.
889 * testsuite/17_intro/header_cwchar.cc: Same.
890 * include/c_std/bits/std_ctime.h: Same.
891 * testsuite/17_intro/header_ctime.cc: Same.
892 * include/c_std/bits/std_cstdlib.h: Same.
893 Clean up undefs, make consistent with cwchar and cmath, etc.
894 * testsuite/17_intro/header_cstdlib.cc: Same.
895 * include/c_std/bits/std_cstdio.h: Same here.
896 * testsuite/17_intro/header_cstring.cc: Same.
897 * include/c_std/bits/std_cstring.h: Include std_cstddef.h for size_t.
898 * testsuite/17_intro/header_cstring.cc: New file. Check for
899 size_t in namespace std.
900
901 * include/c_std/bits/std_cwchar.h: Explicit checks for mbstate_t.
902 * acconfig.h (HAVE_MBSTATE_T): Add.
903 * config.h.in: Regenerate.
904 * acinclude.m4(GLIBCPP_CHECK_WCHAR_T_SUPPORT): Always test for
905 mbstate_t.
906 * aclocal.m4: Regenerate.
907 * configure: Regenerate.
908 * testsuite/17_intro/headers_c++.cc: New file.
909 * testsuite/17_intro/headers_c.cc: Small changes.
910
911 2001-01-01 David Billinghurst <David.Billinghurst@riotinto.com>
912
913 * tests_flags.in: Fix typo in usage.
914
915 * tests_flags.in: Set target specific LIBS for cygwin.