From: Ian Lance Taylor Date: Tue, 25 Oct 2011 17:45:55 +0000 (+0000) Subject: Fix Solaris build. X-Git-Tag: releases/gcc-4.7.0~2827 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f9367b7c7010b02d6a6dca7278b01ea3fab17d91;p=thirdparty%2Fgcc.git Fix Solaris build. From Rainer Orth. From-SVN: r180439 --- diff --git a/libgo/go/syscall/wait.c b/libgo/go/syscall/wait.c index cee84c9cb525..d3c90d74ea12 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 6bc10ee0c8af..8838fd75a92d 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