From: Ian Lance Taylor Date: Tue, 13 Dec 2011 21:59:26 +0000 (+0000) Subject: runtime: RTEMS build fixes. X-Git-Tag: releases/gcc-4.7.0~1555 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=03eee7f75c04f8c88666deca3f3c801532997ce3;p=thirdparty%2Fgcc.git runtime: RTEMS build fixes. From Joel Sherrill. From-SVN: r182309 --- diff --git a/libgo/runtime/go-signal.c b/libgo/runtime/go-signal.c index cd165f451127..eb624097b36a 100644 --- a/libgo/runtime/go-signal.c +++ b/libgo/runtime/go-signal.c @@ -122,12 +122,14 @@ sighandler (int sig) const char *msg; int i; +#ifdef SIGPROF if (sig == SIGPROF) { /* FIXME. */ runtime_sigprof (0, 0, nil, nil); return; } +#endif /* FIXME: Should check siginfo for more information when available. */ @@ -257,6 +259,7 @@ runtime_initsig (int32 queue) void runtime_resetcpuprofiler(int32 hz) { +#ifdef SIGPROF struct itimerval it; struct sigaction sa; int i; @@ -289,6 +292,7 @@ runtime_resetcpuprofiler(int32 hz) i = setitimer (ITIMER_PROF, &it, NULL); __go_assert (i == 0); } +#endif runtime_m()->profilehz = hz; } diff --git a/libgo/runtime/mem_posix_memalign.c b/libgo/runtime/mem_posix_memalign.c index 7d04f999f9f1..8acdf0705700 100644 --- a/libgo/runtime/mem_posix_memalign.c +++ b/libgo/runtime/mem_posix_memalign.c @@ -36,10 +36,13 @@ runtime_SysFree(void *v, uintptr n) void* runtime_SysReserve(void *v, uintptr n) { + USED(v); return runtime_SysAlloc(n); } void runtime_SysMap(void *v, uintptr n) { + USED(v); + USED(n); }