use __attribute__((const)) for errno and pthread_self if __GNUC__ is defined
authorRich Felker <dalias@aerifal.cx>
Tue, 7 Jun 2011 00:12:42 +0000 (20:12 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 7 Jun 2011 00:12:42 +0000 (20:12 -0400)
commitcbf35978a9870fb1f5c73a852c986d4fcca6c2d4
treec7a9371d2ca441203a07cd689a671d6a2e98ca8b
parent71a80c5767aa4e6b7cbc2b58feef3cfca76e29fe
use __attribute__((const)) for errno and pthread_self if __GNUC__ is defined

this is not too ugly and should result in significant code size and
performance improvements for many programs.
include/errno.h
include/pthread.h