]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: frv: enable warnings in memory.c
authorMike Frysinger <vapier@gentoo.org>
Tue, 19 Dec 2023 11:49:41 +0000 (06:49 -0500)
committerMike Frysinger <vapier@gentoo.org>
Wed, 20 Dec 2023 01:19:52 +0000 (20:19 -0500)
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
sim/frv/local.mk
sim/frv/memory.c

index 8d3bfaaa7e354e1dde60976cbe8927ccfb1d2568..b07641ff13235682b8d6b21f01e0b404ec17dfc2 100644 (file)
@@ -2273,7 +2273,6 @@ testsuite_common_CPPFLAGS = \
 @SIM_ENABLE_ARCH_examples_TRUE@        $(SIM_COMMON_LIBS)
 
 @SIM_ENABLE_ARCH_frv_TRUE@AM_CPPFLAGS_frv = $(SIM_FRV_TRAPDUMP_FLAGS)
-@SIM_ENABLE_ARCH_frv_TRUE@AM_CFLAGS_frv_memory.o = -Wno-error
 @SIM_ENABLE_ARCH_frv_TRUE@AM_CFLAGS_frv_sem.o = -Wno-error
 @SIM_ENABLE_ARCH_frv_TRUE@nodist_frv_libsim_a_SOURCES = \
 @SIM_ENABLE_ARCH_frv_TRUE@     frv/modules.c
index fab1c5f48cd879e70d1a6a769cb9620c9a724dc9..e4940398fd76e7c49075f1e3473e07891c62754a 100644 (file)
@@ -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 = \
index 062eeaed7ad292bdff51affd505bc441b2662ed8..92644ac36bf257353de91f550d7ebf0a146d7e20 100644 (file)
@@ -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