aboutsummaryrefslogtreecommitdiff
path: root/target-ppc/translate.c
diff options
context:
space:
mode:
authormalc <av1474@comtv.ru>2009-06-20 05:51:47 +0400
committermalc <av1474@comtv.ru>2009-06-20 05:51:47 +0400
commitd2e9fd8f703203c2eeeed120b1ef6c3a6574e0ab (patch)
tree72cc27346048e694fbea269dba3b3926c5a6e839 /target-ppc/translate.c
parentd999f7e023c2c55f30667d368479037bd18d5a23 (diff)
Apply TCGV_UNUSED on variables that GCC mistakenly thinks can be used
uninitialized
Diffstat (limited to 'target-ppc/translate.c')
-rw-r--r--target-ppc/translate.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/target-ppc/translate.c b/target-ppc/translate.c
index f60f99a7f0..a14d197e41 100644
--- a/target-ppc/translate.c
+++ b/target-ppc/translate.c
@@ -772,6 +772,8 @@ static always_inline void gen_op_arith_add(DisasContext *ctx, TCGv ret, TCGv arg
t1 = tcg_temp_local_new();
tcg_gen_andi_tl(t1, cpu_xer, (1 << XER_CA));
tcg_gen_shri_tl(t1, t1, XER_CA);
+ } else {
+ TCGV_UNUSED(t1);
}
if (compute_ca && compute_ov) {
@@ -1189,6 +1191,8 @@ static always_inline void gen_op_arith_subf(DisasContext *ctx, TCGv ret, TCGv ar
t1 = tcg_temp_local_new();
tcg_gen_andi_tl(t1, cpu_xer, (1 << XER_CA));
tcg_gen_shri_tl(t1, t1, XER_CA);
+ } else {
+ TCGV_UNUSED(t1);
}
if (compute_ca && compute_ov) {
@@ -3364,6 +3368,8 @@ static always_inline void gen_bcond (DisasContext *ctx, int type)
tcg_gen_mov_tl(target, cpu_ctr);
else
tcg_gen_mov_tl(target, cpu_lr);
+ } else {
+ TCGV_UNUSED(target);
}
if (LK(ctx->opcode))
gen_setlr(ctx, ctx->nip);