diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-12-13 21:59:26 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-12-13 21:59:26 +0000 |
commit | 03eee7f75c04f8c88666deca3f3c801532997ce3 (patch) | |
tree | 751edfce7fd501719e560ce197cc24aee0f5a555 /libgo/runtime/go-signal.c | |
parent | 091d222216cefb26bf54f724fd88088745a4e083 (diff) | |
download | gcc-03eee7f75c04f8c88666deca3f3c801532997ce3.zip gcc-03eee7f75c04f8c88666deca3f3c801532997ce3.tar.gz gcc-03eee7f75c04f8c88666deca3f3c801532997ce3.tar.bz2 |
runtime: RTEMS build fixes.
From Joel Sherrill.
From-SVN: r182309
Diffstat (limited to 'libgo/runtime/go-signal.c')
-rw-r--r-- | libgo/runtime/go-signal.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libgo/runtime/go-signal.c b/libgo/runtime/go-signal.c index cd165f4..eb624097 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; } |