From: Nicholas Nethercote Date: Mon, 3 Nov 2003 11:12:02 +0000 (+0000) Subject: Move var declarations to start of block, for older versions of gcc. X-Git-Tag: svn/VALGRIND_2_1_0~83 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=450e4bc2931a3273781a078a0e68bc84855b499e;p=thirdparty%2Fvalgrind.git Move var declarations to start of block, for older versions of gcc. MERGE TO STABLE git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1985 --- diff --git a/coregrind/vg_to_ucode.c b/coregrind/vg_to_ucode.c index 65ab2ef699..35023d61c4 100644 --- a/coregrind/vg_to_ucode.c +++ b/coregrind/vg_to_ucode.c @@ -3596,8 +3596,8 @@ Addr dis_SSE2_load_store_or_mov ( UCodeBlock* cb, static void dis_push_segreg ( UCodeBlock* cb, UInt sreg, Int sz ) { - vg_assert(sz == 4); Int t1 = newTemp(cb), t2 = newTemp(cb); + vg_assert(sz == 4); uInstr2(cb, GETSEG, 2, ArchRegS, sreg, TempReg, t1); uInstr2(cb, GET, 4, ArchReg, R_ESP, TempReg, t2); uInstr2(cb, SUB, 4, Literal, 0, TempReg, t2); @@ -3611,8 +3611,8 @@ void dis_push_segreg ( UCodeBlock* cb, UInt sreg, Int sz ) static void dis_pop_segreg ( UCodeBlock* cb, UInt sreg, Int sz ) { - vg_assert(sz == 4); Int t1 = newTemp(cb), t2 = newTemp(cb); + vg_assert(sz == 4); uInstr2(cb, GET, 4, ArchReg, R_ESP, TempReg, t2); uInstr2(cb, LOAD, 2, TempReg, t2, TempReg, t1); uInstr2(cb, ADD, 4, Literal, 0, TempReg, t2);