Re: [PATCH v4 04/15] ARC: Thread Local Storage support

2020-03-25 Thread Vineet Gupta
On 3/25/20 6:57 PM, Joseph Myers wrote: > On Thu, 12 Mar 2020, Vineet Gupta via Libc-alpha wrote: > >> +-- Derive offsets relative to the thread register. >> +#define thread_offsetof(mem)(long)(offsetof(struct pthread, mem) - >> sizeof(struct pthread)) > > Missing spaces before '(' in ca

Re: [PATCH v4 04/15] ARC: Thread Local Storage support

2020-03-25 Thread Joseph Myers
On Thu, 12 Mar 2020, Vineet Gupta via Libc-alpha wrote: > +-- Derive offsets relative to the thread register. > +#define thread_offsetof(mem) (long)(offsetof(struct pthread, mem) - > sizeof(struct pthread)) Missing spaces before '(' in calls to offsetof and sizeof. > +TLS_TCB_SIZE

[PATCH v4 04/15] ARC: Thread Local Storage support

2020-03-12 Thread Vineet Gupta
This includes all 4 TLS addressing models Signed-off-by: Vineet Gupta --- sysdeps/arc/dl-tls.h | 30 +++ sysdeps/arc/libc-tls.c | 27 ++ sysdeps/arc/nptl/tcb-offsets.sym | 11 +++ sysdeps/arc/nptl/tls.h | 150 +++ sysdeps/arc