From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id D34763892449 for ; Fri, 7 May 2021 03:55:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D34763892449 Received: from vapier.lan (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 32DE8340952 for ; Fri, 7 May 2021 03:55:16 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH/committed 2/2] sim: m68hc11: fix up last warnings Date: Thu, 6 May 2021 23:55:14 -0400 Message-Id: <20210507035514.12299-2-vapier@gentoo.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210507035514.12299-1-vapier@gentoo.org> References: <20210507035514.12299-1-vapier@gentoo.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-10.7 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: Fri, 07 May 2021 03:55:18 -0000 Change the printf formats a little to fix the last build warnings in here, and then turn on -Werror by default for the arch port. --- sim/m68hc11/ChangeLog | 6 ++ sim/m68hc11/configure | 203 ++++++++++++++++++++------------------- sim/m68hc11/configure.ac | 1 - sim/m68hc11/interp.c | 8 +- 4 files changed, 113 insertions(+), 105 deletions(-) diff --git a/sim/m68hc11/ChangeLog b/sim/m68hc11/ChangeLog index 48b54b45dea2..1aaa51b29bb7 100644 --- a/sim/m68hc11/ChangeLog +++ b/sim/m68hc11/ChangeLog @@ -1,3 +1,9 @@ +2021-05-06 Mike Frysinger + + * interp.c (sim_hw_configure): Change %lx to %x in format strings. + * configure.ac: Delete SIM_AC_OPTION_WARNINGS call. + * configure: Regenerate. + 2021-05-06 Mike Frysinger * emulos.c: Include errno.h & stdio.h. diff --git a/sim/m68hc11/configure.ac b/sim/m68hc11/configure.ac index be52b63c2092..57e13e207bdd 100644 --- a/sim/m68hc11/configure.ac +++ b/sim/m68hc11/configure.ac @@ -7,7 +7,6 @@ SIM_AC_COMMON dnl Options available in this module SIM_AC_OPTION_ENDIAN(BIG) SIM_AC_OPTION_ALIGNMENT(NONSTRICT_ALIGNMENT) -SIM_AC_OPTION_WARNINGS(no) SIM_AC_OPTION_HARDWARE(\ m68hc11 m68hc11sio m68hc11eepr m68hc11tim m68hc11spi nvram) diff --git a/sim/m68hc11/interp.c b/sim/m68hc11/interp.c index 91d4d25b322a..07e4a8858a74 100644 --- a/sim/m68hc11/interp.c +++ b/sim/m68hc11/interp.c @@ -172,7 +172,7 @@ sim_hw_configure (SIM_DESC sd) /* Allocate core managed memory */ /* the monitor */ - sim_do_commandf (sd, "memory region 0x%lx@%d,0x%lx", + sim_do_commandf (sd, "memory region 0x%x@%d,0x%x", /* MONITOR_BASE, MONITOR_SIZE */ 0x8000, M6811_RAM_LEVEL, 0x8000); sim_do_commandf (sd, "memory region 0x000@%d,0x8000", @@ -180,7 +180,7 @@ sim_hw_configure (SIM_DESC sd) sim_hw_parse (sd, "/m68hc11/reg 0x1000 0x03F"); if (cpu->bank_start < cpu->bank_end) { - sim_do_commandf (sd, "memory region 0x%lx@%d,0x100000", + sim_do_commandf (sd, "memory region 0x%x@%d,0x100000", cpu->bank_virtual, M6811_RAM_LEVEL); sim_hw_parse (sd, "/m68hc11/use_bank 1"); } @@ -234,13 +234,13 @@ sim_hw_configure (SIM_DESC sd) if (hw_tree_find_property (device_tree, "/m68hc12/reg") == 0) { /* Allocate core external memory. */ - sim_do_commandf (sd, "memory region 0x%lx@%d,0x%lx", + sim_do_commandf (sd, "memory region 0x%x@%d,0x%x", 0x8000, M6811_RAM_LEVEL, 0x8000); sim_do_commandf (sd, "memory region 0x000@%d,0x8000", M6811_RAM_LEVEL); if (cpu->bank_start < cpu->bank_end) { - sim_do_commandf (sd, "memory region 0x%lx@%d,0x100000", + sim_do_commandf (sd, "memory region 0x%x@%d,0x100000", cpu->bank_virtual, M6811_RAM_LEVEL); sim_hw_parse (sd, "/m68hc12/use_bank 1"); } -- 2.31.1