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

Joseph Myers joseph@codesourcery.com
Thu Mar 26 01:57:43 GMT 2020


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            	sizeof(tcbhead_t)
> +
> +PTHREAD_TID			offsetof(struct pthread, tid)

Likewise.

-- 
Joseph S. Myers
joseph@codesourcery.com


More information about the Libc-alpha mailing list