aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-06 20:08:19 -0700
committerMike Frysinger <vapier@gentoo.org>2023-12-07 22:31:21 -0700
commitbbe7b93875b78ae0831b811a2a8ebb114c71dd27 (patch)
tree5530590eaa7bf369ebc20c202d6ee7da22bd3e28 /sim
parent49b556efb55f50d6cd3db39e05edc84df1c3cb69 (diff)
downloadgdb-bbe7b93875b78ae0831b811a2a8ebb114c71dd27.zip
gdb-bbe7b93875b78ae0831b811a2a8ebb114c71dd27.tar.gz
gdb-bbe7b93875b78ae0831b811a2a8ebb114c71dd27.tar.bz2
sim: v850: fix -Wunused-but-set-variable warnings
Diffstat (limited to 'sim')
-rw-r--r--sim/v850/simops.c13
-rw-r--r--sim/v850/v850.igen6
2 files changed, 8 insertions, 11 deletions
diff --git a/sim/v850/simops.c b/sim/v850/simops.c
index 326745e..05770a9 100644
--- a/sim/v850/simops.c
+++ b/sim/v850/simops.c
@@ -2106,7 +2106,6 @@ divn
unsigned int DBZ = als == 0 ? 1 : 0;
unsigned int Q = ~(SS ^ SD) & 1;
unsigned int C;
- unsigned int S;
unsigned int i;
unsigned long alt = Q ? ~als : als;
@@ -2118,7 +2117,7 @@ divn
| (((alt >> 31) ^ (ald >> 31)) & (~alo >> 31)));
Q = C ^ SS;
R1 = (alo == 0) ? 0 : (R1 & (Q ^ (SS ^ SD)));
- S = alo >> 31;
+ /* S = alo >> 31; */
sfi = (sfi << (32-N+1)) | Q;
ald = (alo << 1) | (sfi >> 31);
if ((alo >> 31) ^ (ald >> 31))
@@ -2136,7 +2135,7 @@ divn
| (((alt >> 31) ^ (ald >> 31)) & (~alo >> 31)));
Q = C ^ SS;
R1 = (alo == 0) ? 0 : (R1 & (Q ^ (SS ^ SD)));
- S = alo >> 31;
+ /* S = alo >> 31; */
sfi = (sfi << 1) | Q;
ald = (alo << 1) | (sfi >> 31);
if ((alo >> 31) ^ (ald >> 31))
@@ -3034,7 +3033,7 @@ v850_float_compare (SIM_DESC sd, int cmp, sim_fpu wop1, sim_fpu wop2, int double
}
else
{
- int gt = 0,lt = 0,eq = 0, status;
+ int lt = 0, eq = 0, status;
status = sim_fpu_cmp (&wop1, &wop2);
@@ -3049,19 +3048,19 @@ v850_float_compare (SIM_DESC sd, int cmp, sim_fpu wop1, sim_fpu wop2, int double
lt = 1;
break;
case SIM_FPU_IS_PINF:
- gt = 1;
+ /* gt = 1; */
break;
case SIM_FPU_IS_NNUMBER:
lt = 1;
break;
case SIM_FPU_IS_PNUMBER:
- gt = 1;
+ /* gt = 1; */
break;
case SIM_FPU_IS_NDENORM:
lt = 1;
break;
case SIM_FPU_IS_PDENORM:
- gt = 1;
+ /* gt = 1; */
break;
case SIM_FPU_IS_NZERO:
case SIM_FPU_IS_PZERO:
diff --git a/sim/v850/v850.igen b/sim/v850/v850.igen
index bd8de8e..6b9a8bb 100644
--- a/sim/v850/v850.igen
+++ b/sim/v850/v850.igen
@@ -3537,12 +3537,11 @@ rrrrr,11111100001 + wwww,010001000100:F_I:::trncf_sl
{
int64_t ans;
sim_fpu wop;
- sim_fpu_status status;
sim_fpu_32to (&wop, GR[reg2]);
TRACE_FP_INPUT_FPU1 (&wop);
- status = sim_fpu_to64i (&ans, &wop, sim_fpu_round_zero);
+ sim_fpu_to64i (&ans, &wop, sim_fpu_round_zero);
GR[reg3e] = ans;
GR[reg3e+1] = ans >> 32L;
@@ -3557,12 +3556,11 @@ rrrrr,11111110001 + wwww,010001000100:F_I:::trncf_sul
{
uint64_t ans;
sim_fpu wop;
- sim_fpu_status status;
sim_fpu_32to (&wop, GR[reg2]);
TRACE_FP_INPUT_FPU1 (&wop);
- status = sim_fpu_to64u (&ans, &wop, sim_fpu_round_zero);
+ sim_fpu_to64u (&ans, &wop, sim_fpu_round_zero);
GR[reg3e] = ans;
GR[reg3e+1] = ans >> 32L;