From Joel Sherrill.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182309
138bc75d-0d04-0410-961f-
82ee72b054a4
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. */
void
runtime_resetcpuprofiler(int32 hz)
{
+#ifdef SIGPROF
struct itimerval it;
struct sigaction sa;
int i;
i = setitimer (ITIMER_PROF, &it, NULL);
__go_assert (i == 0);
}
+#endif
runtime_m()->profilehz = hz;
}
void*
runtime_SysReserve(void *v, uintptr n)
{
+ USED(v);
return runtime_SysAlloc(n);
}
void
runtime_SysMap(void *v, uintptr n)
{
+ USED(v);
+ USED(n);
}