Skip to content

Commit 4ca2fc4

Browse files
committed
[dev.cc] cmd/new5a etc, cmd/internal/asm: edit to produce working Go code
These assemblers produce byte-for-byte identical output to the ones written in C. They are primarily a proof that cmd/internal/obj can be used standalone to produce working object files. (The use via objwriter starts by deserializing an already-constructed internal representation, so objwriter does not exercise the code in cmd/internal/obj that creates such a representation from scratch.) Change-Id: I1793d8d010046cfb9d8b4d2d4469e7f47a3d3ac7 Reviewed-on: https://go-review.googlesource.com/3143 Reviewed-by: Rob Pike <r@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
1 parent 9e2f8fd commit 4ca2fc4

File tree

17 files changed

+7298
-3075
lines changed

17 files changed

+7298
-3075
lines changed

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,12 @@ misc/cgo/life/run.out
2626
misc/cgo/stdio/run.out
2727
misc/cgo/testso/main
2828
misc/dashboard/builder/builder
29-
src/cmd/?a/y.output
3029
src/liblink/anames?.c
31-
src/cmd/cc/y.output
30+
src/cmd/*/y.output
3231
src/cmd/cgo/zdefaultcc.go
3332
src/cmd/dist/dist.dSYM
3433
src/cmd/gc/mkbuiltin1
3534
src/cmd/gc/opnames.h
36-
src/cmd/gc/y.output
3735
src/cmd/go/zdefaultcc.go
3836
src/cmd/internal/obj/zbootstrap.go
3937
src/go/doc/headscan

src/cmd/go/pkg.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,10 @@ var goTools = map[string]targetDir{
396396
"cmd/cgo": toTool,
397397
"cmd/fix": toTool,
398398
"cmd/link": toTool,
399+
"cmd/new5a": toTool,
400+
"cmd/new6a": toTool,
401+
"cmd/new8a": toTool,
402+
"cmd/new9a": toTool,
399403
"cmd/nm": toTool,
400404
"cmd/objdump": toTool,
401405
"cmd/objwriter": toTool,

0 commit comments

Comments
 (0)