This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug string/25232] New: <string.h> does not enable const correctness for strchr et al. for Clang++
- From: "fweimer at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 29 Nov 2019 11:26:57 +0000
- Subject: [Bug string/25232] New: <string.h> does not enable const correctness for strchr et al. for Clang++
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=25232
Bug ID: 25232
Summary: <string.h> does not enable const correctness for
strchr et al. for Clang++
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: string
Assignee: unassigned at sourceware dot org
Reporter: fweimer at redhat dot com
CC: jwakely.gcc at gmail dot com
Target Milestone: ---
Flags: security-
The asm redirect magic is currently restricted to GCC versions with
sufficiently new libstdc++:
/* Tell the caller that we provide correct C++ prototypes. */
#if defined __cplusplus && __GNUC_PREREQ (4, 4)
# define __CORRECT_ISO_CPP_STRING_H_PROTO
#endif
Clang supports asm redirects and could use this facility as well, at least with
libstdc++.
Mailing list discussion:
https://sourceware.org/ml/libc-alpha/2019-11/msg00996.html
--
You are receiving this mail because:
You are on the CC list for the bug.