Patchwork libgo patch committed: Remove some more _GNU_SOURCE

login
register
mail settings
Submitter Ian Taylor
Date Dec. 20, 2011, 6:49 p.m.
Message ID <mcriplb6ptl.fsf@dhcp-172-18-216-180.mtv.corp.google.com>
Download mbox | patch
Permalink /patch/132498/
State New
Headers show

Comments

Ian Taylor - Dec. 20, 2011, 6:49 p.m.
I realized that I didn't remove uses of _GNU_SOURCE from libgo/runtime.
They are no longer necessary now that it is defined on the command line
for all libgo .c files.  Bootstrapped on x86_64-unknown-linux-gnu.
Committed to mainline.

Ian

Patch

diff -r cf7ab235f776 libgo/runtime/runtime.h
--- a/libgo/runtime/runtime.h	Tue Dec 20 10:17:02 2011 -0800
+++ b/libgo/runtime/runtime.h	Tue Dec 20 10:46:59 2011 -0800
@@ -6,7 +6,6 @@ 
 
 #include "config.h"
 
-#define _GNU_SOURCE
 #include "go-assert.h"
 #include <setjmp.h>
 #include <signal.h>
diff -r cf7ab235f776 libgo/runtime/yield.c
--- a/libgo/runtime/yield.c	Tue Dec 20 10:17:02 2011 -0800
+++ b/libgo/runtime/yield.c	Tue Dec 20 10:46:59 2011 -0800
@@ -2,8 +2,6 @@ 
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <stddef.h>