Skip to content

Commit

Permalink
cmd/internal/obj: switch As back to int16
Browse files Browse the repository at this point in the history
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
  • Loading branch information
prattmic committed Aug 17, 2016
1 parent c1b17dd commit 6d138e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/internal/obj/link.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ type ProgInfo struct {
// that are common to all architectures.
// However, the majority of opcodes are arch-specific
// and are declared in their respective architecture's subpackage.
type As int32
type As int16

// These are the portable opcodes.
const (
Expand Down

0 comments on commit 6d138e8

Please sign in to comment.