forked from gcc-mirror/gcc
-
Notifications
You must be signed in to change notification settings - Fork 4
/
ChangeLog-2002
5596 lines (4371 loc) · 206 KB
/
ChangeLog-2002
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2002-12-30 Loren J. Rittle <[email protected]>
* src/Makefile.am: Resolve non-portable use of $<.
* src/Makefile.in: Rebuilt.
2002-12-30 Phil Edwards <[email protected]>
* configure.in (GLIBCPP_ENABLE_CXX_FLAGS): Do not pass arguments,
let the defaults work.
* configure: Regenerate.
2002-12-30 Phil Edwards <[email protected]>
* acinclude.m4: Remove trailing whitespace.
(GLIBCPP_ENABLE_CXX_FLAGS): Fix.
* aclocal.m4, configure: Regenerate.
2002-12-29 Phil Edwards <[email protected]>
* include/std/std_bitset.h: Better comments.
2002-12-28 Joseph S. Myers <[email protected]>
* docs/html/17_intro/porting.texi: Use @copying.
* docs/html/17_intro/porting.html: Regenerate.
2002-12-27 Mark Mitchell <[email protected]>
* config/locale/gnu/ctype_members.cc
(ctype<wchar_t>::_M_convert_to_wmask): Remove stray semicolon.
* config/locale/gnu/monetary_members.cc
(moneypunct<wchar_t, true>::_M_initialize_moneypunct): Avoid
defining classes in static_cast.
(moneypunct<wchar_t, false>::_M_initialize_moneypunct): Likewise.
* config/locale/gnu/numeric_members.cc
(numpunct<wchar_t, false>::_M_initialize_numpunct): Likewise.
* include/bits/stl_deque.h (operator-): Insert typename where
required.
* include/bits/stl_multiset.h (multiset): Remove stray semicolon.
* include/bits/stl_set.h (set): Likewise.
* include/bits/valarray_meta.h (bits/slice_array.h): Include it.
* include/std/std_fstream.h (basic_fstream::open): Use this-> to
avoid Koenig lookup.
(basic_fstream::close): Likewise.
* libsupc++/new (operator delete): Remove stray semicolon.
* libsupc++/new (operator delete[]): Likewise.
* libsupc++/tinfo.cc: Likewise.
* src/stdexcept.c (logic_error::~logic_error): Likewise.
(runtime_error::~runtime_error): Likewise.
2002-12-26 Phil Edwards <[email protected]>
* libsupc++/exception: Add comment (mistakenly skipped).
2002-12-26 Phil Edwards <[email protected]>
* include/std/std_bitset.h (_Base_bitset::_M_do_left_shift,
_Base_bitset::_M_do_right_shift): Expect a non-zero shift.
(bitset::operator<<=, bitset::operator>>=): When shifting more bits
than are in the bitset, zero memory rather than segfault.
(operator>>(basic_istream,bitset): Only call setstate once, after
all work has been done.
* testsuite/23_containers/bitset_members.cc (test03): New test.
* testsuite/23_containers/bitset_shift.cc (test02): New test.
2002-12-26 Phil Edwards <[email protected]>
* libsupc++/vterminate.cc (writestr): Use __builtin_strlen.
2002-12-26 Phil Edwards <[email protected]>
* libsupc++/eh_term_handler.cc: Add comment about embedded systems.
* docs/html/debug.html: Cosmetic and HTML changes. Point to
verb-term notes.
* docs/html/documentation.html: Link to the FAQ.
* docs/html/17_intro/howto.html: Mention use of isatty(3).
* docs/html/19_diagnostics/howto.html: Update verb-term description.
2002-12-25 Phil Edwards <[email protected]>
* src/vterminate.cc: Move to...
* libsupc++/vterminate.cc: ...here. New file. Replace fprintf with
writestr macro. Slight reword to explanatory text.
* libsupc++/eh_terminate.cc (__cxxabiv1::__terminate_handler,
__cxxabiv1::__unexpected_handler): Break definitions out to...
* libsupc++/eh_unex_handler.cc: ...here (new file), and...
* libsupc++/eh_term_handler.cc: ...here (new file). Initialize
__terminate_handler with __gnu_cxx::__verbose_terminate_handler
instead of std::abort.
* libsupc++/Makefile.am (sources), src/Makefile.am (sources): Update.
* libsupc++/Makefile.in, src/Makefile.in: Regenerate.
2002-12-23 Danny Smith <[email protected]>
* config/io/basic_file_stdio.cc (__basic_file::_M_open_mode):
Don't use O_NONBLOCK if it is not defined.
(__basic_file::open): Don't use fcntl either.
2002-12-20 Sylvain Pion <[email protected]>
* include/bits/stl_deque.h: Fix typo.
* include/bits/stl_list.h: Same.
* include/bits/stl_map.h: Same.
* include/bits/stl_multimap.h: Same.
* include/bits/stl_queue.h: Same.
* include/bits/stl_stack.h: Same.
* include/bits/stl_vector.h: Same.
2002-12-18 Benjamin Kosnik <[email protected]>
* docs/html/documentation.html: Add link for debug.html.
* docs/html/debug.html: New.
2002-12-18 Kaveh R. Ghazi <[email protected]>
* testsuite/23_containers/vector_capacity.cc (test03): Move ...
* testsuite/23_containers/vector_resize.cc: ...here as a new file.
Pass in -lmalloc for irix6.
* testsuite/27_io/ios_base_storage.cc: Pass in -lmalloc for irix6.
2002-12-18 Jason Merrill <[email protected]>
* src/vterminate.cc (__verbose_terminate_handler): Send
diagnostics to stderr.
2002-12-18 Ulrich Weigand <[email protected]>
* configure.in: Define with_target_subdir and with_build_subdir
variables in config-ml.in AC_OUTPUT call.
* configure: Regenerate.
2002-12-16 Paolo Carlini <[email protected]>
PR libstdc++/8949
* include/std/std_limits.h
(struct numeric_limits<short>,
struct numeric_limits<unsigned short>,
struct numeric_limits<int>,
struct numeric_limits<unsigned int>,
struct numeric_limits<long>,
struct numeric_limits<unsigned long>,
struct numeric_limits<long long>,
struct numeric_limits<unsigned long long>): According
to 18.2.1.2,53 and 18.2.1.5,1 is_iec559 shall be false.
* testsuite/18_support/numeric_limits.cc: Add test04.
2002-12-16 Benjamin Kosnik <[email protected]>
* configure.in (GLIBCPP_ENABLE_DEBUG): Default to none.
Call GLIBCPP_ENABLE_DEBUG_FLAGS.
* acinclude.m4 (GLIBCPP_ENABLE_DEBUG): GLIBCPP_BUILD_DEBUG, new
conditional if --enable-debug is yes. Rework.
(GLIBCPP_ENABLE_DEBUG_FLAGS): New.
* aclocal.m4: Regenerate.
* libio/Makefile.am: Remove DEBUG_FLAGS.
* libio/Makefile.in: Regenerate.
* libsupc++/Makefile.am: Remove DEBUG_FLAGS.
* libsupc++/Makefile.in: Regenerate.
* docs/html/configopts.html: Add docs for --enable-debug,
--enable-debug-flags.
2002-12-16 Benjamin Kosnik <[email protected]>
Correct dependency tracking, build warts.
* configure.in: Correct repeated AC_OUTPUT thrashing by
config-ml.in
* configure: Regenerate.
* include/Makefile.am (stamp-target): Stamp in top_builddir.
* include/Makefile.in: Regenerate.
* src/Makefile.am (codecvt_members.cc): New rule.
(collate_members.cc): Same.
(ctype_members.cc): Same.
(messages_members.cc): Same.
(monetary_members.cc): Same.
(numeric_members.cc): Same.
(time_members.cc): Same.
(c++locale.cc): Same.
(basic_file.cc): Same.
* src/Makefile.in: Regenerate.
* acinclude.m4 (CCTYPE_CHAR_CC): Remove.
(CCCODECVT_CC): Don't link, AC_SUBST.
(CCOLLATE_CC): Same.
(CCTYPE_CC): Same.
(CMESSAGES_CC): Same.
(CMONEY_CC): Same.
(CNUMERIC_CC): Same.
(CTIME_CC): Same.
(CLOCALE_CC): Same.
* aclocal.m4: Regenerate.
* src/Makefile.am (libstdc___la_LIBADD): Use top_builddir
for convenience libraries.
(version_arg): Rename linker.map to libstdc++.ver.
(libstdc___la_DEPENDENCIES): Remove linker.map, add
libstdc++-symbol.ver as a dependency.
(libstdc++-symbol.ver): Add rule.
* acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Change LINKER_MAP to
SYMVER_MAP. Don't link, AC_SUBST.
* include/Makefile.am (target_headers_noinst): New.
(stamp-target): Add CLOCALE_INTERNAL_H.
* acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Don't link
CLOCALE_INTERNAL_H, AC_SUBST.
* config/locale/gnu/c_locale.cc: Modify c++locale_internal.h
include.
* config/locale/gnu/time_members.cc: Same.
* config/locale/gnu/numeric_members.cc: Same.
* config/locale/gnu/monetary_members.cc: Same.
* config/locale/gnu/messages_members.cc: Same.
* config/locale/gnu/ctype_members.cc: Same.
* config/locale/gnu/collate_members.cc: Same.
* config/locale/gnu/codecvt_members.cc: Same.
* config/locale/generic/codecvt_members.cc: Remove.
2002-12-11 Paolo Carlini <[email protected]>
PR libstdc++/8887
* config/locale/generic/time_members.cc
(__timepunct<char>::_M_initialize_timepunct): Fix typos
in _M_date_format and _M_date_era_format string literals.
2002-12-10 Mark Mitchell <[email protected]>
* libsupc++/cxxabi.h (__cxa_bad_cast): Declare it.
(__cxa_bad_typeid): Likewise.
(__cxa_atexit): Likewise.
(__cxa_finalize): Likewise.
2002-12-09 Gabriel Dos Reis <[email protected]>
* include/bits/slice_array.h (slice_array<>::operator=): Fix typo.
2002-12-09 Mark Mitchell <[email protected]>
* libsupc++/cxxabi.h (__cxa_pure_virtual): Declare it.
2002-12-05 Benjamin Kosnik <[email protected]>
* testsuite/abi_check.cc: Add GLIBCPP_3.2.2.
2002-12-04 Paolo Carlini <[email protected]>
* config/locale/generic/codecvt_members.cc (codecvt::do_out
(state_type&, const intern_type*, const intern_type*,
const intern_type*&, extern_type*, extern_type*, extern_type*&),
codecvt::do_in(state_type&, const extern_type*, const extern_type*,
const extern_type*&, intern_type*, intern_type*, intern_type*&)):
Fully qualify min() with std::.
* config/locale/gnu/codecvt_members.cc: Ditto.
* locale/ieee_1003.1-2001/codecvt_specializations.h
(codecvt::do_length(const state_type&, const extern_type*,
const extern_type*, size_t): Ditto.
* include/bits/deque.tcc
(_M_range_initialize(_ForwardIterator, _ForwardIterator,
forward_iterator_tag), deque::_M_range_insert_aux(iterator,
_ForwardIterator, _ForwardIterator, forward_iterator_tag),
deque::_M_reallocate_map(size_type, bool)): Fully qualify
distance() and max() with std::.
* include/bits/fstream.tcc (basic_filebuf::seekoff(off_type,
ios_base::seekdir, ios_base::openmode)): Fully qualify max()
with std::.
* include/bits/istream.tcc (basic_istream::ignore(streamsize,
int_type), basic_istream::readsome(char_type*, streamsize)):
Fully qualify min() with std::.
* include/bits/locale_facets.tcc (time_get::_M_extract_name
(iter_type&, iter_type&, int&, const _CharT**, size_t,
ios_base::iostate&)): Ditto.
* include/bits/sstream.tcc (basic_stringbuf::overflow(int_type)):
Fully qualify max() with std::.
* include/bits/stl_algo.h (__inplace_stable_partition(_ForwardIter
__first, _ForwardIter, _Predicate, _Distance),
__stable_partition_adaptive(_ForwardIter, _ForwardIter, _Predicate,
_Distance, _Pointer, _Distance), __merge_sort_loop(_RandomAccessIter1,
_RandomAccessIter1, _RandomAccessIter2, _Distance),
__merge_sort_loop(_RandomAccessIter1, _RandomAccessIter1,
_RandomAccessIter2, _Distance, _Compare), lower_bound(_ForwardIter,
_ForwardIter, const _Tp&), lower_bound(_ForwardIter, _ForwardIter,
const _Tp&, _Compare), upper_bound(_ForwardIter, _ForwardIter,
const _Tp&), upper_bound(_ForwardIter, _ForwardIter, const _Tp&,
_Compare), equal_range(_ForwardIter, _ForwardIter, const _Tp&),
equal_range(_ForwardIter, _ForwardIter, const _Tp&, _Compare),
__merge_without_buffer(_BidirectionalIter, _BidirectionalIter,
_BidirectionalIter, _Distance, _Distance), __merge_without_buffer
(_BidirectionalIter, _BidirectionalIter, _BidirectionalIter,
_Distance, _Distance, _Compare), __rotate_adaptive(_BidirectionalIter1,
_BidirectionalIter1, _BidirectionalIter1, _Distance, _Distance,
_BidirectionalIter2, _Distance), __merge_adaptive(_BidirectionalIter,
_BidirectionalIter, _BidirectionalIter, _Distance, _Distance,
_Pointer, _Distance), __merge_adaptive(_BidirectionalIter,
_BidirectionalIter, _BidirectionalIter, _Distance, _Distance,
_Pointer, _Distance, _Compare), inplace_merge(_BidirectionalIter,
_BidirectionalIter, _BidirectionalIter), inplace_merge
(_BidirectionalIter, _BidirectionalIter, _BidirectionalIter,
_Compare), __find_end(_BidirectionalIter1, _BidirectionalIter1,
_BidirectionalIter2, _BidirectionalIter2, bidirectional_iterator_tag,
bidirectional_iterator_tag), __find_end(_BidirectionalIter1,
_BidirectionalIter1, _BidirectionalIter2, _BidirectionalIter2,
bidirectional_iterator_tag, bidirectional_iterator_tag,
_BinaryPredicate)): Fully qualify distance() and min() with std::.
* include/bits/stl_algobase.h (lexicographical_compare
(const unsigned char*, const unsigned char*, const unsigned char*,
const unsigned char*)): Fully qualify min() with std::.
* include/bits/stl_bvector.h (_M_insert_range(iterator,
_ForwardIterator, _ForwardIterator, forward_iterator_tag),
_M_assign_aux(_ForwardIterator, _ForwardIterator,
forward_iterator_tag),
_M_initialize_range(_ForwardIterator, _ForwardIterator,
forward_iterator_tag), _M_fill_insert(iterator, size_type, bool)):
Fully qualify distance() and max() with std::.
* include/bits/stl_deque.h
(_Deque_base::_M_initialize_map(size_t),
_M_assign_aux(_ForwardIterator, _ForwardIterator,
forward_iterator_tag)):
Ditto. * include/bits/stl_list.h (size()): Fully qualify
distance() with std::.
* include/bits/stl_tempbuf.h (_Temporary_buffer::_Temporary_buffer
(_ForwardIterator, _ForwardIterator)): Ditto.
* include/bits/stl_tree.h (_Rb_tree::erase(const _Key&),
_Rb_tree::count(const _Key&)): Ditto.
* include/bits/stl_vector.h (_M_range_initialize(_ForwardIterator,
_ForwardIterator, forward_iterator_tag)): Ditto.
* include/bits/streambuf.tcc (basic_streambuf::xsgetn(char_type*,
streamsize), basic_streambuf::xsputn(const char_type*, streamsize)):
Fully qualify min() with std::.
* include/bits/vector.tcc (_M_assign_aux(_ForwardIter, _ForwardIter,
forward_iterator_tag), _M_fill_insert(iterator, size_type,
const value_type&), _M_range_insert(iterator, _ForwardIterator,
_ForwardIterator, forward_iterator_tag)): Fully qualify max() and
distance() with std::.
* include/std/std_bitset.h (bitset::_M_copy_from_string
(const basic_string&, size_t, size_t)): Fully qualify min() with std::.
* include/std/std_streambuf.h (_M_pback_create()): Ditto.
* include/std/std_complex.h (abs(const complex<_Tp>&)):
Fully qualify max() with std::.
* include/std/std_sstream.h (str()): Ditto.
* src/codecvt.cc (codecvt::do_out(state_type&, const intern_type*,
const intern_type*, const intern_type*&, extern_type*, extern_type*,
extern_type*&), codecvt::do_in(state_type&, const extern_type*,
const extern_type*, const extern_type*&, intern_type*, intern_type*,
intern_type*&), codecvt::do_length(const state_type&,
const extern_type*, const extern_type*, size_t), do_length
(const state_type&, const extern_type*, const extern_type*,
size_t)): Fully qualify min() with std::.
* src/strstream.cc (strstreambuf::strstreambuf(streamsize),
strstreambuf::overflow(int_type)): Fully qualify max() with std::.
2002-12-02 Paolo Carlini <[email protected]>
* include/bits/basic_string.h (compare(const basic_string&)):
Fully qualify min() with std::.
2002-12-02 Benjamin Kosnik <[email protected]>
* configure.in (libtool_VERSION): Update to 5:2:0.
* configure: Regenerate.
2002-12-02 Paolo Carlini <[email protected]>
* include/bits/basic_string.tcc
(basic_string::append(const basic_string&, size_type,
size_type), basic_string::compare(size_type, size_type,
const basic_string&), basic_string::compare(size_type,
size_type, const basic_string&, size_type, size_type),
basic_string::compare(const _CharT*), basic_string::
compare(size_type, size_type, const _CharT*),
basic_string::compare(size_type, size_type, const _CharT*,
size_type), _S_string_copy(const basic_string&, _CharT*,
typename _Alloc::size_type)): Fully qualify min() with std::.
2002-12-02 Paolo Carlini <[email protected]>
* include/bits/basic_string.tcc
(basic_string::_S_construct(_InIter, _InIter, const _Alloc&,
forward_iterator_tag)): Delay the declaration of __dnew,
fully qualify distance() with std::.
(basic_string::_M_replace_safe): Fully qualify distance()
with std::.
2002-11-28 Phil Edwards <[email protected]>
PR libstdc++/8716
* testsuite/21_strings/ctor_copy_dtor.cc (test05): Also test
the NULL-pointer, zero-size case.
2002-11-28 Jonathan Wakely <[email protected]>
* docs/html/faq/index.html: Add tip about a namespace for extensions.
2002-11-28 Paolo Carlini <[email protected]>
Nathan Myers <[email protected]>
* src/localename.cc
(locale::_Impl::_Impl(const char*, size_t)):
Improve previous fix for the strtok vs MT issue.
2002-11-28 Paolo Carlini <[email protected]>
* config/locale/gnu/c_locale.cc (locale::_S_categories):
Reorder the categories to match that of glibc's setlocale(LC_ALL, ""))
* config/locale/generic/c_locale.cc (locale::_S_categories): Ditto.
* testsuite/22_locale/ctor_copy_dtor.cc (test04): Tweak.
2002-11-25 Benjamin Kosnik <[email protected]>
* testsuite/abi_check.cc: Add CXXABI_1.2.1 as compatible.
* config/linker-map.gnu: Version __cxa_guard_acquire,
__cxa_guard_release, __cxa_guard_abort in CXXABI_1.2.1.
2002-11-25 Paolo Carlini <[email protected]>
Nathan Myers <[email protected]>
* src/localename.cc
(locale::_Impl::_Impl(const char*, size_t)):
Avoid strtok for thread safety.
2002-11-25 Stephen M. Webb <[email protected]>
* testsuite/testsuite_allocator.h: New file.
* testsuite/testsuite_allocator.cc: New file.
* testsuite/Makefile.am: Added testsuite_allocator to test library.
* testsuite/testsuite_hooks.h: Added more detailed tracker objects
gnu_copy_constructor, gnu_assignment_operator, and gnu_destructor.
* testsuite/testsuite_hooks.cc: Added new static objects definitions.
* testsuite/23_containers/vector_capacity.cc: Added reserve() tests.
* testsuite/23_containers/vector_ctor.cc: Added a plethora of tests.
* testsuite/23_containers/deque_ctor.cc: Added a slew of new tests.
2002-11-25 Mark Mitchell <[email protected]>
* libsupc++/Makefile.am (sources): Add guard.cc.
* libsupc++/Makefile.in: Regenerated.
* libsupc++/cxxabi.h (__cxa_guard_acquire): New function.
(__cxa_guard_release): Likewise.
(__cxa_guard_abort): Likewise.
* libsupc++/guard.cc: New file.
2002-11-25 Wolfgang Bangerth <[email protected]>
* include/std/std_complex.h
(operator<<(basic_ostream&, const complex&)): Prefer 'x'
to "x" for efficiency sake.
* src/locale.cc (locale::locale(const char*)): Ditto.
2002-11-24 Paolo Carlini <[email protected]>
* src/locale.cc (locale::locale(const char*)):
Trivial cosmetic tweaks.
2002-11-22 Laszlo Ersek <[email protected]>
Paolo Carlini <[email protected]>
PR libstdc++/8645
* include/bits/stl_tree.h (_Rb_tree_rebalance_for_erase):
Don't check that __w->_M_left != 0 and __w->_M_right != 0
when they can't be otherwise.
2002-11-21 Phil Edwards <[email protected]>
* docs/html/documentation.html: Fix broken/thinko'd URL.
2002-11-21 Phil Edwards <[email protected]>
* docs/doxygen/run_doxygen: Tighter search expression for sed.
* docs/doxygen/stdheader.cc: Handle the case of good headers.
2002-11-21 Phil Edwards <[email protected]>
* acinclude.m4: Uniform formatting.
* configure.in: Warn when generic atomicity.h is used.
* configure.target: Fix comment.
* aclocal.m4, configure: Regenerate.
2002-11-21 Phil Edwards <[email protected]>
* include/bits/streambuf.tcc (basic_streambuf::sputbackc): Prefix
"this->" to call to pbackfail.
2002-11-21 Phil Edwards <[email protected]>
* docs/doxygen/style.css: Update.
* docs/doxygen/user.cfg.in: Update.
* docs/html/documentation.html: Regenerate.
* docs/html/17_intro/howto.html: Tweak I/O sentry entry.
* docs/html/27_io/howto.html: New section on headers.
* docs/html/faq/index.html: Add i386 threading entry.
* docs/html/faq/index.txt: Regenerate.
* docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
Import R23.
2002-11-21 Phil Edwards <[email protected]>
* docs/doxygen/TODO: Note change in clause 27 docs.
* include/bits/basic_ios.h, include/bits/fpos.h,
include/bits/ios_base.h, include/bits/stl_deque.h,
include/bits/stl_iterator_base_types.h, include/std/std_fstream.h,
include/std/std_iomanip.h, include/std/std_iosfwd.h,
include/std/std_iostream.h, include/std/std_istream.h,
include/std/std_ostream.h, include/std/std_sstream.h,
include/std/std_streambuf.h: Doxygenate all I/O entities.
2002-11-20 Benjamin Kosnik <[email protected]>
Jonathan Lennox <[email protected]>
* include/bits/streambuf.tcc (__copy_streambufs):
Revert previous fix for the interactive half of
libstdc++/6745, use _M_buf_size_opt to set dynamically
the correct buffer size.
2002-11-20 Jonathan Wakely <[email protected]>
* docs/html/21_strings/howto.html: Fix example code, cite Gaby's
explanation of "<unknown type>" error with toupper/tolower.
* docs/html/22_locale/howto.html: Be more consistent with
example in 21_strings.
2002-11-19 John Gustafsson <[email protected]>
* docs/html/20_util/howto.html: Fix typo.
2002-11-18 Jonathan Lennox <[email protected]>
* include/bits/streambuf.tcc (__copy_streambufs): verify
__sbin->gptr() + __bufsize < __sbin->egptr() before using.
* testsuite/27_io/ostream_inserter_other.cc (test_buffer_4): Add.
(test05): Use test_buffer_4. Delete unused ostringstream
variables.
2002-11-18 Paolo Carlini <[email protected]>
PR libstdc++/6745 (continued)
* include/bits/streambuf.tcc (__copy_streambufs):
Deal with interactive input by using isatty as in the
fix for libstdc++/8399.
2002-11-17 Jakub Jelinek <[email protected]>
* config/linker-map.gnu: Export _S_construct even if size_t is
unsigned long. Collapse std::codecvt<char>::codecvt(size_t)
and std::codecvt<wchar_t>::codecvt(size_t) into one export pattern.
2002-11-15 Benjamin Kosnik <[email protected]>
Gabriel Dos Reis <[email protected]>
PR libstdc++/8230
* include/bits/stl_alloc.h: Use builtin_expect for the most
obvious limit checks.
(__default_alloc_template::allocate): Check for null, throw
bad_alloc.
* include/bits/vector.tcc: Formatting tweaks.
* include/bits/stl_vector.h: Same.
* testsuite/20_util/allocator_members.cc (test02): Add.
* testsuite/23_containers/vector_capacity.cc (test03): Add.
2002-11-15 Rainer Orth <[email protected]>
* src/ios.cc [_GLIBCPP_HAVE_UNISTD_H]: Include unistd.h.
2002-11-15 Paolo Carlini <[email protected]>
Loren J. Rittle <[email protected]>
PR libstdc++/8399
* acinclude.m4
(GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): New macro to
check for unistd.h functions.
(GLIBCPP_CHECK_UNISTD_SUPPORT): New macro, check for isatty
in unistd.h.
* configure.in: Call here.
* src/ios.cc (ios_base::Init::_S_ios_create(bool)):
Use _GLIBCPP_HAVE_ISATTY: ifdef, in case of interactive
input __in_size = 1 even when sync_with_stdio is false;
otherwise fall back to __in_size = 1.
* aclocal.m4: Regenerate.
* config.h.in: Regenerate.
* configure: Regenerate.
2002-11-13 Benjamin Kosnik <[email protected]>
* acconfig.h (HAVE_DRAND48): Add.
(HAVE_GETPAGESIZE): Add.
(HAVE_SETENV): Add.
(HAVE_SIGSETJMP): Add.
* config.h.in: Regenerate.
* configure: Regenerate.
2002-11-13 John David Anglin <[email protected]>
* config/os/hpux/os_defines.h (_GLIBCPP_INST_ATOMICITY_LOCK): Define
on hppa when there is no weak support.
2002-11-13 Benjamin Kosnik <[email protected]>
PR libstdc++/8230
* include/bits/vector.tcc (vector::reserve): Throw length_error if
requested size is bigger than max_size().
* include/bits/stl_bvector.h (vector<bool>::reserve): Same.
* testsuite/23_containers/vector_capacity.cc (test02): Add.
2002-11-13 Benjamin Kosnik <[email protected]>
* config/linker-map.gnu: Export all _S_construct.
2002-11-13 Loren J. Rittle <[email protected]>
PR libstdc++/7445
* src/locale.cc (std::locale::classic()): Weaken locking protocol.
2002-11-13 Jonathan Wakely <[email protected]>
* docs/html/install.html, docs/html/22_locale/locale.html: HTML fix.
2002-11-11 Benjamin Kosnik <[email protected]>
PR libstdc++/6746
* include/bits/fstream.tcc (filebuf::open): Set input pointers.
* config/io/basic_file_stdio.cc (__basic_file::_M_open_mode): Set
__p_mode as well.
(__basic_file::open): Set to non-block for input.
* testsuite/27_io/istream_unformatted.cc (test12): Add.
(test13): Same.
2002-11-11 Jonathan Wakely <[email protected]>
* docs/html/17_intro/howto.html: Make "chapter 22 notes" a link.
* docs/html/faq/index.html: Mention that GCC ships with a newer
version of the library than the last snapshot. Make "see below" a
link. Add missing <html> tag.
* docs/html/faq/index.txt: Regenerate.
* docs/html/22_locale/locale.html, docs/html/22_locale/messages.html,
docs/html/23_containers/howto.html, docs/html/24_iterators/howto.html,
docs/html/25_algorithms/howto.html, docs/html/26_numerics/howto.html,
docs/html/27_io/howto.html, docs/html/ext/howto.html,
docs/html/ext/sgiexts.html: Add missing <html> tag.
2002-11-07 Phil Edwards <[email protected]>
Richard Earnshaw <[email protected]>
* config/cpu/generic/atomicity.h: Provide atomic __exchange_and_add
and __atomic_add.
2002-11-08 Paolo Carlini <[email protected]>
* config/locale/gnu/monetary_members.cc
(moneypunct<wchar_t, true>::_M_initialize_moneypunct(__c_locale,
const char*),
moneypunct<wchar_t, false>::_M_initialize_moneypunct(__c_locale,
const char*)): Tweak parameters for glibc2.3 systems, thus
avoiding unused parameter warnings.
2002-11-05 Jonathan Wakely <[email protected]>
* include/std/std_sstream.h
(basic_stringbuf::str(const __string_type&)):
Prefer data() to c_str(), thus avoiding assigning the
unnecessary NULL-terminator.
2002-11-05 Benjamin Kosnik <[email protected]>
PR libstdc++/8258
* include/bits/istream.tcc (istream::readsome): Don't set eofbit
for null buffer.
(istream::operator>>(_CharT*)): Use traits_type.
(istream::ws): Same.
(istream::operator>>(string)): Same.
* testsuite/27_io/istream_unformatted.cc (test11): Add.
2002-11-05 Paolo Carlini <[email protected]>
PR libstdc++/8466
* include/std/std_sstream.h
(basic_stringbuf::str(const __string_type&)):
Cannot use simple assignment since the COW-nature of v3
basic_string is not taken into account in basic_stringbuf.
* testsuite/27_io/stringstream_members.cc: Add test04 from PR.
2002-11-05 John David Anglin <[email protected]>
* configure.target (hppa*): Define cpu_include_dir.
* config/os/hpux/os_defines.h (_GLIBCPP_INST_ATOMICITY_LOCK): Define.
* src/misc-inst.cc: Instantiate atomicity lock when
_GLIBCPP_INST_ATOMICITY_LOCK is defined.
* config/cpu/hppa/atomicity.h: New file.
2002-11-05 Benjamin Kosnik <[email protected]>
PR libstdc++/8463
* include/bits/ios_base.h (~ios_base): Make virtual.
2002-11-04 Benjamin Kosnik <[email protected]>
* config/linker-map.gnu: Export string operator+.
Export __default_alloc_template::_S_force_new.
* testsuite/abi_check.cc: Output tweaks.
2002-11-01 Benjamin Kosnik <[email protected]>
PR libstdc++/8172
* src/string-inst.cc: Add instantiation.
2002-11-01 Benjamin Kosnik <[email protected]>
PR libstdc++/7926
* configure.target: Simplify.
* config/cpu/i386/atomicity.h: Remove.
* config/cpu/i386: Remove.
* config/cpu/arm/atomicity.h: Remove.
* config/cpu/arm: Remove.
* config/cpu/x86-64/atomicity.h: Remove.
* config/cpu/x86-64: Remove.
2002-11-01 Christian Ehrhardt <[email protected]>
PR libstdc++/8197
* config/link-map.gnu: Export math stubbs.
2002-11-01 Benjamin Kosnik <[email protected]>
PR libstdc++/8318
* include/std/std_iostream.h: Tweak.
* include/std/std_iosfwd.h: Add _GLIBCPP_USE_WCHAR_T.
* include/std/std_iomanip.h: Same.
* include/bits/stringfwd.h: Same.
* include/bits/basic_string.tcc: Same.
* include/bits/sstream.tcc: Same.
* include/bits/fstream.tcc: Same.
* include/bits/basic_ios.tcc: Same.
* include/bits/streambuf.tcc: Same.
* include/bits/locale_facets.tcc: Same.
2002-11-01 John Carter <[email protected]>
PR libstdc++/7961
* include/bits/basic_string.tcc
(compare(const _CharT* __s)): Don't access __s past its length.
2002-10-31 Zack Weinberg <[email protected]>
* libsupc++/eh_globals.cc: Don't call __gthread_key_dtor.
2002-10-31 Benjamin Kosnik <[email protected]>
PR libstdc++/8348
* include/bits/istream.tcc (istream::tellg): Remove sentry bits.
(istream::seekg): Same.
* testsuite/27_io/istream_seeks.cc (test06): New.
2002-10-28 Jason Thorpe <[email protected]>
* testsuite/thread/pthread5.cc: Include <unistd.h>
if _GLIBCPP_HAVE_UNISTD_H is defined.
(main): Only use pthread_attr_setscope if
_POSIX_THREAD_PRIORITY_SCHEDULING is defined.
2002-10-28 Jason Thorpe <[email protected]>
* testsuite/thread/pthread1.cc: Enable on *-*-netbsd*.
* testsuite/thread/pthread2.cc: Likewise.
* testsuite/thread/pthread3.cc: Likewise.
* testsuite/thread/pthread4.cc: Likewise.
* testsuite/thread/pthread5.cc: Likewise.
* testsuite/thread/pthread6.cc: Likewise.
2002-10-27 Paolo Carlini <[email protected]>
PR libstdc++/8347
* include/bits/basic_string.tcc
(string::_S_construct(_InIter, _InIter, const _Alloc&,
forward_iterator_tag)): Do not throw logic error if
__beg == NULL && __end == __beg.
(string::string(const _CharT*, const _Alloc&)): Tweak.
* testsuite/21_strings/ctor_copy_dtor.cc: Add test05 from PR.
2002-10-24 Hans-Peter Nilsson <[email protected]>
PR other/3337
PR bootstrap/6763
PR bootstrap/8122
* testsuite/testsuite_hooks.cc (__set_testsuite_memlimit): Use
__typeof__ (r.rlim_cur), not rlim_t in declaration of limit.
2002-10-23 Jakub Jelinek <[email protected]>
* testsuite/22_locale/num_put_members_char.cc (test01): Swap size
and decimal_point arguments of find.
* testsuite/22_locale/num_put_members_wchar_t.cc (test01): Likewise.
2002-10-22 Jakub Jelinek <[email protected]>
* Makefile.am (check-abi, new-abi-baseline): Use @glibcpp_srcdir@
instead of ${top_srcdir}.
* Makefile.in: Rebuilt.
2002-10-22 Loren J. Rittle <[email protected]>
* testsuite/18_support/numeric_limits.cc (test_extrema<long double>):
Remove specialization for FreeBSD systems.
2002-10-18 Loren J. Rittle <[email protected]>
* configure.target (freebsd*): Use abi_baseline_triplet.
* config/abi/i386-unknown-freebsd4/baseline_symbols.txt: New file.
* config/abi/i386-unknown-freebsd4.7/baseline_symbols.txt: Remove.
* testsuite/thread/pthread1.cc: Remove needless workaround
for FreeBSD 5.
2002-10-18 Loren J. Rittle <[email protected]>
Brad Spencer <[email protected]>
(provided alternate patch and improvements)
* docs/html/23_containers/howto.html (GLIBCPP_FORCE_NEW): Document
new environment variable which replaces all uses of __USE_MALLOC
macro.
* docs/html/ext/howto.html (GLIBCPP_FORCE_NEW): Likewise.
(__mem_interface): Remove all references to old internal typedef.
* include/backward/alloc.h (__USE_MALLOC): Remove it and all
guarded code.
* include/bits/c++config (__USE_MALLOC): Update related error
message and comment.
* include/bits/stl_alloc.h (__USE_MALLOC): Remove it and all
guarded code. Update all related comments.
(__mem_interface): Unconditionally replace it with __new_alloc.
However, leave the typedef around in case anyone used it.
(__default_alloc_template<>::_S_force_new): New class static.
(__default_alloc_template<>::allocate, deallocate): Add
run-time controlled feature similar to what __USE_MALLOC code
path had provided.
* src/stl-inst.cc (__USE_MALLOC): Remove it and all
guarded code.
* testsuite/21_strings/capacity.cc: Remove reference to __USE_MALLOC.
Add documentation on GLIBCPP_FORCE_NEW environment variable.
* testsuite/ext/allocators.cc: Likewise.
2002-10-18 Phil Edwards <[email protected]>
* configure.in: Use target, not target_alias, when matching triplet
patterns.
* configure: Regenerate.
2002-10-17 Momchil Velikov <[email protected]>
Loren J. Rittle <[email protected]>
* configure.in: Add *-freebsd* to cross list.
* configure: Rebuilt.
2002-10-16 Benjamin Kosnik <[email protected]>
* include/bits/locale_facets.h (__timepunct::__timepunct): Allocate
_M_name_timepunct.
(__timepunct::~__timepunct): Deallocate, remove specialization
declarations.
(messages::messages): Allocate _M_name_messages.
(messages::~messages): Deallocate.
(messages_byname): Same.
* config/locale/gnu/time_members.cc (__timepunct::~__timepunct):
Remove.
* config/locale/generic/time_members.cc (__timepunct::~__timepunct):
Remove.
* docs/html/install.html: Add es_MX, en_PH to required locales list.
2002-10-16 Benjamin Kosnik <[email protected]>
* config/linker-map.gnu: Add exports for codecvt constructors
where size_t == unsigned long.
2002-10-14 Benjamin Kosnik <[email protected]>
* src/globals.cc (__gnu_cxx::c_locale_impl_compat): Add, alias to
c_locale_impl.
* testsuite/abi_check.cc (line_to_symbol_info): Collect size info.
* docs/html/abi.txt: Update.
2002-10-14 Benjamin Kosnik <[email protected]>
* testsuite/22_locale/static_members.cc (test02): Less provincial.
2002-10-14 Benjamin Kosnik <[email protected]>
* testsuite/22_locale/static_members.cc (test02): Disable for
systems without named locale support.
* testsuite/22_locale/ctor_copy_dtor.cc (test04): Don't assume
running the testsuites in "C" environment.
Add new tests.
* docs/html/22_locale/locale.html: Update.
2002-10-13 Danny Smith <[email protected]>
* include/bits/stl_threads.h (_GLIBCPP_mutex,
_GLIBCPP_mutex_init,_GLIBCPP_mutex_address,
_GLIBCPP_mutex_address_init, _GLIBCPP_once):
Declare in namespace __gnu_cxx.
(_STL_mutex_lock::_M_initialize): Qualify __gnu_cxx
names.
Adjust copyright.
2002-10-12 Benjamin Kosnik <[email protected]>
* testsuite/abi_check.cc (hash<string>): Specialize.
Simplify. Check compatible symbol versions.
* config/linker-map.gnu: Clarify, explicitly export
std::codecvt::c* symbols.
* testsuite/22_locale/static_members.cc (test02): Avoid null strings.
2002-10-12 Jonathan Wakely <[email protected]>
Gabriel Dos Reis <[email protected]>
* docs/html/21_strings/howto.html#5: Correct nasting of XHTML
elements. Correct allocator-related text.
2002-10-11 Benjamin Kosnik <[email protected]>
* testsuite/22_locale/static_members.cc (test02): Fix.
2002-10-11 Benjamin Kosnik <[email protected]>
* acconfig.h (_GLIBCPP_SYMVER): Add.
(_GLIBCPP_ASM_SYMVER): Add.
* acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Define _GLIBCPP_SYMVER.
* aclocal.m4: Regenerate.
* config.h.in: Regenerate.
* configure: Regenerate.
* include/bits/c++config (_GLIBCPP_AT_AT): Define, as an expedient
hack around m4 issues with quoting '@'.
* src/locale.cc: Use _GLIBCPP_ASM_SYMVER.
* src/globals.cc: Same.
* testsuite/22_locale/ctor_copy_dtor.cc (test04): Fix for
non-glibc systems.
2002-10-10 Benjamin Kosnik <[email protected]>
* config/linker-map.gnu (GLIBCPP_3.2.1): Add.
(GLIBCPP_3.2): Don't export locale::_S_*.
* src/ios.cc: Move globals into __gnu_cxx. Make old exported
symbols match.
* src/locale.cc: Same.
* src/localename.cc: Same.
* src/globals.cc: Same.
2002-10-10 Phil Edwards <[email protected]>
* docs/html/21_strings/howto.html: Write #5, char_traits.
* docs/html/17_intro/porting.texi: Expand on os_include_dir.
* docs/html/17_intro/porting.html: Regenerate.
2002-10-09 Benjamin Kosnik <[email protected]>
* src/locale.cc: Fix comments, move ctors together.
* testsuite/22_locale/static_members.cc (test03): Add.
2002-10-08 Jonathan Lennox <[email protected]>
PR libstdc++/8071, libstdc++/8127, libstdc++/6745
* streambuf.tcc (__copy_streambufs): Handle cases where
__sbin->in_avail() returns 0, or where __sbin doesn't set gptr().
* testsuite/27_io/ostream_inserter_other.cc (test05): Add.
2002-10-08 Paolo Carlini <[email protected]>
Benjamin Kosnik <[email protected]>
* include/bits/localefwd.h (class locale): Add static member
_S_num_extra_categories, encoding the number of additional
categories.
Change _S_num_categories to _S_categories_size.
(class locale::_Impl): Add _M_c_cats.
(class locale::_Impl::_M_names): Change to array of chars.
(class locale::_Impl::_M_check_same_name): Use
_S_extra_categories_size, tweak.
(locale::locale(const locale&, _Facet*)): Ditto.
* src/locale.cc (locale::locale(const char* )): Rewrite to deal
with the environment in a POSIX-compliant way while being thread
safe.
(locale::name()): Update to output POSIX environment strings.
* src/localename.cc
(locale::_Impl::_Impl(const _Impl&, size_t): Use
_S_categories_size_*, tweak.
(locale::_Impl::_Impl(facet**, size_t, bool)): Ditto.
(locale::_Impl::_Impl(const char*, size_t)): Name each category
individually.
(locale::_Impl::_M_replace_categories): Use strcpy.
* include/bits/locale_facets.h (numpunct::_M_initialize_numpunct):
Change default argument to NULL from _S_c_locale.
(timepunct::_M_initialize_timepunct): Same.
_S_c_locale cleanups.
* src/codecvt.c: _S_c_locale simplification.
* src/ctype.c: Same.
* src/globals.cc: Add fake_name.
* src/locale-inst.cc: Remove extra includes.
* src/locale.cc: Remove extra includes.
Add _S_extra_categories_size definition.
Correct "C" initialization.
(locale::facet::facet): Don't initialize _S_c_locale.
(locale::facet::_M_remove_reference): Adjust.
* src/localename: Use facet_vec, facet_name.
(locale::_Impl::_Impl(facet** __f, size_t __refs, bool)): Set