Commit 851f3013 authored by Russ Cox's avatar Russ Cox

runtime: make more build-friendly

Collapse the arch,os-specific directories into the main directory
by renaming xxx/foo.c to foo_xxx.c, and so on.

There are no substantial edits here, except to the Makefile.
The assumption is that the Go tool will #define GOOS_darwin
and GOARCH_amd64 and will make any file named something
like signals_darwin.h available as signals_GOOS.h during the
build.  This replaces what used to be done with -I$(GOOS).

There is still work to be done to make runtime build with
standard tools, but this is a big step.  After this we will have
to write a script to generate all the generated files so they
can be checked in (instead of generated during the build).

R=r, iant, r, lucio.dere
CC=golang-dev
https://golang.org/cl/5490053
parent 474d64d2
...@@ -4,16 +4,10 @@ ...@@ -4,16 +4,10 @@
include ../../Make.inc include ../../Make.inc
TARG=runtime # Go tool will do this for package runtime.
CFLAGS+=-DGOOS_$(GOOS) -DGOARCH_$(GOARCH)
# Set SIZE to 32 or 64.
SIZE_386=32
SIZE_amd64=64
SIZE_arm=32
SIZE=$(SIZE_$(GOARCH))
CFLAGS_windows=-D__WINDOWS__ TARG=runtime
CFLAGS=-I$(GOOS) -I$(GOARCH) -I$(GOOS)/$(GOARCH) -FVw $(CFLAGS_$(GOARCH)) $(CFLAGS_$(GOOS))
GOFILES=\ GOFILES=\
debug.go\ debug.go\
...@@ -49,29 +43,29 @@ OFILES_plan9=\ ...@@ -49,29 +43,29 @@ OFILES_plan9=\
lock_sema.$O\ lock_sema.$O\
OFILES_windows=\ OFILES_windows=\
callback.$O\ callback_windows_$(GOARCH).$O\
lock_sema.$O\ lock_sema.$O\
syscall.$O\ syscall_windows.$O\
# 386-specific object files # 386-specific object files
OFILES_386=\ OFILES_386=\
vlop.$O\ vlop_386.$O\
vlrt.$O\ vlrt_386.$O\
# arm-specific object files # arm-specific object files
OFILES_arm=\ OFILES_arm=\
memset.$O\ memset_arm.$O\
softfloat.$O\ softfloat_arm.$O\
vlop.$O\ vlop_arm.$O\
vlrt.$O\ vlrt_arm.$O\
OFILES=\ OFILES=\
alg.$O\ alg.$O\
asm.$O\ asm_$(GOARCH).$O\
atomic.$O\ atomic_$(GOARCH).$O\
cgocall.$O\ cgocall.$O\
chan.$O\ chan.$O\
closure.$O\ closure_$(GOARCH).$O\
complex.$O\ complex.$O\
cpuprof.$O\ cpuprof.$O\
float.$O\ float.$O\
...@@ -80,8 +74,8 @@ OFILES=\ ...@@ -80,8 +74,8 @@ OFILES=\
malloc.$O\ malloc.$O\
mcache.$O\ mcache.$O\
mcentral.$O\ mcentral.$O\
mem.$O\ mem_$(GOOS).$O\
memmove.$O\ memmove_$(GOARCH).$O\
mfinal.$O\ mfinal.$O\
mfixalloc.$O\ mfixalloc.$O\
mgc0.$O\ mgc0.$O\
...@@ -90,33 +84,36 @@ OFILES=\ ...@@ -90,33 +84,36 @@ OFILES=\
msize.$O\ msize.$O\
print.$O\ print.$O\
proc.$O\ proc.$O\
rt0.$O\ rt0_$(GOOS)_$(GOARCH).$O\
rune.$O\ rune.$O\
runtime.$O\ runtime.$O\
runtime1.$O\ runtime1.$O\
sema.$O\ sema.$O\
signal.$O\ signal_$(GOOS)_$(GOARCH).$O\
sigqueue.$O\ sigqueue.$O\
slice.$O\ slice.$O\
string.$O\ string.$O\
symtab.$O\ symtab.$O\
sys.$O\ sys_$(GOOS)_$(GOARCH).$O\
thread.$O\ thread_$(GOOS).$O\
time.$O\ time.$O\
traceback.$O\ traceback_$(GOARCH).$O\
$(OFILES_$(GOARCH))\ $(OFILES_$(GOARCH))\
$(OFILES_$(GOOS))\ $(OFILES_$(GOOS))\
AUTOHFILES=\
arch_GOARCH.h\
os_GOOS.h\
signals_GOOS.h\
defs_GOOS_GOARCH.h\
HFILES=\ HFILES=\
cgocall.h\ cgocall.h\
runtime.h\ runtime.h\
hashmap.h\ hashmap.h\
malloc.h\ malloc.h\
stack.h\ stack.h\
$(GOARCH)/asm.h\ $(AUTOHFILES)\
$(GOOS)/os.h\
$(GOOS)/signals.h\
$(GOOS)/$(GOARCH)/defs.h\
GOFILES+=$(GOFILES_$(GOOS)) GOFILES+=$(GOFILES_$(GOOS))
...@@ -135,9 +132,9 @@ $(pkgdir)/%.h: %.h ...@@ -135,9 +132,9 @@ $(pkgdir)/%.h: %.h
clean: clean-local clean: clean-local
clean-local: clean-local:
rm -f goc2c mkversion version.go */asm.h runtime.acid.* runtime_defs.go $$(ls *.goc | sed 's/goc$$/c/') rm -f goc2c mkversion version.go runtime.acid.* runtime_defs.go $$(ls *.goc | sed 's/goc$$/c/') $(AUTOHFILES)
$(GOARCH)/asm.h: mkasmh.sh runtime.acid.$(GOARCH) asm_$(GOARCH).h: mkasmh.sh runtime.acid.$(GOARCH)
./mkasmh.sh >$@.x ./mkasmh.sh >$@.x
mv -f $@.x $@ mv -f $@.x $@
...@@ -160,20 +157,7 @@ version_$(GOOS).go: ...@@ -160,20 +157,7 @@ version_$(GOOS).go:
./goc2c "`pwd`/$<" > $@.tmp ./goc2c "`pwd`/$<" > $@.tmp
mv -f $@.tmp $@ mv -f $@.tmp $@
%.$O: $(GOARCH)/%.c $(HFILES) %.$O: asm_$(GOARCH).h
$(CC) $(CFLAGS) $<
%.$O: $(GOOS)/%.c $(HFILES)
$(CC) $(CFLAGS) $<
%.$O: $(GOOS)/$(GOARCH)/%.c $(HFILES)
$(CC) $(CFLAGS) $<
%.$O: $(GOARCH)/%.s $(GOARCH)/asm.h
$(AS) $<
%.$O: $(GOOS)/$(GOARCH)/%.s $(GOARCH)/asm.h
$(AS) $<
# for discovering offsets inside structs when debugging # for discovering offsets inside structs when debugging
runtime.acid.$(GOARCH): runtime.h proc.c runtime.acid.$(GOARCH): runtime.h proc.c
...@@ -185,6 +169,18 @@ traceback.$O: amd64/traceback.c ...@@ -185,6 +169,18 @@ traceback.$O: amd64/traceback.c
$(CC) $(CFLAGS) $< $(CC) $(CFLAGS) $<
endif endif
runtime_defs.go: proc.c iface.c hashmap.c chan.c runtime_defs.go: proc.c iface.c hashmap.c chan.c $(HFILES)
CC="$(CC)" CFLAGS="$(CFLAGS)" ./mkgodefs.sh $^ > $@.x CC="$(CC)" CFLAGS="$(CFLAGS)" ./mkgodefs.sh proc.c iface.c hashmap.c chan.c > $@.x
mv -f $@.x $@ mv -f $@.x $@
arch_GOARCH.h: arch_$(GOARCH).h
cp $^ $@
defs_GOOS_GOARCH.h: defs_$(GOOS)_$(GOARCH).h
cp $^ $@
os_GOOS.h: os_$(GOOS).h
cp $^ $@
signals_GOOS.h: signals_$(GOOS).h
cp $^ $@
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "386/asm.h" #include "asm_386.h"
TEXT _rt0_386(SB),7,$0 TEXT _rt0_386(SB),7,$0
// Linux, Windows start the FPU in extended double precision. // Linux, Windows start the FPU in extended double precision.
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "amd64/asm.h" #include "asm_amd64.h"
TEXT _rt0_amd64(SB),7,$-8 TEXT _rt0_amd64(SB),7,$-8
// copy arguments forward on an even stack // copy arguments forward on an even stack
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "arm/asm.h" #include "asm_arm.h"
// using frame size $-4 means do not save LR on stack. // using frame size $-4 means do not save LR on stack.
TEXT _rt0_arm(SB),7,$-4 TEXT _rt0_arm(SB),7,$-4
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
#include "runtime.h" #include "runtime.h"
#include "type.h" #include "type.h"
#include "defs.h" #include "defs_GOOS_GOARCH.h"
#include "os.h" #include "os_GOOS.h"
// Will keep all callbacks in a linked list, so they don't get garbage collected. // Will keep all callbacks in a linked list, so they don't get garbage collected.
typedef struct Callback Callback; typedef struct Callback Callback;
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
#include "runtime.h" #include "runtime.h"
#include "type.h" #include "type.h"
#include "defs.h" #include "defs_GOOS_GOARCH.h"
#include "os.h" #include "os_GOOS.h"
// Will keep all callbacks in a linked list, so they don't get garbage collected. // Will keep all callbacks in a linked list, so they don't get garbage collected.
typedef struct Callback Callback; typedef struct Callback Callback;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "runtime.h" #include "runtime.h"
#include "arch.h" #include "arch_GOARCH.h"
#include "stack.h" #include "stack.h"
#include "cgocall.h" #include "cgocall.h"
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
// in the situation when normally the goroutine "owns" handoff. // in the situation when normally the goroutine "owns" handoff.
#include "runtime.h" #include "runtime.h"
#include "arch.h" #include "arch_GOARCH.h"
#include "malloc.h" #include "malloc.h"
enum enum
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "runtime.h" #include "runtime.h"
#include "arch.h" #include "arch_GOARCH.h"
#include "type.h" #include "type.h"
#include "malloc.h" #include "malloc.h"
......
...@@ -8,10 +8,10 @@ ...@@ -8,10 +8,10 @@
package runtime package runtime
#include "runtime.h" #include "runtime.h"
#include "arch.h" #include "arch_GOARCH.h"
#include "stack.h" #include "stack.h"
#include "malloc.h" #include "malloc.h"
#include "defs.h" #include "defs_GOOS_GOARCH.h"
#include "type.h" #include "type.h"
MHeap runtime·mheap; MHeap runtime·mheap;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
// See malloc.h for an overview. // See malloc.h for an overview.
#include "runtime.h" #include "runtime.h"
#include "arch.h" #include "arch_GOARCH.h"
#include "malloc.h" #include "malloc.h"
void* void*
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
// so that it is faster to move those lists between MCaches and MCentrals. // so that it is faster to move those lists between MCaches and MCentrals.
#include "runtime.h" #include "runtime.h"
#include "arch.h" #include "arch_GOARCH.h"
#include "malloc.h" #include "malloc.h"
static bool MCentral_Grow(MCentral *c); static bool MCentral_Grow(MCentral *c);
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "runtime.h" #include "runtime.h"
#include "arch.h" #include "arch_GOARCH.h"
#include "defs.h" #include "defs_GOOS_GOARCH.h"
#include "os.h" #include "os_GOOS.h"
#include "malloc.h" #include "malloc.h"
void* void*
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "runtime.h" #include "runtime.h"
#include "arch.h" #include "arch_GOARCH.h"
#include "defs.h" #include "defs_GOOS_GOARCH.h"
#include "os.h" #include "os_GOOS.h"
#include "malloc.h" #include "malloc.h"
void* void*
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "runtime.h" #include "runtime.h"
#include "arch.h" #include "arch_GOARCH.h"
#include "defs.h" #include "defs_GOOS_GOARCH.h"
#include "os.h" #include "os_GOOS.h"
#include "malloc.h" #include "malloc.h"
enum enum
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "runtime.h" #include "runtime.h"
#include "arch.h" #include "arch_GOARCH.h"
#include "defs.h" #include "defs_GOOS_GOARCH.h"
#include "os.h" #include "os_GOOS.h"
#include "malloc.h" #include "malloc.h"
enum enum
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "runtime.h" #include "runtime.h"
#include "arch.h" #include "arch_GOARCH.h"
#include "defs.h" #include "defs_GOOS_GOARCH.h"
#include "os.h" #include "os_GOOS.h"
#include "malloc.h" #include "malloc.h"
enum enum
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "runtime.h" #include "runtime.h"
#include "arch.h" #include "arch_GOARCH.h"
#include "malloc.h" #include "malloc.h"
#include "os.h" #include "os_GOOS.h"
extern byte end[]; extern byte end[];
static byte *bloc = { end }; static byte *bloc = { end };
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "runtime.h" #include "runtime.h"
#include "arch.h" #include "arch_GOARCH.h"
#include "os.h" #include "os_GOOS.h"
#include "defs.h" #include "defs_GOOS_GOARCH.h"
#include "malloc.h" #include "malloc.h"
enum { enum {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "runtime.h" #include "runtime.h"
#include "arch.h" #include "arch_GOARCH.h"
#include "malloc.h" #include "malloc.h"
enum { debug = 0 }; enum { debug = 0 };
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
// See malloc.h for overview. // See malloc.h for overview.
#include "runtime.h" #include "runtime.h"
#include "arch.h" #include "arch_GOARCH.h"
#include "malloc.h" #include "malloc.h"
// Initialize f to allocate objects of the given size, // Initialize f to allocate objects of the given size,
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// Garbage collector. // Garbage collector.
#include "runtime.h" #include "runtime.h"
#include "arch.h" #include "arch_GOARCH.h"
#include "malloc.h" #include "malloc.h"
#include "stack.h" #include "stack.h"
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
// and heapmap(i) == span for all s->start <= i < s->start+s->npages. // and heapmap(i) == span for all s->start <= i < s->start+s->npages.
#include "runtime.h" #include "runtime.h"
#include "arch.h" #include "arch_GOARCH.h"
#include "malloc.h" #include "malloc.h"
static MSpan *MHeap_AllocLocked(MHeap*, uintptr, int32); static MSpan *MHeap_AllocLocked(MHeap*, uintptr, int32);
......
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
package runtime package runtime
#include "runtime.h" #include "runtime.h"
#include "arch.h" #include "arch_GOARCH.h"
#include "malloc.h" #include "malloc.h"
#include "defs.h" #include "defs_GOOS_GOARCH.h"
#include "type.h" #include "type.h"
// NOTE(rsc): Everything here could use cas if contention became an issue. // NOTE(rsc): Everything here could use cas if contention became an issue.
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
// TODO(rsc): Compute max waste for any given size. // TODO(rsc): Compute max waste for any given size.
#include "runtime.h" #include "runtime.h"
#include "arch.h" #include "arch_GOARCH.h"
#include "malloc.h" #include "malloc.h"
int32 runtime·class_to_size[NumSizeClasses]; int32 runtime·class_to_size[NumSizeClasses];
......
...@@ -3,10 +3,10 @@ ...@@ -3,10 +3,10 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "runtime.h" #include "runtime.h"
#include "arch.h" #include "arch_GOARCH.h"
#include "defs.h" #include "defs_GOOS_GOARCH.h"
#include "malloc.h" #include "malloc.h"
#include "os.h" #include "os_GOOS.h"
#include "stack.h" #include "stack.h"
bool runtime·iscgo; bool runtime·iscgo;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "amd64/asm.h" #include "asm_amd64.h"
TEXT _rt0_amd64_windows(SB),7,$-8 TEXT _rt0_amd64_windows(SB),7,$-8
MOVQ $_rt0_amd64(SB), AX MOVQ $_rt0_amd64(SB), AX
......
...@@ -241,7 +241,7 @@ struct M ...@@ -241,7 +241,7 @@ struct M
uint32 waitsemacount; uint32 waitsemacount;
uint32 waitsemalock; uint32 waitsemalock;
#ifdef __WINDOWS__ #ifdef GOOS_windows
void* thread; // thread handle void* thread; // thread handle
#endif #endif
uintptr end[]; uintptr end[];
...@@ -299,7 +299,7 @@ struct WinCall ...@@ -299,7 +299,7 @@ struct WinCall
uintptr err; // error number uintptr err; // error number
}; };
#ifdef __WINDOWS__ #ifdef GOOS_windows
enum { enum {
Windows = 1 Windows = 1
}; };
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
package runtime package runtime
#include "runtime.h" #include "runtime.h"
#include "arch.h" #include "arch_GOARCH.h"
typedef struct Sema Sema; typedef struct Sema Sema;
struct Sema struct Sema
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "runtime.h" #include "runtime.h"
#include "defs.h" #include "defs_GOOS_GOARCH.h"
#include "os.h" #include "os_GOOS.h"
#include "signals.h" #include "signals_GOOS.h"
void void
runtime·dumpregs(Regs32 *r) runtime·dumpregs(Regs32 *r)
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "runtime.h" #include "runtime.h"
#include "defs.h" #include "defs_GOOS_GOARCH.h"
#include "os.h" #include "os_GOOS.h"
#include "signals.h" #include "signals_GOOS.h"
void void
runtime·dumpregs(Regs64 *r) runtime·dumpregs(Regs64 *r)
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "runtime.h" #include "runtime.h"
#include "defs.h" #include "defs_GOOS_GOARCH.h"
#include "signals.h" #include "signals_GOOS.h"
#include "os.h" #include "os_GOOS.h"
extern void runtime·sigtramp(void); extern void runtime·sigtramp(void);
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "runtime.h" #include "runtime.h"
#include "defs.h" #include "defs_GOOS_GOARCH.h"
#include "signals.h" #include "signals_GOOS.h"
#include "os.h" #include "os_GOOS.h"
extern void runtime·sigtramp(void); extern void runtime·sigtramp(void);
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "runtime.h" #include "runtime.h"
#include "defs.h" #include "defs_GOOS_GOARCH.h"
#include "signals.h" #include "signals_GOOS.h"
#include "os.h" #include "os_GOOS.h"
void void
runtime·dumpregs(Sigcontext *r) runtime·dumpregs(Sigcontext *r)
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "runtime.h" #include "runtime.h"
#include "defs.h" #include "defs_GOOS_GOARCH.h"
#include "signals.h" #include "signals_GOOS.h"
#include "os.h" #include "os_GOOS.h"
void void
runtime·dumpregs(Sigcontext *r) runtime·dumpregs(Sigcontext *r)
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "runtime.h" #include "runtime.h"
#include "defs.h" #include "defs_GOOS_GOARCH.h"
#include "signals.h" #include "signals_GOOS.h"
#include "os.h" #include "os_GOOS.h"
void void
runtime·dumpregs(Sigcontext *r) runtime·dumpregs(Sigcontext *r)
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "runtime.h" #include "runtime.h"
#include "defs.h" #include "defs_GOOS_GOARCH.h"
#include "signals.h" #include "signals_GOOS.h"
#include "os.h" #include "os_GOOS.h"
extern void runtime·sigtramp(void); extern void runtime·sigtramp(void);
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "runtime.h" #include "runtime.h"
#include "defs.h" #include "defs_GOOS_GOARCH.h"
#include "signals.h" #include "signals_GOOS.h"
#include "os.h" #include "os_GOOS.h"
extern void runtime·sigtramp(void); extern void runtime·sigtramp(void);
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "runtime.h" #include "runtime.h"
#include "defs.h" #include "defs_GOOS_GOARCH.h"
#include "signals.h" #include "signals_GOOS.h"
#include "os.h" #include "os_GOOS.h"
extern void runtime·sigtramp(void); extern void runtime·sigtramp(void);
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "runtime.h" #include "runtime.h"
#include "defs.h" #include "defs_GOOS_GOARCH.h"
#include "signals.h" #include "signals_GOOS.h"
#include "os.h" #include "os_GOOS.h"
extern void runtime·sigtramp(void); extern void runtime·sigtramp(void);
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "runtime.h" #include "runtime.h"
#include "defs.h" #include "defs_GOOS_GOARCH.h"
#include "os.h" #include "os_GOOS.h"
void void
runtime·dumpregs(Context *r) runtime·dumpregs(Context *r)
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
#include "runtime.h" #include "runtime.h"
#include "defs.h" #include "defs_GOOS_GOARCH.h"
#include "os.h" #include "os_GOOS.h"
extern void *runtime·sigtramp; extern void *runtime·sigtramp;
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment