From patchwork Mon Jun 14 05:26:41 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [gccgo] Add syscall.ARCH From: Ian Taylor X-Patchwork-Id: 55468 Message-Id: To: gcc-patches@gcc.gnu.org Date: Sun, 13 Jun 2010 22:26:41 -0700 This patch is a quick patch to add syscall.ARCH, which is now provided by the Go library. Committed to gccgo branch. Ian diff -r 149b0703265f libgo/syscalls/syscall_linux_386.go --- a/libgo/syscalls/syscall_linux_386.go Sun Jun 13 22:23:02 2010 -0700 +++ b/libgo/syscalls/syscall_linux_386.go Sun Jun 13 22:25:02 2010 -0700 @@ -6,6 +6,8 @@ package syscall +const ARCH = "386" + func (r *PtraceRegs) PC() uint64 { return uint64(uint32(r.Eip)); } diff -r 149b0703265f libgo/syscalls/syscall_linux_amd64.go --- a/libgo/syscalls/syscall_linux_amd64.go Sun Jun 13 22:23:02 2010 -0700 +++ b/libgo/syscalls/syscall_linux_amd64.go Sun Jun 13 22:25:02 2010 -0700 @@ -6,6 +6,8 @@ package syscall +const ARCH = "amd64" + func (r *PtraceRegs) PC() uint64 { return r.Rip; }