This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[RFC] Should we declare errno with __thread on x86?
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Fri, 18 Mar 2016 14:42:33 -0700
- Subject: [RFC] Should we declare errno with __thread on x86?
- Authentication-results: sourceware.org; auth=none
errno is defined in glibc as an TLS variable on x86, Shouldn't we
declare it as
extern __thread int errno;
instead of
# define errno (*__errno_location ())
to avoid function call overhead?
--
H.J.