This is the mail archive of the libc-alpha@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]

[RFC] Should we declare errno with __thread on x86?


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.


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