]> git.ipfire.org Git - thirdparty/glibc.git/commit
Remove __warn_memset_zero_len [BZ #25399]
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Tue, 3 Nov 2020 09:39:28 +0000 (15:09 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Tue, 10 Nov 2020 14:31:01 +0000 (20:01 +0530)
commit5337b2af4b863fc9a1b92134bbe09758f1eff39d
treea1a699a81a051213c07b620c3bda0179cac051b3
parentc6e794640c324db37038c6a8606f3f5f8903250b
Remove __warn_memset_zero_len [BZ #25399]

Non-gcc compilers (clang and possibly other compilers that do not
masquerade as gcc 5.0 or later) are unable to use
__warn_memset_zero_len since the symbol is no longer available on
glibc built with gcc 5.0 or later.  While it was likely an oversight
that caused this omission, the fact that it wasn't noticed until
recently (when clang closed the gap on _FORTIFY_SUPPORT) that the
symbol was missing.

Given that both gcc and clang are capable of doing this check in the
compiler, drop all remaining signs of __warn_memset_zero_len from
glibc so that no more objects are built with this symbol in future.

(cherry-picked from dc274b141666766b8ef70992d887e3c0c5e41bed)
string/bits/string_fortified.h