From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id AB198385780A for ; Mon, 1 Nov 2021 04:59:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AB198385780A Received: by smtp.gentoo.org (Postfix, from userid 559) id 4D597342D32; Mon, 1 Nov 2021 04:59:59 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH 8/9] sim: lm32: reduce -Wno-error scope Date: Mon, 1 Nov 2021 00:59:44 -0400 Message-Id: <20211101045945.23481-8-vapier@gentoo.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211101045945.23481-1-vapier@gentoo.org> References: <20211101045945.23481-1-vapier@gentoo.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Nov 2021 05:00:01 -0000 Clean up some warnings in dv-lm32cpu, and all 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/lm32/Makefile.in | 4 ++-- sim/lm32/dv-lm32cpu.c | 2 +- sim/lm32/sim-if.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sim/lm32/Makefile.in b/sim/lm32/Makefile.in index 2daf74d637bc..642c483acd26 100644 --- a/sim/lm32/Makefile.in +++ b/sim/lm32/Makefile.in @@ -24,8 +24,8 @@ SIM_EXTRA_DEPS = $(CGEN_INCLUDE_DEPS) $(srcdir)/../../opcodes/lm32-desc.h \ SIM_EXTRA_CLEAN = lm32-clean -# Code doesn't build cleanly yet. -SIM_WERROR_CFLAGS = +# Some modules don't build cleanly yet. +dv-lm32cpu.o mloop.o sem.o traps.o user.o: SIM_WERROR_CFLAGS = ## COMMON_POST_CONFIG_FRAG diff --git a/sim/lm32/dv-lm32cpu.c b/sim/lm32/dv-lm32cpu.c index 2f702bd72295..83fe6078b0b8 100644 --- a/sim/lm32/dv-lm32cpu.c +++ b/sim/lm32/dv-lm32cpu.c @@ -141,7 +141,7 @@ deliver_lm32cpu_interrupt (struct hw *me, void *data) SIM_DESC sd = hw_system (me); sim_cpu *cpu = STATE_CPU (sd, 0); /* NB: fix CPU 0. */ address_word cia = CPU_PC_GET (cpu); - int interrupt = (int) data; + int interrupt = (uintptr_t) data; HW_TRACE ((me, "interrupt-check event")); diff --git a/sim/lm32/sim-if.c b/sim/lm32/sim-if.c index f9143ea00375..2f8b3449917a 100644 --- a/sim/lm32/sim-if.c +++ b/sim/lm32/sim-if.c @@ -158,8 +158,8 @@ sim_open (SIM_OPEN_KIND kind, host_callback *callback, struct bfd *abfd, free_state (sd); return 0; } - /*sim_io_printf (sd, "Allocating memory at 0x%x size 0x%x\n", base, limit); */ - sim_do_commandf (sd, "memory region 0x%x,0x%x", base, limit); + /*sim_io_printf (sd, "Allocating memory at 0x%lx size 0x%lx\n", base, limit); */ + sim_do_commandf (sd, "memory region 0x%lx,0x%lx", base, limit); } } -- 2.33.0