Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Burgess <andrew.burgess@embecosm.com>
To: gdb-patches@sourceware.org
Subject: [PATCH 04/11] sim/rx: mark some functions as static
Date: Mon,  1 Feb 2021 11:44:07 +0000	[thread overview]
Message-ID: <8d9b8c1ef47f03b6485edfb76eda78a3aed39f5f.1612179773.git.andrew.burgess@embecosm.com> (raw)
In-Reply-To: <cover.1612179773.git.andrew.burgess@embecosm.com>

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 | 6 ++++++
 sim/rx/fpu.c     | 2 +-
 sim/rx/gdb-if.c  | 2 +-
 sim/rx/mem.c     | 2 +-
 4 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/sim/rx/fpu.c b/sim/rx/fpu.c
index 00c3ab73f0b..f9e9007192a 100644
--- a/sim/rx/fpu.c
+++ b/sim/rx/fpu.c
@@ -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)
diff --git a/sim/rx/gdb-if.c b/sim/rx/gdb-if.c
index 55eb13d12ef..3d052e62baa 100644
--- a/sim/rx/gdb-if.c
+++ b/sim/rx/gdb-if.c
@@ -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)
diff --git a/sim/rx/mem.c b/sim/rx/mem.c
index 7fbf08e6415..fe8e08d1460 100644
--- a/sim/rx/mem.c
+++ b/sim/rx/mem.c
@@ -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;
-- 
2.25.4


  parent reply	other threads:[~2021-02-01 11:44 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-01 11:44 [PATCH 00/11] fix build warnings for rx simulator Andrew Burgess
2021-02-01 11:44 ` [PATCH 01/11] sim/rx: define sim_memory_map Andrew Burgess
2021-02-01 14:46   ` Mike Frysinger via Gdb-patches
2021-02-08 11:01     ` Andrew Burgess
2021-02-01 11:44 ` [PATCH 02/11] sim/rx: fix an issue where we try to modify a const string Andrew Burgess
2021-02-01 11:44 ` [PATCH 03/11] sim/rx: fill in missing 'void' for empty argument lists Andrew Burgess
2021-02-01 11:44 ` Andrew Burgess [this message]
2021-02-01 11:44 ` [PATCH 05/11] sim/rx: delete an unused function Andrew Burgess
2021-02-01 11:44 ` [PATCH 06/11] sim/rx: use puts instead of printf in a few places Andrew Burgess
2021-02-01 14:49   ` Mike Frysinger via Gdb-patches
2021-02-08 10:58     ` Andrew Burgess
2021-02-01 11:44 ` [PATCH 07/11] sim/rx: move some variable declarations to the start of the block Andrew Burgess
2021-02-01 11:44 ` [PATCH 08/11] sim/rx: use PRIx64 in printf format string Andrew Burgess
2021-02-01 11:44 ` [PATCH 09/11] sim/rx: add some missing includes Andrew Burgess
2021-02-01 11:44 ` [PATCH 10/11] sim/rx: avoid pointer arithmetic on void * pointers Andrew Burgess
2021-02-01 11:44 ` [PATCH 11/11] sim/rx: enable build with warnings Andrew Burgess
2021-02-01 14:50   ` Mike Frysinger via Gdb-patches
2021-02-02  4:53     ` [PATCH] sim: erc32/m32c/rl78: add sim_memory_map stub for gdb Mike Frysinger via Gdb-patches
2021-02-08 10:57     ` [PATCH 11/11] sim/rx: enable build with warnings Andrew Burgess
2021-02-02  4:37 ` [PATCH 00/11] fix build warnings for rx simulator Mike Frysinger via Gdb-patches

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8d9b8c1ef47f03b6485edfb76eda78a3aed39f5f.1612179773.git.andrew.burgess@embecosm.com \
    --to=andrew.burgess@embecosm.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox