svn commit: trunk/uClibc/libpthread/linuxthreads.old/sysdeps/mips

vapier at uclibc.org vapier at uclibc.org
Tue Jan 3 05:13:17 UTC 2006


Author: vapier
Date: 2006-01-02 21:13:16 -0800 (Mon, 02 Jan 2006)
New Revision: 13040

Log:
Joseph S. Myers writes:
This patch fixes the build of libpthread for MIPS.  The definition of 
_test_and_set uses __THROW after the prototype: but attributes are only 
accepted after the prototype in function declarations which aren't 
definitions, not between the prototype and the function body in a 
definition.  The proper macro to use here is __NTH (placing the attribute 
before the prototype).

glibc does the same thing, so this is also a sync up with glibc


Modified:
   trunk/uClibc/libpthread/linuxthreads.old/sysdeps/mips/pt-machine.h


Changeset:
Modified: trunk/uClibc/libpthread/linuxthreads.old/sysdeps/mips/pt-machine.h
===================================================================
--- trunk/uClibc/libpthread/linuxthreads.old/sysdeps/mips/pt-machine.h	2006-01-03 05:05:03 UTC (rev 13039)
+++ trunk/uClibc/libpthread/linuxthreads.old/sysdeps/mips/pt-machine.h	2006-01-03 05:13:16 UTC (rev 13040)
@@ -30,7 +30,7 @@
    This file is part of the GNU C Library.
    Contributed by Maciej W. Rozycki <macro at ds2.pg.gda.pl>, 2000.  */
 static inline int
-_test_and_set (int *p, int v) __THROW
+__NTH (_test_and_set (int *p, int v))
 {
   int r, t;
 




More information about the uClibc-cvs mailing list