unix: restore gccgo support

Initially added in https://golang.org/cl/9842 and
subsequently broken in https://golang.org/cl/85756.

Fixes golang/go#23361

Change-Id: Id458efdb4a9ffc5f038b4070fd514de9f78c17d7
Reviewed-on: https://go-review.googlesource.com/86755
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Tamir Duberstein
2018-01-09 00:06:53 +00:00
committed by Brad Fitzpatrick
parent 2493af8e3b
commit d38bf781f1
2 changed files with 21 additions and 0 deletions
+6
View File
@@ -31,6 +31,12 @@ gccgoRealSyscall(uintptr_t trap, uintptr_t a1, uintptr_t a2, uintptr_t a3, uintp
return r;
}
uintptr_t
gccgoRealSyscallNoError(uintptr_t trap, uintptr_t a1, uintptr_t a2, uintptr_t a3, uintptr_t a4, uintptr_t a5, uintptr_t a6, uintptr_t a7, uintptr_t a8, uintptr_t a9)
{
return syscall(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9);
}
// Define the use function in C so that it is not inlined.
extern void use(void *) __asm__ (GOSYM_PREFIX GOPKGPATH ".use") __attribute__((noinline));