Skip to content

Commit 6d138e8

Browse files
committed
cmd/internal/obj: switch As back to int16
Upstream has fixed the opcode ranges to fit riscv in a 16-bit As, so we can switch back. Fixes golang#6 Change-Id: I1f18c477761be1801276e9f5f49c347e6ae33d91
1 parent c1b17dd commit 6d138e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/internal/obj/link.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ type ProgInfo struct {
266266
// that are common to all architectures.
267267
// However, the majority of opcodes are arch-specific
268268
// and are declared in their respective architecture's subpackage.
269-
type As int32
269+
type As int16
270270

271271
// These are the portable opcodes.
272272
const (

0 commit comments

Comments
 (0)