[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

r2728 - in glibc-package/trunk/debian: . patches/any



Author: aurel32
Date: 2007-12-06 22:09:40 +0000 (Thu, 06 Dec 2007)
New Revision: 2728

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/any/submitted-sched_h.diff
Log:
  * Update any/submitted-sched_h.diff: allow compilation of <sched.h> with
    -pedantic.  Closes: bug#453687.



Modified: glibc-package/trunk/debian/changelog
===================================================================
--- glibc-package/trunk/debian/changelog	2007-12-06 20:50:47 UTC (rev 2727)
+++ glibc-package/trunk/debian/changelog	2007-12-06 22:09:40 UTC (rev 2728)
@@ -6,10 +6,12 @@
     Closes: bug#453515.
   * debian/debhelper.in/locales.README: rename into locales.README.Debian.
   * debian/debhelper/in/locales.NEWS: fix a typo.  Closes: bug#453613.
-  * debian/patches/any/submitted-rfc3484-sortv4.diff: default to NOT 
+  * debian/patches/any/submitted-rfc3484-sortv4.diff: default to NOT
     sorting IPv4 addresses.  Closes: bug#438179.
+  * Update any/submitted-sched_h.diff: allow compilation of <sched.h> with
+    -pedantic.  Closes: bug#453687.
 
- -- Aurelien Jarno <aurel32@debian.org>  Mon, 03 Dec 2007 15:37:36 +0100
+ -- Aurelien Jarno <aurel32@debian.org>  Thu, 06 Dec 2007 23:09:09 +0100
 
 glibc (2.7-3) unstable; urgency=low
 

Modified: glibc-package/trunk/debian/patches/any/submitted-sched_h.diff
===================================================================
--- glibc-package/trunk/debian/patches/any/submitted-sched_h.diff	2007-12-06 20:50:47 UTC (rev 2727)
+++ glibc-package/trunk/debian/patches/any/submitted-sched_h.diff	2007-12-06 22:09:40 UTC (rev 2728)
@@ -1,3 +1,8 @@
+2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
+
+	* sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
+	  keyword for gcc's braced-groups.
+
 2007-11-02  Aurelien Jarno  <aurelien@aurel32.net>
 
 	* bits/sched.h (__CPU_ALLOC_SIZE): Define.
@@ -14,3 +19,44 @@
  __BEGIN_DECLS
  
  extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp)
+Index: sysdeps/unix/sysv/linux/bits/sched.h
+===================================================================
+RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/bits/sched.h,v
+retrieving revision 1.28
+diff -u -d -p -r1.28 sched.h
+--- sysdeps/unix/sysv/linux/bits/sched.h	29 Jul 2007 22:42:51 -0000	1.28
++++ sysdeps/unix/sysv/linux/bits/sched.h	6 Dec 2007 22:05:05 -0000
+@@ -132,14 +132,17 @@ typedef struct
+   } while (0)
+ # endif
+ # define __CPU_SET_S(cpu, setsize, cpusetp) \
++  __extension__ 							      \
+   ({ size_t __cpu = (cpu);						      \
+      __cpu < 8 * (setsize)						      \
+      ? ((cpusetp)->__bits[__CPUELT (__cpu)] |= __CPUMASK (__cpu)) : 0; })
+ # define __CPU_CLR_S(cpu, setsize, cpusetp) \
++  __extension__ 							      \
+   ({ size_t __cpu = (cpu);						      \
+      __cpu < 8 * (setsize)						      \
+      ? ((cpusetp)->__bits[__CPUELT (__cpu)] &= ~__CPUMASK (__cpu)) : 0; })
+ # define __CPU_ISSET_S(cpu, setsize, cpusetp) \
++  __extension__ 							      \
+   ({ size_t __cpu = (cpu);						      \
+      __cpu < 8 * (setsize)						      \
+      ? (((cpusetp)->__bits[__CPUELT (__cpu)] & __CPUMASK (__cpu))) != 0 : 0; })
+@@ -152,6 +155,7 @@ typedef struct
+   (__builtin_memcmp (cpusetp1, cpusetp2, setsize) == 0)
+ # else
+ #  define __CPU_EQUAL_S(setsize, cpusetp1, cpusetp2) \
++  __extension__ 							      \
+   ({ cpu_set_t *__arr1 = (cpusetp1);					      \
+      cpu_set_t *__arr2 = (cpusetp2);					      \
+      size_t __imax = (setsize) / sizeof (__cpu_mask);			      \
+@@ -163,6 +167,7 @@ typedef struct
+ # endif
+ 
+ # define __CPU_OP_S(setsize, destset, srcset1, srcset2, op) \
++  __extension__ 							      \
+   ({ cpu_set_t *__dest = (destset);					      \
+      cpu_set_t *__arr1 = (srcset1);					      \
+      cpu_set_t *__arr2 = (srcset2);					      \



Reply to: