]> Cypherpunks repositories - gostls13.git/commitdiff
move src/runtime -> src/lib/runtime;
authorRuss Cox <rsc@golang.org>
Sun, 7 Jun 2009 05:04:39 +0000 (22:04 -0700)
committerRuss Cox <rsc@golang.org>
Sun, 7 Jun 2009 05:04:39 +0000 (22:04 -0700)
only automatic g4 mv here.

R=r
OCL=30002
CL=30007

75 files changed:
src/lib/runtime/386/asm.s [moved from src/runtime/386/asm.s with 100% similarity]
src/lib/runtime/386/closure.c [moved from src/runtime/386/closure.c with 100% similarity]
src/lib/runtime/386/traceback.c [moved from src/runtime/386/traceback.c with 100% similarity]
src/lib/runtime/386/vlop.s [moved from src/runtime/386/vlop.s with 100% similarity]
src/lib/runtime/386/vlrt.c [moved from src/runtime/386/vlrt.c with 100% similarity]
src/lib/runtime/amd64/asm.s [moved from src/runtime/amd64/asm.s with 100% similarity]
src/lib/runtime/amd64/closure.c [moved from src/runtime/amd64/closure.c with 100% similarity]
src/lib/runtime/amd64/traceback.c [moved from src/runtime/amd64/traceback.c with 100% similarity]
src/lib/runtime/arm/asm.s [moved from src/runtime/arm/asm.s with 100% similarity]
src/lib/runtime/arm/closure.c [moved from src/runtime/arm/closure.c with 100% similarity]
src/lib/runtime/arm/traceback.s [moved from src/runtime/arm/traceback.s with 100% similarity]
src/lib/runtime/array.c [moved from src/runtime/array.c with 100% similarity]
src/lib/runtime/cgo2c.c [moved from src/runtime/cgo2c.c with 100% similarity]
src/lib/runtime/chan.c [moved from src/runtime/chan.c with 100% similarity]
src/lib/runtime/darwin/386/defs.h [moved from src/runtime/darwin/386/defs.h with 100% similarity]
src/lib/runtime/darwin/386/rt0.s [moved from src/runtime/darwin/386/rt0.s with 100% similarity]
src/lib/runtime/darwin/386/signal.c [moved from src/runtime/darwin/386/signal.c with 100% similarity]
src/lib/runtime/darwin/386/sys.s [moved from src/runtime/darwin/386/sys.s with 100% similarity]
src/lib/runtime/darwin/amd64/defs.h [moved from src/runtime/darwin/amd64/defs.h with 100% similarity]
src/lib/runtime/darwin/amd64/rt0.s [moved from src/runtime/darwin/amd64/rt0.s with 100% similarity]
src/lib/runtime/darwin/amd64/signal.c [moved from src/runtime/darwin/amd64/signal.c with 100% similarity]
src/lib/runtime/darwin/amd64/sys.s [moved from src/runtime/darwin/amd64/sys.s with 100% similarity]
src/lib/runtime/darwin/defs.c [moved from src/runtime/darwin/defs.c with 100% similarity]
src/lib/runtime/darwin/os.h [moved from src/runtime/darwin/os.h with 100% similarity]
src/lib/runtime/darwin/signals.h [moved from src/runtime/darwin/signals.h with 100% similarity]
src/lib/runtime/darwin/thread.c [moved from src/runtime/darwin/thread.c with 100% similarity]
src/lib/runtime/extern.go [moved from src/lib/runtime/runtime.go with 100% similarity]
src/lib/runtime/float.c [moved from src/runtime/float.c with 100% similarity]
src/lib/runtime/float_go.cgo [moved from src/runtime/float_go.cgo with 100% similarity]
src/lib/runtime/hashmap.c [moved from src/runtime/hashmap.c with 100% similarity]
src/lib/runtime/hashmap.h [moved from src/runtime/hashmap.h with 100% similarity]
src/lib/runtime/iface.c [moved from src/runtime/iface.c with 100% similarity]
src/lib/runtime/linux/386/defs.h [moved from src/runtime/linux/386/defs.h with 100% similarity]
src/lib/runtime/linux/386/rt0.s [moved from src/runtime/linux/386/rt0.s with 100% similarity]
src/lib/runtime/linux/386/signal.c [moved from src/runtime/linux/386/signal.c with 100% similarity]
src/lib/runtime/linux/386/sys.s [moved from src/runtime/linux/386/sys.s with 100% similarity]
src/lib/runtime/linux/amd64/defs.h [moved from src/runtime/linux/amd64/defs.h with 100% similarity]
src/lib/runtime/linux/amd64/rt0.s [moved from src/runtime/linux/amd64/rt0.s with 100% similarity]
src/lib/runtime/linux/amd64/signal.c [moved from src/runtime/linux/amd64/signal.c with 100% similarity]
src/lib/runtime/linux/amd64/sys.s [moved from src/runtime/linux/amd64/sys.s with 100% similarity]
src/lib/runtime/linux/arm/defs.h [moved from src/runtime/linux/arm/defs.h with 100% similarity]
src/lib/runtime/linux/arm/rt0.s [moved from src/runtime/linux/arm/rt0.s with 100% similarity]
src/lib/runtime/linux/arm/signal.c [moved from src/runtime/linux/arm/signal.c with 100% similarity]
src/lib/runtime/linux/arm/sys.s [moved from src/runtime/linux/arm/sys.s with 100% similarity]
src/lib/runtime/linux/defs.c [moved from src/runtime/linux/defs.c with 100% similarity]
src/lib/runtime/linux/defs1.c [moved from src/runtime/linux/defs1.c with 100% similarity]
src/lib/runtime/linux/defs2.c [moved from src/runtime/linux/defs2.c with 100% similarity]
src/lib/runtime/linux/defs_arm.c [moved from src/runtime/linux/defs_arm.c with 100% similarity]
src/lib/runtime/linux/os.h [moved from src/runtime/linux/os.h with 100% similarity]
src/lib/runtime/linux/signals.h [moved from src/runtime/linux/signals.h with 100% similarity]
src/lib/runtime/linux/thread.c [moved from src/runtime/linux/thread.c with 100% similarity]
src/lib/runtime/malloc.c [moved from src/runtime/malloc.c with 100% similarity]
src/lib/runtime/malloc.h [moved from src/runtime/malloc.h with 100% similarity]
src/lib/runtime/malloc_go.cgo [moved from src/runtime/malloc_go.cgo with 100% similarity]
src/lib/runtime/mcache.c [moved from src/runtime/mcache.c with 100% similarity]
src/lib/runtime/mcentral.c [moved from src/runtime/mcentral.c with 100% similarity]
src/lib/runtime/mem.c [moved from src/runtime/mem.c with 100% similarity]
src/lib/runtime/mfixalloc.c [moved from src/runtime/mfixalloc.c with 100% similarity]
src/lib/runtime/mgc0.c [moved from src/runtime/mgc0.c with 100% similarity]
src/lib/runtime/mheap.c [moved from src/runtime/mheap.c with 100% similarity]
src/lib/runtime/mheapmap32.c [moved from src/runtime/mheapmap32.c with 100% similarity]
src/lib/runtime/mheapmap32.h [moved from src/runtime/mheapmap32.h with 100% similarity]
src/lib/runtime/mheapmap64.c [moved from src/runtime/mheapmap64.c with 100% similarity]
src/lib/runtime/mheapmap64.h [moved from src/runtime/mheapmap64.h with 100% similarity]
src/lib/runtime/msize.c [moved from src/runtime/msize.c with 100% similarity]
src/lib/runtime/print.c [moved from src/runtime/print.c with 100% similarity]
src/lib/runtime/proc.c [moved from src/runtime/proc.c with 100% similarity]
src/lib/runtime/rune.c [moved from src/runtime/rune.c with 86% similarity]
src/lib/runtime/runtime.c [moved from src/runtime/runtime.c with 100% similarity]
src/lib/runtime/runtime.h [moved from src/runtime/runtime.h with 100% similarity]
src/lib/runtime/sema.c [moved from src/runtime/sema.c with 100% similarity]
src/lib/runtime/sema_go.cgo [moved from src/runtime/sema_go.cgo with 100% similarity]
src/lib/runtime/string.c [moved from src/runtime/string.c with 100% similarity]
src/lib/runtime/symtab.c [moved from src/runtime/symtab.c with 100% similarity]
src/runtime/Makefile [deleted file]

similarity index 100%
rename from src/runtime/array.c
rename to src/lib/runtime/array.c
similarity index 100%
rename from src/runtime/cgo2c.c
rename to src/lib/runtime/cgo2c.c
similarity index 100%
rename from src/runtime/chan.c
rename to src/lib/runtime/chan.c
similarity index 100%
rename from src/runtime/float.c
rename to src/lib/runtime/float.c
similarity index 100%
rename from src/runtime/iface.c
rename to src/lib/runtime/iface.c
similarity index 100%
rename from src/runtime/mem.c
rename to src/lib/runtime/mem.c
similarity index 100%
rename from src/runtime/mgc0.c
rename to src/lib/runtime/mgc0.c
similarity index 100%
rename from src/runtime/mheap.c
rename to src/lib/runtime/mheap.c
similarity index 100%
rename from src/runtime/msize.c
rename to src/lib/runtime/msize.c
similarity index 100%
rename from src/runtime/print.c
rename to src/lib/runtime/print.c
similarity index 100%
rename from src/runtime/proc.c
rename to src/lib/runtime/proc.c
similarity index 86%
rename from src/runtime/rune.c
rename to src/lib/runtime/rune.c
index 2acf421cb069daac99c35fa3478beee610d97083..ca4f9ac6aad4e685cf86e8ba1069a03a5cf5446c 100644 (file)
@@ -1,3 +1,18 @@
+/*
+ * The authors of this software are Rob Pike and Ken Thompson.
+ *              Copyright (c) 2002 by Lucent Technologies.
+ *              Portions Copyright 2009 The Go Authors. All rights reserved.
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose without fee is hereby granted, provided that this entire notice
+ * is included in all copies of any software which is or includes a copy
+ * or modification of this software and in all copies of the supporting
+ * documentation for such software.
+ * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
+ * WARRANTY.  IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE ANY
+ * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
+ * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
+ */
+
 /*
  * The authors of this software are Rob Pike and Ken Thompson.
  *              Copyright (c) 2002 by Lucent Technologies.
similarity index 100%
rename from src/runtime/sema.c
rename to src/lib/runtime/sema.c
diff --git a/src/runtime/Makefile b/src/runtime/Makefile
deleted file mode 100644 (file)
index ad23649..0000000
+++ /dev/null
@@ -1,119 +0,0 @@
-# Copyright 2009 The Go Authors.  All rights reserved.
-# Use of this source code is governed by a BSD-style
-# license that can be found in the LICENSE file.
-
-# Set SIZE to 32 or 64.
-SIZE_386=32
-SIZE_amd64=64
-SIZE_arm=32
-SIZE=$(SIZE_$(GOARCH))
-
-# Setup CFLAGS.  Add -D_64BIT on 64-bit platforms (sorry).
-CFLAGS_64=-D_64BIT
-CFLAGS=-I$(GOOS) -I$(GOOS)/$(GOARCH) -wF $(CFLAGS_$(SIZE))
-
-# Set O to right letter.
-O_386=8
-O_amd64=6
-O_arm=5
-O=$(O_$(GOARCH))
-
-# Tools
-CC=$(O)c
-AS=$(O)a
-AR=6ar  # sic
-
-LIB=lib.a
-
-# 386-specific object files
-OFILES_386=\
-       vlop.$O\
-       vlrt.$O\
-
-OFILES=\
-       array.$O\
-       asm.$O\
-       chan.$O\
-       closure.$O\
-       float.$O\
-       float_go.$O\
-       hashmap.$O\
-       iface.$O\
-       malloc.$O\
-       malloc_go.$O\
-       mcache.$O\
-       mcentral.$O\
-       mem.$O\
-       mfixalloc.$O\
-       mgc0.$O\
-       mheap.$O\
-       mheapmap$(SIZE).$O\
-       msize.$O\
-       print.$O\
-       proc.$O\
-       rune.$O\
-       runtime.$O\
-       rt0.$O\
-       sema.$O\
-       sema_go.$O\
-       signal.$O\
-       string.$O\
-       symtab.$O\
-       sys.$O\
-       thread.$O\
-       traceback.$O\
-       $(OFILES_$(GOARCH))\
-
-HFILES=\
-       runtime.h\
-       hashmap.h\
-       malloc.h\
-       $(GOOS)/os.h\
-       $(GOOS)/$(GOARCH)/defs.h\
-
-install: $(LIB) runtime.acid
-       cp $(LIB) $(GOROOT)/lib/lib_$(GOARCH)_$(GOOS).a
-       cp runtime.acid $(GOROOT)/acid/runtime.acid
-
-$(LIB): $(OFILES)
-       $(AR) rc $(LIB) $(OFILES)
-
-$(OFILES): $(HFILES)
-
-nuke:
-       rm -f *.[568] *.a $(GOROOT)/lib/$(LIB)
-
-clean:
-       rm -f *.[568] *.a runtime.acid cgo2c
-
-%.$O:  %.c
-       $(CC) $(CFLAGS) $<
-
-%.$O:  $(GOARCH)/%.c
-       $(CC) $(CFLAGS) $<
-
-%.$O:  $(GOOS)/%.c
-       $(CC) $(CFLAGS) $<
-
-%.$O:  $(GOOS)/$(GOARCH)/%.c
-       $(CC) $(CFLAGS) $<
-
-%.$O:  $(GOARCH)/%.s
-       $(AS) $<
-
-%.$O:  $(GOOS)/$(GOARCH)/%.s
-       $(AS) $<
-
-cgo2c: cgo2c.c
-       quietgcc -o $@ $<
-
-%.c:   %.cgo cgo2c
-       ./cgo2c $< > $@.tmp
-       mv -f $@.tmp $@
-
-runtime.acid: runtime.h proc.c
-       $(CC) -a proc.c >runtime.acid
-
-chan.acid: runtime.h chan.c
-       $(CC) -a chan.c >chan.acid
-