summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/sys/gmon.h2
-rw-r--r--libc/sysdeps/linux/common/gmon.c5
-rw-r--r--libc/sysdeps/linux/sh/bits/profil-counter.h5
3 files changed, 8 insertions, 4 deletions
diff --git a/include/sys/gmon.h b/include/sys/gmon.h
index c02f8316d..f29b410d3 100644
--- a/include/sys/gmon.h
+++ b/include/sys/gmon.h
@@ -162,7 +162,7 @@ struct gmonparam {
u_long fromssize;
struct tostruct *tos;
u_long tossize;
- long tolimit;
+ ARCINDEX tolimit;
u_long lowpc;
u_long highpc;
u_long textsize;
diff --git a/libc/sysdeps/linux/common/gmon.c b/libc/sysdeps/linux/common/gmon.c
index b3fe788f7..a3444a28e 100644
--- a/libc/sysdeps/linux/common/gmon.c
+++ b/libc/sysdeps/linux/common/gmon.c
@@ -52,7 +52,7 @@
/* Head of basic-block list or NULL. */
struct __bb *__bb_head;
-struct gmonparam _gmonparam = { GMON_PROF_OFF };
+struct gmonparam _gmonparam = { state: GMON_PROF_OFF };
/*
* See profil(2) where this is described:
@@ -221,8 +221,7 @@ static void write_call_graph (int fd)
u_char tag = GMON_TAG_CG_ARC;
struct gmon_cg_arc_record raw_arc[NARCS_PER_WRITEV]
__attribute__ ((aligned (__alignof__ (char*))));
- ARCINDEX from_index, to_index;
- int from_len;
+ ARCINDEX from_index, to_index, from_len;
u_long frompc;
struct iovec iov[2 * NARCS_PER_WRITEV];
int nfilled;
diff --git a/libc/sysdeps/linux/sh/bits/profil-counter.h b/libc/sysdeps/linux/sh/bits/profil-counter.h
index fe1df15ad..44561b2a6 100644
--- a/libc/sysdeps/linux/sh/bits/profil-counter.h
+++ b/libc/sysdeps/linux/sh/bits/profil-counter.h
@@ -23,6 +23,11 @@ static void
profil_counter (int signo, int _a2, int _a3, int _a4, struct sigcontext sc)
{
void *pc;
+ (void) signo;
+ (void)_a2;
+ (void)_a3;
+ (void)_a4;
+
pc = (void *) sc.sc_pc;
profil_count (pc);
}