]>
Commit | Line | Data |
---|---|---|
cde650fe FD |
1 | 2018-06-13 François Dumont <fdumont@gcc.gnu.org> |
2 | ||
3 | * include/debug/debug.h (__glibcxx_requires_can_increment_range): New. | |
4 | (__glibcxx_requires_can_decrement_range): New. | |
5 | ||
84a9d3b6 FD |
6 | 2018-06-12 François Dumont <fdumont@gcc.gnu.org> |
7 | ||
8 | * include/debug/macros.h (__glibcxx_check_can_increment_range): New. | |
9 | (__glibcxx_check_can_decrement_range): New. | |
84a9d3b6 FD |
10 | * include/bits/stl_algobase.h (std::copy(_II, _II, _OI)): Use |
11 | __glibcxx_requires_can_increment_range. | |
12 | (std::move(_II, _II, _OI)): Likewise. | |
13 | (std::copy_backward(_BI, _BI, _BI2)): Use | |
14 | __glibcxx_requires_can_decrement_range. | |
15 | (std::move_backward(_BI, _BI, _BI2)): Likewise. | |
16 | * testsuite/25_algorithms/copy_backward/debug/1_neg.cc: New. | |
17 | * testsuite/25_algorithms/copy_backward/debug/2_neg.cc: New. | |
18 | * testsuite/25_algorithms/copy_backward/debug/3_neg.cc: New. | |
19 | * testsuite/25_algorithms/equal/debug/1_neg.cc: New. | |
20 | * testsuite/25_algorithms/equal/debug/2_neg.cc: New. | |
21 | * testsuite/25_algorithms/equal/debug/3_neg.cc: New. | |
22 | ||
dd9db6f8 JW |
23 | 2018-06-12 Jonathan Wakely <jwakely@redhat.com> |
24 | ||
25 | P0935R0 Eradicating unnecessarily explicit default constructors | |
26 | * include/bits/random.h (linear_congruential_engine) | |
27 | (mersenne_twister_engine, subtract_with_carry_engine, random_device) | |
28 | (uniform_real_distribution, normal_distribution) | |
29 | (lognormal_distribution, gamma_distribution, chi_squared_distribution) | |
30 | (cauchy_distribution, fisher_f_distribution, student_t_distribution) | |
31 | (bernoulli_distribution, binomial_distribution,geometric_distribution) | |
32 | (negative_binomial_distribution, exponential_distribution) | |
33 | (weibull_distribution, extreme_value_distribution): Add non-explicit | |
34 | default constructors. Remove default argument for first parameter of | |
35 | explicit constructors. | |
36 | (piecewise_constant_distribution, piecewise_linear_distribution): | |
37 | Make default constructor non-explicit. | |
38 | * include/bits/uniform_int_dist.h (uniform_int_distribution): Add | |
39 | non-explicit default constructors. Remove default argument for first | |
40 | parameter of explicit constructor. | |
41 | (simd_fast_mersenne_twister_engine, beta_distribution) | |
42 | (rice_distribution, nakagami_distribution, pareto_distribution) | |
43 | (k_distribution, arcsine_distribution, hoyt_distribution) | |
44 | (triangular_distribution, von_mises_distribution) | |
45 | (hypergeometric_distribution, logistic_distribution) | |
46 | (uniform_inside_sphere_distribution): Likewise. | |
47 | (uniform_on_sphere_distribution): Make default constructor | |
48 | non-explicit. | |
49 | * testsuite/26_numerics/random/bernoulli_distribution/cons/default.cc: | |
50 | Test for non-explicit default constructor. Fix references to standard. | |
51 | * testsuite/26_numerics/random/binomial_distribution/cons/default.cc: | |
52 | Likewise. | |
53 | * testsuite/26_numerics/random/cauchy_distribution/cons/default.cc: | |
54 | Likewise. | |
55 | * testsuite/26_numerics/random/chi_squared_distribution/cons/default.cc: | |
56 | Likewise. | |
57 | * testsuite/26_numerics/random/discrete_distribution/cons/default.cc: | |
58 | Likewise. | |
59 | * testsuite/26_numerics/random/exponential_distribution/cons/default.cc: | |
60 | Likewise. | |
61 | * testsuite/26_numerics/random/extreme_value_distribution/cons/default.cc: | |
62 | Likewise. | |
63 | * testsuite/26_numerics/random/fisher_f_distribution/cons/default.cc: | |
64 | Likewise. | |
65 | * testsuite/26_numerics/random/gamma_distribution/cons/default.cc: | |
66 | Likewise. | |
67 | * testsuite/26_numerics/random/geometric_distribution/cons/default.cc: | |
68 | Likewise. | |
69 | * testsuite/26_numerics/random/lognormal_distribution/cons/default.cc: | |
70 | Likewise. | |
71 | * testsuite/26_numerics/random/negative_binomial_distribution/cons/default.cc: | |
72 | Likewise. | |
73 | * testsuite/26_numerics/random/normal_distribution/cons/default.cc: | |
74 | Likewise. | |
75 | * testsuite/26_numerics/random/piecewise_constant_distribution/cons/default.cc: | |
76 | Likewise. | |
77 | * testsuite/26_numerics/random/piecewise_linear_distribution/cons/default.cc: | |
78 | Likewise. | |
79 | * testsuite/26_numerics/random/poisson_distribution/cons/default.cc: | |
80 | Likewise. | |
81 | * testsuite/26_numerics/random/student_t_distribution/cons/default.cc: | |
82 | Likewise. | |
83 | * testsuite/26_numerics/random/uniform_int_distribution/cons/default.cc: | |
84 | Likewise. | |
85 | * testsuite/26_numerics/random/uniform_real_distribution/cons/default.cc: | |
86 | Likewise. | |
87 | * testsuite/26_numerics/random/weibull_distribution/cons/default.cc: | |
88 | Likewise. | |
89 | * testsuite/ext/random/arcsine_distribution/cons/default.cc: Likewise. | |
90 | * testsuite/ext/random/beta_distribution/cons/default.cc: Likewise. | |
91 | * testsuite/ext/random/hoyt_distribution/cons/default.cc: Likewise. | |
92 | * testsuite/ext/random/hypergeometric_distribution/cons/default.cc: | |
93 | Likewise. | |
94 | * testsuite/ext/random/k_distribution/cons/default.cc: Likewise. | |
95 | * testsuite/ext/random/logistic_distribution/cons/default.cc: Likewise. | |
96 | * testsuite/ext/random/nakagami_distribution/cons/default.cc: Likewise. | |
97 | * testsuite/ext/random/normal_mv_distribution/cons/default.cc: | |
98 | Likewise. | |
99 | * testsuite/ext/random/pareto_distribution/cons/default.cc: Likewise. | |
100 | * testsuite/ext/random/rice_distribution/cons/default.cc: Likewise. | |
101 | * testsuite/ext/random/triangular_distribution/cons/default.cc: | |
102 | Likewise. | |
103 | * testsuite/ext/random/uniform_inside_sphere_distribution/cons/default.cc: | |
104 | Likewise. | |
105 | * testsuite/ext/random/uniform_on_sphere_distribution/cons/default.cc: | |
106 | Likewise. | |
107 | * testsuite/ext/random/von_mises_distribution/cons/default.cc: | |
108 | Likewise. | |
109 | * testsuite/util/testsuite_common_types.h | |
110 | (implicitly_default_constructible): New helper. | |
111 | ||
a1417556 JW |
112 | 2018-06-08 Jonathan Wakely <jwakely@redhat.com> |
113 | ||
114 | * include/bits/ios_base.h (ios::Init::Init(const Init&)) | |
115 | (ios::Init::operator=): Define as defaulted. | |
116 | * include/bits/stl_bvector.h (_Bit_reference(const _Bit_reference&)): | |
117 | Likewise. | |
118 | * include/bits/stream_iterator.h (istream_iterator::operator=) | |
119 | (ostream_iterator::operator=): Likewise. | |
120 | * include/bits/streambuf_iterator.h (istreambuf_iterator::operator=) | |
121 | Likewise. | |
122 | * include/std/bitset (bitset::reference::reference(const reference&)): | |
123 | Likewise. | |
124 | * include/std/complex (complex<float>::complex(const complex&)) | |
125 | (complex<double>::complex(const complex&)) | |
126 | (complex<long double>::complex(const complex&)): Likewise. | |
127 | ||
c962b2c3 JW |
128 | 2018-06-07 Jonathan Wakely <jwakely@redhat.com> |
129 | ||
130 | * include/bits/regex.h (sub_match): Add noexcept to default | |
131 | constructor and length observer. | |
132 | (match_results): Add noexcept to default constructor and observers | |
133 | with no preconditions. Define destructor as defaulted. | |
134 | (operator==, operator!=, swap): Add noexcept. | |
135 | (regex_iterator): Add default member initializers and define default | |
136 | constructor and destructor as defaulted. Add noexcept to equality | |
137 | and dereference operators. | |
138 | ||
7a205f50 FD |
139 | 2018-06-07 François Dumont <fdumont@gcc.gnu.org> |
140 | ||
141 | * src/c++11/debug.cc | |
142 | (_Safe_iterator_base::_M_detach()): Reset state only if needed. | |
143 | (_Safe_iterator_base::_M_detach_single()): Likewise. | |
144 | (_Safe_local_iterator_base::_M_detach()): Reset state only if needed. | |
145 | (_Safe_local_iterator_base::_M_detach_single()): Likewise. | |
146 | ||
9d67f13e JW |
147 | 2018-06-06 Jonathan Wakely <jwakely@redhat.com> |
148 | ||
149 | * include/bits/shared_ptr_base.h (__shared_count): Remove redundant | |
150 | move of const value. | |
151 | ||
fe16acf2 JJ |
152 | 2018-06-06 Jakub Jelinek <jakub@redhat.com> |
153 | ||
154 | PR c++/86068 | |
155 | * include/bits/c++config: Check __cpp_transactional_memory >= 201500L | |
156 | rather than __cpp_transactional_memory >= 201505L. | |
157 | ||
7db54ccd JW |
158 | 2018-06-06 Jonathan Wakely <jwakely@redhat.com> |
159 | ||
160 | PR libstdc++/86008 | |
161 | * include/bits/quoted_string.h (_Quoted_string<basic_string_view, C>): | |
162 | Define new partial specialization. | |
163 | * include/std/iomanip (quoted(basic_string_view<C,T>, C, C)): Define | |
164 | new overload. | |
165 | (operator<<(basic_ostream<C,T>&, const _Quoted_string<S,C>&)): Use | |
166 | value not reference for iteration. | |
167 | * testsuite/27_io/manipulators/standard/char/quoted.cc: Adjust | |
168 | comment. | |
169 | * testsuite/27_io/manipulators/standard/char/quoted_sv.cc: New test. | |
170 | * testsuite/27_io/manipulators/standard/wchar_t/quoted.cc: Adjust | |
171 | comment. | |
172 | ||
ce6efef8 JW |
173 | 2018-06-05 Jonathan Wakely <jwakely@redhat.com> |
174 | ||
d4b695e4 JW |
175 | * include/std/type_traits: Fix comment typos. |
176 | ||
ce6efef8 JW |
177 | * testsuite/27_io/filesystem/operations/read_symlink.cc: XFAIL for |
178 | mingw* targets. | |
179 | * testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise. | |
180 | * testsuite/experimental/filesystem/operations/read_symlink.cc: | |
181 | Likewise. | |
182 | ||
d31238cf FD |
183 | 2018-06-05 François Dumont <fdumont@gcc.gnu.org> |
184 | ||
185 | * include/bits/stl_tempbuf.h | |
186 | (_Temporary_buffer(_FwdIte, _FwdIte)): Delete, replaced by... | |
187 | (_Temporary_buffer(_FwdIte, size_type)): ...this, new. | |
188 | * include/ext/memory (temporary_buffer<>(_FwdIte, _FwdIte)): Adapt. | |
189 | * include/bits/stl_algo.h (__stable_partition): Adapt. | |
190 | (__inplace_merge): Adapt. | |
191 | (__stable_sort): Adapt. | |
192 | ||
dbda636d JW |
193 | 2018-06-04 Jonathan Wakely <jwakely@redhat.com> |
194 | ||
d552d819 JW |
195 | PR libstdc++/85930 |
196 | * include/bits/shared_ptr_base.h [!__cpp_rtti]: Include <typeinfo> | |
197 | unconditionally. Remove redundant declaration. | |
198 | [!__cpp_rtti] (_Sp_make_shared_tag::_S_ti): Fix location of | |
199 | alignment-specifier. | |
200 | ||
389f7757 JW |
201 | * include/bits/postypes.h (fpos): Define special members as defaulted. |
202 | ||
dbda636d JW |
203 | PR libstdc++/85930 |
204 | * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Align | |
205 | the static variable correctly. | |
206 | ||
9534a5e6 JW |
207 | 2018-05-24 Jonathan Wakely <jwakely@redhat.com> |
208 | ||
209 | PR libstdc++/78870 support std::filesystem on Windows | |
210 | * config.h.in: Regenerate. | |
211 | * configure: Regenerate. | |
212 | * configure.ac: Check for link, readlink and symlink. | |
213 | * include/bits/fs_path.h (path::operator/=(const path&)): Move | |
214 | definition out of class body. | |
215 | (path::is_absolute(), path::_M_append(path)): Likewise. | |
216 | (operator<<(basic_ostream, const path&)): Use std::quoted directly. | |
217 | (operator>>(basic_istream, path&)): Likewise. | |
218 | (u8path): Reorder definitions and fix Windows implementation. | |
219 | (path::is_absolute()): Define inline and fix for Windows. | |
220 | [!_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::operator/=(const path&)): | |
221 | Define POSIX version inline. | |
222 | (path::_M_append(path)): Define inline. | |
223 | * include/experimental/bits/fs_path.h (path::is_absolute()): Move | |
224 | definition out of class body. | |
225 | (operator<<(basic_ostream, const path&)): Fix type of delimiter and | |
226 | escape characters. | |
227 | (operator>>(basic_istream, path&)): Likewise. | |
228 | (path::is_absolute()): Define inline and fix for Windows. | |
229 | * src/filesystem/dir-common.h (__gnu_posix): New namespace. | |
230 | (__gnu_posix::char_type, __gnu_posix::DIR, __gnu_posix::dirent) | |
231 | (__gnu_posix::opendir, __gnu_posix::readdir, __gnu_posix::closedir): | |
232 | Define as adaptors for Windows functions/types or as | |
233 | using-declarations for POSIX functions/types. | |
234 | (_Dir_base, get_file_type): Qualify names to use declarations from | |
235 | __gnu_posix namespace. | |
236 | (_Dir_base::is_dor_or_dotdot): New helper functions. | |
237 | * src/filesystem/dir.cc (_Dir, recursive_directory_iterator): Qualify | |
238 | names to use declarations from __gnu_posix namespace. | |
239 | * src/filesystem/ops-common.h (__gnu_posix): New nested namespace. | |
240 | (__gnu_posix::open, __gnu_posix::close, __gnu_posix::stat_type) | |
241 | (__gnu_posix::stat, __gnu_posix::lstat, __gnu_posix::mode_t) | |
242 | (__gnu_posix::chmod, __gnu_posix::mkdir, __gnu_posix::getcwd) | |
243 | (__gnu_posix::chdir, __gnu_posix::utimbuf, __gnu_posix::utime) | |
244 | (__gnu_posix::rename, __gnu_posix::truncate, __gnu_posix::char_type): | |
245 | Define as adaptors for Windows functions/types or as | |
246 | using-declarations for POSIX functions/types. | |
247 | (stat_type, do_copy_file): Qualify names to use declarations from | |
248 | __gnu_posix namespace. | |
249 | (do_space): Declare new function. | |
250 | (make_file_type): Only use S_ISLNK if defined. | |
251 | * src/filesystem/ops.cc (char_ptr, filesystem::canonical): Use | |
252 | path::value_type not char. | |
253 | (filesystem::copy, create_dir, filesystem::create_directory): Qualify | |
254 | names to use declarations from __gnu_posix namespace. | |
255 | (filesystem::create_hard_link): Check HAVE_LINK autoconf macro and | |
256 | add implementation for Windows. | |
257 | (filesystem::create_symlink): Check HAVE_SYMLINK autoconf macro. | |
258 | (filesystem::current_path(error_code&)): Use __gnu_posix::getcwd. | |
259 | [!_PC_PATH_MAX]: Don't use pathconf. | |
260 | [PATH_MAX]: Use if defined. | |
261 | (filesystem::current_path(const path&, error_code&)) | |
262 | (filesystem::equivalent, do_stat, filesystem::hard_link_count) | |
263 | (filesystem::last_write_time, filesystem::permissions): Use names | |
264 | from __gnu_posix. | |
265 | (filesystem::read_symlink): Check HAVE_READLINK autoconf macro. | |
266 | (filesystem::remove) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Add | |
267 | implementation for Windows. | |
268 | (filesystem::rename, filesystem::resize_file): Use names from | |
269 | __gnu_posix. | |
270 | (filesystem::space): Use do_space. | |
271 | [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Get absolute path to directory. | |
272 | (filesystem::status, filesystem::symlink_status): Use names from | |
273 | __gnu_posix. | |
274 | (filesystem::temp_directory_path): Add implementation for Windows. | |
275 | * src/filesystem/path.cc (dot): Define constant. | |
276 | (path::replace_extension): Use dot. | |
277 | (path::_M_find_extension): Likewise. Use path::string_type not | |
278 | std::string. | |
279 | (path::_M_split_cmpts): Use dot. | |
280 | (filesystem_error::_M_get_what): Use u8string() not native(). | |
281 | * src/filesystem/std-dir.cc (_Dir, recursive_directory_iterator): | |
282 | Qualify names to use declarations from __gnu_posix namespace. | |
283 | * src/filesystem/std-ops.cc (filesystem::absolute(const path&)): Use | |
284 | correct error_code. | |
285 | (filesystem::absolute(const path&, error_code&)): Add implementation | |
286 | for Windows. | |
287 | (char_ptr, filesystem::canonical): Use path::value_type not char. | |
288 | (do_copy_file): Use names from __gnu_posix. | |
289 | [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Do not use fchmod, fchmodat or | |
290 | sendfile. | |
291 | (filesystem::copy, create_dir, filesystem::create_directory): Qualify | |
292 | names to use declarations from __gnu_posix namespace. | |
293 | (filesystem::create_hard_link): Check HAVE_LINK autoconf macro and | |
294 | add implementation for Windows. | |
295 | (filesystem::create_symlink): Check HAVE_SYMLINK autoconf macro. | |
296 | (filesystem::current_path(error_code&)): Use __gnu_posix::getcwd. | |
297 | [!_PC_PATH_MAX]: Don't use pathconf. | |
298 | [PATH_MAX]: Use if defined. | |
299 | (filesystem::current_path(const path&, error_code&)) | |
300 | (filesystem::equivalent, do_stat, filesystem::hard_link_count) | |
301 | (filesystem::last_write_time, filesystem::permissions): Use names | |
302 | from __gnu_posix. | |
303 | (filesystem::read_symlink): Check HAVE_READLINK autoconf macro. | |
304 | (filesystem::remove) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Add | |
305 | implementation for Windows. | |
306 | (filesystem::rename, filesystem::resize_file): Use names from | |
307 | __gnu_posix. | |
308 | (do_space): Define. | |
309 | (filesystem::space): Use do_space. | |
310 | (filesystem::status, filesystem::symlink_status): Use names from | |
311 | __gnu_posix. | |
312 | (filesystem::temp_directory_path): Add implementation for Windows. | |
313 | * src/filesystem/std-path.cc | |
314 | [_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::operator/=(const path&)): | |
315 | Define for Windows. | |
316 | (dot): Define constant. | |
317 | (path::replace_extension, is_dot): Use dot. | |
318 | (path::lexically_normal): Check _M_type instead of calling | |
319 | non-existent function. | |
320 | (path::_M_find_extension): Use dot. Use path::string_type not | |
321 | std::string. | |
322 | (path::_M_split_cmpts): Use dot. | |
323 | (filesystem_error::_M_get_what): Use u8string() not native(). | |
324 | * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Do not | |
325 | use symlinks. | |
326 | * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc: | |
327 | Likewise. | |
328 | * testsuite/27_io/filesystem/operations/absolute.cc: Use | |
329 | __gnu_test::root_path() instead of "/" and add Windows-specific tests. | |
330 | * testsuite/27_io/filesystem/operations/canonical.cc: Use | |
331 | path::string() to get narrow string, not path::native(). | |
332 | * testsuite/27_io/filesystem/operations/copy.cc: Construct fstreams | |
333 | with std::filesystem::path not std::basic_string. | |
334 | * testsuite/27_io/filesystem/operations/copy_file.cc: Likewise. | |
335 | * testsuite/27_io/filesystem/operations/exists.cc: Use | |
336 | __gnu_test::root_path() instead of "/". | |
337 | * testsuite/27_io/filesystem/operations/is_empty.cc: Construct | |
338 | fstreams with std::filesystem::path not std::basic_string. | |
339 | * testsuite/27_io/filesystem/operations/last_write_time.cc: Use | |
340 | path::string() to get narrow string. | |
341 | * testsuite/27_io/filesystem/operations/space.cc: Check results for | |
342 | errors, expect sensible values otherwise. | |
343 | * testsuite/27_io/filesystem/operations/temp_directory_path.cc: Add | |
344 | helpers for adjusting the environment on Windows. | |
345 | * testsuite/27_io/filesystem/path/append/path.cc: Test | |
346 | Windows-specific behaviour. | |
347 | * testsuite/27_io/filesystem/path/construct/format.cc: Fix creation | |
348 | of path::string_type objects. | |
349 | * testsuite/27_io/filesystem/path/construct/locale.cc: Compare native | |
350 | string to wide string on Windows. | |
351 | * testsuite/27_io/filesystem/path/decompose/root_directory.cc: Allow | |
352 | for backslash as root-directory. | |
353 | * testsuite/27_io/filesystem/path/decompose/stem.cc: Use | |
354 | path::string() to get narrow string. | |
355 | * testsuite/27_io/filesystem/path/itr/traversal.cc: Test Windows-style | |
356 | paths. | |
357 | * testsuite/27_io/filesystem/path/native/string.cc: Use string_type | |
358 | not std::string. | |
359 | * testsuite/27_io/filesystem/path/query/is_absolute.cc: Adjust for | |
360 | different definintion of absolute paths on Windows. | |
361 | * testsuite/experimental/filesystem/iterators/directory_iterator.cc: | |
362 | Do not use symlinks. | |
363 | * testsuite/experimental/filesystem/operations/absolute.cc: Test | |
364 | Windows behaviour. | |
365 | * testsuite/experimental/filesystem/operations/copy.cc: Construct | |
366 | fstreams with NTCTS not std::basic_string. | |
367 | * testsuite/experimental/filesystem/operations/copy_file.cc: Likewise. | |
368 | * testsuite/experimental/filesystem/operations/exists.cc: Use | |
369 | __gnu_test::root_path() instead of "/". | |
370 | * testsuite/experimental/filesystem/operations/is_empty.cc: Construct | |
371 | fstreams with NTCTS not std::basic_string. | |
372 | * testsuite/experimental/filesystem/operations/last_write_time.cc: | |
373 | Use path::string() to get narrow string. | |
374 | * testsuite/experimental/filesystem/operations/space.cc: Use | |
375 | __gnu_test::root_path() instead of "/". | |
376 | * testsuite/experimental/filesystem/operations/temp_directory_path.cc: | |
377 | Add helpers for adjusting the environment on Windows. | |
378 | * testsuite/experimental/filesystem/path/append/path.cc: Use | |
379 | path::string() to get narrow strings for comparisons. | |
380 | * testsuite/experimental/filesystem/path/concat/path.cc: Likewise. | |
381 | * testsuite/experimental/filesystem/path/decompose/root_directory.cc: | |
382 | Likewise. | |
383 | * testsuite/experimental/filesystem/path/decompose/stem.cc: Likewise. | |
384 | * testsuite/experimental/filesystem/path/native/string.cc: Use | |
385 | string_type not std::string. | |
386 | * testsuite/experimental/filesystem/path/query/is_absolute.cc: | |
387 | Adjust for different definintion of absolute paths on Windows. | |
388 | * testsuite/util/testsuite_fs.h (__gnu_test::root_path()): New | |
389 | function. | |
390 | (__gnu_test::scoped_file): Construct fstreams with NTCTS not | |
391 | std::basic_string. | |
392 | ||
22f1f4c7 JW |
393 | 2018-05-31 Jonathan Wakely <jwakely@redhat.com> |
394 | ||
395 | PR libstdc++/85951 | |
396 | * include/std/type_traits [_GLIBCXX_USE_C99_STDINT_TR1]: Do not define | |
397 | uint_least16_t and uint_least32_t. | |
398 | (__make_unsigned<wchar_t>): Define unconditionally. | |
399 | (__make_unsigned_selector<_Tp, true, false>): Remove intermediate | |
400 | typedefs. | |
401 | (__make_unsigned_selector_base): New type to provide helper templates. | |
402 | (__make_unsigned_selector<_Tp, false, true>): Reimplement using | |
403 | __make_unsigned_selector_base helpers. | |
404 | (__make_unsigned<char16_t>, __make_unsigned<char32_t>): Define. | |
405 | (__make_signed_selector<_Tp, true, false>): Remove intermediate | |
406 | typedefs. | |
407 | (__make_signed<wchar_t>, __make_signed<char16_t>) | |
408 | (__make_signed<char32_t>)): Define unconditionally. | |
409 | * testsuite/20_util/make_signed/requirements/typedefs-3.cc: Check | |
410 | wchar_t, char16_t and char32_t are transformed correctly. | |
411 | * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust | |
412 | dg-error lineno. | |
413 | * testsuite/20_util/make_unsigned/requirements/typedefs-3.cc: Check | |
414 | wchar_t, char16_t and char32_t are transformed correctly. | |
415 | * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Adjust | |
416 | dg-error lineno. | |
417 | ||
5baa6f8e JW |
418 | 2018-05-29 Jonathan Wakely <jwakely@redhat.com> |
419 | ||
420 | * include/std/variant (__erased_dtor): Qualify call to __get. | |
421 | ||
538a7cd0 FD |
422 | 2018-05-27 François Dumont <fdumont@gcc.gnu.org> |
423 | ||
424 | * include/bits/stl_tree.h (_Rb_tree_impl(_Node_allocator&&)): New. | |
425 | (_Rb_tree(const allocator_type&)): Use latter. | |
426 | * include/bits/stl_map.h (map(const allocator_type&)): Likewise. | |
427 | (map(initializer_list<value_type>, const allocator_type&)): Likewise. | |
428 | (map(_InputIterator, _InputIterator, const allocator_type&)): Likewise. | |
429 | * include/bits/stl_multimap.h | |
430 | (multimap(const allocator_type&)): Likewise. | |
431 | (multimap(initializer_list<value_type>, const allocator_type&)): | |
432 | Likewise. | |
433 | (multimap(_InputIterator, _InputIterator, const allocator_type&)): | |
434 | Likewise. | |
435 | * include/bits/stl_set.h (set(const allocator_type&)): Likewise. | |
436 | (set(initializer_list<value_type>, const allocator_type&)): Likewise. | |
437 | (set(_InputIterator, _InputIterator, const allocator_type&)): Likewise. | |
438 | * include/bits/stl_multiset.h | |
439 | (multiset(const allocator_type&)): Likewise. | |
440 | (multiset(initializer_list<value_type>, const allocator_type&)): | |
441 | Likewise. | |
442 | (multiset(_InputIterator, _InputIterator, const allocator_type&)): | |
443 | Likewise. | |
444 | ||
18b11937 FD |
445 | 2018-05-25 François Dumont <fdumont@gcc.gnu.org> |
446 | ||
447 | PR libstdc++/85768 | |
448 | * src/c++11/debug.cc: Remove backtrace usage. | |
449 | ||
95c921d1 MR |
450 | 2018-05-24 Maya Rashish <coypu@sdf.org> |
451 | ||
452 | PR target/85904 | |
453 | * crossconfig.m4: Test for aligned_alloc on netbsd. | |
454 | * configure: Regenerate. | |
455 | ||
25999a11 JW |
456 | 2018-05-24 Jonathan Wakely <jwakely@redhat.com> |
457 | ||
458 | PR libstdc++/69769 | |
459 | PR libstdc++/85886 | |
460 | * include/bits/atomic_base.h (__atomic_base::value_type) | |
461 | (__atomic_base::difference_type): Add new typedefs. | |
462 | * include/std/atomic (atomic<bool>::value_type, atomic<T>::value_type) | |
463 | (atomic<T*>::value_type, atomic<T*>::difference_type): Likewise. | |
464 | (atomic<T*>::operator++, atomic<T*>::operator--) | |
465 | (atomic<T*>::operator+=, atomic<T*>::operator-=) | |
466 | (atomic<T*>::fetch_add, atomic<T*>::fetch_sub): Add static assertion | |
467 | to enforce C++17 requirement on pointer arithmetic. | |
468 | (__atomic_val_t, __atomic_diff_t): New alias templates. | |
469 | (atomic_init, atomic_store_explicit, atomic_exchange_explicit) | |
470 | (atomic_compare_exchange_weak_explicit) | |
471 | (atomic_compare_exchange_strong_explicit, atomic_store) | |
472 | (atomic_exchange, atomic_compare_exchange_weak) | |
473 | (atomic_compare_exchange_strong): Use __atomic_val_t to make | |
474 | scalar parameters be non-deduced contexts. | |
475 | (atomic_fetch_add_explicit, atomic_fetch_sub_explicit) | |
476 | (atomic_fetch_add, atomic_fetch_sub): Change first parameter to be | |
477 | atomic instead of __atomic_base, and use __atomic_diff_t for scalar | |
478 | parameters. | |
479 | (atomic_fetch_and_explicit, atomic_fetch_or_explicit) | |
480 | (atomic_fetch_xor_explicit, atomic_fetch_and, atomic_fetch_or) | |
481 | (atomic_fetch_xor): Use __atomic_val_t for scalar parameters. | |
482 | (atomic_fetch_add_explicit, atomic_fetch_sub_explicit) | |
483 | (atomic_fetch_add, atomic_fetch_sub): Remove overloads for atomic | |
484 | address types. | |
485 | * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error lineno. | |
486 | * testsuite/29_atomics/atomic/69769.cc: New test. | |
487 | * testsuite/29_atomics/atomic/nonmembers.cc: New test. | |
488 | * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc: | |
489 | Disable test for C++17 and later. | |
490 | * testsuite/29_atomics/atomic/requirements/typedefs.cc: New test. | |
491 | * testsuite/29_atomics/atomic_integral/nonmembers.cc: New test. | |
492 | * testsuite/29_atomics/atomic_integral/requirements/typedefs.cc: New | |
493 | test. | |
494 | ||
cf290ea3 JW |
495 | 2018-05-23 Jonathan Wakely <jwakely@redhat.com> |
496 | ||
49d729ea JW |
497 | * include/bits/fs_path.h (path::__is_encoded_char): Change from class |
498 | template to alias template. | |
499 | (path::__value_type_is_char): Use remove_const_t. | |
500 | (path:_S_string_from_iter): New helper function. | |
501 | (path::_S_convert(InputIter, __null_terminated)) | |
502 | (path::_S_convert_loc(InputIter, __null_terminated, const locale&)): | |
503 | Use _S_string_from_iter. | |
504 | (path::string<_CharT, _Allocator>(const _Allocator&)): Allow sharing | |
505 | rep for COW strings. | |
506 | * include/experimental/bits/fs_path.h (path::__is_encoded_char): | |
507 | Change from class template to alias template. | |
508 | (path::__value_type_is_char): Use remove_const. | |
509 | (path:_S_string_from_iter): New helper function. | |
510 | (path::_S_convert(InputIter, __null_terminated)) | |
511 | (path::_S_convert_loc(InputIter, __null_terminated, const locale&)): | |
512 | Use _S_string_from_iter. | |
513 | * testsuite/27_io/filesystem/path/append/source.cc: Test appending | |
514 | wide strings. | |
515 | * testsuite/27_io/filesystem/path/concat/strings.cc: Check for exact | |
516 | string equality, not path equivalence. | |
517 | * testsuite/27_io/filesystem/path/construct/format.cc: Check | |
518 | construction from std::string and std::wstring and input iterators. | |
519 | * testsuite/27_io/filesystem/path/construct/locale.cc: Check | |
520 | construction from iterators. | |
521 | * testsuite/experimental/filesystem/path/concat/strings.cc: Check for | |
522 | exact string equality, not path equivalence. | |
523 | * testsuite/experimental/filesystem/path/construct/locale.cc: Check | |
524 | construction from iterators. | |
525 | ||
cf290ea3 JW |
526 | * include/bits/fs_path.h (path::_M_type): Change default member |
527 | initializer to _Filename. | |
528 | (path::begin): Create past-the-end iterator for empty path. | |
529 | * src/filesystem/std-path.cc (path::remove_filename()): Remove | |
530 | debugging check. | |
531 | (path::has_relative_path()): Return false for empty filenames. | |
532 | (path::_M_split_cmpts): Set _M_type to _Filename for empty paths. | |
533 | Fix offset of empty final component. | |
534 | * testsuite/27_io/filesystem/path/itr/components.cc: New. | |
535 | * testsuite/27_io/filesystem/path/itr/traversal.cc: Add new inputs. | |
536 | ||
b0292359 JW |
537 | 2018-05-21 Jonathan Wakely <jwakely@redhat.com> |
538 | ||
539 | Add support for opening file streams from wide character strings. | |
540 | * config/io/basic_file_stdio.cc [_GLIBCXX_HAVE__WFOPEN] | |
541 | (__basic_file<char>::open(const wchar_t*, ios_base::openmode)): | |
542 | Define new overload. | |
543 | * config/io/basic_file_stdio.h [_GLIBCXX_HAVE__WFOPEN] | |
544 | (__basic_file<char>::open(const wchar_t*, ios_base::openmode)): | |
545 | Declare new overload. | |
546 | * configure.ac: Check for _wfopen. | |
547 | * crossconfig.m4: Likewise. | |
548 | * configure: Regenerate. | |
549 | * config.h.in: Regenerate. | |
550 | * include/bits/fstream.tcc [_GLIBCXX_HAVE__WFOPEN] | |
551 | (basic_filebuf<C,T>::open(const wchar_t*, ios_base::openmode)): | |
552 | Define new overload. | |
553 | * include/std/fstream [_GLIBCXX_HAVE__WFOPEN] | |
554 | (basic_filebuf<C,T>::open(const wchar_t*, ios_base::openmode)): | |
555 | Declare new overload. | |
556 | [_GLIBCXX_HAVE__WFOPEN] | |
557 | (basic_ifstream<C,T>::basic_ifstream(const wchar_t*, openmode)) | |
558 | (basic_ifstream<C,T>::basic_open(const wchar_t*, openmode)) | |
559 | (basic_ofstream<C,T>::basic_ifstream(const wchar_t*, openmode)) | |
560 | (basic_ofstream<C,T>::basic_open(const wchar_t*, openmode)) | |
561 | (basic_fstream<C,T>::basic_ifstream(const wchar_t*, openmode)) | |
562 | (basic_fstream<C,T>::basic_open(const wchar_t*, openmode)): Define | |
563 | new overloads. | |
564 | * testsuite/27_io/basic_filebuf/open/wchar_t/1.cc: New. | |
565 | * testsuite/27_io/basic_ifstream/cons/wchar_t/1.cc: New. | |
566 | * testsuite/27_io/basic_ifstream/open/wchar_t/1.cc: New. | |
567 | * testsuite/27_io/basic_ofstream/cons/wchar_t/1.cc: New. | |
568 | * testsuite/27_io/basic_ofstream/open/wchar_t/1.cc: New. | |
569 | * testsuite/27_io/basic_fstream/cons/wchar_t/1.cc: New. | |
570 | * testsuite/27_io/basic_fstream/open/wchar_t/1.cc: New. | |
571 | ||
8b6d2d3b FD |
572 | 2018-05-21 François Dumont <fdumont@gcc.gnu.org> |
573 | ||
574 | PR libstdc++/85845 | |
575 | * include/bits/stl_tree.h | |
576 | (_Rb_tree_impl(_Rb_tree_impl&&, _Node_allocator&&)): Fix noexcept | |
577 | qualification. | |
578 | ||
f5a9710a JW |
579 | 2018-05-21 Jonathan Wakely <jwakely@redhat.com> |
580 | ||
8a49324e JW |
581 | * src/filesystem/std-ops.cc (absolute): Report an error for empty |
582 | paths. | |
583 | (weakly_canonical(const path&)): Do not call canonical on empty path. | |
584 | (weakly_canonical(const path&, error_code&)): Likewise. | |
585 | * testsuite/27_io/filesystem/operations/absolute.cc: Check for errors. | |
586 | ||
cc343938 JW |
587 | PR libstdc++/85818 |
588 | * testsuite/experimental/filesystem/path/preferred_separator.cc: Add | |
589 | dg-require-filesystem-ts. | |
590 | ||
f5a9710a JW |
591 | PR libstdc++/85843 |
592 | * src/c++11/cow-stdexcept.cc (logic_error, runtime_error): Explicitly | |
593 | initialize base class to avoid warnings. | |
594 | ||
a76400f4 JW |
595 | 2018-05-19 Jonathan Wakely <jwakely@redhat.com> |
596 | ||
597 | * src/c++11/codecvt.cc (__codecvt_utf8_base<wchar_t>::do_in) | |
598 | [__SIZEOF_WCHAR_T__==2 && __BYTE_ORDER__!=__ORDER_BIG_ENDIAN__]: Set | |
599 | little_endian element in bitmask. | |
600 | * testsuite/22_locale/codecvt/codecvt_utf8/69703.cc: Run all tests. | |
601 | * testsuite/22_locale/codecvt/codecvt_utf8/wchar_t/1.cc: New. | |
602 | ||
8b0cd47a FD |
603 | 2018-05-18 François Dumont <fdumont@gcc.gnu.org> |
604 | ||
605 | * include/bits/stl_tree.h | |
606 | (_Rb_tree_impl(_Rb_tree_impl&&, _Node_allocator&&)): New. | |
607 | (_Rb_tree(_Rb_tree&&, _Node_allocator&&, true_type)): New, use latter. | |
608 | (_Rb_tree(_Rb_tree&&, _Node_allocator&&, false_type)): New. | |
609 | (_Rb_tree(_Rb_tree&&, _Node_allocator&&)): Adapt, use latters. | |
610 | * include/debug/map.h | |
611 | (map(map&&, const_allocator_type&)): Add noexcept qualitication. | |
612 | * include/debug/multimap.h | |
613 | (multimap(multimap&&, const_allocator_type&)): Likewise. | |
614 | * include/debug/set.h | |
615 | (set(set&&, const_allocator_type&)): Likewise. | |
616 | * include/debug/multiset.h | |
617 | (multiset(multiset&&, const_allocator_type&)): Likewise. | |
618 | * testsuite/23_containers/map/cons/noexcept_default_construct.cc: | |
619 | Add checks. | |
620 | * testsuite/23_containers/map/cons/noexcept_move_construct.cc: | |
621 | Add checks. | |
622 | * testsuite/23_containers/multimap/cons/noexcept_default_construct.cc: | |
623 | Add checks. | |
624 | * testsuite/23_containers/multimap/cons/noexcept_move_construct.cc: | |
625 | Add checks. | |
626 | * testsuite/23_containers/multiset/cons/noexcept_default_construct.cc: | |
627 | Add checks. | |
628 | * testsuite/23_containers/multiset/cons/noexcept_move_construct.cc: | |
629 | Add checks. | |
630 | * testsuite/23_containers/set/cons/noexcept_default_construct.cc: | |
631 | Add checks. | |
632 | * testsuite/23_containers/set/cons/noexcept_move_construct.cc: | |
633 | Add checks. | |
634 | ||
f07c2237 JM |
635 | 2018-05-18 Jason Merrill <jason@redhat.com> |
636 | ||
637 | * include/bits/stl_deque.h (_Deque_iterator): Constrain constructor | |
638 | for conversion to const_iterator. Add defaulted copy ops. | |
639 | * libsupc++/new (bad_alloc): Add defaulted copy ops. | |
640 | * libsupc++/exception.h (exception): Add defaulted copy ops. | |
641 | * include/std/system_error (system_error): Add defaulted copy ops. | |
642 | * include/std/stdexcept (domain_error, invalid_argument) | |
643 | (length_error, out_of_range, range_error, overflow_error) | |
644 | (underflow_error): Add defaulted copy ops. | |
645 | * include/bits/stl_iterator.h (reverse_iterator): Add defaulted | |
646 | copy assignment. | |
647 | * include/bits/allocator.h (allocator): Add defaulted copy assignment. | |
648 | * include/ext/throw_allocator.h (condition_base): Add defaulted | |
649 | default and copy ctor and copy assignment. | |
650 | ||
2d76fab4 JW |
651 | 2018-05-18 Jonathan Wakely <jwakely@redhat.com> |
652 | ||
653 | PR libstdc++/85098 | |
654 | * include/bits/regex.h [__cplusplus < 201703L] (basic_regex::icase) | |
655 | (basic_regex::nosubs, basic_regex::optimize, basic_regex::collate) | |
656 | (basic_regex::ECMAScript, basic_regex::basic, basic_regex::extended) | |
657 | (basic_regex::awk, basic_regex::grep, basic_regex::egrep): Add | |
658 | definitions. | |
659 | * include/bits/regex_automaton.h (_NFA::_M_insert_state): Adjust | |
660 | whitespace. | |
661 | * include/bits/regex_compiler.tcc (__INSERT_REGEX_MATCHER): Add | |
662 | braces around body of do-while. | |
663 | * testsuite/28_regex/basic_regex/85098.cc: New | |
664 | ||
ff03245e JW |
665 | 2018-05-17 Jonathan Wakely <jwakely@redhat.com> |
666 | ||
079638f9 JW |
667 | PR libstdc++/85818 |
668 | * src/filesystem/path.cc (path::preferred_separator): Add used | |
669 | attribute. | |
670 | * testsuite/experimental/filesystem/path/preferred_separator.cc: New. | |
671 | ||
ff03245e JW |
672 | PR libstdc++/85812 |
673 | * libsupc++/cxxabi_init_exception.h (__cxa_free_exception): Declare. | |
674 | * libsupc++/exception_ptr.h (make_exception_ptr) [__cpp_exceptions]: | |
675 | Refactor to separate non-throwing and throwing implementations. | |
676 | [__cpp_rtti && !_GLIBCXX_HAVE_CDTOR_CALLABI]: Deallocate the memory | |
677 | if constructing the object throws. | |
678 | ||
e4a5135f JW |
679 | 2018-05-15 Jonathan Wakely <jwakely@redhat.com> |
680 | ||
5a7960da JW |
681 | PR libstdc++/85749 |
682 | * include/bits/random.h (__detail::__is_seed_seq): New SFINAE helper. | |
683 | (linear_congruential_engine, mersenne_twister_engine) | |
684 | (subtract_with_carry_engine, discard_block_engine) | |
685 | (independent_bits_engine, shuffle_order_engine): Use __is_seed_seq to | |
686 | constrain function templates taking seed sequences. | |
687 | * include/bits/random.tcc (linear_congruential_engine::seed(_Sseq&)) | |
688 | (mersenne_twister_engine::seed(_Sseq&)) | |
689 | (subtract_with_carry_engine::seed(_Sseq&)): Change return types to | |
690 | match declarations. | |
691 | * include/ext/random (simd_fast_mersenne_twister_engine): Use | |
692 | __is_seed_seq to constrain function templates taking seed sequences. | |
693 | * include/ext/random.tcc (simd_fast_mersenne_twister_engine::seed): | |
694 | Change return type to match declaration. | |
695 | * testsuite/26_numerics/random/discard_block_engine/cons/seed_seq2.cc: | |
696 | New. | |
697 | * testsuite/26_numerics/random/independent_bits_engine/cons/ | |
698 | seed_seq2.cc: New. | |
699 | * testsuite/26_numerics/random/linear_congruential_engine/cons/ | |
700 | seed_seq2.cc: New. | |
701 | * testsuite/26_numerics/random/mersenne_twister_engine/cons/ | |
702 | seed_seq2.cc: New. | |
703 | * testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error lineno. | |
704 | * testsuite/26_numerics/random/shuffle_order_engine/cons/seed_seq2.cc: | |
705 | New. | |
706 | * testsuite/26_numerics/random/subtract_with_carry_engine/cons/ | |
707 | seed_seq2.cc: New. | |
708 | * testsuite/ext/random/simd_fast_mersenne_twister_engine/cons/ | |
709 | seed_seq2.cc: New. | |
710 | ||
c3b61fda JW |
711 | PR libstdc++/83891 |
712 | * include/bits/fs_path.h (path::is_absolute()): Use same definition | |
713 | for all operating systems. | |
714 | * include/experimental/bits/fs_path.h (path::is_absolute()): Likewise. | |
715 | * testsuite/27_io/filesystem/path/query/is_absolute.cc: New. | |
716 | * testsuite/27_io/filesystem/path/query/is_relative.cc: Fix comment. | |
717 | * testsuite/experimental/filesystem/path/query/is_absolute.cc: New. | |
718 | ||
b0e01682 JW |
719 | * testsuite/27_io/filesystem/path/decompose/extension.cc: Remove |
720 | unused <vector> header. | |
721 | * testsuite/27_io/filesystem/path/query/empty.cc: Likewise. | |
722 | * testsuite/27_io/filesystem/path/query/has_extension.cc: Likewise. | |
723 | * testsuite/27_io/filesystem/path/query/has_filename.cc: Likewise. | |
724 | * testsuite/27_io/filesystem/path/query/has_parent_path.cc: Likewise. | |
725 | * testsuite/27_io/filesystem/path/query/has_relative_path.cc: | |
726 | Likewise. | |
727 | * testsuite/27_io/filesystem/path/query/has_root_directory.cc: | |
728 | Likewise. | |
729 | * testsuite/27_io/filesystem/path/query/has_root_name.cc: Likewise. | |
730 | * testsuite/27_io/filesystem/path/query/has_root_path.cc: Likewise. | |
731 | * testsuite/27_io/filesystem/path/query/has_stem.cc: Likewise. | |
732 | * testsuite/27_io/filesystem/path/query/is_relative.cc: Likewise. | |
733 | * testsuite/experimental/filesystem/path/decompose/extension.cc: | |
734 | Likewise. | |
735 | * testsuite/experimental/filesystem/path/query/empty.cc: Likewise. | |
736 | * testsuite/experimental/filesystem/path/query/has_extension.cc: | |
737 | Likewise. | |
738 | * testsuite/experimental/filesystem/path/query/has_filename.cc: | |
739 | Likewise. | |
740 | * testsuite/experimental/filesystem/path/query/has_parent_path.cc: | |
741 | Likewise. | |
742 | * testsuite/experimental/filesystem/path/query/has_relative_path.cc: | |
743 | Likewise. | |
744 | * testsuite/experimental/filesystem/path/query/has_root_directory.cc: | |
745 | Likewise. | |
746 | * testsuite/experimental/filesystem/path/query/has_root_name.cc: | |
747 | Likewise. | |
748 | * testsuite/experimental/filesystem/path/query/has_root_path.cc: | |
749 | Likewise. | |
750 | * testsuite/experimental/filesystem/path/query/has_stem.cc: Likewise. | |
751 | * testsuite/experimental/filesystem/path/query/is_relative.cc: | |
752 | Likewise. | |
753 | ||
6cda876d JW |
754 | PR libstdc++/84159 |
755 | * include/bits/fs_path.h (path::operator/=, path::append): Construct | |
756 | temporary path before calling _M_append. | |
757 | (path::_M_append): Change parameter to path and implement C++17 | |
758 | semantics. | |
759 | * testsuite/27_io/filesystem/path/append/path.cc: Add helper function | |
760 | and more examples from the standard. | |
761 | * testsuite/27_io/filesystem/path/append/source.cc: New. | |
762 | * testsuite/27_io/filesystem/path/decompose/filename.cc: Add comment. | |
763 | * testsuite/27_io/filesystem/path/nonmember/append.cc: New. | |
764 | ||
e4a5135f JW |
765 | * include/std/variant (__gen_vtable_impl::__visit_invoke): Qualify |
766 | __invoke to prevent ADL. | |
767 | ||
3846b8e4 JW |
768 | 2018-05-14 Jonathan Wakely <jwakely@redhat.com> |
769 | ||
e77497ab JW |
770 | PR libstdc++/81256 |
771 | * include/bits/fstream.tcc (basic_filebuf::close): Do not swallow | |
772 | exceptions from _M_terminate_output(). | |
773 | * include/std/fstream (basic_filebuf::~basic_filebuf): Swallow any | |
774 | exceptions from close(). | |
775 | * testsuite/27_io/basic_filebuf/close/81256.cc: New. | |
776 | ||
cd2f262b JW |
777 | * include/bits/valarray_array.h (__valarray_get_memory): Remove. |
778 | (__valarray_get_storage): Call operator new directly. Remove ignored | |
779 | top-level restrict qualifier and add malloc attribute instead. | |
780 | (_Array<_Tp>::_Array(size_t)): Remove unused constructor. | |
781 | ||
6bfbebb0 JW |
782 | PR libstdc++/67554 |
783 | * include/bits/valarray_array.h (_Array_copy_ctor<_Tp, true>) | |
784 | (_Array_copier<_Tp, true>): Do not pass null pointers to memcpy. | |
785 | ||
3846b8e4 JW |
786 | PR libstdc++/82966 |
787 | * include/bits/node_handle.h (_Node_handle_common::_M_swap): Use value | |
788 | instead of type. | |
789 | * testsuite/23_containers/set/modifiers/node_swap.cc: New. | |
790 | ||
456dbc72 VV |
791 | 2018-05-13 Ville Voutilainen <ville.voutilainen@gmail.com> |
792 | ||
793 | PR libstdc++/80165 | |
794 | * testsuite/20_util/variant/80165.cc: New. | |
795 | ||
0f8a1c15 JW |
796 | 2018-05-10 Jonathan Wakely <jwakely@redhat.com> |
797 | ||
798 | * doc/xml/faq.xml: Link to C++17 status. Add note to outdated answer. | |
799 | * doc/xml/manual/debug_mode.xml: Add array and forward_list to list | |
800 | of C++11 containers with Debug Mode support. | |
801 | * doc/xml/manual/using.xml: Document Dual ABI for ios_base::failure. | |
802 | * doc/html/*: Regenerate. | |
803 | ||
a6e1cfdd JM |
804 | 2018-05-10 Jason Merrill <jason@redhat.com> |
805 | ||
806 | * include/bits/regex_compiler.h (_S_cache_size): Change from | |
807 | function to variable. | |
808 | ||
88bf4c34 ESR |
809 | 2018-05-10 Edward Smith-Rowland <3dw4rd@verizon.net> |
810 | ||
811 | PR libstdc++/83140 - assoc_legendre returns negated value when m is odd | |
812 | * include/tr1/legendre_function.tcc (__assoc_legendre_p): Add __phase | |
813 | argument defaulted to +1. Doxy comments on same. | |
814 | * testsuite/special_functions/02_assoc_legendre/ | |
3a2e98ce | 815 | check_value.cc: Regen. |
88bf4c34 | 816 | * testsuite/tr1/5_numerical_facilities/special_functions/ |
3a2e98ce | 817 | 02_assoc_legendre/check_value.cc: Regen. |
88bf4c34 | 818 | |
daf69489 JW |
819 | 2018-05-10 Jonathan Wakely <jwakely@redhat.com> |
820 | ||
821 | PR libstdc++/85729 | |
822 | * include/bits/c++config.h (__replacement_assert): Add linkage | |
823 | specification. | |
824 | * include/bits/std_abs.h: Add comment to closing brace of block. | |
825 | * include/c_global/cstddef: Add linkage specification. | |
826 | * include/c_global/cstring: Likewise. | |
827 | * include/c_global/cwchar: Likewise. | |
828 | ||
6c882d0f FD |
829 | 2018-05-09 François Dumont <fdumont@gcc.gnu.org> |
830 | ||
831 | * include/debug/safe_iterator.h (_Safe_iterator<>::_M_constant()): | |
832 | Rename in... | |
833 | (_Safe_iterator<>::_S_constant()): ...that. | |
834 | * include/debug/safe_local_iterator.h | |
835 | (_Safe_local_iterator<>::_M_constant()): Rename in... | |
836 | (_Safe_local_iterator<>::_S_constant()): ...that. | |
837 | * include/debug/formatter.h: Remove bits/cpp_type_traits.h include. | |
838 | (_Iterator_state::__rbegin): New. | |
839 | (_Iterator_state::__rmiddle): New. | |
840 | (_Iterator_state::__rend): New. | |
841 | (_Parameter::_Parameter(const _Safe_iterator<>&, const char*, | |
842 | _Is_iterator)): Use _Safe_iterator<>::_S_constant. Grab normal underlying | |
843 | iterator type. | |
844 | (_Parameter::_Parameter(const _Safe_local_iterator<>&, const char*, | |
845 | _Is_iterator)): Likewise. | |
846 | (_Parameter::_S_reverse_state(_Iterator_state)): New. | |
0f8a1c15 | 847 | (_Parameter(__gnu_cxx::__normal_iterator<> const&, const char*, |
6c882d0f FD |
848 | _Is_iterator)): New. |
849 | (_Parameter(std::reverse_iterator<> const&, const char*, | |
850 | _Is_iterator)): New. | |
851 | (_Parameter(std::reverse_iterator<_Safe_iterator<>> const&, | |
852 | const char*, _Is_iterator)): New. | |
853 | (_Parameter(std::move_iterator<> const&, const char*, _Is_iterator): | |
854 | New. | |
855 | (_Parameter(std::move_iterator<_Safe_iterator<>> const&, const char*, | |
856 | _Is_iterator)): New. | |
857 | * testsuite/24_iterators/move_iterator/debug_neg.cc: New. | |
858 | * testsuite/24_iterators/normal_iterator/debug_neg.cc: New. | |
859 | * testsuite/24_iterators/reverse_iterator/debug_neg.cc: New. | |
860 | ||
88b1e41c JW |
861 | 2018-05-09 Jonathan Wakely <jwakely@redhat.com> |
862 | ||
863 | * include/bits/std_function.h (_Base_manager::_M_get_pointer): | |
864 | Use constexpr if in C++17 mode. | |
865 | (_Base_manager::_M_clone(_Any_data&, const _Any_data&, true_type)): | |
866 | Copy from const object. | |
867 | * testsuite/20_util/function/cons/non_copyconstructible.cc: New. | |
868 | ||
a5277405 FD |
869 | 2018-05-08 François Dumont <fdumont@gcc.gnu.org> |
870 | ||
e95a74fd FD |
871 | * src/c++11/debug.cc [_GLIBCXX_HAVE_EXECINFO_H]: Include execinfo.h. |
872 | [_GLIBCXX_HAVE_EXECINFO_H](_Error_formatter::_M_error): Render | |
873 | backtrace. | |
874 | ||
90aabc7e FD |
875 | * include/debug/macros.h (__glibcxx_check_valid_range_at): New. |
876 | * include/debug/functions.h (__check_valid_range): Use latter. | |
877 | * include/debug/macros.h (__glibcxx_check_valid_constructor_range): New, | |
878 | use latter. | |
879 | * include/debug/deque | |
880 | (deque::deque<_Iter>(_Iter, _Iter, const _Alloc&)): Use latter. | |
881 | * include/debug/forward_list | |
882 | (forward_list::forward_list<_Iter>(_Iter, _Iter, const _Alloc&)): | |
883 | Likewise. | |
884 | * include/debug/list | |
885 | (list::list<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise. | |
886 | * include/debug/list | |
887 | (list::list<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise. | |
888 | * include/debug/map.h | |
889 | (map::map<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise. | |
890 | (map::map<_Iter>(_Iter, _Iter, const _Compare&, const _Alloc&)): | |
891 | Likewise. | |
892 | * include/debug/multimap.h | |
893 | (multimap::multimap<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise. | |
894 | (multimap::multimap<_Iter>(_Iter, _Iter, const _Compare&, | |
895 | const _Alloc&)): Likewise. | |
896 | * include/debug/set.h | |
897 | (set::set<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise. | |
898 | (set::set<_Iter>(_Iter, _Iter, const _Compare&, const _Alloc&)): | |
899 | Likewise. | |
900 | * include/debug/multiset.h | |
901 | (multiset::multiset<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise. | |
902 | (multiset::multiset<_Iter>(_Iter, _Iter, const _Compare&, | |
903 | const _Alloc&)): Likewise. | |
904 | * include/debug/string | |
905 | (basic_string::basic_string<_Iter>(_Iter, _Iter, const _Alloc&)): | |
906 | Likewise. | |
907 | * include/debug/unordered_map | |
908 | (unordered_map::unordered_map<_Iter>(_Iter, _Iter, const _Alloc&)): | |
909 | Likewise. | |
910 | (unordered_multimap::unordered_multimap<_Iter>(_Iter, _Iter, | |
911 | const _Alloc&)): Likewise. | |
912 | * include/debug/unordered_set | |
913 | (unordered_set::unordered_set<_Iter>(_Iter, _Iter, const _Alloc&)): | |
914 | Likewise. | |
915 | (unordered_multiset::unordered_multiset<_Iter>(_Iter, _Iter, | |
916 | const _Alloc&)): Likewise. | |
917 | * include/debug/vector | |
918 | (vector::vector<_Iter>(_Iter, _Iter, const _Alloc&)): Use latter. | |
919 | ||
a5277405 FD |
920 | * include/debug/formatter.h (_Error_formatter::_M_function): New. |
921 | (_Error_formatter(const char*, unsigned int)): Adapt. | |
922 | (_Error_formatter::_M_at): Rename in... | |
923 | (_Error_formatter::_S_at): ...that and adapt. | |
924 | * include/debug/macros.h (_GLIBCXX_DEBUG_VERIFY_AT_F): New. | |
925 | (_GLIBCXX_DEBUG_VERIFY_AT, _GLIBCXX_DEBUG_VERIFY): Adapt. | |
926 | * src/c++11/debug.cc (_Error_formatter::_M_error): Render _M_function | |
927 | when available. | |
928 | ||
41c3db9f JW |
929 | 2018-05-08 Jonathan Wakely <jwakely@redhat.com> |
930 | ||
ec332f1b JW |
931 | * include/bits/regex_automaton.h (_NFA_base::_M_paren_stack, _NFA): |
932 | Use normal std::vector even in Debug Mode. | |
933 | ||
41c3db9f JW |
934 | PR libstdc++/85672 |
935 | * include/Makefile.am [!ENABLE_FLOAT128]: Change c++config.h entry | |
936 | to #undef _GLIBCXX_USE_FLOAT128 instead of defining it to zero. | |
937 | * include/Makefile.in: Regenerate. | |
938 | * include/bits/c++config (_GLIBCXX_USE_FLOAT128): Move definition | |
939 | within conditional block. | |
940 | ||
a989f637 JW |
941 | 2018-05-07 Jonathan Wakely <jwakely@redhat.com> |
942 | ||
b83f5981 JW |
943 | * doc/xml/manual/using.xml (table.cmd_options): Document that the |
944 | C++17 Filesystem implementation also needs -lstdc++fs. | |
945 | ||
a989f637 JW |
946 | PR libstdc++/85671 |
947 | * include/bits/fs_path.h (operator/): Permit copy elision. | |
948 | * include/experimental/bits/fs_path.h (operator/): Likewise. | |
949 | ||
228aa0ec ESR |
950 | 2018-05-07 Edward Smith-Rowland <3dw4rd@verizon.net> |
951 | ||
952 | Moar PR libstdc++/80506 | |
953 | * include/bits/random.tcc (gamma_distribution::__generate_impl()): | |
954 | Fix magic number used in loop condition. | |
955 | ||
d6ed6b07 JW |
956 | 2018-05-04 Jonathan Wakely <jwakely@redhat.com> |
957 | ||
958 | PR libstdc++/85642 fix is_nothrow_default_constructible<optional<T>> | |
959 | * include/std/optional (_Optional_payload): Add noexcept to default | |
960 | constructor. Re-indent. | |
961 | (_Optional_payload<_Tp, true, true, true>): Likewise. Add noexcept to | |
962 | constructor for copying disengaged payloads. | |
963 | (_Optional_payload<_Tp, true, false, true>): Likewise. | |
964 | (_Optional_payload<_Tp, true, true, false>): Likewise. | |
965 | (_Optional_payload<_Tp, true, false, false>): Likewise. | |
966 | * testsuite/20_util/optional/cons/85642.cc: New. | |
967 | * testsuite/20_util/optional/cons/value_neg.cc: Adjust dg-error lines. | |
968 | ||
6791489e JW |
969 | 2018-05-03 Jonathan Wakely <jwakely@redhat.com> |
970 | ||
86f66562 JW |
971 | PR libstdc++/82644 |
972 | * include/tr1/cmath [__STRICT_ANSI__] (hypergf, hypergl, hyperg): Use | |
973 | inline definitions instead of using-declarations. | |
974 | [__STRICT_ANSI__] (conf_hypergf, conf_hypergl, conf_hyperg): Likewise. | |
975 | * testsuite/tr1/5_numerical_facilities/special_functions/ | |
976 | 07_conf_hyperg/compile_cxx17.cc: New. | |
977 | * testsuite/tr1/5_numerical_facilities/special_functions/ | |
978 | 17_hyperg/compile_cxx17.cc: New. | |
979 | ||
1ee021f2 JW |
980 | PR libstdc++/84769 |
981 | * include/std/variant (visit): Qualify std::get call. | |
982 | ||
2e023647 JW |
983 | PR libstdc++/85632 use uintmax_t for arithmetic |
984 | * src/filesystem/ops.cc (experimental::filesystem::space): Perform | |
985 | arithmetic in result type. | |
986 | * src/filesystem/std-ops.cc (filesystem::space): Likewise. | |
987 | * testsuite/27_io/filesystem/operations/space.cc: Check total capacity | |
988 | is greater than free space. | |
989 | * testsuite/experimental/filesystem/operations/space.cc: New. | |
990 | ||
adba76a3 JW |
991 | * testsuite/20_util/remove_cvref/requirements/alias_decl.cc: New. |
992 | * testsuite/20_util/remove_cvref/requirements/explicit_instantiation.cc: | |
993 | New. | |
994 | * testsuite/20_util/remove_cvref/value.cc: New. | |
995 | * testsuite/20_util/remove_cvref/value_ext.cc: New. | |
996 | ||
852ee53c JW |
997 | PR libstdc++/84087 LWG DR 2268 basic_string default arguments |
998 | * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI=1] | |
999 | (append(const basic_string&, size_type, size_type) | |
1000 | (assign(const basic_string&, size_type, size_type) | |
1001 | (insert(size_type, const basic_string&, size_type, size_type) | |
1002 | (replace(size_type,size_type,const basic_string&,size_type,size_type) | |
1003 | (compare(size_type,size_type,constbasic_string&,size_type,size_type)): | |
1004 | Add default arguments (LWG 2268). | |
1005 | [_GLIBCXX_USE_CXX11_ABI=0] | |
1006 | (append(const basic_string&, size_type, size_type) | |
1007 | (assign(const basic_string&, size_type, size_type) | |
1008 | (insert(size_type, const basic_string&, size_type, size_type) | |
1009 | (replace(size_type,size_type,const basic_string&,size_type,size_type) | |
1010 | (compare(size_type,size_type,constbasic_string&,size_type,size_type)): | |
1011 | Likewise. | |
1012 | * testsuite/21_strings/basic_string/dr2268.cc: New test. | |
1013 | ||
d49b3426 JW |
1014 | PR libstdc++/84535 |
1015 | * include/std/thread (thread::__not_same): New SFINAE helper. | |
1016 | (thread::thread(_Callable&&, _Args&&...)): Add SFINAE constraint that | |
1017 | first argument is not a std::thread. Add static assertion to check | |
1018 | INVOKE expression is valid. | |
1019 | (thread::thread(thread&), thread::thread(const thread&&)): Remove. | |
1020 | (thread::_Invoke::_M_invoke, thread::_Invoke::operator()): Use | |
1021 | __invoke_result for return types and remove exception specifications. | |
1022 | * testsuite/30_threads/thread/cons/84535.cc: New. | |
1023 | ||
9e3ef542 JW |
1024 | * include/std/future (__async_result_of): Use __invoke_result instead |
1025 | of result_of. | |
1026 | ||
6791489e JW |
1027 | * include/std/any (any_cast): Use __remove_cvref_t. |
1028 | * include/std/tuple (__make_tuple): Likewise. | |
1029 | * include/std/type_traits (__remove_cvref_t): Define. | |
1030 | (__result_of_memobj, __result_of_memfun): Use __remove_cvref_t. | |
1031 | [__cplusplus > 201703L] (remove_cvref, remove_cvref_t): Define. | |
1032 | * include/std/variant (__erased_hash): Use __remove_cvref_t. | |
1033 | ||
27db01d8 FD |
1034 | 2018-05-02 François Dumont <fdumont@gcc.gnu.org> |
1035 | ||
1036 | * include/bits/deque.tcc (deque<>::_M_assign_aux): Cast to void to | |
1037 | ensure overloaded comma not used. | |
1038 | * include/bits/list.tcc (list<>::_M_assign_dispatch): Likewise. | |
1039 | * include/bits/vector.tcc (vector<>::_M_assign_aux): Likewise. | |
1040 | * include/bits/stl_bvector.h (vector<bool>::_M_assign_aux): Likewise. | |
1041 | * testsuite/23_containers/deque/modifiers/assign/1.cc: New. | |
1042 | * testsuite/23_containers/list/modifiers/assign/1.cc: New. | |
1043 | * testsuite/23_containers/vector/bool/modifiers/assign/1.cc: New. | |
1044 | * testsuite/23_containers/vector/modifiers/assign/1.cc: New. | |
1045 | ||
c6d42579 JW |
1046 | 2018-05-02 Jonathan Wakely <jwakely@redhat.com> |
1047 | ||
85d0fad4 JW |
1048 | PR libstdc++/68197 |
1049 | * include/bits/ios_base.h (ios_base::iword, ios_base::pword): Cast | |
1050 | indices to unsigned. | |
1051 | * src/c++11/ios.cc (ios_base::_M_grow_words): Treat negative indices | |
1052 | as failure. Refactor error handling. | |
1053 | * testsuite/27_io/ios_base/storage/68197.cc: New. | |
1054 | ||
1b749ae9 JW |
1055 | PR libstdc++/57997 |
1056 | PR libstdc++/83860 | |
1057 | * include/bits/gslice_array.h (gslice_array): Define default | |
1058 | constructor as deleted, as per C++11 standard. | |
1059 | * include/bits/mask_array.h (mask_array): Likewise. | |
1060 | * include/bits/slice_array.h (slice_array): Likewise. | |
1061 | * include/bits/valarray_after.h (_GBase, _GClos, _IBase, _IClos): Move | |
1062 | to namespace __detail. | |
1063 | (_GBase::_M_expr, _IBase::_M_expr): Use _ValArrayRef for type of data | |
1064 | members. | |
1065 | * include/bits/valarray_before.h (_ValArrayRef): New helper for type | |
1066 | of data members in closure objects. | |
1067 | (_FunBase, _ValFunClos, _RefFunClos, _UnBase, _UnClos, _BinBase) | |
1068 | (_BinBase2, _BinBase1, _BinClos, _SBase, _SClos): Move to namespace | |
1069 | __detail. | |
1070 | (_FunBase::_M_expr, _UnBase::_M_expr, _BinBase::_M_expr1) | |
1071 | (_BinBase::_M_expr2, _BinBase2::_M_expr1, _BinBase1::_M_expr2) | |
1072 | (_SBase::_M_expr): Use _ValArrayRef for type of data members. | |
1073 | * include/std/valarray (_UnClos, _BinClos, _SClos, _GClos, _IClos) | |
1074 | (_ValFunClos, _RefFunClos): Move to namespace __detail and add | |
1075 | using-declarations to namespace std. | |
1076 | * testsuite/26_numerics/valarray/83860.cc: New. | |
1077 | ||
59bcf900 JW |
1078 | * testsuite/backward/strstream_move.cc: Remove duplicate function |
1079 | call. | |
1080 | ||
c6d42579 JW |
1081 | PR libstdc++/69608 |
1082 | * include/backward/strstream (strstreambuf): Define move constructor | |
1083 | and move assignment operator. | |
1084 | (istrstream, ostrstream, strstream): Likewise. | |
1085 | * testsuite/backward/strstream_move.cc: New. | |
1086 | ||
f421e442 TMQMF |
1087 | 2018-05-01 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com> |
1088 | ||
1089 | PR libstdc++/84654 | |
1090 | * acinclude.m4: Set ENABLE_FLOAT128 instead of _GLIBCXX_USE_FLOAT128. | |
1091 | * config.h.in: Remove references to _GLIBCXX_USE_FLOAT128. | |
1092 | * configure: Regenerate. | |
1093 | * include/Makefile.am: Replace the value of _GLIBCXX_USE_FLOAT128 | |
1094 | based on ENABLE_FLOAT128. | |
1095 | * include/Makefile.in: Regenerate. | |
1096 | * include/bits/c++config: Define _GLIBCXX_USE_FLOAT128. | |
1097 | [!defined(__FLOAT128__) && !defined(__SIZEOF_FLOAT128__)]: Undefine | |
1098 | _GLIBCXX_USE_FLOAT128. | |
1099 | ||
7b47ecf2 L |
1100 | 2018-04-24 H.J. Lu <hongjiu.lu@intel.com> |
1101 | ||
1102 | * configure: Regenerated. | |
1103 | ||
a0e1df88 JJ |
1104 | 2018-04-19 Jakub Jelinek <jakub@redhat.com> |
1105 | ||
1106 | * configure: Regenerated. | |
1107 | ||
05b14480 JW |
1108 | 2018-04-18 Jonathan Wakely <jwakely@redhat.com> |
1109 | Jakub Jelinek <jakub@redhat.com> | |
1110 | ||
1111 | PR libstdc++/85442 | |
1112 | * src/c++11/Makefile.am: Don't generate debuginfo again for | |
1113 | cxx11-ios_failure-lt.s and cxx11-ios_failure.s files. | |
1114 | * src/c++11/Makefile.in: Regenerate. | |
1115 | ||
8cc8789f JW |
1116 | 2018-04-18 Jonathan Wakely <jwakely@redhat.com> |
1117 | ||
1118 | PR libstdc++/84442 | |
1119 | * testsuite/30_threads/thread/cons/terminate.cc | |
1120 | [!_GLIBCXX_USE_C99_STDLIB] : Use _exit or std::exit instead of _Exit. | |
1121 | ||
001ddaa8 DM |
1122 | 2018-04-18 David Malcolm <dmalcolm@redhat.com> |
1123 | ||
1124 | PR jit/85384 | |
1125 | * configure: Regenerate. | |
1126 | ||
ef0e80d2 JW |
1127 | 2018-04-16 Jonathan Wakely <jwakely@redhat.com> |
1128 | ||
1129 | * testsuite/experimental/filesystem/file_status/1.cc: Add | |
1130 | -DUSE_FILESYSTEM_TS to dg-options. | |
1131 | * testsuite/experimental/filesystem/iterators/directory_iterator.cc: | |
1132 | Likewise. | |
1133 | * testsuite/experimental/filesystem/iterators/pop.cc: Likewise. | |
1134 | * testsuite/experimental/filesystem/iterators/ | |
1135 | recursive_directory_iterator.cc: Likewise. | |
1136 | * testsuite/experimental/filesystem/operations/absolute.cc: Likewise. | |
1137 | * testsuite/experimental/filesystem/operations/canonical.cc: Likewise. | |
1138 | * testsuite/experimental/filesystem/operations/copy.cc: Likewise. | |
1139 | * testsuite/experimental/filesystem/operations/copy_file.cc: Likewise. | |
1140 | * testsuite/experimental/filesystem/operations/create_directories.cc: | |
1141 | Likewise. | |
1142 | * testsuite/experimental/filesystem/operations/create_directory.cc: | |
1143 | Likewise. | |
1144 | * testsuite/experimental/filesystem/operations/create_symlink.cc: | |
1145 | Likewise. | |
1146 | * testsuite/experimental/filesystem/operations/current_path.cc: | |
1147 | Likewise. | |
1148 | * testsuite/experimental/filesystem/operations/equivalent.cc: Likewise. | |
1149 | * testsuite/experimental/filesystem/operations/exists.cc: Likewise. | |
1150 | * testsuite/experimental/filesystem/operations/file_size.cc: Likewise. | |
1151 | * testsuite/experimental/filesystem/operations/is_empty.cc: Likewise. | |
1152 | * testsuite/experimental/filesystem/operations/last_write_time.cc: | |
1153 | Likewise. | |
1154 | * testsuite/experimental/filesystem/operations/permissions.cc: | |
1155 | Likewise. | |
1156 | * testsuite/experimental/filesystem/operations/read_symlink.cc: | |
1157 | Likewise. | |
1158 | * testsuite/experimental/filesystem/operations/remove.cc: Likewise. | |
1159 | * testsuite/experimental/filesystem/operations/remove_all.cc: Likewise. | |
1160 | * testsuite/experimental/filesystem/operations/status.cc: Likewise. | |
1161 | * testsuite/experimental/filesystem/operations/temp_directory_path.cc: | |
1162 | Likewise. | |
1163 | * testsuite/experimental/filesystem/path/append/path.cc: Likewise. | |
1164 | * testsuite/experimental/filesystem/path/assign/assign.cc: Likewise. | |
1165 | * testsuite/experimental/filesystem/path/assign/copy.cc: Likewise. | |
1166 | * testsuite/experimental/filesystem/path/compare/compare.cc: Likewise. | |
1167 | * testsuite/experimental/filesystem/path/compare/path.cc: Likewise. | |
1168 | * testsuite/experimental/filesystem/path/compare/strings.cc: Likewise. | |
1169 | * testsuite/experimental/filesystem/path/concat/path.cc: Likewise. | |
1170 | * testsuite/experimental/filesystem/path/concat/strings.cc: Likewise. | |
1171 | * testsuite/experimental/filesystem/path/construct/copy.cc: Likewise. | |
1172 | * testsuite/experimental/filesystem/path/construct/default.cc: | |
1173 | Likewise. | |
1174 | * testsuite/experimental/filesystem/path/construct/locale.cc: Likewise. | |
1175 | * testsuite/experimental/filesystem/path/construct/range.cc: Likewise. | |
1176 | * testsuite/experimental/filesystem/path/construct/string_view.cc: | |
1177 | Likewise. | |
1178 | * testsuite/experimental/filesystem/path/decompose/extension.cc: | |
1179 | Likewise. | |
1180 | * testsuite/experimental/filesystem/path/decompose/filename.cc: | |
1181 | Likewise. | |
1182 | * testsuite/experimental/filesystem/path/decompose/parent_path.cc: | |
1183 | Likewise. | |
1184 | * testsuite/experimental/filesystem/path/decompose/relative_path.cc: | |
1185 | Likewise. | |
1186 | * testsuite/experimental/filesystem/path/decompose/root_directory.cc: | |
1187 | Likewise. | |
1188 | * testsuite/experimental/filesystem/path/decompose/root_name.cc: | |
1189 | Likewise. | |
1190 | * testsuite/experimental/filesystem/path/decompose/root_path.cc: | |
1191 | Likewise. | |
1192 | * testsuite/experimental/filesystem/path/decompose/stem.cc: Likewise. | |
1193 | * testsuite/experimental/filesystem/path/generic/generic_string.cc: | |
1194 | Likewise. | |
1195 | * testsuite/experimental/filesystem/path/itr/traversal.cc: Likewise. | |
1196 | * testsuite/experimental/filesystem/path/modifiers/clear.cc: Likewise. | |
1197 | * testsuite/experimental/filesystem/path/modifiers/make_preferred.cc: | |
1198 | Likewise. | |
1199 | * testsuite/experimental/filesystem/path/modifiers/remove_filename.cc: | |
1200 | Likewise. | |
1201 | * testsuite/experimental/filesystem/path/modifiers/replace_extension.cc: | |
1202 | Likewise. | |
1203 | * testsuite/experimental/filesystem/path/modifiers/replace_filename.cc: | |
1204 | Likewise. | |
1205 | * testsuite/experimental/filesystem/path/modifiers/swap.cc: Likewise. | |
1206 | * testsuite/experimental/filesystem/path/native/string.cc: Likewise. | |
1207 | * testsuite/experimental/filesystem/path/nonmember/hash_value.cc: | |
1208 | Likewise. | |
1209 | * testsuite/experimental/filesystem/path/query/empty.cc: Likewise. | |
1210 | * testsuite/experimental/filesystem/path/query/has_extension.cc: | |
1211 | Likewise. | |
1212 | * testsuite/experimental/filesystem/path/query/has_filename.cc: | |
1213 | Likewise. | |
1214 | * testsuite/experimental/filesystem/path/query/has_parent_path.cc: | |
1215 | Likewise. | |
1216 | * testsuite/experimental/filesystem/path/query/has_relative_path.cc: | |
1217 | Likewise. | |
1218 | * testsuite/experimental/filesystem/path/query/has_root_directory.cc: | |
1219 | Likewise. | |
1220 | * testsuite/experimental/filesystem/path/query/has_root_name.cc: | |
1221 | Likewise. | |
1222 | * testsuite/experimental/filesystem/path/query/has_root_path.cc: | |
1223 | Likewise. | |
1224 | * testsuite/experimental/filesystem/path/query/has_stem.cc: Likewise. | |
1225 | * testsuite/experimental/filesystem/path/query/is_relative.cc: | |
1226 | Likewise. | |
1227 | ||
06258a7f JW |
1228 | 2018-04-13 Jonathan Wakely <jwakely@redhat.com> |
1229 | ||
272277dc JW |
1230 | * src/c++11/Makefile.am: Fix sed command. |
1231 | * src/c++11/Makefile.in: Regenerate. | |
1232 | ||
06258a7f JW |
1233 | * src/c++11/Makefile.am: Rewrite sed rule to be less fragile and to |
1234 | handle mangled names starting with double underscores on darwin. | |
1235 | * src/c++11/Makefile.in: Regenerate. | |
1236 | ||
ee3e8f43 JW |
1237 | 2018-04-12 Jonathan Wakely <jwakely@redhat.com> |
1238 | ||
741346a2 JW |
1239 | * src/c++11/Makefile.am: Fix comment. |
1240 | * src/c++11/Makefile.in: Regenerate. | |
1241 | * src/c++11/cxx11-ios_failure.cc: Fix comment. | |
1242 | * src/c++98/ios_failure.cc: Likewise. | |
1243 | ||
ee3e8f43 JW |
1244 | * src/c++11/ios.cc: Remove redundant macro definition. |
1245 | ||
52556a87 JW |
1246 | 2018-04-11 Jonathan Wakely <jwakely@redhat.com> |
1247 | ||
1248 | * doc/xml/manual/abi.xml: Document header locations in recent | |
1249 | releases. | |
1250 | * doc/xml/manual/evolution.xml: Add API changes since GCC 5. | |
1251 | * doc/xml/manual/spine.xml: Update copyright years. | |
1252 | * doc/xml/manual/strings.xml: Adjust tolower example to avoid | |
1253 | undefined behaviour. | |
1254 | * doc/xml/manual/test.xml: Update outdated notes on VERIFY in tests. | |
1255 | * doc/html/*: Regenerate. | |
1256 | ||
5f302518 JW |
1257 | 2018-04-10 Jonathan Wakely <jwakely@redhat.com> |
1258 | ||
25949ee3 JW |
1259 | * doc/xml/faq.xml: Update links to archived copy of SGI STL docs. |
1260 | * doc/xml/manual/backwards_compatibility.xml: Likewise. | |
1261 | * doc/xml/manual/containers.xml: Likewise. | |
1262 | * doc/xml/manual/debug_mode.xml: Likewise. | |
1263 | * doc/xml/manual/extensions.xml: Likewise. | |
1264 | * doc/xml/manual/policy_data_structures_biblio.xml: Likewise. | |
1265 | * doc/xml/manual/using.xml: Likewise. | |
1266 | * doc/xml/manual/utilities.xml: Likewise. | |
1267 | ||
5f302518 JW |
1268 | PR libstdc++/85222 |
1269 | * src/c++11/Makefile.am [ENABLE_DUAL_ABI]: Add special rules for | |
1270 | cxx11-ios_failure.cc to rewrite type info for __ios_failure. | |
1271 | * src/c++11/Makefile.in: Regenerate. | |
1272 | * src/c++11/cxx11-ios_failure.cc (__ios_failure, __iosfail_type_info): | |
1273 | New types. | |
1274 | [_GLIBCXX_USE_DUAL_ABI] (__throw_ios_failure): Define here. | |
1275 | * src/c++11/ios.cc (__throw_ios_failure): Remove definition. | |
1276 | * src/c++98/ios_failure.cc (__construct_ios_failure) | |
1277 | (__destroy_ios_failure, is_ios_failure_handler): New functions. | |
1278 | [!_GLIBCXX_USE_DUAL_ABI] (__throw_ios_failure): Define here. | |
1279 | * testsuite/27_io/ios_base/failure/dual_abi.cc: New. | |
1280 | * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Revert changes to | |
1281 | handler types, to always catch std::ios_base::failure. | |
1282 | * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise. | |
1283 | * testsuite/27_io/basic_istream/extractors_arithmetic/char/ | |
1284 | exceptions_failbit.cc: Likewise. | |
1285 | * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/ | |
1286 | exceptions_failbit.cc: Likewise. | |
1287 | * testsuite/27_io/basic_istream/extractors_other/char/ | |
1288 | exceptions_null.cc: Likewise. | |
1289 | * testsuite/27_io/basic_istream/extractors_other/wchar_t/ | |
1290 | exceptions_null.cc: Likewise. | |
1291 | * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise. | |
1292 | * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise. | |
1293 | * testsuite/27_io/basic_ostream/inserters_other/char/ | |
1294 | exceptions_null.cc: Likewise. | |
1295 | * testsuite/27_io/basic_ostream/inserters_other/wchar_t/ | |
1296 | exceptions_null.cc: Likewise. | |
1297 | * testsuite/27_io/ios_base/storage/2.cc: Likewise. | |
1298 | ||
970d3d90 JW |
1299 | 2018-04-05 Jonathan Wakely <jwakely@redhat.com> |
1300 | ||
1301 | * include/std/variant (_VARIANT_RELATION_FUNCTION_TEMPLATE): Qualify | |
1302 | __get calls to avoid ADL and avoid ambiguity due to Clang bug. | |
1303 | ||
c73847e7 JW |
1304 | 2018-04-03 Jonathan Wakely <jwakely@redhat.com> |
1305 | ||
1306 | PR libstdc++/85183 | |
1307 | * include/std/variant (_Move_assign_base::operator=): Fix incorrect | |
1308 | value categories. | |
1309 | * testsuite/20_util/variant/85183.cc: New. | |
1310 | ||
aafaa325 JW |
1311 | 2018-03-26 Jonathan Wakely <jwakely@redhat.com> |
1312 | ||
1313 | * include/std/variant (__get): Qualify calls to avoid ADL. | |
1314 | (__select_index): Adjust whitespace. | |
1315 | (variant): Add using-declaration to workaround Clang bug. | |
1316 | ||
7c69a7d9 JW |
1317 | 2018-03-22 Jonathan Wakely <jwakely@redhat.com> |
1318 | ||
1319 | PR libstdc++/85040 | |
1320 | * include/bits/stl_function.h (greater::__not_overloaded) | |
1321 | (less::__not_overloaded, greater_equal::__not_overloaded) | |
1322 | (less_equal::__not_overloaded): Fix ambiguous specializations. | |
1323 | * testsuite/20_util/function_objects/comparisons_pointer.cc: Add | |
970d3d90 | 1324 | tests for type with overloaded operators. |
7c69a7d9 | 1325 | |
83872062 RO |
1326 | 2018-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1327 | ||
1328 | PR libstdc++/77691 | |
1329 | * testsuite/experimental/memory_resource/resource_adaptor.cc: | |
1330 | xfail execution on 32-bit Solaris/x86. | |
1331 | ||
5a0729f5 JW |
1332 | 2018-03-21 Jonathan Wakely <jwakely@redhat.com> |
1333 | ||
1334 | * testsuite/20_util/function_objects/comparisons_pointer.cc: Use | |
1335 | VERIFY instead of assert. | |
1336 | * testsuite/20_util/hash/84998.cc: New test. | |
1337 | * testsuite/23_containers/vector/cons/destructible_debug_neg.cc: New | |
1338 | copy of test adjusted for Debug Mode. | |
1339 | * testsuite/23_containers/vector/cons/destructible_neg.cc: Do not run | |
1340 | test in Debug Mode. | |
1341 | ||
5dfb5e5b FD |
1342 | 2018-03-20 François Dumont <fdumont@gcc.gnu.org> |
1343 | ||
1344 | PR libstdc++/84998 | |
1345 | * include/bits/stl_bvector.h: Fix std::hash friend declaration. | |
1346 | * include/std/bitset: Likewise. | |
1347 | * include/bits/stl_map.h (std::map<>): Fix _Rb_tree_merge_helper friend | |
1348 | declaration. | |
1349 | * include/bits/stl_multimap.h (std::multimap<>): Likewise. | |
1350 | * include/bits/stl_multiset.h (std::multiset<>): Likewise. | |
1351 | * include/bits/stl_set.h (std::set<>): Likewise. | |
1352 | * include/bits/unordered_map.h (std::unordered_map<>): Fix | |
1353 | _Hash_merge_helper friend declaration. | |
1354 | (std::unordered_multimap<>): Likewise. | |
1355 | * include/bits/unordered_set.h (std::unordered_set<>): Likewise. | |
1356 | (std::unordered_multiset<>): Likewise. | |
1357 | ||
1de51fbc GP |
1358 | 2018-03-19 Gerald Pfeifer <gerald@pfeifer.com> |
1359 | ||
8c00b6a4 GP |
1360 | * doc/xml/api.xml: www.fsf.org has moved to https. Also omit |
1361 | trailing slash for domain level link. | |
1362 | * doc/xml/faq.xml: Ditto. | |
1363 | * doc/xml/manual/appendix_free.xml (software): Ditto. | |
1364 | * doc/xml/manual/intro.xml: Ditto. | |
1365 | * doc/xml/manual/spine.xml: Ditto. | |
1366 | * doc/xml/spine.xml: Ditto. | |
1367 | ||
5dfb5e5b FD |
1368 | 2018-03-19 Gerald Pfeifer <gerald@pfeifer.com> |
1369 | ||
1de51fbc GP |
1370 | * doc/xml/manual/documentation_hacking.xml: Adjust link to |
1371 | docbook.org. | |
1372 | ||
0fb9dc36 JW |
1373 | 2018-03-17 Jonathan Wakely <jwakely@redhat.com> |
1374 | ||
1375 | * testsuite/20_util/function_objects/comparisons_pointer.cc: Adjust | |
1376 | to compile as C++98. | |
1377 | ||
0b3ec8f4 JW |
1378 | 2018-03-14 Jonathan Wakely <jwakely@redhat.com> |
1379 | ||
1380 | PR libstdc++/78420 | |
1381 | * include/bits/stl_function.h (greater<_Tp*>, less<_Tp*>) | |
1382 | (greater_equal<_Tp*>, less_equal<_Tp>*): Add partial specializations | |
1383 | to ensure total order for pointers. | |
1384 | (greater<void>, less<void>, greater_equal<void>, less_equal<void>): | |
1385 | Add operator() overloads for pointer arguments and make generic | |
1386 | overloads dispatch to new _S_cmp functions when comparisons would | |
1387 | use built-in operators for pointers. | |
1388 | * testsuite/20_util/function_objects/comparisons_pointer.cc: New. | |
1389 | ||
97ca95ac JW |
1390 | 2018-03-12 Jonathan Wakely <jwakely@redhat.com> |
1391 | ||
1392 | PR libstdc++/84773 | |
1393 | PR libstdc++/83662 | |
1394 | * crossconfig.m4: Check for aligned_alloc etc. on freebsd and mingw32. | |
1395 | * configure: Regenerate. | |
1396 | * include/c_global/cstdlib [_GLIBCXX_HAVE_ALIGNED_ALLOC] | |
1397 | (aligned_alloc): Add using-declaration. | |
1398 | * testsuite/18_support/aligned_alloc/aligned_alloc.cc: New test. | |
1399 | ||
5da6b013 FD |
1400 | 2018-03-09 François Dumont <fdumont@gcc.gnu.org> |
1401 | ||
1402 | * python/libstdcxx/v6/printers.py (build_libstdcxx_dictionary): | |
1403 | Fix std::_Fwd_list_iterator and std::_Fwd_list_const_iterator printers | |
1404 | registration. | |
1405 | ||
311735db JW |
1406 | 2018-03-09 Jonathan Wakely <jwakely@redhat.com> |
1407 | ||
5dbbf899 JW |
1408 | PR libstdc++/84769 |
1409 | * include/std/variant (get<_Tp, _Types...>, get_if<_Tp, _Types...>): | |
1410 | Qualify calls to get<_Np, Types...> and get_if<_Np, _Types...>. | |
1411 | ||
311735db JW |
1412 | src/filesystem/ops.cc (create_dir): Pass error_code to is_directory. |
1413 | src/filesystem/std-ops.cc (create_dir): Likewise. | |
1414 | ||
fe6bd21a FD |
1415 | 2018-03-08 François Dumont <fdumont@gcc.gnu.org> |
1416 | ||
1417 | * python/libstdcxx/v6/printers.py (NodeIteratorPrinter): New. | |
1418 | (StdListIteratorPrinter): Inherit from latter. | |
1419 | (StdFwdListIteratorPrinter): New, inherit from latter. | |
1420 | (StdDebugIteratorPrinter.to_string): Use non-debug iterator printer | |
1421 | when iterator has no associated container. | |
1422 | (build_libstdcxx_dictionary): Add __gnu_cxx::_Fwd_list_iterator and | |
1423 | __gnu_cxx::_Fwd_list_const_iterator printers. Remove __norm namespace | |
1424 | registrations. | |
1425 | * testsuite/libstdc++-prettyprinters/debug.cc: Adapt. | |
1426 | * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Adapt. | |
1427 | ||
447346e4 VV |
1428 | 2018-03-06 Ville Voutilainen <ville.voutilainen@gmail.com> |
1429 | ||
1430 | PR libstdc++/84601 | |
1431 | * include/std/optional (_Optional_payload): Split into multiple | |
1432 | specializations that can handle different cases of trivial or | |
1433 | non-trivial assignment operators. | |
1434 | * testsuite/20_util/optional/84601.cc: New. | |
1435 | * testsuite/20_util/optional/cons/value_neg.cc: Adjust. | |
1436 | ||
2f03003d JW |
1437 | 2018-03-02 Jonathan Wakely <jwakely@redhat.com> |
1438 | ||
1439 | PR libstdc++/84671 | |
1440 | * include/bits/parse_numbers.h (_Number_help): Add partial | |
1441 | specialization to handle digit separators. Adjust partial | |
1442 | specialization for recursion temrination to require _Pow == 1ULL. | |
1443 | * testsuite/20_util/duration/literals/84671.cc: New | |
1444 | ||
23c3a059 VV |
1445 | 2018-02-27 Ville Voutilainen <ville.voutilainen@gmail.com> |
1446 | ||
1447 | Implement the missing bits of LWG 2769 | |
1448 | * include/std/any (any_cast(const any&)): Add static_assert. | |
1449 | (any_cast(any&)): Likewise. | |
1450 | (any_cast(any&&)): Likewise, and remove the handling | |
1451 | for copyable-but-not-movable type. | |
1452 | * testsuite/20_util/any/misc/any_cast.cc: Adjust. | |
1453 | * testsuite/20_util/any/misc/any_cast_neg.cc: Likewise, and | |
1454 | add new tests. | |
1455 | ||
cc535146 JW |
1456 | 2018-02-23 Jonathan Wakely <jwakely@redhat.com> |
1457 | ||
1458 | PR libstdc++/84532 | |
1459 | * include/std/thread (thread::__make_invoker): Construct tuple | |
1460 | directly instead of using make_tuple. | |
1461 | * testsuite/30_threads/async/84532.cc: New. | |
1462 | * testsuite/30_threads/thread/84532.cc: New. | |
1463 | ||
549b1796 FD |
1464 | 2018-02-20 François Dumont <fdumont@gcc.gnu.org> |
1465 | ||
1466 | * include/ext/aligned_buffer.h [_GLIBCXX_INLINE_VERSION] | |
1467 | (template<> __aligned_buffer): Define as __aligned_membuf alias. | |
1468 | ||
14e335ed IT |
1469 | 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com> |
1470 | ||
1471 | PR target/84148 | |
1472 | * configure: Regenerate. | |
1473 | ||
51f174c0 JW |
1474 | 2018-02-15 Jonathan Wakely <jwakely@redhat.com> |
1475 | ||
1476 | PR libstdc++/81797 | |
1477 | * configure.ac (INCLUDE_DIR_NOTPARALLEL): Define. | |
1478 | * configure: Regenerate. | |
1479 | * include/Makefile.am (INCLUDE_DIR_NOTPARALLEL): Add .NOTPARALLEL when | |
1480 | defined. | |
1481 | * include/Makefile.in: Regenerate. | |
1482 | ||
73ebece3 JW |
1483 | 2018-01-29 Jonathan Wakely <jwakely@redhat.com> |
1484 | ||
50ea03f4 JW |
1485 | PR libstdc++/83833 |
1486 | * testsuite/26_numerics/random/chi_squared_distribution/83833.cc: | |
1487 | Add -ffloat-store to options for m68k and ia32. | |
1488 | ||
b53e4e1c JW |
1489 | * doc/xml/faq.xml: Update copyright years. |
1490 | * doc/html/*: Regenerate. | |
1491 | ||
73ebece3 JW |
1492 | PR libstdc++/83658 |
1493 | * include/std/any (any::__do_emplace): Only set _M_manager after | |
1494 | constructing the contained object. | |
1495 | * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust dg-error line. | |
1496 | * testsuite/20_util/any/modifiers/83658.cc: New test. | |
1497 | ||
58078de7 JW |
1498 | 2018-01-25 Jonathan Wakely <jwakely@redhat.com> |
1499 | ||
1500 | PR libstdc++/81076 | |
1501 | * include/c_global/cstddef (__byte_operand): Define primary template. | |
1502 | * testsuite/18_support/byte/81076.cc: New test. | |
1503 | ||
a46c4287 CL |
1504 | 2018-01-19 Christophe Lyon <christophe.lyon@linaro.org> |
1505 | ||
1506 | * testsuite/ext/special_functions/airy_ai/check_nan.cc: Fix | |
58078de7 | 1507 | dg-options and dg-add-options order. |
a46c4287 CL |
1508 | * testsuite/ext/special_functions/airy_bi/check_nan.cc: Likewise. |
1509 | * testsuite/ext/special_functions/conf_hyperg/check_nan.cc: | |
1510 | Likewise. | |
1511 | * testsuite/ext/special_functions/hyperg/check_nan.cc: Likewise. | |
1512 | * testsuite/special_functions/01_assoc_laguerre/check_nan.cc: | |
1513 | Likewise. | |
1514 | * testsuite/special_functions/02_assoc_legendre/check_nan.cc: | |
1515 | Likewise. | |
1516 | * testsuite/special_functions/03_beta/check_nan.cc: Likewise. | |
1517 | * testsuite/special_functions/04_comp_ellint_1/check_nan.cc: | |
1518 | Likewise. | |
1519 | * testsuite/special_functions/05_comp_ellint_2/check_nan.cc: | |
1520 | Likewise. | |
1521 | * testsuite/special_functions/06_comp_ellint_3/check_nan.cc: | |
1522 | Likewise. | |
1523 | * testsuite/special_functions/06_comp_ellint_3/pr66689.cc: | |
1524 | Likewise. | |
1525 | * testsuite/special_functions/07_cyl_bessel_i/check_nan.cc: | |
1526 | Likewise. | |
1527 | * testsuite/special_functions/08_cyl_bessel_j/check_nan.cc: | |
1528 | Likewise. | |
1529 | * testsuite/special_functions/09_cyl_bessel_k/check_nan.cc: | |
1530 | Likewise. | |
1531 | * testsuite/special_functions/10_cyl_neumann/check_nan.cc: | |
1532 | Likewise. | |
1533 | * testsuite/special_functions/11_ellint_1/check_nan.cc: Likewise. | |
1534 | * testsuite/special_functions/12_ellint_2/check_nan.cc: Likewise. | |
1535 | * testsuite/special_functions/13_ellint_3/check_nan.cc: Likewise. | |
1536 | * testsuite/special_functions/13_ellint_3/pr66689.cc: Likewise. | |
1537 | * testsuite/special_functions/14_expint/check_nan.cc: Likewise. | |
1538 | * testsuite/special_functions/15_hermite/check_nan.cc: Likewise. | |
1539 | * testsuite/special_functions/16_laguerre/check_nan.cc: Likewise. | |
1540 | * testsuite/special_functions/17_legendre/check_nan.cc: Likewise. | |
1541 | * testsuite/special_functions/18_riemann_zeta/check_nan.cc: | |
1542 | Likewise. | |
1543 | * testsuite/special_functions/19_sph_bessel/check_nan.cc: | |
1544 | Likewise. | |
1545 | * testsuite/special_functions/20_sph_legendre/check_nan.cc: | |
1546 | Likewise. | |
1547 | * testsuite/special_functions/21_sph_neumann/check_nan.cc: | |
1548 | Likewise. | |
1549 | ||
dac867c9 UB |
1550 | 2018-01-18 Uros Bizjak <ubizjak@gmail.com> |
1551 | ||
1552 | * configure.ac (AC_CHECK_HEADERS): Add linux/types.h. Conditionally | |
1553 | include linux/types.h when checking linux/random.h header. | |
1554 | * config.h.in: Regenerate. | |
1555 | * configure: Ditto. | |
1556 | * src/c++11/random.cc: Conditionally include linux/types.h. | |
1557 | ||
229433c9 EB |
1558 | 2018-01-16 Eric Botcazou <ebotcazou@adacore.com> |
1559 | ||
1560 | * testsuite/17_intro/names.cc: Undefine 'y' on SPARC/Linux. | |
1561 | ||
cce6078d JW |
1562 | 2018-01-16 Jonathan Wakely <jwakely@redhat.com> |
1563 | ||
1564 | PR libstdc++/83834 | |
1565 | * config/abi/pre/gnu.ver (GLIBCXX_3.4): Replace std::c[a-g]* wildcard | |
1566 | pattern with exact match for std::cerr. | |
1567 | ||
b0e63d94 JW |
1568 | 2018-01-15 Jonathan Wakely <jwakely@redhat.com> |
1569 | ||
8b3085e7 JW |
1570 | PR libstdc++/83833 |
1571 | * include/bits/random.h (chi_squared_distribution::param): Update | |
1572 | gamma distribution parameter. | |
1573 | * testsuite/26_numerics/random/chi_squared_distribution/83833.cc: New | |
1574 | test. | |
1575 | ||
b0e63d94 JW |
1576 | PR libstdc++/83830 |
1577 | * include/std/type_traits (has_unique_object_representations_v): Add | |
1578 | variable template. | |
1579 | * testsuite/20_util/has_unique_object_representations/value.cc: Check | |
1580 | variable template. | |
1581 | ||
c89f2d24 VV |
1582 | 2018-01-15 Ville Voutilainen <ville.voutilainen@gmail.com> |
1583 | ||
1584 | Make optional conditionally | |
1585 | trivially_{copy,move}_{constructible,assignable} | |
1586 | * include/std/optional (_Optional_payload): Fix the comment in | |
1587 | the class head and turn into a primary and one specialization. | |
1588 | (_Optional_payload::_M_engaged): Strike the NSDMI. | |
1589 | (_Optional_payload<_Tp, false>::operator=(const _Optional_payload&)): | |
1590 | New. | |
1591 | (_Optional_payload<_Tp, false>::operator=(_Optional_payload&&)): | |
1592 | Likewise. | |
1593 | (_Optional_payload<_Tp, false>::_M_get): Likewise. | |
1594 | (_Optional_payload<_Tp, false>::_M_reset): Likewise. | |
1595 | (_Optional_base_impl): Likewise. | |
1596 | (_Optional_base): Turn into a primary and three specializations. | |
1597 | (optional(nullopt)): Change the base init. | |
1598 | * testsuite/20_util/optional/assignment/8.cc: New. | |
1599 | * testsuite/20_util/optional/cons/trivial.cc: Likewise. | |
1600 | * testsuite/20_util/optional/cons/value_neg.cc: Adjust. | |
1601 | ||
bab0a26d JW |
1602 | 2018-01-15 Jonathan Wakely <jwakely@redhat.com> |
1603 | ||
1604 | PR libstdc++/80276 | |
1605 | * python/libstdcxx/v6/printers.py (strip_inline_namespaces): New. | |
1606 | (get_template_arg_list): New. | |
1607 | (StdVariantPrinter._template_args): Remove, use get_template_arg_list | |
1608 | instead. | |
1609 | (TemplateTypePrinter): Rewrite to work with gdb.Type objects instead | |
1610 | of strings and regular expressions. | |
1611 | (add_one_template_type_printer): Adapt to new TemplateTypePrinter. | |
1612 | (FilteringTypePrinter): Add docstring. Match using startswith. Use | |
1613 | strip_inline_namespaces instead of strip_versioned_namespace. | |
1614 | (add_one_type_printer): Prepend namespace to match argument. | |
1615 | (register_type_printers): Add type printers for char16_t and char32_t | |
1616 | string types and for types using cxx11 ABI. Update calls to | |
1617 | add_one_template_type_printer to provide default argument dicts. | |
1618 | * testsuite/libstdc++-prettyprinters/80276.cc: New test. | |
1619 | * testsuite/libstdc++-prettyprinters/whatis.cc: Remove tests for | |
1620 | basic_string<unsigned char> and basic_string<signed char>. | |
1621 | * testsuite/libstdc++-prettyprinters/whatis2.cc: Duplicate whatis.cc | |
1622 | to test local variables, without overriding _GLIBCXX_USE_CXX11_ABI. | |
1623 | ||
a61bac1e AS |
1624 | 2018-01-14 Andreas Schwab <schwab@linux-m68k.org> |
1625 | ||
1626 | PR libstdc++/81092 | |
1627 | * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update. | |
1628 | ||
8532713f TS |
1629 | 2018-01-13 Tim Shen <timshen@google.com> |
1630 | ||
1631 | PR libstdc++/83601 | |
1632 | * include/bits/regex.tcc (regex_replace): Fix escaping in sed. | |
1633 | * testsuite/28_regex/algorithms/regex_replace/char/pr83601.cc: Tests. | |
1634 | * testsuite/28_regex/algorithms/regex_replace/wchar_t/pr83601.cc: Tests. | |
1635 | ||
c969e34e RO |
1636 | 2018-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1637 | ||
1638 | PR libstdc++/64054 | |
1639 | * testsuite/27_io/basic_ostream/inserters_arithmetic/char/hexfloat.cc: | |
1640 | Remove dg-xfail-run-if. | |
1641 | ||
75ce74bb FD |
1642 | 2018-01-10 François Dumont <fdumont@gcc.gnu.org> |
1643 | ||
1644 | * include/bits/forward_list.h | |
1645 | (_Fwd_list_node_base(_Fwd_list_node_base&&)): New. | |
1646 | (_Fwd_list_node_base& operator=(_Fwd_list_node_base&&)): New. | |
1647 | (_Fwd_list_node_base(const _Fwd_list_node_base&)): Explicit delete. | |
1648 | (_Fwd_list_node_base& operator=(const _Fwd_list_node_base&)): Likewise. | |
1649 | (_Fwd_list_impl()): Add noexcept qualification. | |
1650 | (_Fwd_list_impl(const _Node_alloc_type&)): Delete. | |
1651 | (_Fwd_list_impl(_Fwd_list_impl&&)): New, default. | |
1652 | (_Fwd_list_impl(_Fwd_list_impl&&, _Node_alloc_type&&)): New. | |
1653 | (_Fwd_list_base()): Default. | |
1654 | (_Fwd_list_base(_Fwd_list_base&&, _Node_alloc_type&&, true_type)): New. | |
1655 | (_Fwd_list_base(_Fwd_list_base&&)): Default. | |
1656 | (forward_list<>()): Default. | |
1657 | (forward_list<>(forward_list&&)): Default. | |
1658 | (forward_list(forward_list&&, _Node_alloc_type&&, false_type)): New. | |
1659 | (forward_list(forward_list&&, _Node_alloc_type&&, true_type)): New. | |
1660 | (forward_list(forward_list&&, const _Alloc&)): Adapt to use latters. | |
1661 | * include/bits/forward_list.tcc | |
1662 | (_Fwd_list_base(_Fwd_list_base&&, _Node_alloc_type&&)): Adapt to use | |
1663 | _M_impl._M_head move assignment. | |
1664 | (forward_list<>::merge(forward_list<>&&, _Comp)): Likewise. | |
1665 | * testsuite/23_containers/forward_list/allocator/default_init.cc: New. | |
1666 | ||
8273aa77 JW |
1667 | 2018-01-09 Jonathan Wakely <jwakely@redhat.com> |
1668 | ||
1669 | PR libstdc++/80276 | |
1670 | * python/libstdcxx/v6/printers.py (SharedPointerPrinter) | |
1671 | (UniquePointerPrinter): Print correct template argument, not type of | |
1672 | the pointer. | |
1673 | (TemplateTypePrinter._recognizer.recognize): Handle failure to lookup | |
1674 | a type. | |
1675 | * testsuite/libstdc++-prettyprinters/cxx11.cc: Test unique_ptr of | |
1676 | array type. | |
1677 | * testsuite/libstdc++-prettyprinters/cxx17.cc: Test shared_ptr and | |
1678 | weak_ptr of array types. | |
1679 | ||
0f146257 FD |
1680 | 2018-01-09 François Dumont <fdumont@gcc.gnu.org> |
1681 | ||
1682 | PR libstdc++/83709 | |
1683 | * include/bits/hashtable_policy.h | |
1684 | (__distance_fwd(_Iterator, _Iterator, input_iterator_tag)): Return 1 if | |
1685 | __first != __last. | |
1686 | (_Insert_base::_M_insert_range(_Ite, _Ite, _NodeGetter, true_type)): New. | |
1687 | (_Insert_base::_M_insert_range(_Ite, _Ite, _NodeGetter, false_type)): | |
1688 | Add false_type parameter. | |
1689 | (_Insert_base::insert): Adapt. | |
1690 | * include/bits/hashtable.h (_Hashtable::operator=(initializzr_list<>)): | |
1691 | Adapt. | |
1692 | (_Hashtable::_M_insert(_Arg&&, const _NodeGen&, true_type, size_t)): | |
1693 | Add __n_elt parameter, defaulted to 1. | |
1694 | (_Hashtable::_M_insert_unique_node): Likewise. Use it to call rehash | |
1695 | policy _M_need_rehash. | |
1696 | (_Hashtable::_M_merge_unique): Pass target number of elements to add to | |
1697 | produce only 1 rehash if necessary. | |
1698 | * testsuite/23_containers/unordered_map/insert/83709.cc: New. | |
1699 | * testsuite/23_containers/unordered_set/insert/83709.cc: New. | |
1700 | ||
ed99ae13 JO |
1701 | 2018-01-09 Juraj Oršulić <juraj.orsulic@fer.hr> |
1702 | Jonathan Wakely <jwakely@redhat.com> | |
d2dfcf82 JO |
1703 | |
1704 | PR libstdc++/59253 (partial) | |
1705 | * python/libstdcxx/v6/printers.py (SmartPtrIterator): Common iterator | |
1706 | type for pointer stored by shared_ptr, weak_ptr and unique_ptr. | |
1707 | (SharedPointerPrinter, UniquePointerPrinter): Treat stored values as | |
1708 | children. | |
1709 | * testsuite/libstdc++-prettyprinters/cxx11.cc: Update expected output | |
1710 | of unique_ptr printer. | |
1711 | * testsuite/libstdc++-prettyprinters/shared_ptr.cc: Update expected | |
1712 | output of shared_ptr printer. | |
1713 | ||
388058dd JW |
1714 | 2018-01-05 Jonathan Wakely <jwakely@redhat.com> |
1715 | ||
4ca07db0 JW |
1716 | PR libstdc++/83626 |
1717 | * src/filesystem/ops.cc (remove(const path&, error_code&)): Remove | |
1718 | unnecessary symlink_status call. | |
1719 | (remove_all(const path&, error_code&)): Use filesystem::remove. | |
1720 | * src/filesystem/std-ops.cc: Likewise. | |
1721 | ||
2526c53a JW |
1722 | PR libstdc++/83279 |
1723 | * src/filesystem/std-ops.cc (do_copy_file): Use non-null offset with | |
1724 | sendfile. | |
1725 | ||
388058dd JW |
1726 | PR libstdc++/83626 |
1727 | * src/filesystem/ops.cc (remove(const path&, error_code&)): Do not | |
1728 | report an error for ENOENT. | |
1729 | (remove_all(const path&)): Fix type of result variable. | |
1730 | (remove_all(const path&, error_code&)): Use non-throwing increment | |
1731 | for directory iterator. Call POSIX remove directly to avoid redundant | |
1732 | calls to symlink_status. Do not report errors for ENOENT. | |
1733 | * src/filesystem/std-ops.cc: Likewise. | |
1734 | * testsuite/27_io/filesystem/operations/remove_all.cc: Test throwing | |
1735 | overload. | |
1736 | * testsuite/experimental/filesystem/operations/remove_all.cc: | |
1737 | Likewise. | |
1738 | ||
32489ab5 JW |
1739 | 2018-01-04 Jonathan Wakely <jwakely@redhat.com> |
1740 | ||
994844d3 JW |
1741 | PR libstdc++/83626 |
1742 | * src/filesystem/ops.cc (remove(const path&, error_code&))): Remove | |
1743 | redundant call to ec.clear(). | |
1744 | (remove_all(const path&, error_code&))): Do not return an error for | |
1745 | non-existent paths. | |
1746 | * src/filesystem/std-ops.cc: Likewise. | |
1747 | * testsuite/27_io/filesystem/operations/remove.cc: New test. | |
1748 | * testsuite/27_io/filesystem/operations/remove_all.cc: Fix expected | |
1749 | results for non-existent paths. | |
1750 | * testsuite/experimental/filesystem/operations/remove.cc: New test. | |
1751 | * testsuite/experimental/filesystem/operations/remove_all.cc: Fix | |
1752 | expected results for non-existent paths. | |
1753 | ||
f7373fce JW |
1754 | * include/bits/fs_ops.h (exists(const path&, error_code&))): Only |
1755 | check status_known once. | |
1756 | * include/experimental/bits/fs_ops.h: Likewise. | |
1757 | ||
32489ab5 JW |
1758 | PR libstdc++/83607 |
1759 | * include/std/functional (__is_byte_like): New trait. | |
1760 | (__is_std_equal_to): Remove. | |
1761 | (__boyer_moore_base_t): Use __is_byte_like instead of | |
1762 | __is_std_equal_to. | |
1763 | * include/experimental/functional (__is_std_equal_to): Remove. | |
1764 | (__boyer_moore_base_t): Use __is_byte_like instead of | |
1765 | __is_std_equal_to. | |
1766 | * testsuite/20_util/function_objects/83607.cc: New test. | |
1767 | ||
8bdbeed1 VV |
1768 | 2018-01-03 Ville Voutilainen <ville.voutilainen@gmail.com> |
1769 | ||
1770 | Protect optional's deduction guide with the feature macro | |
1771 | * include/std/optional: Use the feature macro. | |
1772 | ||
85ec4feb | 1773 | 2018-01-03 Jakub Jelinek <jakub@redhat.com> |
5624e564 JJ |
1774 | |
1775 | Update copyright years. | |
b4df5e92 | 1776 | \f |
85ec4feb | 1777 | Copyright (C) 2018 Free Software Foundation, Inc. |
b4df5e92 JW |
1778 | |
1779 | Copying and distribution of this file, with or without modification, | |
1780 | are permitted in any medium without royalty provided the copyright | |
1781 | notice and this notice are preserved. |