projects
/
external
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49fca0f
)
(TLS_INIT_TP): Convert to statement expression returning 0.
author
Ulrich Drepper
<drepper@redhat.com>
Thu, 15 Aug 2002 12:12:51 +0000
(12:12 +0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Thu, 15 Aug 2002 12:12:51 +0000
(12:12 +0000)
linuxthreads/sysdeps/sh/tls.h
patch
|
blob
|
history
diff --git
a/linuxthreads/sysdeps/sh/tls.h
b/linuxthreads/sysdeps/sh/tls.h
index
7dc4040
..
6deecc0
100644
(file)
--- a/
linuxthreads/sysdeps/sh/tls.h
+++ b/
linuxthreads/sysdeps/sh/tls.h
@@
-88,7
+88,7
@@
typedef struct
special attention since 'errno' is not yet available and if the
operation can cause a failure 'errno' must not be touched. */
# define TLS_INIT_TP(descr) \
-
do {
\
+
({
\
void *_descr = (descr); \
int result; \
tcbhead_t *head = _descr; \
@@
-98,7
+98,9
@@
typedef struct
head->self = _descr; \
\
asm ("ldc %0,gbr" : : "r" (_descr)); \
- } while (0)
+ \
+ 0; \
+ })
/* Return the address of the dtv for the current thread. */