mirror of git://gcc.gnu.org/git/gcc.git
runtime: RTEMS build fixes.
From Joel Sherrill. From-SVN: r182309
This commit is contained in:
parent
091d222216
commit
03eee7f75c
|
|
@ -122,12 +122,14 @@ sighandler (int sig)
|
||||||
const char *msg;
|
const char *msg;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
#ifdef SIGPROF
|
||||||
if (sig == SIGPROF)
|
if (sig == SIGPROF)
|
||||||
{
|
{
|
||||||
/* FIXME. */
|
/* FIXME. */
|
||||||
runtime_sigprof (0, 0, nil, nil);
|
runtime_sigprof (0, 0, nil, nil);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* FIXME: Should check siginfo for more information when
|
/* FIXME: Should check siginfo for more information when
|
||||||
available. */
|
available. */
|
||||||
|
|
@ -257,6 +259,7 @@ runtime_initsig (int32 queue)
|
||||||
void
|
void
|
||||||
runtime_resetcpuprofiler(int32 hz)
|
runtime_resetcpuprofiler(int32 hz)
|
||||||
{
|
{
|
||||||
|
#ifdef SIGPROF
|
||||||
struct itimerval it;
|
struct itimerval it;
|
||||||
struct sigaction sa;
|
struct sigaction sa;
|
||||||
int i;
|
int i;
|
||||||
|
|
@ -289,6 +292,7 @@ runtime_resetcpuprofiler(int32 hz)
|
||||||
i = setitimer (ITIMER_PROF, &it, NULL);
|
i = setitimer (ITIMER_PROF, &it, NULL);
|
||||||
__go_assert (i == 0);
|
__go_assert (i == 0);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
runtime_m()->profilehz = hz;
|
runtime_m()->profilehz = hz;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -36,10 +36,13 @@ runtime_SysFree(void *v, uintptr n)
|
||||||
void*
|
void*
|
||||||
runtime_SysReserve(void *v, uintptr n)
|
runtime_SysReserve(void *v, uintptr n)
|
||||||
{
|
{
|
||||||
|
USED(v);
|
||||||
return runtime_SysAlloc(n);
|
return runtime_SysAlloc(n);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
runtime_SysMap(void *v, uintptr n)
|
runtime_SysMap(void *v, uintptr n)
|
||||||
{
|
{
|
||||||
|
USED(v);
|
||||||
|
USED(n);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue