powerpc: Use global register variable in <thread_pointer.h>
commitcb976fba4c51ede7bf8cee5035888527c308dfbc
authorFlorian Weimer <fweimer@redhat.com>
Wed, 15 Dec 2021 15:06:25 +0000 (15 16:06 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 15 Dec 2021 15:06:25 +0000 (15 16:06 +0100)
tree3bc0e586664cc7cf2a6c70d7b8df594cc7600515
parenta6d2f948b71adcb5ea395cb04833bc645eab45e6
powerpc: Use global register variable in <thread_pointer.h>

A local register variable is merely a compiler hint, and so not
appropriate in this context.  Move the global register variable into
<thread_pointer.h> and include it from <tls.h>, as there can only
be one global definition for one particular register.

Fixes commit 8dbeb0561eeb876f557ac9eef5721912ec074ea5
("nptl: Add <thread_pointer.h> for defining __thread_pointer").

Reported-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Reviewed-by: Raphael M Zinsly <rzinsly@linux.ibm.com>
sysdeps/powerpc/nptl/thread_pointer.h
sysdeps/powerpc/nptl/tls.h