aboutsummaryrefslogtreecommitdiff
path: root/sim/rx
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2021-01-28 17:24:45 +0000
committerAndrew Burgess <andrew.burgess@embecosm.com>2021-02-08 11:01:07 +0000
commit1c3e93a41f88703818999ed492699de26b0748cd (patch)
treee682e34b11aeb7e3b3c681bd204b17915cba399d /sim/rx
parent93a01471f3df559fffc567247288b3301620c4d7 (diff)
downloadgdb-1c3e93a41f88703818999ed492699de26b0748cd.zip
gdb-1c3e93a41f88703818999ed492699de26b0748cd.tar.gz
gdb-1c3e93a41f88703818999ed492699de26b0748cd.tar.bz2
sim/rx: fill in missing 'void' for empty argument lists
Ensure we have 'void' inside empty argument lists. This was causing several warnings for the rx simulator. sim/rx/ChangeLog: * cpu.h (trace_register_changes): Add void parameter type. * err.c (ee_overrides): Likewise. * mem.c (mem_usage_stats): Likewise. (e): Likewise. * reg.c (stack_heap_stats): Likewise. * rx.c (pop): Likewise. (poppc): Likewise. (decode_opcode): Likewise. * syscalls.c (arg): Likewise.
Diffstat (limited to 'sim/rx')
-rw-r--r--sim/rx/ChangeLog12
-rw-r--r--sim/rx/cpu.h2
-rw-r--r--sim/rx/err.c2
-rw-r--r--sim/rx/mem.c4
-rw-r--r--sim/rx/reg.c2
-rw-r--r--sim/rx/rx.c6
-rw-r--r--sim/rx/syscalls.c2
7 files changed, 21 insertions, 9 deletions
diff --git a/sim/rx/ChangeLog b/sim/rx/ChangeLog
index 8d5f1d7..58b07ea 100644
--- a/sim/rx/ChangeLog
+++ b/sim/rx/ChangeLog
@@ -1,5 +1,17 @@
2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
+ * cpu.h (trace_register_changes): Add void parameter type.
+ * err.c (ee_overrides): Likewise.
+ * mem.c (mem_usage_stats): Likewise.
+ (e): Likewise.
+ * reg.c (stack_heap_stats): Likewise.
+ * rx.c (pop): Likewise.
+ (poppc): Likewise.
+ (decode_opcode): Likewise.
+ * syscalls.c (arg): Likewise.
+
+2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
+
* gdb-if.c (sim_do_command): Work with a copy of the command.
2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
diff --git a/sim/rx/cpu.h b/sim/rx/cpu.h
index 700f2de..ef4503c 100644
--- a/sim/rx/cpu.h
+++ b/sim/rx/cpu.h
@@ -240,6 +240,6 @@ extern void reset_pipeline_stats (void);
extern void halt_pipeline_stats (void);
extern void pipeline_stats (void);
-extern void trace_register_changes ();
+extern void trace_register_changes (void);
extern void generate_access_exception (void);
extern jmp_buf decode_jmp_buf;
diff --git a/sim/rx/err.c b/sim/rx/err.c
index 3fc64d1..ce1cd57 100644
--- a/sim/rx/err.c
+++ b/sim/rx/err.c
@@ -28,7 +28,7 @@ static unsigned char ee_actions[SIM_ERR_NUM_ERRORS];
static enum execution_error last_error;
static void
-ee_overrides ()
+ee_overrides (void)
{
/* GCC may initialize a bitfield by reading the uninitialized byte,
masking in the bitfield, and writing the byte back out. */
diff --git a/sim/rx/mem.c b/sim/rx/mem.c
index 40ab0bd..7fbf08e 100644
--- a/sim/rx/mem.c
+++ b/sim/rx/mem.c
@@ -161,7 +161,7 @@ mcs (int isput, int bytes)
}
void
-mem_usage_stats ()
+mem_usage_stats (void)
{
int i, j;
int rstart = 0;
@@ -244,7 +244,7 @@ s (int address, char *dir)
#define S(d) if (trace) s(address, d)
static void
-e ()
+e (void)
{
if (!trace)
return;
diff --git a/sim/rx/reg.c b/sim/rx/reg.c
index c300f3b..00796a0 100644
--- a/sim/rx/reg.c
+++ b/sim/rx/reg.c
@@ -149,7 +149,7 @@ get_reg64 (int id)
static int highest_sp = 0, lowest_sp = 0xffffff;
void
-stack_heap_stats ()
+stack_heap_stats (void)
{
if (heapbottom < heaptop)
printf ("heap: %08x - %08x (%d bytes)\n", heapbottom, heaptop,
diff --git a/sim/rx/rx.c b/sim/rx/rx.c
index beed6a1..e3737a5 100644
--- a/sim/rx/rx.c
+++ b/sim/rx/rx.c
@@ -682,7 +682,7 @@ pushpc(int val)
}
static int
-pop()
+pop (void)
{
int rv;
int rsp = get_reg (sp);
@@ -693,7 +693,7 @@ pop()
}
static int
-poppc()
+poppc (void)
{
int rv;
int rsp = get_reg (sp);
@@ -931,7 +931,7 @@ op_is_memory (const RX_Opcode_Decoded *rd, int i)
#define DO_RETURN(x) { longjmp (decode_jmp_buf, x); }
int
-decode_opcode ()
+decode_opcode (void)
{
unsigned int uma=0, umb=0;
int ma=0, mb=0;
diff --git a/sim/rx/syscalls.c b/sim/rx/syscalls.c
index 1a6f65f..2f89da1 100644
--- a/sim/rx/syscalls.c
+++ b/sim/rx/syscalls.c
@@ -69,7 +69,7 @@ get_callbacks (void)
int argp, stackp;
static int
-arg ()
+arg (void)
{
int rv = 0;
argp++;