1 2001-03-09 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
3 * include/bits/istream.tcc ( basic_istream<_CharT, _Traits>&
4 operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)):
5 Use streamsize, not int_type.
7 2001-03-08 Benjamin Kosnik <bkoz@redhat.com>
9 * testsuite/27_io/streambuf.cc (test06): New test, disabled at the
12 2001-03-08 Andreas Schwab <schwab@suse.de>
14 * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Fix syntax in test
16 * aclocal.m4, configure: Regenerated.
18 2001-03-07 Benjamin Kosnik <bkoz@redhat.com>
20 * include/bits/std_iosfwd.h: Remove string forward decls here.
21 * include/bits/stringfwd.h: Add forward decls for char_traits
23 * config/c_io_libio.h (wstreamoff): Delete.
24 * config/c_io_stdio.h (wstreamoff): Same.
25 * include/bits/char_traits.h: Use streamoff not wstreamoff for
26 char_traits<wchar_t>::off_type.
27 Remove duplicate typedefs.
28 * include/bits/fpos.h: Define streampos/wstreampos here.
29 * testsuite/27_io/istream_seeks.cc (test04): Explicitly cast int
32 Changeup output files.
33 * testsuite/27_io/istream_unformatted.cc: Change output files.
34 * testsuite/27_io/istream_seeks-1.txt: Add.
35 * testsuite/27_io/istream_seeks-2.tst: Add.
36 * testsuite/27_io/istream_seeks-1.tst: Add.
37 * testsuite/27_io/istream_unformatted-2.tst: Delete.
38 * testsuite/27_io/istream_unformatted-3.tst: Delete.
39 * testsuite/27_io/istream_unformatted-3.txt: Delete.
41 2001-03-07 Alexandre Oliva <aoliva@redhat.com>
43 Add Irix 5.2, 6.3 support.
44 * config/os/irix/bits: Renamed to...
45 * config/os/irix/irix6.5/bits: this.
46 * config/os/irix/irix5.2/bits: New, copied from irix6.5/bits.
47 * config/os/irix/irix5.2/bits/ctype_base.h: Use _U, _L, _N,
48 _X, _S, _P, _C and _B instead of IRIX-6.5 _IS* macros.
49 * config/os/irix/irix5.2/bits/ctype_noninline.h
50 (ctype<char>::ctype): Initialize _M_table with __ctype.
51 * configure.target: Adjust.
53 2001-03-06 Benjamin Kosnik <bkoz@redhat.com>
56 * include/bits/istream.tcc (basic_istream<_CharT, _Traits>::
57 operator>>(__istream_type& (*__pf)(__istream_type&)): Don't use
59 (basic_istream<_CharT, _Traits>:: operator>>(__ios_type&
60 (*__pf)(__ios_type&)): Same.
61 (basic_istream<_CharT, _Traits>:: operator>>(ios_base&
62 (*__pf)(ios_base&))): Same.
63 * testsuite/27_io/istream_extractor_other.cc: Add tests.
64 * testsuite/27_io/istream_manip.cc (test01): Fix.
66 2001-03-06 Nathan Myers <ncm@cantrip.org>
67 Benjamin Kosnik <bkoz@redhat.com>
69 * include/c_std/bits/std_cerrno.h: Don't define errno in std::.
70 * testsuite/17_intro/header_cerrno.cc (test01): New file.
71 * testsuite/17_intro/header_cassert.cc (test01): New file.
72 * testsuite/17_intro/header_cstddef.cc (test01): New file.
73 * testsuite/17_intro/header_csetjmp.cc (test01): New file.
74 * testsuite/17_intro/header_cstdarg.cc (test01): New file.
76 2001-03-05 scott snyder <snyder@fnal.gov>
79 * include/c_std/bits/std_cmath.h: Move abs(long), div(long,long)
81 * include/c_std/bits/std_cstdlib.h: ... to here.
82 * testsuite/17_intro/header_cstdlib.cc: Add test.
84 2001-03-05 Stephen M. Webb <stephen.webb@cybersafe.com>
86 * libsupc++/vec.cc (__cxxa_vec_new2): Qualify size_t.
88 2001-03-05 Laurynas Biveinis <lauras@softhome.net>
90 * config/os/djgpp/ctype_base.h (ctype_base): fix __to_type
91 definition. Replace enum with static const variables.
93 * config/os/djgpp/ctype_inline.h (ctype<char>::is): remove
94 throw specification, fix typos, use <static_cast>.
95 (ctype<char>::scan_is): remove throw specification.
96 (ctype<char>::scan_not): likewise.
98 * config/os/djgpp/ctype_noninline.h (ctype<char>::ctype): fix typo.
99 (ctype<char>::do_toupper(char)): use <static_cast>.
100 (ctype<char>::do_toupper(char *, const char *)): likewise.
101 (ctype<char>::do_tolower(char)): likewise.
102 (ctype<char>::do_tolower(char *, const char *)): likewise.
104 2001-03-04 Phil Edwards <pme@sources.redhat.com>
106 http://gcc.gnu.org/ml/libstdc++/2001-03/msg00015.html
107 * include/backward/algo.h: Use std not __STD. Remove unneeded
108 macros and "never happens" code. Adjust to C++STYLE guidelines.
109 * include/backward/algobase.h: Likewise.
110 * include/backward/alloc.h: Likewise.
111 * include/backward/bvector.h: Likewise.
112 * include/backward/deque.h: Likewise.
113 * include/backward/function.h: Likewise.
114 * include/backward/hash_map.h: Likewise.
115 * include/backward/hash_set.h: Likewise.
116 * include/backward/hashtable.h: Likewise.
117 * include/backward/heap.h: Likewise.
118 * include/backward/iterator.h: Likewise.
119 * include/backward/list.h: Likewise.
120 * include/backward/map.h: Likewise.
121 * include/backward/multimap.h: Likewise.
122 * include/backward/multiset.h: Likewise.
123 * include/backward/pair.h: Likewise.
124 * include/backward/rope.h: Likewise.
125 * include/backward/set.h: Likewise.
126 * include/backward/slist.h: Likewise.
127 * include/backward/stack.h: Likewise.
128 * include/backward/strstream: Likewise.
129 * include/backward/tempbuf.h: Likewise.
130 * include/backward/tree.h: Likewise.
131 * include/backward/vector.h: Likewise.
132 * include/bits/basic_ios.h: Likewise.
133 * include/bits/basic_ios.tcc: Likewise.
134 * include/bits/basic_string.h: Likewise.
135 * include/bits/c++config: Likewise.
136 * include/bits/concept_checks.h: Likewise.
137 * include/bits/fpos.h: Likewise.
138 * include/bits/fstream.tcc: Likewise.
139 * include/bits/functexcept.h: Likewise.
140 * include/bits/ios_base.h: Likewise.
141 * include/bits/istream.tcc: Likewise.
142 * include/bits/mask_array.h: Likewise.
143 * include/bits/ostream.tcc: Likewise.
144 * include/bits/pthread_allocimpl.h: Likewise.
145 * include/bits/sbuf_iter.h: Likewise.
146 * include/bits/slice.h: Likewise.
147 * include/bits/slice_array.h: Likewise.
148 * include/bits/sstream.tcc: Likewise.
149 * include/bits/std_bitset.h: Likewise.
150 * include/bits/std_fstream.h: Likewise.
151 * include/bits/std_iomanip.h: Likewise.
152 * include/bits/std_ios.h: Likewise.
153 * include/bits/std_istream.h: Likewise.
154 * include/bits/std_iterator.h: Likewise.
155 * include/bits/std_memory.h: Likewise.
156 * include/bits/std_ostream.h: Likewise.
157 * include/bits/std_sstream.h: Likewise.
158 * include/bits/std_streambuf.h: Likewise.
159 * include/bits/std_string.h: Likewise.
160 * include/bits/std_valarray.h: Likewise.
161 * include/bits/stl_algo.h: Likewise.
162 * include/bits/stl_algobase.h: Likewise.
163 * include/bits/stl_alloc.h: Likewise.
164 * include/bits/stl_construct.h: Likewise.
165 * include/bits/stl_deque.h: Likewise.
166 * include/bits/stl_function.h: Likewise.
167 * include/bits/stl_heap.h: Likewise.
168 * include/bits/stl_iterator.h: Likewise.
169 * include/bits/stl_iterator_base.h: Likewise.
170 * include/bits/stl_list.h: Likewise.
171 * include/bits/stl_map.h: Likewise.
172 * include/bits/stl_multimap.h: Likewise.
173 * include/bits/stl_multiset.h: Likewise.
174 * include/bits/stl_numeric.h: Likewise.
175 * include/bits/stl_pair.h: Likewise.
176 * include/bits/stl_pthread_alloc.h: Likewise.
177 * include/bits/stl_queue.h: Likewise.
178 * include/bits/stl_raw_storage_iter.h: Likewise.
179 * include/bits/stl_relops.h: Likewise.
180 * include/bits/stl_set.h: Likewise.
181 * include/bits/stl_stack.h: Likewise.
182 * include/bits/stl_tempbuf.h: Likewise.
183 * include/bits/stl_threads.h: Likewise.
184 * include/bits/stl_tree.h: Likewise.
185 * include/bits/stl_uninitialized.h: Likewise.
186 * include/bits/stl_vector.h: Likewise.
187 * include/bits/streambuf.tcc: Likewise.
188 * include/bits/type_traits.h: Likewise.
189 * include/bits/valarray_meta.h: Likewise.
190 * include/ext/bvector: Likewise.
191 * include/ext/hash_map: Likewise.
192 * include/ext/hash_set: Likewise.
193 * include/ext/ropeimpl.h: Likewise.
194 * include/ext/slist: Likewise.
195 * include/ext/stl_bvector.h: Likewise.
196 * include/ext/stl_hash_fun.h: Likewise.
197 * include/ext/stl_hashtable.h: Likewise.
198 * include/ext/stl_rope.h: Likewise.
199 * src/complex_io.cc: Likewise.
200 * src/ios.cc: Likewise.
201 * src/locale-inst.cc: Likewise.
202 * src/locale.cc: Likewise.
203 * src/localename.cc: Likewise.
204 * src/misc-inst.cc: Likewise.
205 * src/stdexcept.cc: Likewise.
206 * src/stl-inst.cc: Likewise.
207 * src/strstream.cc: Likewise.
208 * src/valarray-inst.cc: Likewise.
210 2001-03-03 Benjamin Kosnik <bkoz@redhat.com>
212 * src/misc-inst.cc (__copy_streambufs): Fix typo for alpha.
214 2001-03-02 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
216 * include/bits/istream.tcc: change type of __extracted to __size_type
218 2001-03-02 Benjamin Kosnik <bkoz@redhat.com>
220 * src/wstring-inst.cc: New file.
221 * src/Makefile.am (EXTRA_LTLIBRARIES): Remove.
222 (libinst_wstring_la_SOURCES): Remove.
223 (libstdc___la_LIBADD): Remove libinst_wstring_la.
224 (sources): Add wstring-inst.cc
225 * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Remove
228 2001-03-02 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
230 * src/locale.cc: initialise __ret with zero
231 * src/strstream.cc:cast gptr to int_type
233 2001-03-01 Phil Edwards <pme@sources.redhat.com>
235 * docs/html/faq/index.html: Update broken links.
236 * docs/html/faq/index.txt: Regenerated.
238 2001-02-28 Benjamin Kosnik <bkoz@redhat.com>
241 * configure.target: Change irix* to irix6.5* in target_os table.
243 2001-02-28 Benjamin Kosnik <bkoz@redhat.com>
246 * include/bits/c++config (__GLIBCPP__): Bump number in
247 anticipation of 2.92.
249 * include/bits/codecvt.h: Fix typo.
250 * include/bits/basic_file.h (__basic_file): Don't use _M_wfile for
252 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Enable wchar_t
253 instantiations for stdio model.
255 2001-02-28 Phil Edwards <pme@sources.redhat.com>
257 * acinclude.m4 (GLIBCPP_CONFIGURE): Remove GLIBCPP_CFLAGS
258 and GLIBCPP_CXXFLAGS as unused variables.
259 * configure.host: Likewise.
260 * configure.target: Likewise.
261 * aclocal.m4: Regenerated.
262 * configure: Regenerated.
263 * Makefile.in: Regenerated.
264 * libio/Makefile.in: Regenerated.
265 * libmath/Makefile.in: Regenerated.
266 * libsupc++/Makefile.in: Regenerated.
267 * src/Makefile.in: Regenerated.
269 2001-02-27 Benjamin Kosnik <bkoz@redhat.com>
272 * include/bits/basic_file.h: Include basic_file_model.h.
273 * config/c_io_libio.cc: Move to...
274 * config/basic_file_libio.cc: Here.
275 * config/basic_file_libio.h: New file.
276 * config/c_io_stdio.cc: Move to...
277 * config/basic_file_stdio.cc: Here.
278 * config/basic_file_stdio.h: New file.
279 * config/c_io_libio.h: Tweak.
280 * config/c_io_stdio.h: Tweak.
281 * src/Makefile.am (build_headers): Add basic_file_model.h.
282 (sources): Add basic_file.cc, remove c++io.cc.
283 * src/Makefile.in: Regenerate.
284 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Add support for
285 basic_file_model.h and basic_file.cc.
286 * aclocal.m4: Regenerate.
287 * configure: Regenerate.
288 * testsuite/27_io/filebuf.cc (test05): Add regression.
290 2001-02-27 Benjamin Kosnik <bkoz@redhat.com>
293 * config/cpu/alpha/bits/atomicity.h: Change.
294 * config/cpu/arm/bits/atomicit3y.h
295 * config/cpu/generic/bits/atomicity.h
296 * config/cpu/i386/bits/atomicity.h
297 * config/cpu/i486/bits/atomicity.h
298 * config/cpu/ia64/bits/atomicity.h
299 * config/cpu/powerpc/bits/atomicity.h
300 * config/cpu/sparc/sparc32/bits/atomicity.h
301 * config/cpu/sparc/sparc64/bits/atomicity.h
302 * config/os/aix/bits/atomicity.h
303 * config/os/irix/bits/atomicity.h
305 2001-02-27 Benjamin Kosnik <bkoz@redhat.com>
307 * include/bits/std_stdexcept.h (runtime_error): Make string
310 * testsuite/19_diagnostics/stdexceptions.cc (test04): Add test.
313 2001-02-26 Benjamin Kosnik <bkoz@redhat.com>
317 * include/bits/std_stdexcept.h (logic_error::logic_error): Use
318 string object, not reference.
319 (runtime_error::runtime_error): Same.
320 * testsuite/19_diagnostics/stdexceptions.cc: New file.
322 2001-02-26 Phil Edwards <pme@sources.redhat.com>
324 * acinclude.m4 (GLIBCPP_CONFIGURE): Update required compiler version.
325 (GLIBCPP_CHECK_COMPILER_FEATURES): Can safely assume new
326 diagnostics. Remove WFMT_FLAGS.
327 * configure.in: Replace WFMT_FLAGS with diagnostics options.
328 * libsupc++/Makefile.am: Likewise.
329 * src/Makefile.am: Likewise.
330 * aclocal.m4: Regenerated.
331 * configure: Regenerated.
332 * Makefile.in: Regenerated.
333 * libio/Makefile.in: Regenerated.
334 * libmath/Makefile.in: Regenerated.
335 * libsupc++/Makefile.in: Regenerated.
336 * src/Makefile.in: Regenerated.
338 2001-02-26 Phil Edwards <pme@sources.redhat.com>
341 * include/backward/iomanip.h: Expose <ios> manipulators to global
343 * include/backward/iostream.h: Also expose std::ws.
345 2001-02-25 Greg Freemyer <freemyer@NorcrossGroup.com>
347 * libmath/mathconf.h (GET_LDOUBLE_MSW64): Fix thinko.
349 2001-02-23 Benjamin Kosnik <bkoz@redhat.com>
351 * include/bits/codecvt.h: Use __builtin_alloca.
352 * include/bits/ostream.tcc: Same.
353 * include/bits/fstream.tcc: Same.
355 2001-02-23 Alexandre Oliva <aoliva@redhat.com>
357 * mknumeric_limits (CC): Use VAR=${VAR=...} form.
359 2001-02-23 David Edelsohn <dje@watson.ibm.com>
361 * mknumeric_limits (CC): Use $BUILD_DIR/../../gcc/xgcc
363 2001-02-23 Phil Edwards <pme@sources.redhat.com>
366 * include/backward/iostream.h: Expose std::flush in old headers.
368 2001-02-23 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
370 * mknumeric_limits: Remove special-casing on target. Use gcc
371 instead of g++ to build gen-num-limits.cc
373 2001-02-22 Benjamin Kosnik <bkoz@redhat.com>
375 * tests_flags.in (CXXFLAGS): Add -rpath to gcc build dir.
377 * include/bits/codecvt.h: Use alloca instead of __extension__ for
379 * include/bits/ostream.tcc: Same.
380 * include/bits/std_ostream.h: Same.
381 * include/bits/fstream.tcc: Same.
382 * include/bits/locale_facets.tcc: Add typename.
383 * include/bits/c++config (_GLIBCPP_FULLY_COMPLIANT_HEADERS): Enable.
385 2001-02-21 Phil Edwards <pme@sources.redhat.com>
387 * tests_flags.in: Remove -n flag from call to echo.
389 2001-02-20 Benjamin Kosnik <bkoz@redhat.com>
391 * config/c_locale_gnu.h: Add clocale include.
393 2001-02-20 Phil Edwards <pme@sources.redhat.com>
395 * include/bits/stl_config.h: Remove file.
396 * src/Makefile.am (base_headers): Remove from list.
397 * configure: Regenerate.
398 * Makefile.in: Ditto.
399 * libio/Makefile.in: Ditto.
400 * libmath/Makefile.in: Ditto.
401 * libsupc++/Makefile.in: Ditto.
402 * src/Makefile.in: Ditto.
404 * include/bits/c++config: Move relevant macros to here.
405 * include/backward/alloc.h: Include c++config.h instead.
406 * include/backward/function.h: Ditto.
407 * include/backward/heap.h: Ditto.
408 * include/backward/pair.h: Ditto.
409 * include/bits/pthread_allocimpl.h: Ditto.
410 * include/bits/std_functional.h: Ditto.
411 * include/bits/std_iterator.h: Ditto.
412 * include/bits/std_numeric.h: Ditto.
413 * include/bits/std_utility.h: Ditto.
414 * include/bits/stl_algobase.h: Ditto.
415 * include/bits/type_traits.h: Ditto.
416 * src/stl-inst.cc: Ditto.
418 2001-02-19 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
420 * include/bits/basic_file.h: Add #pragma system_header
421 * include/bits/basic_ios.h: Ditto.
422 * include/bits/basic_string.h: Ditto.
423 * include/bits/char_traits.h: Ditto.
424 * include/bits/codecvt.h: Ditto.
425 * include/bits/cpp_type_traits.h: Ditto.
426 * include/bits/fpos.h: Ditto.
427 * include/bits/gslice.h: Ditto.
428 * include/bits/gslice_array.h: Ditto.
429 * include/bits/indirect_array.h: Ditto.
430 * include/bits/ios_base.h: Ditto.
431 * include/bits/limits_generic.h: Ditto.
432 * include/bits/locale_facets.h: Ditto.
433 * include/bits/localefwd.h: Ditto.
434 * include/bits/mask_array.h: Ditto.
435 * include/bits/sbuf_iter.h: Ditto.
436 * include/bits/sequence_concepts.h: Ditto.
437 * include/bits/slice.h: Ditto.
438 * include/bits/slice_array.h: Ditto.
439 * include/bits/std_algorithm.h: Likewise.
440 * include/bits/std_bitset.h: Likewise.
441 * include/bits/std_complex.h: Likewise.
442 * include/bits/std_deque.h: Likewise.
443 * include/bits/std_fstream.h: Likewise.
444 * include/bits/std_functional.h: Likewise.
445 * include/bits/std_iomanip.h: Likewise.
446 * include/bits/std_ios.h: Likewise.
447 * include/bits/std_iosfwd.h: Likewise.
448 * include/bits/std_iostream.h: Likewise.
449 * include/bits/std_istream.h: Likewise.
450 * include/bits/std_iterator.h: Likewise.
451 * include/bits/std_list.h: Likewise.
452 * include/bits/std_locale.h: Likewise.
453 * include/bits/std_map.h: Likewise.
454 * include/bits/std_memory.h: Likewise.
455 * include/bits/std_numeric.h: Likewise.
456 * include/bits/std_ostream.h: Likewise.
457 * include/bits/std_queue.h: Likewise.
458 * include/bits/std_set.h: Likewise.
459 * include/bits/std_sstream.h: Likewise.
460 * include/bits/std_stack.h: Likewise.
461 * include/bits/std_stdexcept.h: Likewise.
462 * include/bits/std_streambuf.h: Likewise.
463 * include/bits/std_string.h: Likewise.
464 * include/bits/std_utility.h: Likewise.
465 * include/bits/std_valarray.h: Likewise.
466 * include/bits/std_vector.h: Likewise.
467 * include/bits/stringfwd.h: Likewise.
468 * include/bits/type_traits.h: Likewise.
469 * include/bits/valarray_array.h: Likewise.
470 * include/bits/valarray_meta.h: Likewise.
472 2001-02-19 Andreas Jaeger <aj@suse.de>
474 * config/cpu/sparc/sparc64/bits/atomicity.h (__compare_and_swap):
477 2001-02-16 Greg Bumgardner <bumgard@roguewave.com>
480 * include/bits/std_ostream.h: Replaced usage of
481 _Traits::_S_eos() with _CharT() as per section 17.2.2.1.3.
482 * include/bits/char_traits.h: Removed non-standard
483 methods that cannot be used elsewhere.
486 * include/bits/basic_ios.h: Uncommented #include of
490 * include/bits/codecvt.h: See next...
491 * include/bits/fstream.tcc: See next...
492 * include/bits/ostream.tcc: Add __extension__
493 to variable-length arrays.
496 * include/bits/localefwd.h: Changed int counter type to size_t.
499 * include/bits/std_fstream.h: Added typedef for __ctype_type.
501 2001-02-16 Benjamin Kosnik <bkoz@redhat.com>
503 * testsuite/21_strings/char_traits.cc: Move to ...
504 * testsuite/21_strings/char_traits_requirements.cc: ..here.
505 * testsuite/21_strings/char_traits-int_type.cc: Move to ...
506 * testsuite/21_strings/char_traits_typedefs.cc: ..here.
508 2001-02-16 Gabriel Dos Reis <gdr@codesourcery.com>
510 * libmath/mathconf.h (FINITE_P, INFINITE_P): Remove macro
513 2001-02-15 Benjamin Kosnik <bkoz@redhat.com>
515 * include/bits/c++config: Revert.
517 2001-02-15 Mark Mitchell <mark@codesourcery.com>
519 * include/bits/istream.tcc: Use ios_base::iostate in place of
520 iostate throughout. Insert `typename' keyword where necessary.
521 * include/bits/ostream.tcc: Insert `typename' keyword where
524 2001-02-15 Jeffrey Oldham <oldham@codesourcery.com>
526 * include/bits/c++config (_GLIBCPP_FULLY_COMPLIANT_HEADERS):
527 Define so library is compliant.
529 2001-02-15 Anthony Green <green@redhat.com>
531 * acinclude.m4 (glibcpp_toolexeclibdir): Fix test for cross
533 * aclocal.m4: Regenerate.
534 * configure: Regenerate.
536 2001-02-15 Rodney Brown <RodneyBrown@mynd.com>
538 * acinclude.m4 (GLIBCPP_CHECK_MATH_DECL_1):
539 Include ieeefp.h for fpclass on UnixWare{2,7}.
540 * aclocal.m4: Regenerate.
541 * configure: Regenerate.
542 * mkcheck.in (size_command): Do without GNU-grep when using
545 2001-02-15 Mark Mitchell <mark@codesourcery.com>
547 Remove old ABI support from libsupc++.
548 * libsupc++/cxxabi.h: Remove conditionally compiled code.
549 * libsupc++/exception_support.cc: Likewise.
550 * libsupc++/pure.cc: Likewise.
551 * libsupc++/tinfo.cc: Likewise.
552 * libsupc++/tinfo.h: Likewise.
553 * libsupc++/tinfo2.cc: Likewise.
554 * libsupc++/typeinfo: Likewise.
555 * libsupc++/vec.cc: Likewise.
557 2001-02-15 Benjamin Kosnik <bkoz@redhat.com>
559 Add support for -fno-exceptions.
560 * include/bits/exception_support.h: Remove.
561 * include/bits/basic_string.h: Remove exception_support.
562 (string::_M_check): Replace __OUTOFRANGE with __throw_out_of_range.
564 (string::substr): Same.
565 * include/bits/basic_string.tcc (string::reserve): Replace
566 __LENGTHERROR with __throw_length_error.
567 (string::_S_create): Same.
568 (string::resize): Same.
569 (string::_M_replace): Same.
570 (string::replace): Same.
571 (string::copy): Replace __OUTOFRANGE with __throw_out_of_range.
572 (string::compare): Same.
573 * include/bits/stl_vector.h: Remove exception_support.
574 * src/Makefile.am (base_headers): Remove here.
575 * src/Makefile.in: Regenerate.
577 * include/bits/stl_range_errors.h: Remove.
578 * include/bits/stl_deque.h: Use __throw_range_error.
579 * include/bits/std_deque.h: Include functexcept.h.
580 * include/bits/std_vector.h: Same.
581 * src/Makefile.am (base_headers): Remove here.
582 * src/Makefile.in: Regenerate.
583 * include/ext/stl_bvector.h (class __BVECTOR): Use __throw_range_error.
584 * include/ext/bvector: Remove stl_range_errors.h
586 * include/bits/c++config (_GLIBCPP_USE_EXCEPTIONS): Remove.
588 * include/bits/functexcept.h: New file.
589 * src/functexcept.cc: New file. Definitions for function-based
591 * src/Makefile.am (sources): Add functexcept.cc.
592 * src/Makefile.in: Regenerate.
594 * include/bits/stl_config.h (__STL_USE_EXCEPTIONS): Wrap with
597 * include/bits/localefwd.h: Include functexcept.h.
598 * include/bits/std_iosfwd.h: Same.
600 * include/bits/basic_ios.h: Use __throw_ios_failure instead of
601 throw basic_ios::failure.
602 * include/bits/fstream.tcc (filebuf::_M_allocate_buffers):
603 Use __throw_exception_again.
604 (filebuf::_M_filebuf_init): Same.
605 * include/bits/streambuf.tcc (__copy_streambufs): Same.
606 * include/bits/ostream.tcc (ostream::operator<<): Same.
607 * include/bits/istream.tcc (istream::operator>>): Same.
608 * include/bits/basic_string.tcc (string::_M_mutate): Same.
609 (string::_S_construct): Same.
610 (string::_M_clone): Same.
611 * include/bits/locale_facets.tcc (use_facet(const locale&)): Use
613 (num_put<_CharT, _OutIter>::do_put): Use __throw_exception_again.
614 * src/localename.cc (locale::_Imp::_Imp(const _Impl&, size_t): Use
615 __throw_exception_again.
616 (locale::_Imp::_Imp(string, size_t): Same.
617 (locale::_Imp::_M_replace_facet): Use __throw_runtime_error.
618 * src/locale.cc (locale::_M_coalesce): Use __throw_exception_again.
619 (locale::locale(const char*)): Use __throw_runtime_error.
620 (locale::classic): Use __throw_exception_again.
621 (locale::_S_normalize_category): Use __throw_runtime_error.
623 * src/stdexcept.cc: Remove cruft.
625 * libsupc++/exception_defines.h: New file.
626 * libsupc++/new_opnt.cc: Include exception_defines.h.
627 * libsupc++/vec.cc: Same.
628 (__cxa_vec_new2): Use __throw_exception_again.
629 (__cxa_vec_new3): Same.
630 (__cxa_vec_ctor): Same.
631 (__cxa_vec_delete3): Same.
632 (__cxa_vec_cctor): Same.
633 (__cxa_vec_delete2): Same.
634 (__cxa_vec_dtor): Same.
635 * libsupc++/exception_support.cc: Include exception_defines.h. Only
636 compile exception-handling bits if __EXCEPTIONS is defined.
637 Remove old ABI support.
638 * libsupc++/new_op.cc (new): Include exception_defines.h. Use
639 std::__throw_bad_alloc() instead of throw bad_alloc.
640 * libsupc++/Makefile.am: Add exception_defines.h.
641 * libsupc++/Makefile.in: Reformat.
642 * libsupc++/*: Format.
644 2001-02-15 Phil Edwards <pme@sources.redhat.com>
646 * docs/html/configopts.html: Minor updates and typo fixes.
647 * docs/html/faq/index.html: Updates of the "not really bugs" list.
648 * docs/html/faq/index.txt: Regenerated.
650 2001-02-15 Gabriel Dos Reis <gdr@codesourcery.com>
652 * testsuite/lib/libstdc++.exp: Lift, temporarily, out of
653 dejagnu/dg.exp. Adapt to log options used to run testcases.
655 2001-02-13 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
657 * testsuite/lib/libstdc++.exp(dg-test): Lift temporarily from
660 2001-02-13 Dirk Mueller <dmuell@gmx.net>
661 Phil Edwards <pme@sources.redhat.com>
663 * include/backward/function.h: Do not use rel_ops for older
665 * include/backward/pair.h: Likewise.
667 2001-02-12 Mark Mitchell <mark@codesourcery.com>
669 * src/locale.cc: Remove bogus locale::id definitions.
671 2001-02-11 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
673 * include/bits/std_valarray.h: #undef _DEFINE_LOGICAL_OPERATOR,
674 not _DEFINE_VALARRAY_OPERATOR which is not existent.
676 * include/bits/valarray_meta.h (_RefFunClos<>_RefRunClos): Fix
677 thinko in member initialisation.
679 2001-02-11 Gabriel Dos Reis <gdr@codesourcery.com>
681 * include/bits/std_valarray.h(valarray<>::shift): Avoid
682 comparaison between signed and unsigned integer types.
683 (valarray<>::cshift): Reformat.
685 2001-02-11 Alexandre Oliva <aoliva@redhat.com>
687 * src/gen-num-limits.cc: Use sigsetjmp and siglongjmp if available.
688 * mknumeric_limits: Compile it with -DHAVE_CONFIG_H.
689 * configure.in: Test for sigsetjmp.
690 * configure, config.h.in: Rebuilt.
692 2001-02-11 Gabriel Dos Reis <gdr@codesourcery.com>
694 * src/valarray-inst.cc (gslice::_Indexer::_Indexer): Don't flip
696 (__gslice_to_index): Document.
698 2001-02-11 Gabriel Dos Reis <gdr@codesourcery.com>
700 * include/bits/char_traits.h char_traits<char>::int_type: Change
701 to `int' to match 21.1.3.1/2.
703 * testsuite/21_strings/char_traits-int_type.C: New test.
705 2001-02-10 Gabriel Dos Reis <gdr@codesourcery.com>
707 * testsuite/Makefile.am: New file.
709 2001-02-09 Nathan Sidwell <nathan@codesourcery.com>
711 * include/c_shadow/bits/std_cstdlib.h (lldiv_t): Fix typo.
713 2001-02-08 Loren J. Rittle <ljrittle@acm.org>
715 * src/locale-inst.cc (fill_n): Instantiate with size_t arguments.
717 2001-02-08 David Edelsohn <edelsohn@gnu.org>
719 * configure.target (aix4*): Remove extra set of brackets.
721 2001-02-07 Benjamin Kosnik <bkoz@redhat.com>
724 * include/bits/stringfwd.h: New file.
725 * include/bits/stl_string_fwd.h: Remove.
726 * include/bits/localefwd.h: Remove declaration for allocator.
727 * include/bits/std_iosfwd: Same.
728 * include/bits/std_string.h: Include it.
729 * include/bits/std_ios.h: Remove include.
730 * include/bits/basic_string.h: Tweak.
731 * libsupc++/new: Format.
732 * src/Makefile.am (base_headers): Add stringfwd.h, remove
734 * src/Makefile.in: Regenerate.
735 * include/bits/std_stdexcept.h: Rewrite.
736 * src/stdexcept.cc: Same.
738 2001-02-06 Benjamin Kosnik <bkoz@redhat.com>
740 * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Deal with library
741 install locations too.
742 * aclocal.m4: Regenerate.
743 * configure.in: Remove USE_LIBDIR.
744 * configure: Regenerate.
745 * src/Makefile.am (toolexecdir): Simplify, use
746 glibcpp_toolexecdir, glibcpp_toolexeclibdir.
747 * src/Makefile.in: Regenerate.
748 * libsupc++/Makefile.am: Same.
749 * libsupc++/Makefile.in: Regenerate.
751 * src/Makefile.am: Just remove special rules for locale-inst.cc and
752 misc-inst.cc as no longer necessary.
754 Follow C++STYLE for naming non-static functions.
755 * include/bits/ostream.tcc (_S_pad_char): Not static, rename to
757 * include/bits/streambuf.tcc: Same.
758 * include/bits/ostream.tcc: Same.
759 * include/bits/istream.tcc: Same.
760 * include/bits/locale_facets.tcc (_S_pad_numeric): To __pad_numeric.
761 (_S_output_float): To __output_float.
762 * include/bits/std_streambuf.h (_S_copy_streambufs): To
764 * include/bits/locale_facets.tcc (_S_build_float_format): To
765 __build_float_format.
766 (_S_format): To __output_integer.
768 * src/locale.cc: Same.
769 * src/misc-inst.cc: Fix formatting. Fix signature for wchar_t. Correct
771 * include/bits/locale_facets.tcc (_S_group_digits): To
773 * src/locale-inst.cc: Fixup names. Add use_facet instantiations
774 for collate, numpunct.
776 2001-02-06 Phil Edwards <pme@sources.redhat.com>
778 * docs/html/configopts.html: Fix HTML markup.
779 * docs/html/install.html: Bring up to date.
780 * docs/html/17_intro/C++STYLE: Add global variable conventions.
781 * docs/html/21_strings/howto.html: More notes.
782 * docs/html/22_locale/howto.html: Fix HTML markup.
783 * docs/html/27_io/howto.html: More notes.
784 * docs/html/27_io/binary_iostreams_kanze.txt: New file.
785 * docs/html/27_io/binary_iostreams_kuehl.txt: New file.
787 2001-02-06 Jeffrey Oldham <oldham@codesourcery.com>
789 * src/misc-inst.cc (_S_pad_char): Modify declaration's parameters
790 to match header files.
791 (_S_output_float): Likewise.
792 (_S_copy_streambufs): Likewise.
794 2001-02-06 Hyman Rosen <Hyman.Rosen@kbcfp.com>
795 Phil Edwards <pme@sources.redhat.com>
797 * include/bits/std_istream.h (op>> signed,unsigned char): Must
798 use reinterpret_cast, not static_cast.
800 2001-02-06 Benjamin Kosnik <bkoz@redhat.com>
802 * acinclude.m4 (gxx_include_dir): Quote, fix regression.
803 * aclocal.m4: Regenerate.
804 * configure: Regenerate.
806 2001-02-05 Benjamin Kosnik <bkoz@redhat.com>
808 * include/bits/locale_facets.h (class moneypunct): Fix typos.
809 * libsupc++/pure.cc: Revert.
811 2001-02-05 Benjamin Kosnik <bkoz@redhat.com>
813 * acinclude.m4 (GLIBCPP_CHECK_MATH_DECL_1): New macro.
814 (GLIBCPP_CHECK_MATH_DECL_2): New macro.
815 (GLIBCPP_CHECK_MATH_DECL_3): New macro.
816 (GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_1): Use it, check for _* too.
817 (GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_2): Same.
818 (GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_3): Same.
819 (GLIBCPP_CHECK_MATH_SUPPORT): Remove explicit checks for _* versions.
820 * aclocal.m4: Regenerate.
821 * configure: Regenerate.
823 2001-02-05 Mark Mitchell <mark@codesourcery.com>
825 * include/bits/locale_facets.tcc: Remove `static' keyword on
826 function definitions.
827 * include/bits/std_streambuf.h: Likewise.
828 * src/Makefile.am: Remove use of -fimplicit-templates.
829 * src/Makefile.in: Regenerated.
830 * src/locale-inst.cc: Explicitly instantiate more functions.
831 * src/misc-inst.cc: Likewise.
832 * src/string-inst.cc: Likewise.
834 2001-02-05 Benjamin Kosnik <bkoz@redhat.com>
836 * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): New
837 macro. Consolidate all the bits to do with where includes might be
839 * aclocal.m4: Regenerate.
840 * configure.in: Use it.
841 * configure: Regenerate.
842 * src/Makefile.am (targetincludep): Use simplified rules.
843 (targetincludep): Rename gxx_target_include_dir.
844 (myincludep): Rename gxx_include_dir.
845 * src/Makefile.in: Regenerate.
846 * libsupc++/Makefile.am: Use simplified rules.
847 * libsupc++/Makefile.in: Regenerate.
849 2001-02-05 Benjamin Kosnik <bkoz@redhat.com>
851 * include/c_std/bits/std_cerrno.h: Correct date format for copyright.
852 * include/c_std/bits/std_cctype.h: Same.
853 * include/c_std/bits/std_cassert.h: Same.
854 * include/c_std/bits/std_cstdarg.h: Same.
855 * include/c_std/bits/std_cstddef.h: Same.
857 * include/c_std/bits/std_cstdio.h: Undefine all names brought into
859 * include/c_std/bits/std_ctime.h: Same.
860 * include/c_std/bits/std_clocale.h: Same.
861 * include/c_std/bits/std_cmath.h: Same.
862 * include/c_std/bits/std_csetjmp.h: Same.
863 * include/c_std/bits/std_csignal.h: Same.
864 * include/c_std/bits/std_cstring.h: Same.
865 * include/c_std/bits/std_cstdlib.h: Same.
866 * include/c_std/bits/std_cwchar.h: Same.
868 2001-02-05 Phil Edwards <pme@sources.redhat.com>
870 * testsuite/27_io/ios_base_members_static.cc: Swap order of tests.
872 2001-02-05 Mark Mitchell <mark@codesourcery.com>
874 * src/string-inst.cc (string::_M_replace): Explicitly instantiate.
875 (string::_S_construct): Likewise.
877 2001-02-05 Gabriel Dos Reis <gdr@codesourcery.com>
879 * testsuite/config/default.exp: New file.
880 * testsuite/config: New directory.
882 2001-02-04 Mark Mitchell <mark@codesourcery.com>
884 * libsupc++/typeinfo (__GXX_MERGED_TYPEINFO_NAMES): New macro.
885 * libsupc++/tinfo.cc (std::typeinfo::operator==): Use strcmp
886 whenever !__GXX_MERGED_TYPEINFO_NAMES.
887 * libsupc++/tinfo2.cc (std::typeinfo::before): Likewise.
889 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
890 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
892 * Makefile.am (mkinstalldirs): Set.
893 * src/Makefile.am (mkinstalldirs): Set.
894 * libmath/Makefile.am (mkinstalldirs): Set.
895 * libsup++/Makefile.am (mkinstalldirs): Set.
896 * libio/Makefile.am (mkinstalldirs): Set.
897 * */Makefile.in: Regenerate.
899 2001-02-03 Benjamin Kosnik <bkoz@redhat.com>
901 * include/bits/stl_threads.h (struct _STL_mutex_lock): Same.
902 * include/bits/localefwd.h: More initialization cleanups.
904 2001-02-03 Jeffrey A Law <law@cygnus.com>
906 * include/bits/ios_base.h (_S_ios_fmtflags_end): Initialize
907 correctly targets with 16bit ints.
908 (_S_ios_openmode_end): Similarly.
909 (_S_ios_iostate_end): Similarly.
910 (_S_ios_Seekdir_end): Similarly.
912 2001-02-02 Phil Edwards <pme@sources.redhat.com>
914 * mkcheck.in: Also limit virtual memory size, for mmap-based mallocs.
916 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
918 * configure.in (toplevel_srcdir, auxdir): Set.
919 * acinclude.m4 (glibcpp_basedir): Set based on auxdir.
920 * aclocal.m4, configure, Makefile.in: Rebuilt.
921 * libio/Makefile.in, math/Makefile.in, src/Makefile.in: Likewise.
922 * libsupc++-v3/Makefile.am (INCLUDES): Use toplevel_srcdir.
923 * libsupc++-v3/Makefile.in: Rebuilt.
924 * libsupc++-v3/configure.in, libsupc++-v3/configure: Removed.
925 * libsupc++-v3/aclocal.m4, libsupc++-v3/config.h.in: Likewise.
927 2001-01-30 Benjamin Kosnik <bkoz@redhat.com>
929 * config/c_locale_generic.cc: Remove langinfo include.
931 2001-01-29 Benjamin Kosnik <bkoz@redhat.com>
933 Preliminary named locales.
934 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): New macro.
935 * aclocal.m4: Regenerate.
936 * configure.in: Use it.
937 * configure: Regerate.
938 * src/Makefile.am (sources): Add c++locale.cc.
939 (build_headers): Add c++locale.h.
940 * src/Makefile.in: Regenerate.
941 * config/c_locale_gnu.h: New file.
942 * config/c_locale_gnu.cc: New file. Non-inline member functions
943 for named locales, gnu-specific.
944 * config/c_locale_generic.h: New file.
945 * config/c_locale_generic.cc: New file. Non-inline member
946 functions for named locales, generic version.
947 * docs/html/configopts.html: Add documentation on new options.
949 * include/bits/locale_facets.h (class _Messages): Remove.
950 (class _Moneypunct): Remove.
951 * src/locale-inst.cc: Remove.
953 * include/bits/locale_facets.h (class _Collate): Remove.
954 * src/locale-inst.cc (std): Remove.
955 * src/locale.cc: And here.
957 * include/bits/localefwd.h (locale::_M_coalesce): New
958 function. Correctly put together multi-name locales.
959 (_Impl(const _Impl&, category, size_t)): Remove.
961 * include/bits/localefwd.h (locale::_Impl): Remove _M_construct_*
963 (_M_normalize_category_names): Remove.
964 (_M_replace_categories): Fix.
966 * src/localename.cc (locale::_Impl::_M_construct_collate): Remove.
967 (locale::_Impl::_M_construct_ctype): Remove.
968 (locale::_Impl::_M_construct_monetary): Remove.
969 (locale::_Impl::_M_construct_numeric): Remove.
970 (locale::_Impl::_M_construct_time): Remove.
971 (locale::_Impl::_M_construct_messages): Remove.
973 * include/bits/locale_facets.h (_Bad_use_facet): Remove.
974 (_Use_facet_failure_handle): Remove.
975 * src/locale.cc: Remove definitions.
976 * src/locale-inst.cc: And here.
978 * testsuite/22_locale/ctor_copy_dtor.cc (test01): Fixup. Add tests.
980 * src/localename.cc (locale::facet::_S_create_c_locale): Properly
981 create and error-check underlying locale object.
982 (locale::facet::_S_destroy_c_locale): Add, take care of properly
983 tearing down underlying locale object.
984 * include/bits/localefwd.h (locale::facet): Declare.
985 * testsuite/22_locale/members.cc: Don't test "fr_FR" locale for
986 correctness, as glibc apparently has incorrect info in it. Test
987 with it when it works again.....
989 * include/bits/localefwd.h (locale::_Impl::__vec_string):
990 Remove. Number of categories is fixed at six, so just simplify and
991 make this an array of strings.
992 (locale::_Impl::_M_has_name): Remove.
993 (locale::_Impl::_M_name): Remove.
994 (locale::_Impl::_M_category_names): Turns into...
995 (locale::_Impl::_M_names): ...this.
996 (locale::_Impl::_M_has_same_name()): New function.
997 * src/localename.cc (locale::_Impl::~_Impl()): Remove here.
998 (locale::_Impl::_Impl(size_t __refs, string __str)): Simplify
1000 * src/locale.cc (locale::name()): Construct mangled name
1001 accurately reflecting combined locale categories.
1003 * src/locale.cc (locale::classic()): Don't initialize here.
1004 * src/localename.cc (locale::_Impl::_Impl(size_t __num, size_t
1005 __refs, bool __has_name, string __str): Do it here.
1007 * include/bits/localefwd.h: _S_categories_num to
1008 _S_num_categories. _S_facets_num to _S_num_facets.
1009 (locale::id::id()): Explicitly set _M_index to zero.
1010 * src/locale.cc: Same.
1012 * src/locale.cc: (locale::locale(const char*)): Construct named
1015 * src/locale.cc: Remove numpunct_byname ctors.
1016 * testsuite/22_locale/numpunct_byname.cc: New file.
1017 * testsuite/22_locale/numpunct.cc: New file.
1019 * include/bits/localefwd.h (class locale): Change data members to
1020 protected, from private.
1021 (_Impl::_M_get_c_locale): Add member function.
1022 (locale::facet::_M_get_global_impl()): Add member function.
1023 * include/bits/locale_facets.h (numpunct::_M_init): Change to take
1024 a __c_locale pointer.
1025 (numpunct::numpunct( __c_locale*, size_t)): Add additonal ctor for
1027 * testsuite/22_locale/members.cc: New file, test name and combine.
1029 * include/bits/locale_facets.h (class numpunct): Remove class
1030 _Punct and _Numpunct. Rewrite class numpunct to be correct for
1032 * include/bits/localefwd.h (locale::_Imp::_M_c_locale): Add.
1033 * src/localename.cc (_Impl::~_Impl()): Call __frelocale.
1034 (_Imp::_Impl(size_t, size_t, bool, string)) Initialize _M_c_locale.
1035 * src/locale-inst.cc: Remove _Numpunct, _Punct instantiations.
1036 * testsuite/22_locale/numpunct_char_members.cc: New file.
1038 2001-01-28 Gabriel Dos Reis <gdr@codesourcery.com>
1040 * testsuite/README: Add more comment.
1041 * testsuite/lib/libstdc++.exp: Tweak comment.
1043 2001-01-26 Benjamin Kosnik <bkoz@kredhat.com>
1045 * libsupc++/pure.cc (writestr): Just use cstdio and std::fputs.
1047 2001-01-25 Loren J. Rittle <ljrittle@acm.org>
1049 * testsuite/21_strings/inserters_extractors.cc: Remove
1050 explicit reference to 'testsuite/'.
1052 2001-01-25 Richard Henderson <rth@redhat.com>
1054 * config/cpu/alpha/bits/atomicity.h: Remove tricky .subsetion
1055 bits. Fixes Tru64 build issues.
1057 2001-01-25 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1059 * acinclude.m4 (GLIBCPP_CHECK_GNU_MAKE): Bourne shell portability bug
1060 (use ${MAKE-make}, not ${MAKE:-make}).
1061 * aclocal.m4, configure: Regenerate.
1063 2001-01-25 Mark Mitchell <mark@codesourcery.com>
1065 * src/ios.cc: Remove accidental inclusion of <stdio.h> in last
1068 * src/Makefile.am (sources): Add globals.cc.
1069 * src/Makefile.in: Regenerated.
1070 * src/globals.cc: New file.
1071 * src/ios.cc (cin): Don't define here, just declare extern.
1080 2001-01-25 Phil Edwards <pme@sources.redhat.com>
1082 * include/bits/std_iterator.h: Do not include stl_relops.h.
1083 * include/bits/std_numeric.h: Ditto.
1084 * include/bits/stl_algobase.h: Ditto.
1085 * include/bits/stl_relops.h: Add comment warning about problems.
1087 2001-01-25 Gabriel Dos Reis <gdr@codesourcery.com>
1089 * testsuite/27_io/*.cc: Remove explicit reference to 'testsuite/'
1090 in testcases. Prepare for the DejaGnu based framework.
1091 * mkcheck.in: Adjust call to tests_flags. Don't mmkdir testsuite
1092 directory -- it is now mkcheck working directory.
1093 * tests_flags.in: Remove reference to $(top_srcdir). Use
1095 * Makefile.am (check, check-install): Change mkcheck invocation
1097 * Makefile.in: Regenerate.
1099 2001-01-24 Mark Mitchell <mark@codesourcery.com>
1101 * config/os/aix/bits/atomicity.h (__compare_and_swap): Remove.
1102 (__always_swap): Likewise.
1104 2001-01-23 Chris Demetriou <cgd@broadcom.com>
1106 * libsupc++/exception_support.cc (__terminate_func): Remove
1108 (__terminate_func_ptr): New typedef.
1109 (__terminate, __terminate_set_func): New extern function
1111 (std::terminate): Use __terminate function.
1112 (std::set_terminate): Use __terminate_set_func function.
1114 2001-01-23 Benjamin Kosnik <bkoz@redhat.com>
1116 * configure.target: Just use os_include_dir always.
1117 * configure.in: Remove calls to GLIBCPP_CHECK_CTYPE_SUPPORT.
1118 Link atomicity files and ctype files here.
1119 * configure: Regenerate.
1120 * acinclude.m4 (GLIBCPP_CHECK_CTYPE_SUPPORT): Remove.
1121 (GLIBCPP_ENABLE_ATOMICITY): Remove.
1122 * aclocal.m4: Regenerate.
1124 2001-01-23 Chris Demetriou <cgd@broadcom.com>
1126 * configure.in: Place definition of MULTISUBDIR in
1127 libsupc++/Makefile as is done for src/Makefile.
1128 * configure: Regenerate.
1130 2001-01-23 Phil Edwards <pme@sources.redhat.com>
1132 * acinclude.m4: Cosmetic changes only.
1133 * aclocal.m4: Regenerated.
1134 * configure: Regenerated.
1135 * configure.target: Update documented list of changed variables.
1136 * docs/html/install.html: Fix typo.
1137 * docs/html/20_util/howto.html: More notes on auto_ptr.
1138 * docs/html/27_io/howto.html: More notes on streabufs.
1139 * docs/html/faq/index.html: Add rel_ops problem and mention the
1140 DEC as(1) .subsection difficulty.
1141 * docs/html/faq/index.txt: Regenerated.
1143 2001-01-23 Mark Mitchell <mark@codesourcery.com>
1145 * ainclude.m4 (GLIBCPP_CHEC_MATH_DECLS_AND_LINKAGE_1): New macro.
1146 (GLIBCPP_CHECK_MATH_SUPPORT): Use it.
1147 (GLIBCPP_CHECK_TYPE_SUPPORT): Don't autoconf ctype information if
1148 its already provided in config.target.
1149 * aclocal.m4: Regenerated.
1150 * configure: Likewise.
1151 * configure.target: Set ctype_include_dir for lots of systems.
1152 * libsupc++/Makefile.am: Explicitly include --tag disable-shared.
1153 * libsupc++/Makefile.in: Regenerated.
1155 2001-01-23 Gabriel Dos Reis <gdr@codesourcery.com>
1157 * testsuite/lib/libstdc++.exp: Improve. Add support for @xxx#
1160 * testsuite/README: Add comment.
1162 2001-01-21 Phil Edwards <pme@sources.redhat.com>
1164 * docs/html/configopts.html: Update for current status. Fix HTML.
1165 * docs/html/install.html: Update for current status.
1167 2001-01-20 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
1169 * testsuite/libstdc++.tests/tests.exp: New file.
1170 * testsuite/lib/libstdc++.exp: Itou.
1171 * testsuite/README: Itou.
1173 2001-01-20 Gabriel Dos Reis <gdr@codesourcery.com>
1175 * tests_flags.in: Just output the bare minimum to run tests.
1176 Let's the caller do its own arrangement.
1178 * mkcheck.in: Rename INC_PATH to INCLUDES. Adjust flags
1181 2001-01-19 Gabriel Dos Reis <gdr@codesourcery.com>
1183 * testsuite/17_intro: Prepare testcases for new style DejaGnu
1186 2001-01-18 Gabriel Dos Reis <gdr@codesourcery.com>
1188 * testsuite/libstdc++.tests, testsuite/lib: New directories.
1190 2001-01-17 Loren J. Rittle <ljrittle@acm.org>
1192 * mkcheck.in: Construct file names that match $objdir structure.
1193 * testsuite/27_io/filebuf_members-1.txt: New file.
1194 * testsuite/27_io/ifstream_members-1.txt: New file.
1195 * testsuite/27_io/ostream_inserter_char-1.txt: New file.
1197 * testsuite/27_io/ios_base_members_static.cc (test02): Add test.
1198 * testsuite/27_io/ios_base_members_static-1.tst: Add expected output.
1200 2001-01-17 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
1202 * testsuite/27_io/istream_sentry.cc (test02): Fix.
1204 2001-01-17 Benjamin Kosnik <bkoz@redhat.com>
1207 * include/bits/ios_base.h (ios_base::failure): Tighten up throw specs.
1208 * src/ios.cc (ios_base::failure): Make definitions match.
1209 * libsupc++/typeinfo (class bad_typeid): Add throw specs.
1210 (class bad_cast): Same.
1211 * libsupc++/exception (class exception): Add throw specs.
1212 * libsupc++/exception_support.cc (set_terminate): Add throw specs.
1213 (set_unexpected): Same.
1214 (uncaught_exception): Same.
1217 * docs/html/17_intro/C++STYLE (classname): Fix.
1219 2001-01-16 Mark Mitchell <mark@codesourcery.com>
1221 * src/gen-num-limits.cc (INSTANTIATIONS): New macro.
1222 Use it do explicitly instantiate predicate<T> and value<T> for
1225 2001-01-16 Nathan Sidwell <nathan@codesourcery.com>
1227 * libsupc++/exception_support.cc (__cp_pop_exception): Fix
1228 uninitialized thinko in last change.
1230 2001-01-16 Mark Mitchell <mark@codesourcery.com>
1232 * libsupc++/exception_support.cc (__cp_pop_exception): Change
1235 2001-01-16 Benjamin Kosnik <bkoz@redhat.com>
1237 * docs/html/17_intro/C++STYLE (classname): Add more existing
1238 and stylish patterns.
1241 * include/bits/istream.tcc (istream::sentry::sentry()): Set
1242 failbit if the state of the stream is not good.
1243 * testsuite/27_io/istream_sentry.cc (test02): Add test.
1244 * testsuite/27_io/istream_manip.cc (test01): Modify.
1247 reported by Paolo Carlini <pcarlini@unitus.it>
1248 * include/bits/istream.tcc (operator>>(istream&, string&)): Fix.
1249 * testsuite/21_strings/inserters_extractors.cc (test08): Add test.
1252 * include/bits/std_streambuf.h (setp): Set _M_buf_size correctly.
1253 * include/bits/streambuf.tcc (xsputn): Remove outside if clause.
1254 (xsgetn): Same. Simplify.
1255 * testsuite/27_io/streambuf.cc (test04): Add testcases.
1257 reported by Larry Evans <jcampbell3@prodigy.net>
1258 * include/bits/streambuf.tcc (streambuf::xsputn): Just check for
1259 equality with eof on returned value from overflow.
1261 2001-01-14 Andreas Jaeger <aj@suse.de>
1263 * libio/libio.h: Add test for glibc 2.0.
1265 2001-01-12 Benjamin Kosnik <bkoz@redhat.com>
1267 * config/os/djgpp/bits/*: Fix dates.
1269 * include/bits/basic_string.h (_S_find(const _CharT* __beg, const
1270 _CharT* __end, _CharT __c): Remove.
1271 * include/bits/basic_string.tcc: Substitute traits::find for _S_find.
1272 * include/bits/char_traits.h: Tweak.
1274 2001-01-12 Laurynas Biveinis <lauras@softhome.net>
1276 * acinclude.m4 (GLIBCPP_CHECK_CTYPE_SUPPORT): check for DJGPP <ctype.h>
1277 (LIB_AC_PROG_CXX): replace [/\\] with [\\/] to work around older
1279 * aclocal.m4: regenerated.
1280 * configure.target: set os_include_dir to config/os/djgpp under DJGPP.
1281 * configure: regenerated.
1282 * config/os/djgpp, config/os/djgpp/bits: new directories.
1283 * config/os/djgpp/bits/ctype_base.h,
1284 config/os/djgpp/bits/ctype_inline.h,
1285 config/os/djgpp/bits/ctype_noninline.h,
1286 config/os/djgpp/bits/os_defines.h: new files.
1288 2001-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
1290 * include/c_std/bits/std_cstdio.h: Undef printf.
1292 2001-01-10 Benjamin Kosnik <bkoz@redhat.com>
1294 * src/ios.cc: Fix typo: change cout->wcout.
1296 * src/Makefile.am (targetincludep): Fix for version-specific-libs.
1297 * src/Makefile.in: Regenerate.
1299 2001-01-10 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
1301 * include/bits/std_complex.h: Fix a typo.
1303 2001-01-09 Benjamin Kosnik <bkoz@redhat.com>
1306 Fixes for libstdc++/1576
1307 * src/stdstreams.cc: Initialize with NULL filebuf. Delete
1308 file, move contents into....
1309 * src/ios.cc: ...Here. Put defines for iostreams objects and
1310 initialization routines into one file to simplify DSO interaction.
1311 * include/bits/std_iostream.h: Touch.
1312 * include/bits/ios_base.h (_S_synched_with_stdio): Make static.
1313 * src/Makefile.am (sources): Remove stdstreams.cc.
1314 * src/Makefile.in: Regenerate.
1316 2001-01-10 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
1318 * tests_flags.in (check_directory): Fix typo.
1320 2001-01-09 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
1322 * include/bits/std_complex.h: Fix a typo.
1324 2001-01-09 Loren J. Rittle <ljrittle@acm.org>
1326 * config/os/bsd/freebsd/bits/ctype_inline.h (is): (Make right
1327 code path:) Remove magic constants and restructure to handle
1328 ctype.h bit mask layout changes more gracefully. (Make fast
1329 code path:) Use __maskrune (), if available.
1330 (is): Remove special case for digit and xdigit masks.
1332 2001-01-09 Robert Lipe <robertlipe@usa.net>
1334 * include/c_std/bits/std_ctime.h: Undefine difftime.
1336 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
1338 * src/gen-num-limits.cc (signal_adapter): New template function.
1339 (signal_handler): Use it, instead of signal.
1340 (traps<T>): Likewise. Install SIGTRAP handler too. Don't
1341 require both tests to trap to set trap_flag.
1343 2001-01-08 Benjamin Kosnik <bkoz@redhat.com>
1345 * include/bits/fpos.h (fpos:::fpos(streamoff __pos)): Explicitly
1346 initialize mbstate_t member, name offset data members *off, not pos.
1347 * include/bits/fstream.tcc (filebuf::filebuf): Same.
1349 2001-01-08 Benjamin Kosnik <bkoz@redhat.com>
1351 reported by Chris G. Demetriou <cgd@sibyte.com>
1352 * configure.in: Change -linux-* to -linux*.
1353 * configure: Regenerate.
1355 2001-01-05 Benjamin Kosnik <bkoz@redhat.com>
1357 Fix 27_io/filebuf_members.cc
1358 * src/localename.cc (locale::_Impl::_Impl(const _Impl& __imp,
1359 const string& __name, category __cat, size_t __refs): Set
1360 _M_has_name with _M_name.
1361 * include/bits/localefwd.h (locale::operator!=): Protect member
1362 function call with this->.
1363 * src/locale.cc (locale::operator==): Make fast checks first.
1364 * include/bits/basic_ios.tcc (basic_ios::init): Simplify.
1366 * include/bits/ios_base.h (_M_synced_with_stdio): Add data member
1368 * src/ios.cc (ios_base::Init::Init): Initialize here.
1369 (ios_base::sync_with_stdio): Set here.
1371 2001-01-04 Loren J. Rittle <ljrittle@acm.org>
1373 * config/c_io_stdio.cc (__basic_file<_CharT>::sys_open()): On
1374 systems that support it, call dup() before fdopen().
1376 2001-01-03 Benjamin Kosnik <bkoz@redhat.com>
1378 * include/c_std/bits/std_cwctype.h: Include std_cwchar.h for wint_t.
1379 * testsuite/17_intro/header_cwctype.cc (main): New file.
1381 * src/Makefile.am (base_headers): Change.
1382 * include/bits/std_string.h: And here.
1383 * include/bits/string.tcc: Tweaks, move to...
1384 * include/bits/basic_string.tcc: ...Here.
1385 * src/string-inst.cc: Simplify, just instantiate the whole class,
1386 not member-by-member.
1388 2001-01-02 Benjamin Kosnik <bkoz@redhat.com>
1390 * acinclude.m4 (GLIBCPP_ENABLD_CSTDIO): Add in default value.
1391 * aclocal.m4: Regenerate.
1392 * configure: Regenerate.
1394 * include/bits/c++config (__GLIBCPP__): Bump version number.
1396 * ChangeLog: Start new log for year 2001
1397 * ChangeLog-2000: New file.
1399 * docs/html/configopts.html: Make sure default values are current,
1402 2001-01-01 Benjamin Kosnik <bkoz@fillmore.redhat.com>
1404 * include/c_std/bits/std_cwchar.h: Same.
1405 * testsuite/17_intro/header_cwchar.cc: Same.
1406 * include/c_std/bits/std_ctime.h: Same.
1407 * testsuite/17_intro/header_ctime.cc: Same.
1408 * include/c_std/bits/std_cstdlib.h: Same.
1409 Clean up undefs, make consistent with cwchar and cmath, etc.
1410 * testsuite/17_intro/header_cstdlib.cc: Same.
1411 * include/c_std/bits/std_cstdio.h: Same here.
1412 * testsuite/17_intro/header_cstring.cc: Same.
1413 * include/c_std/bits/std_cstring.h: Include std_cstddef.h for size_t.
1414 * testsuite/17_intro/header_cstring.cc: New file. Check for
1415 size_t in namespace std.
1417 * include/c_std/bits/std_cwchar.h: Explicit checks for mbstate_t.
1418 * acconfig.h (HAVE_MBSTATE_T): Add.
1419 * config.h.in: Regenerate.
1420 * acinclude.m4(GLIBCPP_CHECK_WCHAR_T_SUPPORT): Always test for
1422 * aclocal.m4: Regenerate.
1423 * configure: Regenerate.
1424 * testsuite/17_intro/headers_c++.cc: New file.
1425 * testsuite/17_intro/headers_c.cc: Small changes.
1427 2001-01-01 David Billinghurst <David.Billinghurst@riotinto.com>
1429 * tests_flags.in: Fix typo in usage.
1431 * tests_flags.in: Set target specific LIBS for cygwin.