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 9/9] sim: iq2000: reduce -Wno-error scope
Date: Mon,  1 Nov 2021 00:59:45 -0400	[thread overview]
Message-ID: <20211101045945.23481-9-vapier@gentoo.org> (raw)
In-Reply-To: <20211101045945.23481-1-vapier@gentoo.org>

Clean up the warnings in sim-if, then reduce the -Werror disable to
the files that still aren't clean that now that we require GNU make
and can set variables on a per-object basis.
---
 sim/iq2000/Makefile.in | 4 ++--
 sim/iq2000/sim-if.c    | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/sim/iq2000/Makefile.in b/sim/iq2000/Makefile.in
index 4f85dc762358..b47d15ac4772 100644
--- a/sim/iq2000/Makefile.in
+++ b/sim/iq2000/Makefile.in
@@ -37,8 +37,8 @@ ALL_CPU_CFLAGS = -DHAVE_CPU_IQ2000BF -DHAVE_CPU_IQ10BF
 
 SIM_EXTRA_CLEAN = iq2000-clean
 
-# Code doesn't build cleanly yet.
-SIM_WERROR_CFLAGS =
+# Some modules don't build cleanly yet.
+cpu.o iq2000.o mloop.o sem.o: SIM_WERROR_CFLAGS =
 
 ## COMMON_POST_CONFIG_FRAG
 
diff --git a/sim/iq2000/sim-if.c b/sim/iq2000/sim-if.c
index 9728882dac51..8cfc1e0ca3e6 100644
--- a/sim/iq2000/sim-if.c
+++ b/sim/iq2000/sim-if.c
@@ -32,7 +32,7 @@ static void free_state (SIM_DESC);
 \f
 /* Cover function for sim_cgen_disassemble_insn.  */
 
-void
+static void
 iq2000bf_disassemble_insn (SIM_CPU *cpu, const CGEN_INSN *insn,
 			  const ARGBUF *abuf, IADDR pc, char *buf)
 {
@@ -89,8 +89,8 @@ sim_open (SIM_OPEN_KIND kind, host_callback *callback, struct bfd *abfd,
     }
 
   /* Allocate core managed memory.  */
-  sim_do_commandf (sd, "memory region 0x%lx,0x%lx", IQ2000_INSN_VALUE, IQ2000_INSN_MEM_SIZE); 
-  sim_do_commandf (sd, "memory region 0x%lx,0x%lx", IQ2000_DATA_VALUE, IQ2000_DATA_MEM_SIZE); 
+  sim_do_commandf (sd, "memory region 0x%x,0x%x", IQ2000_INSN_VALUE, IQ2000_INSN_MEM_SIZE); 
+  sim_do_commandf (sd, "memory region 0x%x,0x%x", IQ2000_DATA_VALUE, IQ2000_DATA_MEM_SIZE); 
 
   /* check for/establish the reference program image */
   if (sim_analyze_program (sd,
-- 
2.33.0


  parent reply	other threads:[~2021-11-01  5:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-01  4:59 [PATCH 1/9] sim: or1k: build with -Werror Mike Frysinger
2021-11-01  4:59 ` [PATCH 2/9] sim: sh: reduce -Wno-error scope Mike Frysinger
2021-11-01  4:59 ` [PATCH 3/9] sim: cris: " Mike Frysinger
2021-11-01  4:59 ` [PATCH 4/9] sim: erc32: " Mike Frysinger
2021-11-01  4:59 ` [PATCH 5/9] sim: mips: " Mike Frysinger
2021-11-01  4:59 ` [PATCH 6/9] sim: m32r: " Mike Frysinger
2021-11-01  4:59 ` [PATCH 7/9] sim: frv: " Mike Frysinger
2021-11-01  4:59 ` [PATCH 8/9] sim: lm32: " Mike Frysinger
2021-11-01  4:59 ` Mike Frysinger [this message]
2021-11-03  4:09 ` [PATCH 1/9] sim: or1k: build with -Werror Simon Marchi
2021-11-03  5:19   ` Mike Frysinger
2021-11-03 14:11     ` Simon Marchi

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=20211101045945.23481-9-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).