aboutsummaryrefslogtreecommitdiff
path: root/libgo/runtime/proc.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2011-11-11 21:02:48 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2011-11-11 21:02:48 +0000
commit34277c5228d466ffcd4260eea1805ca77972c83c (patch)
tree6dc91773cd2743418de4eb59e161cb0a4381c77a /libgo/runtime/proc.c
parent292b44341cc5355d353cb652eb3d78d3341c800f (diff)
downloadgcc-34277c5228d466ffcd4260eea1805ca77972c83c.zip
gcc-34277c5228d466ffcd4260eea1805ca77972c83c.tar.gz
gcc-34277c5228d466ffcd4260eea1805ca77972c83c.tar.bz2
Introduce G structure and thread-local global g.
From-SVN: r181301
Diffstat (limited to 'libgo/runtime/proc.c')
-rw-r--r--libgo/runtime/proc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libgo/runtime/proc.c b/libgo/runtime/proc.c
index 8af6935..e9b7c90 100644
--- a/libgo/runtime/proc.c
+++ b/libgo/runtime/proc.c
@@ -8,13 +8,15 @@
typedef struct Sched Sched;
-M m0;
+G runtime_g0;
+M runtime_m0;
#ifdef __rtems__
#define __thread
#endif
-__thread M *m = &m0;
+__thread G *g;
+__thread M *m;
static struct {
Lock;