]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim/rx: fill in missing 'void' for empty argument lists
authorAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 28 Jan 2021 17:24:45 +0000 (17:24 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 8 Feb 2021 11:01:07 +0000 (11:01 +0000)
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.

sim/rx/ChangeLog
sim/rx/cpu.h
sim/rx/err.c
sim/rx/mem.c
sim/rx/reg.c
sim/rx/rx.c
sim/rx/syscalls.c

index 8d5f1d745e68225c472e84d08fcbaf307643aa72..58b07eac5310909c853e419d25d7b8004d544764 100644 (file)
@@ -1,3 +1,15 @@
+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.
index 700f2de3c2b0461e6c544c7f513db456c15ff2ba..ef4503cc72028a660feed567c8451bdda8166786 100644 (file)
@@ -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;
index 3fc64d1d6850584aded6de2dce355b7e46478e9d..ce1cd571f590995b7e87325c1a0ba6e6e6442be7 100644 (file)
@@ -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.  */
index 40ab0bd5e6a3b9737e59f3bd5720908afe974bd2..7fbf08e6415b4489fa8d5263344d7fe861b2dec1 100644 (file)
@@ -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;
index c300f3ba6b2c285ce8e3125ebf3760953fad8082..00796a0c99a72e91a8837053bf7cbd254dfe8a74 100644 (file)
@@ -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,
index beed6a14c81a6675ea22514e3a5568176b47c028..e3737a56e98ad02794727c1626b0f74bda591ffe 100644 (file)
@@ -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;
index 1a6f65fad16d3e7824c0dff3ca3a919027291933..2f89da173307a827650534bc025262d615b1cd49 100644 (file)
@@ -69,7 +69,7 @@ get_callbacks (void)
 int argp, stackp;
 
 static int
-arg ()
+arg (void)
 {
   int rv = 0;
   argp++;