|
cmd/5a, cmd/6a, cmd/8a, cmd/9a: make labels function-scoped
I removed support for jumping between functions years ago,
as part of doing the instruction layout for each function separately.
Given that, it makes sense to treat labels as function-scoped.
This lets each function have its own 'loop' label, for example.
Makes the assembly much cleaner and removes the last
reason anyone would reach for the 123(PC) form instead.
Note that this is on the dev.power64 branch, but it changes all
the assemblers. The change will ship in Go 1.5 (perhaps after
being ported into the new assembler).
Came up as part of CL 167730043.
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+3610 lines, -4202 lines) |
Patch |
 |
M |
src/cmd/5a/a.h
|
View
|
1
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/cmd/5a/a.y
|
View
|
1
|
3 chunks |
+10 lines, -16 lines |
0 comments
|
Download
|
 |
M |
src/cmd/5a/y.tab.h
|
View
|
1
|
3 chunks |
+22 lines, -46 lines |
0 comments
|
Download
|
 |
M |
src/cmd/5a/y.tab.c
|
View
|
1
|
80 chunks |
+968 lines, -1115 lines |
0 comments
|
Download
|
 |
M |
src/cmd/6a/a.h
|
View
|
1
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/cmd/6a/a.y
|
View
|
1
|
3 chunks |
+9 lines, -16 lines |
0 comments
|
Download
|
 |
M |
src/cmd/6a/y.tab.c
|
View
|
1
|
44 chunks |
+573 lines, -589 lines |
0 comments
|
Download
|
 |
M |
src/cmd/8a/a.h
|
View
|
1
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/cmd/8a/a.y
|
View
|
1
|
3 chunks |
+9 lines, -16 lines |
0 comments
|
Download
|
 |
M |
src/cmd/8a/y.tab.c
|
View
|
1
|
43 chunks |
+548 lines, -562 lines |
0 comments
|
Download
|
 |
M |
src/cmd/9a/a.h
|
View
|
1
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/cmd/9a/a.y
|
View
|
1
|
3 chunks |
+10 lines, -16 lines |
0 comments
|
Download
|
 |
M |
src/cmd/9a/y.tab.h
|
View
|
1
|
3 chunks |
+21 lines, -25 lines |
0 comments
|
Download
|
 |
M |
src/cmd/9a/y.tab.c
|
View
|
1
|
75 chunks |
+1170 lines, -1566 lines |
0 comments
|
Download
|
 |
M |
src/cmd/cc/lexbody
|
View
|
1
|
1 chunk |
+25 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/runtime/asm_386.s
|
View
|
1
|
5 chunks |
+29 lines, -29 lines |
0 comments
|
Download
|
 |
M |
src/runtime/asm_amd64.s
|
View
|
1
|
8 chunks |
+39 lines, -39 lines |
0 comments
|
Download
|
 |
M |
src/runtime/asm_amd64p32.s
|
View
|
1
|
6 chunks |
+29 lines, -29 lines |
0 comments
|
Download
|
 |
M |
src/runtime/asm_arm.s
|
View
|
1
|
5 chunks |
+12 lines, -12 lines |
0 comments
|
Download
|
 |
M |
src/runtime/asm_power64x.s
|
View
|
1
2
3
4
|
8 chunks |
+20 lines, -20 lines |
0 comments
|
Download
|
 |
M |
src/runtime/memclr_386.s
|
View
|
1
|
4 chunks |
+23 lines, -23 lines |
0 comments
|
Download
|
 |
M |
src/runtime/memclr_amd64.s
|
View
|
1
|
3 chunks |
+22 lines, -22 lines |
0 comments
|
Download
|
 |
M |
src/runtime/memclr_plan9_386.s
|
View
|
1
|
1 chunk |
+12 lines, -12 lines |
0 comments
|
Download
|
 |
M |
src/runtime/race_amd64.s
|
View
|
1
|
2 chunks |
+9 lines, -9 lines |
0 comments
|
Download
|
 |
M |
src/runtime/sys_darwin_386.s
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
src/runtime/sys_darwin_amd64.s
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
src/runtime/sys_dragonfly_386.s
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
src/runtime/sys_freebsd_386.s
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
src/runtime/sys_linux_amd64.s
|
View
|
1
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
src/runtime/sys_linux_arm.s
|
View
|
1
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
src/runtime/sys_nacl_386.s
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
src/runtime/sys_nacl_amd64p32.s
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
src/runtime/sys_nacl_arm.s
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
src/runtime/sys_openbsd_386.s
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
src/runtime/sys_solaris_amd64.s
|
View
|
1
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
src/runtime/sys_windows_386.s
|
View
|
1
|
4 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
src/runtime/sys_windows_amd64.s
|
View
|
1
|
4 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
Total messages: 3
|