aboutsummaryrefslogtreecommitdiff
path: root/Makefile.tpl
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-06-10 13:51:52 +0100
committerJonathan Wakely <jwakely@redhat.com>2024-06-12 15:06:47 +0100
commit3f2f9059c7f76ff888e9d0e8f10dec6f48e346c9 (patch)
tree09519b032f716562d1edff0663ddef866c918539 /Makefile.tpl
parentadcc815a01ae009d2768b6afb546e357bd37bbd2 (diff)
downloadgcc-3f2f9059c7f76ff888e9d0e8f10dec6f48e346c9.zip
gcc-3f2f9059c7f76ff888e9d0e8f10dec6f48e346c9.tar.gz
gcc-3f2f9059c7f76ff888e9d0e8f10dec6f48e346c9.tar.bz2
libstdc++: Do not use memset in _Hashtable::clear()
Using memset is incorrect if the __bucket_ptr type is non-trivial, or does not use an all-zero bit pattern for its null value. Replace the three uses of memset with std::fill_n to set the pointers to nullptr. libstdc++-v3/ChangeLog: * include/bits/hashtable.h (_Hashtable::clear): Do not use memset to zero out bucket pointers. (_Hashtable::_M_assign_elements): Likewise.
Diffstat (limited to 'Makefile.tpl')
0 files changed, 0 insertions, 0 deletions