]>
Commit | Line | Data |
---|---|---|
8865bf80 PC |
1 | 2004-01-24 Paolo Carlini <pcarlini@suse.de> |
2 | ||
3 | * include/bits/basic_string.h (insert(size_type, | |
4 | const basic_string&, size_type, size_type)): Define inline here. | |
5 | * include/bits/basic_string.tcc (insert(size_type, | |
6 | const basic_string&, size_type, size_type)): Move inline. | |
7 | ||
fefe561e PC |
8 | 2004-01-24 Paolo Carlini <pcarlini@suse.de> |
9 | ||
10 | * include/bits/basic_string.h (assign(const basic_string&, | |
11 | size_type, size_type)): Define inline here. | |
12 | (replace(size_type, size_type, const basic_string&, | |
13 | size_type, size_type)): Ditto. | |
14 | (_M_replace_dispatch(iterator, iterator, _InputIterator, | |
15 | _InputIterator, __false_type)): Only declare. | |
16 | (_M_replace(iterator, iterator, _InputIterator, | |
17 | _InputIterator)): Remove. | |
18 | * include/bits/basic_string.tcc (assign(const basic_string&, | |
19 | size_type, size_type)): Move inline. | |
20 | (replace(size_type, size_type, const basic_string&, | |
21 | size_type, size_type)): Ditto. | |
22 | (_M_replace_dispatch(iterator, iterator, _InputIterator, | |
23 | _InputIterator, __false_type)): Define, now does also what | |
24 | _M_replace did before. | |
25 | * src/string-inst.cc (_M_replace): Don't instantiate. | |
26 | ||
27 | * include/bits/basic_string.tcc (find(const _CharT*, | |
28 | size_type, size_type)): Tidy. | |
29 | (rfind(_CharT, size_type)): Ditto. | |
30 | (find_first_not_of(const _CharT*, size_type, size_type)): Ditto. | |
31 | (find_first_not_of(_CharT, size_type)): Ditto. | |
32 | (find_last_not_of(const _CharT*, size_type, size_type)): Ditto. | |
33 | (find_last_not_of(_CharT, size_type)): Ditto. | |
34 | ||
72afd981 PC |
35 | 2004-01-23 Paolo Carlini <pcarlini@suse.de> |
36 | ||
37 | PR libstdc++/13838 | |
38 | * include/debug/bitset (operator|=): Fix typo. | |
39 | * testsuite/23_containers/bitset/operations/13838.cc: New. | |
40 | ||
251804e6 PC |
41 | 2004-01-23 Paolo Carlini <pcarlini@suse.de> |
42 | ||
43 | * include/bits/basic_string.tcc (insert(size_type, | |
44 | const _CharT*, size_type __n)): Fix length_error check. | |
45 | (replace(size_type, size_type, const _CharT*, size_type): | |
46 | Ditto; call _M_replace_safe. | |
47 | (_M_replace_aux(size_type, size_type, size_type, _CharT): | |
48 | Fix length_error check. | |
49 | (_M_replace(iterator, iterator, _InputIterator, | |
50 | _InputIterator)): Ditto, tweak. | |
51 | (_M_replace_safe(size_type, size_type, const _CharT*, | |
52 | size_type)): Remove length_error check. | |
53 | ||
54 | * include/bits/basic_string.tcc (append(const basic_string&), | |
55 | append(const basic_string&, size_type, size_type)): Tweak | |
56 | comment. | |
57 | ||
58 | * include/bits/basic_string.tcc (copy(_CharT*, size_type, | |
59 | size_type)): If __n == 0 don't call traits::copy. | |
60 | ||
3cfb44c2 SO |
61 | 2004-01-23 Stefan Olsson <stefan@snon.net> |
62 | ||
63 | * include/ext/mt_allocator.h: Reduce lock contention. | |
64 | ||
22352844 PC |
65 | 2004-01-23 Paolo Carlini <pcarlini@suse.de> |
66 | ||
67 | PR libstdc++/13831 | |
68 | * include/bits/fstream.tcc (underflow): Remove unused | |
69 | variable. | |
70 | * include/bits/streambuf_iterator.h (equal): Ditto. | |
71 | * include/bits/locale_facets.h (_M_convert_from_char): | |
72 | Ditto. | |
73 | ||
129057c1 KG |
74 | 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
75 | ||
76 | PR c/13814 | |
77 | * config/linker-map.gnu (nan): Delete. | |
78 | * libmath/mathconf.h (NAN, nan): Delete. | |
79 | * linkage.m4 (nan): Don't check for it. | |
80 | * libmath/nan.c: Delete file. | |
81 | ||
82 | * config.h.in, configure: Regenerate. | |
83 | ||
0e707673 PC |
84 | 2004-01-23 Paolo Carlini <pcarlini@suse.de> |
85 | ||
86 | * include/bits/basic_string.h (push_back(_CharT)): | |
87 | Call _M_replace_aux. | |
88 | (insert(size_type, const basic_string&)): Trivial tweak. | |
89 | (insert(size_type, size_type, _CharT)): Call _M_replace_aux. | |
90 | (insert(iterator, _CharT)): Ditto. | |
91 | (erase(size_type, size_type)): Ditto. | |
92 | (erase(iterator)): Ditto. | |
93 | (erase(iterator, iterator)): Ditto. | |
94 | (replace(size_type, size_type, size_type, _CharT)): Ditto. | |
95 | ||
402b0954 LR |
96 | 2004-01-23 Loren J. Rittle <ljrittle@acm.org> |
97 | ||
98 | libstdc++/13823 | |
99 | * testsuite/performance/allocator_map_thread.cc: New test. | |
100 | ||
ba46e66a PC |
101 | 2004-01-22 Paolo Carlini <pcarlini@suse.de> |
102 | ||
103 | * include/bits/locale_facets.tcc | |
104 | (money_put::do_put(..., long double)): Use the basic_string | |
105 | constructor for char arrays, not that for C-strings, to pass | |
106 | __digits to do_put(..., const string_type&): __ws isn't | |
107 | null-terminated. | |
108 | ||
7bb9b33b PC |
109 | 2004-01-22 Paolo Carlini <pcarlini@suse.de> |
110 | ||
111 | * include/bits/basic_string.h (_M_replace_safe): Change | |
112 | signatures to take size_types and const _CharT*. | |
113 | (_M_replace_aux): Likewise, takes size_types instead of | |
114 | iterators. | |
115 | (append(size_type, _CharT)): Update call. | |
116 | (assign(size_type, _CharT)): Ditto. | |
117 | (replace(iterator, iterator, size_type, _CharT)): Ditto. | |
118 | (_M_replace_dispatch(iterator, iterator, _Integer, | |
119 | _Integer, __true_type)): Ditto. | |
120 | * include/bits/basic_string.tcc (assign(const _CharT*, | |
121 | size_type)): Ditto. | |
122 | (insert(size_type, const _CharT*, size_type)): Ditto. | |
123 | (replace(size_type, size_type, const _CharT*, | |
124 | size_type)): Ditto. | |
125 | (_M_replace(iterator, iterator, _InputIterator, | |
126 | _InputIterator)): Ditto. | |
127 | (append(const basic_string&)): Ditto. | |
128 | (append(const basic_string&, size_type, size_type): Ditto. | |
129 | (append(const _CharT*, size_type): Ditto. | |
130 | (_M_replace_safe, _M_replace_safe): Change definitions | |
131 | accordingly, simplify. | |
132 | * string-inst.cc (_M_replace_safe): Don't instantiate. | |
133 | ||
3e7782b2 PC |
134 | 2004-01-21 Paolo Carlini <pcarlini@suse.de> |
135 | ||
136 | * include/bits/basic_string.tcc (append(const basic_string&)): | |
137 | Revert previous change. | |
138 | (append(const basic_string&, size_type, size_type)): Revert | |
139 | previous change, use _M_check and _M_limit. | |
140 | ||
e03a6fb7 PC |
141 | 2004-01-21 Paolo Carlini <pcarlini@suse.de> |
142 | ||
143 | * include/bits/basic_string.h (_M_check): Change to return | |
144 | a checked __pos and take an additional const char* argument. | |
145 | (_M_fold): Rename to _M_limit, change to return a size_type, | |
146 | corresponding to the __off limited to the actual length. | |
147 | (insert(size_type, size_type, _CharT)): Update call, call | |
148 | replace. | |
149 | (insert(iterator, _CharT)): Call replace(iterator, iterator, | |
150 | size_type, _CharT) instead. | |
151 | (erase(size_type, size_type)): Update calls. | |
152 | (replace(size_type, size_type, size_type, _CharT)): Ditto. | |
153 | (substr(size_type, size_type)): Use _M_check. | |
154 | * include/bits/basic_string.tcc (basic_string(const basic_string&, | |
155 | size_type, size_type)): Update calls. | |
156 | (basic_string(const basic_string&, size_type, size_type, | |
157 | const _Alloc&)): Ditto. | |
158 | (assign(const basic_string&, size_type, size_type)): Use the | |
159 | new _M_check and _M_limit. | |
160 | (insert(size_type, const basic_string&, size_type, size_type): | |
161 | Ditto. | |
162 | (insert(size_type, const _CharT*, size_type)): Ditto. | |
163 | (replace(size_type, size_type, const _CharT*, size_type): Ditto. | |
164 | (replace(size_type, size_type, const basic_string&, | |
165 | size_type, size_type)): Ditto. | |
166 | (append(const basic_string&)): Ditto. | |
167 | (append(const basic_string&, size_type, size_type)): Ditto. | |
168 | (copy(_CharT*, size_type, size_type)): Ditto. | |
169 | (compare(size_type, size_type, const basic_string&)): Ditto. | |
170 | (compare(size_type, size_type, const basic_string&,size_type, | |
171 | size_type)): Ditto. | |
172 | (compare(size_type, size_type, const _CharT*)): Ditto. | |
173 | (compare(size_type, size_type, const _CharT*, size_type)): Ditto. | |
174 | ||
cec73eb5 SO |
175 | 2004-01-19 Stefan Olsson <stefan@snon.net> |
176 | ||
177 | * include/ext/mt_allocator.h: If a thread, when it dies, still has | |
178 | memory on it's freelist this memory is not returned to global | |
179 | list. Simplification of deallocate so that memory is always | |
180 | returned to the calling thread id's freelist instead of to | |
181 | global. Fix typos. Add volatile where appropriate. | |
182 | ||
87d11ccc LR |
183 | 2004-01-19 Loren J. Rittle <ljrittle@acm.org> |
184 | ||
185 | * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered. | |
186 | * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but | |
187 | use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream. | |
188 | ||
f18be892 PC |
189 | 2004-01-19 Paolo Carlini <pcarlini@suse.de> |
190 | ||
191 | * src/debug.cc: Make sure all the names are prefixed with | |
192 | double (or single) underscore. | |
193 | ||
33d4e9b2 PC |
194 | 2004-01-19 Paolo Carlini <pcarlini@suse.de> |
195 | ||
196 | * src/debug.cc: Trivial formatting change. | |
197 | ||
954b12d2 PC |
198 | 2004-01-19 Paolo Carlini <pcarlini@suse.de> |
199 | ||
200 | * include/bits/basic_string.tcc (_S_construct(size_type, | |
201 | _CharT, const _Alloc&)): Remove redundant try/catch. | |
202 | (_M_mutate(size_type, size_type, size_type)): Ditto. | |
203 | (_M_clone(const _Alloc&, size_type)): Ditto. | |
204 | ||
acbab5bf PC |
205 | 2004-01-18 Paolo Carlini <pcarlini@suse.de> |
206 | ||
207 | * include/bits/basic_string.h (c_str()): Simplify, due to | |
208 | 21.3.4 the internal representation is always kept null-terminated. | |
209 | * include/bits/basic_string.tcc (_M_clone): Null-terminate. | |
210 | * testsuite/21_strings/basic_string/element_access/char/4.cc: New. | |
211 | * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc: | |
212 | Ditto. | |
213 | ||
9c96a689 PC |
214 | 2004-01-18 Paolo Carlini <pcarlini@suse.de> |
215 | ||
216 | * include/bits/basic_string.h (append(size_type, _CharT)): | |
217 | Moved inline, just call _M_replace_aux, no source iterators at | |
218 | risk of being clobbered. | |
219 | (assign(size_type, _CharT)): Call directly _M_replace_aux. | |
220 | (_M_replace(iterator, iterator, _InputIterator, _InputIterator, | |
221 | input_iterator_tag)): Remove fifth unused argument. | |
222 | (_M_replace_dispatch(iterator, iterator, _InputIterator, | |
223 | _InputIterator, __false_type)): Update call. | |
224 | * include/bits/basic_string.tcc (replace(size_type, size_type, | |
225 | const _CharT*, size_type)): Update call. | |
226 | (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak | |
227 | throw string literal. | |
228 | (_M_replace_safe(iterator, iterator, _ForwardIterator, | |
229 | _ForwardIterator)): Likewise. | |
230 | (_M_replace(iterator, iterator, _InputIterator, _InputIterator, | |
231 | input_iterator_tag)): Remove fifth unused argument. | |
232 | (append(size_type __n, _CharT __c)): Move inline. | |
233 | * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator, | |
234 | const C*, const C*, input_iterator_tag)): Remove fifth unused | |
235 | argument. | |
236 | ||
d517f626 BK |
237 | 2004-01-16 Benjamin Kosnik <bkoz@redhat.com> |
238 | ||
239 | * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards. | |
240 | * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same. | |
241 | ||
701b701b DS |
242 | 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net> |
243 | ||
244 | * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling | |
245 | mkfifo for mingw32. | |
246 | ||
2913770f SO |
247 | 2004-01-15 Stefan Olsson <stefan@snon.net> |
248 | ||
249 | * include/ext/mt_allocator.h: Reuse thread id's as soon as | |
250 | possible by changing the behaviour of thread_freelist to do | |
251 | push_front when threads die instead of push_back. | |
252 | ||
47f62b27 PC |
253 | 2004-01-14 Paolo Carlini <pcarlini@suse.de> |
254 | ||
255 | * include/bits/locale_facets.h (struct __numpunct_cache): | |
256 | Add member _M_grouping_size, caching the length of _M_grouping. | |
257 | (__numpunct_cache<>::_M_cache): Assign the latter. | |
258 | (__verify_grouping): Move declaration... | |
259 | * include/bits/locale_facets.tcc (__verify_grouping): | |
260 | ... here, change signature to take a const char* and a size_t | |
261 | for the grouping; not a template anymore. | |
262 | (__add_grouping, num_put::_M_group_int, num_put::_M_group_float): | |
263 | Likewise change signature and tweak consistently. | |
264 | (num_get::_M_extract_float, num_get::_M_extract_int, | |
265 | num_put::_M_insert_int, num_put::_M_insert_float, | |
266 | money_get::do_get(string_type&), money_get::do_put(string_type)): | |
267 | Update callers. | |
268 | * config/locale/generic/numeric_members.cc | |
269 | (numpunct<>::_M_initialize_numpunct): Assign the new member. | |
270 | * config/locale/gnu/numeric_members.cc | |
271 | (numpunct<>::_M_initialize_numpunct): Likewise. | |
272 | * src/locale-inst.cc (__add_grouping): Tweak signature. | |
273 | (__verify_grouping): Don't instantiate, not a template anymore. | |
274 | ||
275 | * include/bits/locale_facets.h: Rename _M_truename_len -> | |
276 | _M_truename_size, _M_falsename_len -> _M_falsename_size. | |
277 | * include/bits/locale_facets.tcc: Likewise. | |
278 | * config/locale/generic/numeric_members.cc: Likewise. | |
279 | * config/locale/gnu/numeric_members.cc: Likewise. | |
280 | ||
41f24725 SO |
281 | 2004-01-14 Stefan Olsson <stefan@snon.net> |
282 | ||
283 | * include/ext/mt_allocator.h: Fixups. | |
284 | * testsuite/performance/allocator.cc: Enable __mt_alloc tests. | |
285 | * testsuite/performance/allocator_thread.cc: Same. | |
286 | ||
070ce57b BK |
287 | 2004-01-13 Benjamin Kosnik <bkoz@redhat.com> |
288 | ||
289 | * testsuite/performance/ifstream_extract_float.cc: Add higher | |
290 | precision tests. | |
291 | * testsuite/performance/ofstream_insert_float.cc: Same. | |
292 | ||
c9513590 PC |
293 | 2004-01-13 Paolo Carlini <pcarlini@suse.de> |
294 | ||
295 | * src/locale-misc-inst.cc (__convert_from_v(long), | |
296 | __convert_from_v(unsigned long), __convert_from_v(long long), | |
297 | __convert_from_v(unsigned long long)): Remove, unused. | |
298 | ||
60af005f BK |
299 | 2004-01-13 Benjamin Kosnik <bkoz@redhat.com> |
300 | ||
301 | * testsuite/performance/ifstream_extract_float.cc: New. | |
302 | * testsuite/performance/ofstream_insert_float.cc: Float generation | |
303 | matches above. | |
304 | ||
305 | * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into... | |
306 | * 20_util/auto_ptr/1.cc: ...this. | |
307 | * 20_util/auto_ptr/2.cc: Same. | |
308 | * 20_util/auto_ptr/3.cc: Same. | |
309 | * 20_util/auto_ptr/3946.cc: Same. | |
310 | * 20_util/auto_ptr/4.cc: Same. | |
311 | * 20_util/auto_ptr/5.cc: Same. | |
312 | * 20_util/auto_ptr/6.cc: Same. | |
313 | * 20_util/auto_ptr/7.cc: Same. | |
314 | * 20_util/auto_ptr/assign_neg.cc | |
315 | * 20_util/pairs.cc: Break into... | |
316 | * 20_util/pair/1.cc: ...this. | |
317 | * 20_util/pair/2.cc: Same. | |
318 | * 20_util/pair/3.cc: Same. | |
319 | * 20_util/pair/4.cc: Same. | |
320 | ||
d8ef7dec PC |
321 | 2004-01-13 Paolo Carlini <pcarlini@suse.de> |
322 | ||
323 | * include/bits/locale_facets.tcc (num_get::do_get(void*&)): | |
324 | Set correctly just basefield, the only group that matters. | |
325 | ||
5640461d PC |
326 | 2004-01-13 Paolo Carlini <pcarlini@suse.de> |
327 | ||
328 | * include/ext/rope (_Rope_rep_alloc_base): Eliminate. | |
329 | (_Rope_rep_base): Inherit directly from the rope allocator; | |
330 | use rebinding instead of _Alloc_traits; pick up data member | |
331 | from _Rope_rep_alloc_base. | |
332 | (_Rope_alloc_base): Eliminate. | |
333 | (_Rope_base): Inherit directly from the rope allocator; use | |
334 | rebinding instead of _Alloc_traits; pick up data member from | |
335 | _Rope_alloc_base. | |
336 | (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation, | |
337 | rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak. | |
338 | ||
95c9624f PC |
339 | 2004-01-13 Paolo Carlini <pcarlini@suse.de> |
340 | ||
341 | PR libstdc++/13650 | |
342 | * include/bits/basic_string.tcc (compare(size_type, size_type, | |
343 | const _CharT*, size_type)): Implement correctly the resolution | |
344 | of DR 5: basically, s is a char array, -not- a C string. | |
345 | * include/bits/basic_string.h: Tweak some comments. | |
346 | * testsuite/21_strings/basic_string/compare/char/13650.cc: New. | |
347 | * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New. | |
348 | ||
c91de77a AT |
349 | 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch> |
350 | ||
351 | * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for | |
352 | Solaris. | |
353 | ||
300b3317 PC |
354 | 2004-01-12 Paolo Carlini <pcarlini@suse.de> |
355 | ||
356 | * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: | |
357 | Use try_mkfifo. | |
358 | * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: | |
359 | Likewise. | |
360 | ||
dc6798f8 PC |
361 | 2004-01-12 Paolo Carlini <pcarlini@suse.de> |
362 | ||
363 | * include/bits/locale_facets.h (struct __numpunct_cache): | |
364 | Add members _M_truename_len and _M_falsename_len, caching | |
365 | the lengths of _M_truename and _M_falsename. | |
366 | (__numpunct_cache<>::_M_cache): Assign the latter. | |
367 | * include/bits/locale_facets.tcc (num_get::do_get(bool&), | |
368 | num_put::do_put(bool)): Use the new members, thus avoiding | |
369 | computing string lengths again and again. | |
370 | * config/locale/generic/numeric_members.cc | |
371 | (numpunct<>::_M_initialize_numpunct): Assign the new members. | |
372 | * config/locale/gnu/numeric_members.cc | |
373 | (numpunct<>::_M_initialize_numpunct): Likewise. | |
374 | ||
ea1ea21a MM |
375 | 2004-01-12 Mark Mitchell <mark@codesourcery.com> |
376 | ||
377 | * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it. | |
378 | * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define | |
379 | it. | |
380 | * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo | |
381 | and remove Cygwin XFAIL. | |
382 | * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise. | |
383 | * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise. | |
384 | * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise. | |
385 | * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: | |
386 | Likewise. | |
387 | * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise. | |
388 | * testsuite/27_io/objects/char/7.cc: Likewise. | |
389 | * testsuite/27_io/objects/char/9661-1.cc: Likewise. | |
390 | * testsuite/27_io/objects/wchar_t/7.cc: Likewise. | |
391 | * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise. | |
392 | ||
3b3bfc0e GDR |
393 | 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net> |
394 | ||
395 | * include/std/std_complex.h (std::complex<>::real): Return a | |
396 | reference. Add non-const overload. | |
397 | (std::complex<>::real): Likewise. | |
398 | (std::real): Likewise. | |
399 | (std::imag): Likewise. | |
400 | (std::operator+): Tidy. | |
401 | (std::operator-): Likewise. | |
402 | (std::operator*): Likewise. | |
403 | (std::operator/): Likewise. | |
404 | (std::operator>>): Likewise. | |
405 | ||
09625c16 PC |
406 | 2004-01-11 Paolo Carlini <pcarlini@suse.de> |
407 | ||
408 | PR libstdc++/13582 | |
409 | * include/bits/fstream.tcc (imbue): Exploit the external | |
410 | buffer to imbue 'on the fly' a new locale and convert its | |
411 | remainder with the new codecvt facet. | |
412 | (underflow): Tweak slightly to deal with this special case. | |
413 | * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New. | |
414 | * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto. | |
415 | * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto. | |
416 | * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto. | |
417 | * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto. | |
418 | ||
a8d65349 PC |
419 | 2004-01-10 Paolo Carlini <pcarlini@suse.de> |
420 | ||
421 | * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html: | |
422 | Import Revision 28. | |
423 | ||
b656faa8 PC |
424 | 2004-01-10 Paolo Carlini <pcarlini@suse.de> |
425 | ||
426 | PR libstdc++/13630 | |
427 | * include/bits/locale_classes.h (class locale): Fix category | |
428 | typedef. | |
429 | * testsuite/22_locale/locale/13630.cc: Add. | |
430 | ||
f88e4715 GB |
431 | 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org> |
432 | ||
433 | * include/bits/locale_facets.h: Make a name really dependent. This | |
434 | will be needed when Core Issue 224 is implemented. | |
435 | ||
64cb2c4a PC |
436 | 2004-01-09 Paolo Carlini <pcarlini@suse.de> |
437 | ||
438 | * testsuite/performance/allocator.cc: Demangle typeid(obj).name(). | |
439 | * testsuite/performance/allocator_thread.cc: Likewise. | |
440 | ||
158960ba BK |
441 | 2004-01-07 Benjamin Kosnik <bkoz@redhat.com> |
442 | ||
443 | * crossconfig.m4: Add LFS, io bits to linux cross config. | |
444 | * acconfig.h: Remove obsolete bits, reorder. | |
445 | * config.h.in: Regenerate. | |
446 | * aclocal.m4: Same. | |
447 | * configure: Same. | |
448 | ||
e135a038 BK |
449 | 2004-01-07 Gawain Bolton <gp.bolton@computer.org> |
450 | ||
451 | * include/bits/stl_list.h: | |
452 | * include/bits/list.tc: | |
453 | * src/list.cc: | |
454 | Performance enhancements for destructor, push_front(), | |
455 | push_back(), pop_front(), pop_back(), sort() | |
456 | Eliminated static_casts where possible. | |
457 | Moved code out of header files into new src/list.cc | |
458 | implementation file for library where possible. | |
459 | Remove inheritance from iterator class and create separate | |
460 | classes for non-constant and constant iterators. | |
461 | * include/bits/stl_tree.h (_Rb_tree class): | |
462 | * src/tree.cc: | |
463 | Only erase contents in destructor. | |
464 | Eliminate unnecessary initialization in assignment operator. | |
465 | Optimize for the nominal case by not checking whether | |
466 | container is empty in clear(). | |
467 | Re-order test in _M_insert() to improve performance. | |
468 | Move initialization of new node's left & right pointers to | |
469 | src/tree.cc to where new node's colour is initialized | |
470 | and to reduce the amount of inline code. | |
471 | Use _M_leftmost() and _M_end() to improve readability where | |
472 | appropriate. | |
473 | Create separate classes for non-constant and constant | |
474 | iterators to clarify code, avoid extra template parameters and | |
475 | casting away constness. | |
476 | ||
477 | 2004-01-07 Benjamin Kosnik <bkoz@redhat.com> | |
478 | ||
479 | * src/Makefile.am (sources): Add list.cc, tree.cc. | |
480 | * src/stl_tree.cc: Move to... | |
481 | * src/tree.cc: ...here. | |
482 | * src/list.cc: Add. | |
483 | * config/linker-map.gnu: Tweaks. | |
484 | * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors. | |
485 | * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors. | |
486 | ||
487 | * bits/stl_vector.h: Column wrap comments. | |
488 | ||
677e7ddc LR |
489 | 2004-01-07 Loren J. Rittle <ljrittle@acm.org> |
490 | ||
491 | (re-open) PR libstdc++/12658 | |
492 | * src/locale_init.cc (locale::locale): Remove ill-scoped mutex. | |
493 | (locale::global): Likewise. | |
494 | ||
d8f5bd50 PC |
495 | 2004-01-07 Paolo Carlini <pcarlini@suse.de> |
496 | ||
497 | * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc: | |
498 | Remove redundant #include. | |
499 | * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise. | |
500 | * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise, | |
501 | re-enable normal testing. | |
502 | * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant | |
503 | #include. | |
504 | * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise. | |
505 | * testsuite/27_io/basic_ostream/inserters_character/char/1.cc: | |
506 | Likewise. | |
507 | * testsuite/27_io/basic_ostream/inserters_character/char/2.cc: | |
508 | Likewise. | |
509 | * testsuite/27_io/basic_ostream/inserters_character/char/3.cc: | |
510 | Likewise. | |
511 | * testsuite/27_io/basic_ostream/inserters_character/char/4.cc: | |
512 | Likewise. | |
513 | * testsuite/27_io/basic_ostream/inserters_character/char/5.cc: | |
514 | Likewise. | |
515 | * testsuite/27_io/basic_ostream/inserters_character/char/6.cc: | |
516 | Likewise. | |
517 | * testsuite/27_io/basic_ostream/inserters_character/char/8.cc: | |
518 | Likewise. | |
519 | * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc: | |
520 | More properly, #include <locale>. | |
521 | * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc: | |
522 | Remove redundant #include. | |
523 | * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise. | |
524 | * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove | |
525 | redundant DejaGnu directive. | |
526 | * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove | |
527 | redundant #include. | |
528 | ||
b61f9bf0 BK |
529 | 2004-01-06 Benjamin Kosnik <bkoz@redhat.com> |
530 | Stefan Olsson <stefan@snon.net> | |
531 | ||
532 | * scripts/check_performance: Use -pthread. | |
533 | * testsuite/performance/allocator.cc: Tweaks, add list. | |
534 | * testsuite/performance/allocator_thread.cc: New. | |
535 | ||
b74a6851 | 536 | 2004-01-06 Jerry Quinn <jlquinn@optonline.net> |
9a01c9b0 JQ |
537 | |
538 | * include/bits/locale_facets.h: Document public classes and | |
539 | functions. | |
540 | * include/bits/locale_facets.tcc (time_get::_M_extract_via_format): | |
541 | Add comment. | |
542 | ||
b80115c4 PC |
543 | 2004-01-06 Paolo Carlini <pcarlini@suse.de> |
544 | ||
545 | * testsuite/27_io/basic_istream/extractors_other/char/1.cc: | |
546 | Remove redundant #includes. | |
547 | * testsuite/27_io/basic_istream/extractors_other/char/2.cc: | |
548 | Likewise. | |
549 | * testsuite/27_io/basic_istream/extractors_other/char/3.cc: | |
550 | Likewise. | |
551 | * testsuite/27_io/basic_istream/get/char/1.cc: Likewise. | |
552 | * testsuite/27_io/basic_istream/get/char/2.cc: Likewise. | |
553 | * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise. | |
554 | * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise. | |
555 | * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise. | |
556 | * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise. | |
557 | * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise. | |
558 | * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise. | |
559 | * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise. | |
560 | * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise. | |
561 | * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise. | |
562 | * testsuite/27_io/basic_istream/read/char/1.cc: Likewise. | |
563 | * testsuite/27_io/basic_istream/read/char/2.cc: Likewise. | |
564 | * testsuite/27_io/basic_istream/read/char/3.cc: Likewise. | |
565 | * testsuite/27_io/basic_istream/readsome/char/6746-1.cc: | |
566 | Likewise. | |
567 | * testsuite/27_io/basic_istream/readsome/char/6746-2.cc: | |
568 | Likewise. | |
569 | * testsuite/27_io/basic_istream/readsome/char/8258.cc: | |
570 | Likewise. | |
571 | * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc: | |
572 | Likewise. | |
573 | * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc: | |
574 | Likewise. | |
575 | * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise. | |
576 | * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise. | |
577 | * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise. | |
578 | ||
22ed0590 | 579 | 2004-01-04 Paolo Carlini <pcarlini@suse.de> |
223b5084 PC |
580 | |
581 | * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: | |
582 | Remove redundant #includes. | |
583 | * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: | |
584 | Likewise. | |
585 | * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: | |
586 | Likewise. | |
587 | * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: | |
588 | Likewise. | |
589 | * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: | |
590 | Likewise. | |
591 | * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: | |
592 | Likewise. | |
593 | * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: | |
594 | Likewise. | |
595 | * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: | |
596 | Likewise. | |
597 | * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc: | |
598 | Likewise. | |
599 | * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc: | |
600 | Likewise. | |
601 | * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: | |
602 | Likewise. | |
603 | * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: | |
604 | Likewise. | |
605 | * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: | |
606 | Likewise. | |
607 | ||
4f8163b1 MM |
608 | 2004-01-04 Mark Mitchell <mark@codesourcery.com> |
609 | ||
610 | PR c++/12226 | |
611 | * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy | |
612 | constructor. | |
613 | * testsuite/27_io/basic_fstream/4.cc: Likewise. | |
614 | * testsuite/27_io/basic_ifstream/4.cc: Likewise. | |
615 | * testsuite/27_io/basic_ios/4.cc: Likewise. | |
616 | * testsuite/27_io/basic_iostream/4.cc: Likewise. | |
617 | * testsuite/27_io/basic_istream/4.cc: Likewise. | |
618 | * testsuite/27_io/basic_istingstream/4.cc: Likewise. | |
619 | * testsuite/27_io/basic_ofstream/4.cc: Likewise. | |
620 | * testsuite/27_io/basic_ostream/4.cc: Likewise. | |
621 | * testsuite/27_io/basic_ostringstream/4.cc: Likewise. | |
622 | * testsuite/27_io/basic_stringbuf/5.cc: Likewise. | |
623 | * testsuite/27_io/basic_stringstream/4.cc: Likewise. | |
624 | ||
17fa5560 PC |
625 | 2004-01-04 Paolo Carlini <pcarlini@suse.de> |
626 | ||
627 | * config/locale/generic/numeric_members.cc (_M_initialize_numpunct): | |
628 | Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in; | |
629 | always use double underscored names. | |
630 | * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct): | |
631 | Likewise. | |
632 | * include/bits/locale_facets.h (struct __numpunct_cache): | |
633 | Dimension _M_atoms_out and _M_atoms_in one position smaller. | |
634 | (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out | |
635 | and _M_atoms_in. |