@@ -4,8 +4,9 @@ LD=`go env GOTOOLDIR`/link
4
4
ALTROOT =` go env GOROOT ` /alt
5
5
6
6
EXES =empty.u.out cmp.u.out hello.u.out call.u.out virtreg.u.out call1.6.out bigoffset.u.out mov.u.out neg.u.out branch1.u.out new3.u.out order.u.out bigmov.u.out hugealu.u.out jmp.u.out sync.u.out movcc.u.out
7
- GOS =call0.7.go.s
8
- GNUS=${EXES:%.u.out =%.u.gnu.S} conv.gnu.S fconv.gnu.S mul.gnu.S atomic.gnu.S
7
+ GOS =call0.7.go.s cmp1.u.go.s cmp1.7.go.s
8
+ GNUS=${EXES:%.u.out =%.u.gnu.S} conv.gnu.S fconv.gnu.S mul.gnu.S atomic.gnu.S cmp1.gnu.S
9
+ GNUOPTS=${GNUS:%.gnu.S =%.gnuopt.S}
9
10
DATS=${EXES:%.u.out =%.u.dat}
10
11
11
12
all :V: $EXES $GNUS $GOS $DATS
@@ -34,7 +35,10 @@ $RT: pkg/solaris_sparc64 $RTOBJS
34
35
go tool pack c $target $RTOBJS
35
36
36
37
% .7.go.s : tools % .go
37
- GOOS=linux GOARCH=arm64 go tool compile -S -o /dev/null $stem .go > $target
38
+ GOOS=linux GOARCH=arm64 go tool compile -N -S -o /dev/null $stem .go > $target
39
+
40
+ % .u.go.s : tools % .go
41
+ GOOS=solaris GOARCH=sparc64 go tool compile -N -S -o /dev/null $stem .go > $target
38
42
39
43
call1.6.a : call1.6 call1_amd64.6
40
44
go tool pack c $target $prereq
@@ -49,7 +53,10 @@ call1.6.a: call1.6 call1_amd64.6
49
53
sparc64-none-elf-objdump -d $prereq > $target
50
54
51
55
% .gnu.S : % .c
52
- sparc64-none-elf-gcc -mflat -m64 -S -O2 -o $target $prereq
56
+ sparc64-none-elf-gcc -mflat -m64 -S -o $target $prereq
57
+
58
+ % .gnuopt.S : % .c
59
+ sparc64-none-elf-gcc -mflat -m64 -O2 -S -o $target $prereq
53
60
54
61
% .u.dat : % .u.out
55
62
sparc64-none-elf-readelf -x .data -x .rodata -x .noptrdata $prereq > $target
@@ -58,4 +65,4 @@ copy:V: $EXES
58
65
rsync -i $EXES torside:~ /x
59
66
60
67
clean :V:
61
- rm -rf pkg * .[a56789uo] * .gnu.S * .go.s * .out * .dat
68
+ rm -rf pkg * .[a56789uo] * .gnu.S * .gnuopt.S * . go.s * .out * .dat
0 commit comments