|
From: <sv...@va...> - 2005-10-13 12:41:18
|
Author: sewardj
Date: 2005-10-13 13:41:09 +0100 (Thu, 13 Oct 2005)
New Revision: 4914
Log:
C90 fixes.
Modified:
trunk/coregrind/m_syswrap/syswrap-ppc32-linux.c
Modified: trunk/coregrind/m_syswrap/syswrap-ppc32-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-ppc32-linux.c 2005-10-12 16:45:17 U=
TC (rev 4913)
+++ trunk/coregrind/m_syswrap/syswrap-ppc32-linux.c 2005-10-13 12:41:09 U=
TC (rev 4914)
@@ -106,7 +106,10 @@
*/
static void run_a_thread_NORETURN ( Word tidW )
{
- ThreadId tid =3D (ThreadId)tidW;
+ Int c;
+ VgSchedReturnCode src;
+ ThreadState* tst;
+ ThreadId tid =3D (ThreadId)tidW;
=20
VG_(debugLog)(1, "syswrap-ppc32-linux",=20
"run_a_thread_NORETURN(tid=3D%lld): "
@@ -114,14 +117,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-ppc32-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) {
@@ -144,7 +147,7 @@
(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);
@@ -237,10 +240,11 @@
*/
void VG_(main_thread_wrapper_NORETURN)(ThreadId tid)
{
+ Addr sp;
VG_(debugLog)(1, "syswrap-ppc32-linux",=20
"entering VG_(main_thread_wrapper_NORETURN)\n");
=20
- Addr sp =3D allocstack(tid);
+ sp =3D allocstack(tid);
=20
/* make a stack frame */
sp -=3D 16;
|