This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gccgo] Add syscall.ARCH


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;
 }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]