public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: gdb-patches@sourceware.org
Subject: [PATCH/committed] sim: frv: enable warnings in memory.c
Date: Tue, 19 Dec 2023 20:20:35 -0500	[thread overview]
Message-ID: <20231220012035.31629-1-vapier@gentoo.org> (raw)

Fix one minor pointer-sign warning to enable warnings in general
for this file.  Reading the data as signed and then returning it
as unsigned should be functionally the same in this case.
---
 sim/Makefile.in  | 1 -
 sim/frv/local.mk | 1 -
 sim/frv/memory.c | 2 +-
 3 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/sim/frv/local.mk b/sim/frv/local.mk
index fab1c5f48cd8..e4940398fd76 100644
--- a/sim/frv/local.mk
+++ b/sim/frv/local.mk
@@ -19,7 +19,6 @@
 AM_CPPFLAGS_%C% = $(SIM_FRV_TRAPDUMP_FLAGS)
 
 ## Some modules don't build cleanly yet.
-AM_CFLAGS_%C%_memory.o = -Wno-error
 AM_CFLAGS_%C%_sem.o = -Wno-error
 
 nodist_%C%_libsim_a_SOURCES = \
diff --git a/sim/frv/memory.c b/sim/frv/memory.c
index 062eeaed7ad2..92644ac36bf2 100644
--- a/sim/frv/memory.c
+++ b/sim/frv/memory.c
@@ -670,7 +670,7 @@ frvbf_read_imem_USI (SIM_CPU *current_cpu, PCADDR vpc)
   if (GET_HSR0_ICE (hsr0))
     {
       FRV_CACHE *cache;
-      USI value;
+      SI value;
 
       /* We don't want this to show up in the cache statistics.  That read
 	 is done in frvbf_simulate_insn_prefetch.  So read the cache or memory
-- 
2.43.0


                 reply	other threads:[~2023-12-20  1:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20231220012035.31629-1-vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).