aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-15 22:15:03 -0500
committerMike Frysinger <vapier@gentoo.org>2023-12-19 05:51:10 -0500
commit04a33b24eb48fb03807f84905887421253ab0b83 (patch)
tree590b060df74f73bcf68d83e826af2f3ffb1b6eb2 /sim
parent8bc2893fb4ccb1c5b74aa6443ff9eb000468f029 (diff)
downloadgdb-04a33b24eb48fb03807f84905887421253ab0b83.zip
gdb-04a33b24eb48fb03807f84905887421253ab0b83.tar.gz
gdb-04a33b24eb48fb03807f84905887421253ab0b83.tar.bz2
sim: h8300: fix -Wunused-variable warnings
Diffstat (limited to 'sim')
-rw-r--r--sim/h8300/compile.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/sim/h8300/compile.c b/sim/h8300/compile.c
index 51ad66d..8ae7757 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)