Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(23)

Issue 5490053: code review 5490053: runtime: make more build-friendly (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 3 months ago by rsc
Modified:
13 years, 3 months ago
Reviewers:
CC:
r, iant2, r2, lucio, golang-dev
Visibility:
Public.

Description

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).

Patch Set 1 #

Patch Set 2 : diff -r 4bd43e05039c https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 4bd43e05039c https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 4bd43e05039c https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 4bd43e05039c https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r 4bd43e05039c https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r 046739c8299b https://go.googlecode.com/hg/ #

Patch Set 8 : diff -r 046739c8299b https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -107 lines) Patch
M src/pkg/runtime/Makefile View 1 2 3 4 7 chunks +45 lines, -49 lines 0 comments Download
M src/pkg/runtime/arch_386.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/arch_amd64.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/arch_arm.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/asm_386.s View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/asm_amd64.s View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/asm_arm.s View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/atomic_386.c View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/atomic_amd64.c View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/atomic_arm.c View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/callback_windows_386.c View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/callback_windows_amd64.c View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/cgocall.c View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/closure_386.c View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/closure_amd64.c View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/closure_arm.c View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/cpuprof.c View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/defs1_linux.go View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/defs2_linux.go View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/defs_arm_linux.go View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/defs_darwin.go View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/defs_darwin_386.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/defs_darwin_amd64.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/defs_freebsd.go View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/defs_freebsd_386.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/defs_freebsd_amd64.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/defs_linux.go View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/defs_linux_386.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/defs_linux_amd64.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/defs_linux_arm.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/defs_netbsd.go View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/defs_netbsd_386.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/defs_netbsd_amd64.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/defs_openbsd.go View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/defs_openbsd_386.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/defs_openbsd_amd64.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/defs_plan9_386.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/defs_windows.go View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/defs_windows_386.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/defs_windows_amd64.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/iface.c View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/malloc.goc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/mcache.c View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/mcentral.c View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/mem_darwin.c View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M src/pkg/runtime/mem_freebsd.c View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M src/pkg/runtime/mem_linux.c View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M src/pkg/runtime/mem_netbsd.c View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M src/pkg/runtime/mem_openbsd.c View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M src/pkg/runtime/mem_plan9.c View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/mem_windows.c View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M src/pkg/runtime/memmove_386.s View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/memmove_amd64.s View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/memmove_arm.s View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/memset_arm.s View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/mfinal.c View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/mfixalloc.c View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/mgc0.c View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/mheap.c View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/mprof.goc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/msize.c View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/os_darwin.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/os_freebsd.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/os_linux.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/os_netbsd.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/os_openbsd.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/os_plan9.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/os_windows.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/proc.c View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M src/pkg/runtime/rt0_darwin_386.s View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/rt0_darwin_amd64.s View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/rt0_freebsd_386.s View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/rt0_freebsd_amd64.s View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/rt0_linux_386.s View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/rt0_linux_amd64.s View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/rt0_linux_arm.s View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/rt0_netbsd_386.s View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/rt0_netbsd_amd64.s View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/rt0_openbsd_386.s View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/rt0_openbsd_amd64.s View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/rt0_plan9_386.s View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/rt0_windows_386.s View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/rt0_windows_amd64.s View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/runtime.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/sema.goc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/signal_darwin_386.c View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M src/pkg/runtime/signal_darwin_amd64.c View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M src/pkg/runtime/signal_freebsd_386.c View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M src/pkg/runtime/signal_freebsd_amd64.c View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M src/pkg/runtime/signal_linux_386.c View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M src/pkg/runtime/signal_linux_amd64.c View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M src/pkg/runtime/signal_linux_arm.c View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M src/pkg/runtime/signal_netbsd_386.c View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M src/pkg/runtime/signal_netbsd_amd64.c View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M src/pkg/runtime/signal_openbsd_386.c View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M src/pkg/runtime/signal_openbsd_amd64.c View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M src/pkg/runtime/signal_plan9_386.c View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/signal_windows_386.c View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/signal_windows_amd64.c View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/signals_darwin.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/signals_freebsd.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/signals_linux.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/signals_netbsd.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/signals_openbsd.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/signals_plan9.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/signals_windows.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/sigqueue.goc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/slice.c View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/softfloat_arm.c View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/stack.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/string.goc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/symtab.c View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M src/pkg/runtime/sys_darwin_386.s View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/sys_darwin_amd64.s View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/sys_freebsd_386.s View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/sys_freebsd_amd64.s View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/sys_linux_386.s View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/sys_linux_amd64.s View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/sys_linux_arm.s View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/sys_netbsd_386.s View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/sys_netbsd_amd64.s View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/sys_openbsd_386.s View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/sys_openbsd_amd64.s View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/sys_plan9_386.s View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/sys_windows_386.s View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/sys_windows_amd64.s View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/syscall_windows.goc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/thread_darwin.c View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/thread_freebsd.c View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/thread_linux.c View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/thread_netbsd.c View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/thread_openbsd.c View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/thread_plan9.c View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/thread_windows.c View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/time.goc View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M src/pkg/runtime/traceback_amd64.c View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/traceback_arm.c View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/vlop_386.s View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/vlop_arm.s View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/vlrt_386.c View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M src/pkg/runtime/vlrt_arm.c View 1 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 14
rsc
Hello r (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 3 months ago (2011-12-16 06:02:52 UTC) #1
rsc
I welcome better suggestions than the ugly arch.h etc files, but if everything has to ...
13 years, 3 months ago (2011-12-16 06:04:27 UTC) #2
r
it might be nice if the new ugly foo.h files failed in place if no ...
13 years, 3 months ago (2011-12-16 06:08:27 UTC) #3
iant2
Russ Cox <rsc@golang.org> writes: > I welcome better suggestions than the ugly arch.h etc > ...
13 years, 3 months ago (2011-12-16 06:26:43 UTC) #4
r2
On Dec 15, 2011, at 10:26 PM, Ian Lance Taylor wrote: > Russ Cox <rsc@golang.org> ...
13 years, 3 months ago (2011-12-16 06:45:18 UTC) #5
rsc
On Fri, Dec 16, 2011 at 01:08, <r@golang.org> wrote: > it might be nice if ...
13 years, 3 months ago (2011-12-16 12:24:00 UTC) #6
rsc
On Fri, Dec 16, 2011 at 01:26, Ian Lance Taylor <iant@google.com> wrote: > I can ...
13 years, 3 months ago (2011-12-16 13:04:44 UTC) #7
rsc
On Fri, Dec 16, 2011 at 01:08, <r@golang.org> wrote: > it might be nice if ...
13 years, 3 months ago (2011-12-16 13:14:57 UTC) #8
iant2
Russ Cox <rsc@golang.org> writes: > I believe those rules exist, as far as file selection ...
13 years, 3 months ago (2011-12-16 14:49:40 UTC) #9
lucio
i just spotted this thread and I'd like to contribute just a small factor that ...
13 years, 3 months ago (2011-12-16 15:30:31 UTC) #10
rsc
PTAL. Now the behavior expected from the Go tool is to compile/assemble with -DGOOS_$(GOOS) -DGOARCH_$(GOARCH) ...
13 years, 3 months ago (2011-12-16 20:18:59 UTC) #11
r
LGTM it turned out well.
13 years, 3 months ago (2011-12-16 20:25:03 UTC) #12
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=479bba71fb07 *** runtime: make more build-friendly Collapse the arch,os-specific directories into the ...
13 years, 3 months ago (2011-12-16 20:34:04 UTC) #13
lucio
13 years, 3 months ago (2011-12-17 04:58:15 UTC) #14
I need to adjust my Plan 9 build infrastructure to match, and this
seems a very practical approach.  I really can't measure the impact
before I've tried that, but it does seem to be heading towards greater
Makefile simplicity and I do like that.

Lucio.


On 12/16/11, rsc@golang.org <rsc@golang.org> wrote:
> *** Submitted as
> http://code.google.com/p/go/source/detail?r=479bba71fb07 ***
>
> 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
> http://codereview.appspot.com/5490053
>
>
> http://codereview.appspot.com/5490053/
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b