summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-10-25 17:45:55 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-10-25 17:45:55 +0000
commit034cf891ae6b4a897d8d2f3123d67b12b89cd13b (patch)
tree60979d15dd4bb0f631aebc0f0d2e0875b5e2dd22
parent1cce762f14ec1545bc3a823707b4470e70a2e0fc (diff)
downloadgcc-034cf891ae6b4a897d8d2f3123d67b12b89cd13b.tar.gz
Fix Solaris build.
From Rainer Orth. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180439 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--libgo/go/syscall/wait.c2
-rwxr-xr-xlibgo/mksysinfo.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/syscall/wait.c b/libgo/go/syscall/wait.c
index cee84c9cb52..d3c90d74ea1 100644
--- a/libgo/go/syscall/wait.c
+++ b/libgo/go/syscall/wait.c
@@ -95,7 +95,7 @@ extern int TrapCause (uint32_t *w)
__asm__ ("libgo_syscall.syscall.TrapCause.N32_libgo_syscall.syscall.WaitStatus");
int
-TrapCause (uint32_t *w)
+TrapCause (uint32_t *w __attribute__ ((unused)))
{
#ifndef __linux__
return -1;
diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
index 6bc10ee0c8a..8838fd75a92 100755
--- a/libgo/mksysinfo.sh
+++ b/libgo/mksysinfo.sh
@@ -251,7 +251,7 @@ if ! grep '^const PTRACE_EVENT_EXIT' ${OUT} > /dev/null 2>&1; then
echo "const PTRACE_EVENT_EXIT = 6" >> ${OUT}
fi
if ! grep '^const _PTRACE_TRACEME' ${OUT} > /dev/null 2>&1; then
- echo "const PTRACE_TRACEME = 0" >> ${OUT}
+ echo "const _PTRACE_TRACEME = 0" >> ${OUT}
fi
# The registers returned by PTRACE_GETREGS. This is probably