]> git.ipfire.org Git - thirdparty/gcc.git/commit
Use memcpy instead of memmove in __relocate_a_1
authorJan Hubicka <jh@suse.cz>
Fri, 24 Nov 2023 16:59:44 +0000 (17:59 +0100)
committerJan Hubicka <jh@suse.cz>
Fri, 24 Nov 2023 16:59:44 +0000 (17:59 +0100)
commitc2dcfb6ba6e9a84a16e63ae73a822ae2a843170c
treee80683756dda462e6d2e33e44934a75b8ae5c856
parentaae723d360ca26cd9fd0b039fb0a616bd0eae363
Use memcpy instead of memmove in __relocate_a_1

__relocate_a_1 is used to copy data after vector reizing.  This can be done by memcpy
rather than memmove.

libstdc++-v3/ChangeLog:

PR middle-end/109849
* include/bits/stl_uninitialized.h (__relocate_a_1): Use memcpy instead
of memmove.
libstdc++-v3/include/bits/stl_uninitialized.h