]> 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:56:04 +0000 (16:56 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 5 Dec 2019 15:56:04 +0000 (16:56 +0100)
commitef0051070f820dd5c83a73c0f069cfc4fb373db8
tree105eea2de200fbde17fef8dd0ae9c17a638a5db3
parent9f917f7b411c307c34eb1bae85d72ffe26167523
<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