[PATCH] pthreadP.h Move THREAD_ATOMIC_BIT_SET define up

Steven Munroe <[email protected]>
Newsgroups gmane.comp.lib.phil
Organization IBM Linux Developement
Message-ID <[email protected]>
This time include the patch....

In pthreadP.h the conditional define for THREAD_ATOMIC_BIT_SET follows its
first use in static inline __do_cancel. As only i386 and x86_64 define
THREAD_ATOMIC_BIT_SET explicitly, this causes compile failures on other arches.

2003-04-15  Steven Munroe  <[email protected]>

        * pthreadP.h [!THREAD_ATOMIC_BIT_SET] (THREAD_ATOMIC_BIT_SET): Move
	define before __do_cancel.

-- 
Steven Munroe
[email protected]
Linux on PowerPC-64 Development
GLIBC for PowerPC-64 Development
nptl-0.35-pthreadP.patch (text/plain, 807 B)
diff -urN nptl-0.35/nptl/pthreadP.h libc23/nptl/pthreadP.h
--- nptl-0.35/nptl/pthreadP.h	Thu Apr 10 01:09:41 2003
+++ libc23/nptl/pthreadP.h	Mon Apr 14 10:17:44 2003
@@ -82,6 +82,11 @@
 # define INVALID_NOT_TERMINATED_TD_P(pd) __builtin_expect ((pd)->tid < 0, 0)
 #endif
 
+#ifndef THREAD_ATOMIC_BIT_SET
+# define THREAD_ATOMIC_BIT_SET(descr, member, bit) \
+  atomic_bit_set (&(descr)->member, bit)
+#endif
+
 
 /* Cancellation test.  */
 #define CANCELLATION_P(self) \
@@ -158,11 +163,6 @@
 #ifndef THREAD_ATOMIC_CMPXCHG_VAL
 # define THREAD_ATOMIC_CMPXCHG_VAL(descr, member, new, old) \
   atomic_compare_and_exchange_val_acq (&(descr)->member, new, old)
-#endif
-
-#ifndef THREAD_ATOMIC_BIT_SET
-# define THREAD_ATOMIC_BIT_SET(descr, member, bit) \
-  atomic_bit_set (&(descr)->member, bit)
 #endif
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.