https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86535

--- Comment #28 from Curtis Hamilton <clhamilto at gmail dot com> ---
(In reply to Ian Lance Taylor from comment #27)
> What is the complete contents of your new file?  You showed just a
> declaration; is there a function body there as well?

That's what I was missing. I now have it working, here's the complete contents
of the file.


package syscall

// We can't use the gc-syntax .s files for gccgo. On the plus side
// much of the functionality can be written directly in Go.

func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2
uintptr, err Errno) {
        Entersyscall()
        r, r2, errno := Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9)
        Exitsyscall()
        return r, 0, Errno(errno)
}

func syscall9(uintptr, uintptr, uintptr, uintptr, uintptr, uintptr, uintptr,
uintptr, uintptr, uintptr) (uintptr, uintptr, Errno)


Also, there was an earlier error that I manually changed.  Any idea on how to
fix the below:

runtime_sysinfo.go:580:6: error: invalid recursive type
  580 | type _thread _thread
      |

Reply via email to