]> git.ipfire.org Git - thirdparty/glibc.git/commit
<string.h>: Define __CORRECT_ISO_CPP_STRING_H_PROTO for Clang [BZ #25232]
authorKamlesh Kumar <kamleshbhalui@gmail.com>
Thu, 5 Dec 2019 15:49:00 +0000 (16:49 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 16 Nov 2020 08:00:00 +0000 (08:00 +0000)
commit26f5442ec185defe7a265e0d605c271f799101bf
treea79284da4df0ddc471b820360dd783589eb48d21
parent4b64a4245c85cda5fbf4a40f6d949d0ed4ee566e
<string.h>: Define __CORRECT_ISO_CPP_STRING_H_PROTO for Clang [BZ #25232]

Without the asm redirects, strchr et al. are not const-correct.

libc++ has a wrapper header that works with and without
__CORRECT_ISO_CPP_STRING_H_PROTO (using a Clang extension).  But when
Clang is used with libstdc++ or just C headers, the overloaded functions
with the correct types are not declared.

This change does not impact current GCC (with libstdc++ or libc++).

(cherry picked from commit 953ceff17a4a15b10cfdd5edc3c8cae4884c8ec3)
NEWS
string/string.h