|
From: <sv...@va...> - 2005-10-12 10:51:04
|
Author: tom
Date: 2005-10-12 11:50:56 +0100 (Wed, 12 Oct 2005)
New Revision: 4907
Log:
Fix x86 specific declaration-before-statement warnings.
Modified:
trunk/coregrind/m_syswrap/syswrap-x86-linux.c
Modified: trunk/coregrind/m_syswrap/syswrap-x86-linux.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_syswrap/syswrap-x86-linux.c 2005-10-12 10:45:27 UTC=
(rev 4906)
+++ trunk/coregrind/m_syswrap/syswrap-x86-linux.c 2005-10-12 10:50:56 UTC=
(rev 4907)
@@ -115,6 +115,8 @@
static void run_a_thread_NORETURN ( Word tidW )
{
ThreadId tid =3D (ThreadId)tidW;
+ VgSchedReturnCode src;
+ Int c;
=20
VG_(debugLog)(1, "syswrap-x86-linux",=20
"run_a_thread_NORETURN(tid=3D%lld): "
@@ -122,14 +124,14 @@
(ULong)tidW);
=20
/* Run the thread all the way through. */
- VgSchedReturnCode src =3D ML_(thread_wrapper)(tid); =20
+ src =3D ML_(thread_wrapper)(tid); =20
=20
VG_(debugLog)(1, "syswrap-x86-linux",=20
"run_a_thread_NORETURN(tid=3D%lld): "
"ML_(thread_wrapper) done\n",
(ULong)tidW);
=20
- Int c =3D VG_(count_living_threads)();
+ c =3D VG_(count_living_threads)();
vg_assert(c >=3D 1); /* stay sane */
=20
if (c =3D=3D 1) {
@@ -146,13 +148,15 @@
=20
} else {
=20
+ ThreadState *tst;
+
VG_(debugLog)(1, "syswrap-x86-linux",=20
"run_a_thread_NORETURN(tid=3D%lld): "
"not last one standing\n",
(ULong)tidW);
=20
/* OK, thread is dead, but others still exist. Just exit. */
- ThreadState *tst =3D VG_(get_ThreadState)(tid);
+ tst =3D VG_(get_ThreadState)(tid);
=20
/* This releases the run lock */
VG_(exit_thread)(tid);
@@ -220,10 +224,12 @@
*/
void VG_(main_thread_wrapper_NORETURN)(ThreadId tid)
{
+ Addr esp;
+
VG_(debugLog)(1, "syswrap-x86-linux",=20
"entering VG_(main_thread_wrapper_NORETURN)\n");
=20
- Addr esp =3D allocstack(tid);
+ esp =3D allocstack(tid);
=20
/* If we can't even allocate the first thread's stack, we're hosed.
Give up. */
|