From: Mike Frysinger <vapier@gentoo.org>
To: gdb-patches@sourceware.org
Subject: [PATCH/committed 10/21] sim: h8300: fix -Wunused-variable warnings
Date: Tue, 19 Dec 2023 05:51:44 -0500 [thread overview]
Message-ID: <20231219105155.10433-10-vapier@gentoo.org> (raw)
In-Reply-To: <20231219105155.10433-1-vapier@gentoo.org>
---
sim/h8300/compile.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/sim/h8300/compile.c b/sim/h8300/compile.c
index 51ad66df6810..8ae7757ee1b1 100644
--- a/sim/h8300/compile.c
+++ b/sim/h8300/compile.c
@@ -735,7 +735,6 @@ decode (SIM_DESC sd, sim_cpu *cpu, int addr, unsigned char *data, decoded_inst *
/* Fill in the args. */
{
const op_type *args = q->args.nib;
- int hadone = 0;
int nargs;
for (nargs = 0;
@@ -1625,7 +1624,6 @@ static void
sort_opcodes_and_setup_nibble_indices (struct h8_opcode *ops)
{
const struct h8_opcode *q;
- int *indices;
int i;
/* First sort the OPS array. */
@@ -1771,7 +1769,6 @@ step_once (SIM_DESC sd, SIM_CPU *cpu)
int trace = 0;
int intMask = 0;
int oldmask;
- const struct h8300_sim_state *state = H8300_SIM_STATE (sd);
host_callback *sim_callback = STATE_CALLBACK (sd);
init_pointers (sd);
@@ -2573,8 +2570,6 @@ step_once (SIM_DESC sd, SIM_CPU *cpu)
int no_of_args = 0; /* The no. or cmdline args. */
int current_location = 0; /* Location of string. */
int old_sp = 0; /* The Initial Stack Pointer. */
- int no_of_slots = 0; /* No. of slots required on the stack
- for storing cmdline args. */
int sp_move = 0; /* No. of locations by which the stack needs
to grow. */
int new_sp = 0; /* The final stack pointer location passed
@@ -4578,7 +4573,6 @@ void
sim_info (SIM_DESC sd, bool verbose)
{
sim_cpu *cpu = STATE_CPU (sd, 0);
- const struct h8300_sim_state *state = H8300_SIM_STATE (sd);
double timetaken = (double) h8_get_ticks (cpu) / (double) now_persec ();
double virttime = h8_get_cycles (cpu) / 10.0e6;
@@ -4880,7 +4874,6 @@ sim_create_inferior (SIM_DESC sd, struct bfd *abfd,
{
SIM_CPU *cpu = STATE_CPU (sd, 0);
int i = 0;
- int len_arg = 0;
int no_of_args = 0;
if (abfd != NULL)
--
2.43.0
next prev parent reply other threads:[~2023-12-19 10:52 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-19 10:51 [PATCH/committed 01/21] sim: common: " Mike Frysinger
2023-12-19 10:51 ` [PATCH/committed 02/21] sim: aarch64: " Mike Frysinger
2023-12-19 10:51 ` [PATCH/committed 03/21] sim: bfin: " Mike Frysinger
2023-12-19 10:51 ` [PATCH/committed 04/21] sim: bpf: " Mike Frysinger
2024-01-03 9:40 ` Jose E. Marchesi
2023-12-19 10:51 ` [PATCH/committed 05/21] sim: cr16: " Mike Frysinger
2023-12-19 10:51 ` [PATCH/committed 06/21] sim: cris: " Mike Frysinger
2023-12-19 10:51 ` [PATCH/committed 07/21] sim: erc32: " Mike Frysinger
2023-12-19 10:51 ` [PATCH/committed 08/21] sim: frv: " Mike Frysinger
2023-12-19 10:51 ` [PATCH/committed 09/21] sim: ft32: " Mike Frysinger
2023-12-19 10:51 ` Mike Frysinger [this message]
2023-12-19 10:51 ` [PATCH/committed 11/21] sim: iq2000: " Mike Frysinger
2023-12-19 10:51 ` [PATCH/committed 12/21] sim: lm32: " Mike Frysinger
2023-12-19 10:51 ` [PATCH/committed 13/21] sim: m32r: " Mike Frysinger
2023-12-19 10:51 ` [PATCH/committed 14/21] sim: mcore: " Mike Frysinger
2023-12-19 10:51 ` [PATCH/committed 15/21] sim: microblaze: " Mike Frysinger
2023-12-19 10:51 ` [PATCH/committed 16/21] sim: mips: " Mike Frysinger
2023-12-19 10:51 ` [PATCH/committed 17/21] sim: mn10300: " Mike Frysinger
2023-12-19 10:51 ` [PATCH/committed 18/21] sim: msp430: " Mike Frysinger
2023-12-19 10:51 ` [PATCH/committed 19/21] sim: moxie: " Mike Frysinger
2023-12-19 10:51 ` [PATCH/committed 20/21] sim: sh: " Mike Frysinger
2023-12-19 10:51 ` [PATCH/committed 21/21] sim: v850: " Mike Frysinger
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=20231219105155.10433-10-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).