about summary refs log tree commit diff
path: root/linuxthreads/sysdeps/sh
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-08-15 12:12:51 +0000
committerUlrich Drepper <drepper@redhat.com>2002-08-15 12:12:51 +0000
commitfaa5b9b31c356df69d9cc6b37be71255bcb0e307 (patch)
treeb3077c8dfd68d743c089da7061f1ebd36d1d4cee /linuxthreads/sysdeps/sh
parent49fca0fd26b8a228b817c1f2bcb59c14e2d13165 (diff)
downloadglibc-faa5b9b31c356df69d9cc6b37be71255bcb0e307.tar.gz
glibc-faa5b9b31c356df69d9cc6b37be71255bcb0e307.tar.xz
glibc-faa5b9b31c356df69d9cc6b37be71255bcb0e307.zip
(TLS_INIT_TP): Convert to statement expression returning 0.
Diffstat (limited to 'linuxthreads/sysdeps/sh')
-rw-r--r--linuxthreads/sysdeps/sh/tls.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/linuxthreads/sysdeps/sh/tls.h b/linuxthreads/sysdeps/sh/tls.h
index 7dc40409a6..6deecc007e 100644
--- 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.  */