This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug string/25232] New: <string.h> does not enable const correctness for strchr et al. for Clang++


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]