[kaffe] CVS kaffe (robilad): _GNU_SOURCE cleanup

Kaffe CVS cvs-commits at kaffe.org
Thu Mar 6 10:27:05 PST 2008


PatchSet 7780 
Date: 2008/03/06 18:25:21
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
_GNU_SOURCE cleanup

2008-03-06  Dalibor Topic  <robilad at kaffe.org>

* kaffe/kaffevm/systems/unix-pthreads/Makefile.am (libkthread_la_CFLAGS):
Define _GNU_SOURCE.

* kaffe/kaffevm/systems/unix-pthreads/signal.c,
kaffe/kaffevm/systems/unix-pthreads/thread-impl.c: Removed
the _GNU_SOURCE define.

Members: 
	ChangeLog:1.5279->1.5280 
	kaffe/kaffevm/systems/unix-pthreads/Makefile.am:1.19->1.20 
	kaffe/kaffevm/systems/unix-pthreads/Makefile.in:1.175->1.176 
	kaffe/kaffevm/systems/unix-pthreads/signal.c:1.31->1.32 
	kaffe/kaffevm/systems/unix-pthreads/thread-impl.c:1.100->1.101 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.5279 kaffe/ChangeLog:1.5280
--- kaffe/ChangeLog:1.5279	Sat Mar  1 22:18:55 2008
+++ kaffe/ChangeLog	Thu Mar  6 18:25:21 2008
@@ -1,3 +1,12 @@
+2008-03-06  Dalibor Topic  <robilad at kaffe.org>
+
+	* kaffe/kaffevm/systems/unix-pthreads/Makefile.am (libkthread_la_CFLAGS): 
+	Define _GNU_SOURCE.
+
+	* kaffe/kaffevm/systems/unix-pthreads/signal.c,
+	kaffe/kaffevm/systems/unix-pthreads/thread-impl.c: Removed
+	the _GNU_SOURCE define.
+
 2008-03-01  Dalibor Topic  <robilad at kaffe.org>
 
 	* TODO: Updated.
Index: kaffe/kaffe/kaffevm/systems/unix-pthreads/Makefile.am
diff -u kaffe/kaffe/kaffevm/systems/unix-pthreads/Makefile.am:1.19 kaffe/kaffe/kaffevm/systems/unix-pthreads/Makefile.am:1.20
--- kaffe/kaffe/kaffevm/systems/unix-pthreads/Makefile.am:1.19	Sat Mar  1 21:22:10 2008
+++ kaffe/kaffe/kaffevm/systems/unix-pthreads/Makefile.am	Thu Mar  6 18:25:24 2008
@@ -19,7 +19,8 @@
 
 libkthread_la_CFLAGS = \
 	$(AM_CFLAGS) \
-	$(PTHREAD_CFLAGS)
+	$(PTHREAD_CFLAGS) \
+	-D_GNU_SOURCE
 
 libkthread_la_SOURCES = \
 	lock-impl.c \
Index: kaffe/kaffe/kaffevm/systems/unix-pthreads/Makefile.in
diff -u kaffe/kaffe/kaffevm/systems/unix-pthreads/Makefile.in:1.175 kaffe/kaffe/kaffevm/systems/unix-pthreads/Makefile.in:1.176
--- kaffe/kaffe/kaffevm/systems/unix-pthreads/Makefile.in:1.175	Sat Mar  1 22:15:32 2008
+++ kaffe/kaffe/kaffevm/systems/unix-pthreads/Makefile.in	Thu Mar  6 18:25:24 2008
@@ -302,7 +302,8 @@
 
 libkthread_la_CFLAGS = \
 	$(AM_CFLAGS) \
-	$(PTHREAD_CFLAGS)
+	$(PTHREAD_CFLAGS) \
+	-D_GNU_SOURCE
 
 libkthread_la_SOURCES = \
 	lock-impl.c \
Index: kaffe/kaffe/kaffevm/systems/unix-pthreads/signal.c
diff -u kaffe/kaffe/kaffevm/systems/unix-pthreads/signal.c:1.31 kaffe/kaffe/kaffevm/systems/unix-pthreads/signal.c:1.32
--- kaffe/kaffe/kaffevm/systems/unix-pthreads/signal.c:1.31	Thu Jan 17 01:59:17 2008
+++ kaffe/kaffe/kaffevm/systems/unix-pthreads/signal.c	Thu Mar  6 18:25:24 2008
@@ -9,7 +9,6 @@
  * of this file. 
  */
 
-#define _GNU_SOURCE
 #include "config.h"
 #include "debug.h"
 #include "config-std.h"
Index: kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c
diff -u kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c:1.100 kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c:1.101
--- kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c:1.100	Sat Feb  2 16:25:52 2008
+++ kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c	Thu Mar  6 18:25:24 2008
@@ -47,10 +47,6 @@
 #include <gc/gc.h>
 #endif
 
-/* define _GNU_SOURCE for pthread_yield on linux */
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
-#endif
 #include <pthread.h>
 
 #if !defined(HAVE_PTHREAD_YIELD) && defined(HAVE_SCHED_YIELD)




More information about the kaffe mailing list