Use weak __thread declarations in parlib-compat (XCC)
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 20 Apr 2017 17:48:01 +0000 (13:48 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 3 May 2017 16:13:02 +0000 (12:13 -0400)
commit726ddb7ed9d3a604a4a9c5f14bfe927dd2d05f07
treeaf10efaeacf7706b79e0543ed0a0e611d2cebbc8
parent0efa97f895a6586a1fb4de8009c352d36e4ea870
Use weak __thread declarations in parlib-compat (XCC)

The weak_alias() macro doesn't work well with the __thread keyword.  We can
just do the weak attribute manually.  This pops up as a bug if we ever
include a header that has the real __thread declaration in parlib-compat.c.

Rebuild glibc at your leisure.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
tools/compilers/gcc-glibc/glibc-2.19-akaros/sysdeps/akaros/parlib-compat.c