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