Use __builtin_memmove for trivially copyable types
authorGlen Joseph Fernandes <glenjofe@gmail.com>
Thu, 19 Jul 2018 18:58:09 +0000 (18:58 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 19 Jul 2018 18:58:09 +0000 (19:58 +0100)
commit20a0c4e3dc9948b3d182943c8c47d4608c0bec9d
tree500cad43dc4c24b022a0c08425ee6eec7c420d7c
parent0d21482100aebb2b53948af330e9f3eb3fe1d9a7
Use __builtin_memmove for trivially copyable types

2018-07-19  Glen Joseph Fernandes  <glenjofe@gmail.com>

* include/bits/stl_algobase.h (__copy_move_a): Used
__is_trivially_copyable.
(__copy_move_backward_a): Likewise.
* testsuite/20_util/specialized_algorithms/uninitialized_copy/1.cc:
New test.

From-SVN: r262884
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_algobase.h
libstdc++-v3/testsuite/20_util/specialized_algorithms/uninitialized_copy/1.cc [new file with mode: 0644]