[4803] Suppress bogus compiler warnings.
Revision: 4803
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4803 Author: pbrook Date: 2008-06-29 15:25:29 +0000 (Sun, 29 Jun 2008)
Log Message:
-----------
Suppress bogus compiler warnings.
Modified Paths:
--------------
trunk/target-arm/translate.c
trunk/tcg/tcg.h
Modified: trunk/target-arm/translate.c
===================================================================
target-arm/translate.c +11 -0
@@ -3757,6 +3757,7 @@ } }else /* size == 0 */ {if (load) { +TCGV_UNUSED (tmp2);for (n =0 ; n <4 ; n++) { tmp =gen_ld8u (cpu_T[1 ],IS_USER (s));gen_op_addl_T1_im (stride);
@@ -3812,6 +3813,8 @@break ;case 3 :return 1 ; +default :/* Avoid compiler warnings. */ +abort (); }gen_op_addl_T1_im (1 << size); tmp2 =new_tmp ();
@@ -3854,6 +3857,8 @@case 2 : tmp =gen_ld32 (cpu_T[1 ],IS_USER (s));break ; +default :/* Avoid compiler warnings. */ +abort (); }if (size !=2 ) { tmp2 =neon_load_reg (rd, pass);
@@ -4856,9 +4861,11 @@NEON_GET_REG (T0 , rn,1 );gen_neon_movl_scratch_T0 (2 ); } +TCGV_UNUSED (tmp3);for (pass =0 ; pass <2 ; pass++) {if (src1_wide) {neon_load_reg64 (cpu_V0, rn + pass); +TCGV_UNUSED (tmp); }else {if (pass ==1 && rd == rn) {gen_neon_movl_T0_scratch (2 );
@@ -4873,6 +4880,7 @@ }if (src2_wide) {neon_load_reg64 (cpu_V1, rm + pass); +TCGV_UNUSED (tmp2); }else {if (pass ==1 && rd == rm) {gen_neon_movl_T0_scratch (2 );
@@ -5284,6 +5292,7 @@case 36 :case 37 :/* VMOVN, VQMOVUN, VQMOVN */ if (size ==3 )return 1 ; +TCGV_UNUSED (tmp2);for (pass =0 ; pass <2 ; pass++) {neon_load_reg64 (cpu_V0, rm + pass); tmp =new_tmp ();
@@ -6642,6 +6651,7 @@/* compute total size */ loaded_base =0 ; +TCGV_UNUSED (loaded_var); n =0 ;for (i=0 ;i<16 ;i++) {if (insn & (1 << i))
@@ -8339,6 +8349,7 @@tcg_gen_addi_i32 (addr, addr,4 ); } } +TCGV_UNUSED (tmp);if (insn & (1 <<8 )) {if (insn & (1 <<11 )) {/* pop pc */
Modified: trunk/tcg/tcg.h
===================================================================
tcg/tcg.h +3 -0
@@ -143,6 +143,9 @@#endif /* DEBUG_TCGV */ +/* Dummy definition to avoid compiler warnings. */ +#define TCGV_UNUSED (x) x = MAKE_TCGV(-1) +/* call flags */ #define TCG_CALL_TYPE_MASK 0x000f#define TCG_CALL_TYPE_STD 0x0000/* standard C call */