|
From: Nicholas N. <nj...@ca...> - 2003-11-03 12:10:06
|
CVS commit by nethercote:
Move var declarations to start of block, for older versions of gcc.
MERGE TO STABLE
M +2 -2 vg_to_ucode.c 1.107
--- valgrind/coregrind/vg_to_ucode.c #1.106:1.107
@@ -3597,6 +3597,6 @@ 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);
@@ -3612,6 +3612,6 @@ 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);
|