This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
RFC: Removing builtin redirects from external headers
- From: Wilco Dijkstra <Wilco dot Dijkstra at arm dot com>
- To: 'GNU C Library' <libc-alpha at sourceware dot org>
- Cc: nd <nd at arm dot com>
- Date: Tue, 23 Feb 2016 16:23:42 +0000
- Subject: RFC: Removing builtin redirects from external headers
- Authentication-results: sourceware.org; auth=none
- Nodisclaimer: True
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:23
Hi,
Both string/string.h and string/bits/string2.h contain many simple redirects
to builtins. Some are disabled if inlining is turned off, some when optimizations
are disabled, and yet others when either C++ or C is used - ie. there is no
consistency. Are any of these necessary for external headers?
Would it be reasonable to remove all of the redirects and only add ones that are
used internally in GLIBC (and deemed performance critical) as simple defines in
the internal header include/string.h?
Wilco