libgo patch committed: Don't use PtraceRegs if not defined

Ian Lance Taylor iant@google.com
Tue Jan 31 14:23:00 GMT 2012


The libgo library only defines PtraceRegs on a few systems.  However, it
was using PtraceRegs on every GNU/Linux system.  This patch fix this
taking the easy way out, by moving a copy of the two small functions
which use PtraceRegs into the processor-specific files which define
PtraceRegs.  Bootstrapped and ran Go testsuite on
x86_64-unknown-linux-gnu.  Committed to mainline.

Ian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 3671 bytes
Desc: patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120131/3112f920/attachment.bin>


More information about the Gcc-patches mailing list