sim/rx: mark some functions as static
authorAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 28 Jan 2021 17:27:44 +0000 (17:27 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 8 Feb 2021 11:01:07 +0000 (11:01 +0000)
Some functions that should be marked static.

sim/rx/ChangeLog:

* fpu.c (check_exceptions): Make static.
* gdb-if.c (handle_step): Likewise.
* mem.c (mem_put_byte): Likewise.

sim/rx/ChangeLog
sim/rx/fpu.c
sim/rx/gdb-if.c
sim/rx/mem.c

index 58b07eac5310909c853e419d25d7b8004d544764..732c902c212863870b8423c5b070971d76d165a1 100644 (file)
@@ -1,3 +1,9 @@
+2021-02-08  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * fpu.c (check_exceptions): Make static.
+       * gdb-if.c (handle_step): Likewise.
+       * mem.c (mem_put_byte): Likewise.
+
 2021-02-08  Andrew Burgess  <andrew.burgess@embecosm.com>
 
        * cpu.h (trace_register_changes): Add void parameter type.
index 00c3ab73f0bcb71ef39288e5d76d083bd158bbdd..f9e9007192a8ea3b26ec47cb56296ddd8baac8d7 100644 (file)
@@ -354,7 +354,7 @@ static const char *ex_names[] = {
 /* This checks for all exceptional cases (not all FP exceptions) and
    returns TRUE if it is providing the result in *c.  If it returns
    FALSE, the caller should do the "normal" operation.  */
-int
+static int
 check_exceptions (FP_Parts *a, FP_Parts *b, fp_t *c,
                  FP_ExceptionCases ex_tab[5][5], 
                  FP_ExceptionCases *case_ret)
index 55eb13d12ef2f3737086852b70b96f96f0c3a398..3d052e62baa26836d90ba6a0ece66266abb93055 100644 (file)
@@ -688,7 +688,7 @@ rx_signal_to_gdb_signal (int rx)
 
 /* Take a step return code RC and set up the variables consulted by
    sim_stop_reason appropriately.  */
-void
+static void
 handle_step (int rc)
 {
   if (execution_error_get_last_error () != SIM_ERR_NONE)
index 7fbf08e6415b4489fa8d5263344d7fe861b2dec1..fe8e08d1460f62cb9c21a7caba0df07584d055d1 100644 (file)
@@ -262,7 +262,7 @@ mtypec (int address)
 
 #define E() if (trace) e()
 
-void
+static void
 mem_put_byte (unsigned int address, unsigned char value)
 {
   unsigned char *m;
This page took 0.028879 seconds and 4 git commands to generate.