diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-18 21:43:07 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-12-19 05:45:01 -0500 |
commit | e9026cfbcfa4769e1c328dd45798d4483e37fc5d (patch) | |
tree | 34163080fdf7bf5b597faec884173d517f6bb125 /sim | |
parent | fa88a361f99ecfddce4cc7228932ccc35879a6e8 (diff) | |
download | gdb-e9026cfbcfa4769e1c328dd45798d4483e37fc5d.zip gdb-e9026cfbcfa4769e1c328dd45798d4483e37fc5d.tar.gz gdb-e9026cfbcfa4769e1c328dd45798d4483e37fc5d.tar.bz2 |
cpu: cris: drop some unused vars
These fix unused variable warnings in the generated sim.
Diffstat (limited to 'sim')
-rw-r--r-- | sim/cris/semcrisv10f-switch.c | 4 | ||||
-rw-r--r-- | sim/cris/semcrisv32f-switch.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sim/cris/semcrisv10f-switch.c b/sim/cris/semcrisv10f-switch.c index a2bf6f1..cae56fd 100644 --- a/sim/cris/semcrisv10f-switch.c +++ b/sim/cris/semcrisv10f-switch.c @@ -3181,7 +3181,6 @@ cgen_rtx_error (current_cpu, "move-r-spr: trying to set a read-only special regi vpc = SEM_NEXT_VPC (sem_arg, pc, 2); { - SI tmp_grno; SI tmp_prno; SI tmp_newval; tmp_prno = FLD (f_operand2); @@ -11778,7 +11777,8 @@ SET_H_VBIT_MOVE (0); { SI tmp_tmpd; SI tmp_cnt; - tmp_tmpd = SLLSI (GET_H_GR (FLD (f_operand2)), SUBSI (31, ANDSI (GET_H_GR (FLD (f_operand1)), 31))); + tmp_cnt = SUBSI (31, ANDSI (GET_H_GR (FLD (f_operand1)), 31)); + tmp_tmpd = SLLSI (GET_H_GR (FLD (f_operand2)), tmp_cnt); { { BI opval = LTSI (tmp_tmpd, 0); diff --git a/sim/cris/semcrisv32f-switch.c b/sim/cris/semcrisv32f-switch.c index 8dd455c..db2f7aa 100644 --- a/sim/cris/semcrisv32f-switch.c +++ b/sim/cris/semcrisv32f-switch.c @@ -265,7 +265,7 @@ This file is part of the GNU simulators. /* If hyper-fast [well not unnecessarily slow] execution is selected, turn off frills like tracing and profiling. */ -/* FIXME: A better way would be to have TRACE_RESULT check for something +/* FIXME: A better way would be to have CGEN_TRACE_RESULT check for something that can cause it to be optimized out. Another way would be to emit special handlers into the instruction "stream". */ @@ -3108,7 +3108,6 @@ cgen_rtx_error (current_cpu, "move-r-spr: trying to set a read-only special regi vpc = SEM_NEXT_VPC (sem_arg, pc, 2); { - SI tmp_grno; SI tmp_prno; SI tmp_newval; tmp_prno = FLD (f_operand2); @@ -12048,7 +12047,8 @@ SET_H_VBIT_MOVE (0); { SI tmp_tmpd; SI tmp_cnt; - tmp_tmpd = SLLSI (GET_H_GR (FLD (f_operand2)), SUBSI (31, ANDSI (GET_H_GR (FLD (f_operand1)), 31))); + tmp_cnt = SUBSI (31, ANDSI (GET_H_GR (FLD (f_operand1)), 31)); + tmp_tmpd = SLLSI (GET_H_GR (FLD (f_operand2)), tmp_cnt); { { BI opval = LTSI (tmp_tmpd, 0); |