From: Julian Seward Date: Thu, 13 Oct 2005 12:41:09 +0000 (+0000) Subject: C90 fixes. X-Git-Tag: svn/VALGRIND_3_1_0~318 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=273557e5f7effb443f562ea16b4de0414b7b03cd;p=thirdparty%2Fvalgrind.git C90 fixes. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4914 --- diff --git a/coregrind/m_syswrap/syswrap-ppc32-linux.c b/coregrind/m_syswrap/syswrap-ppc32-linux.c index f1f7762f4b..d3013354f8 100644 --- a/coregrind/m_syswrap/syswrap-ppc32-linux.c +++ b/coregrind/m_syswrap/syswrap-ppc32-linux.c @@ -106,7 +106,10 @@ static Addr allocstack ( ThreadId tid ) */ static void run_a_thread_NORETURN ( Word tidW ) { - ThreadId tid = (ThreadId)tidW; + Int c; + VgSchedReturnCode src; + ThreadState* tst; + ThreadId tid = (ThreadId)tidW; VG_(debugLog)(1, "syswrap-ppc32-linux", "run_a_thread_NORETURN(tid=%lld): " @@ -114,14 +117,14 @@ static void run_a_thread_NORETURN ( Word tidW ) (ULong)tidW); /* Run the thread all the way through. */ - VgSchedReturnCode src = ML_(thread_wrapper)(tid); + src = ML_(thread_wrapper)(tid); VG_(debugLog)(1, "syswrap-ppc32-linux", "run_a_thread_NORETURN(tid=%lld): " "ML_(thread_wrapper) done\n", (ULong)tidW); - Int c = VG_(count_living_threads)(); + c = VG_(count_living_threads)(); vg_assert(c >= 1); /* stay sane */ if (c == 1) { @@ -144,7 +147,7 @@ static void run_a_thread_NORETURN ( Word tidW ) (ULong)tidW); /* OK, thread is dead, but others still exist. Just exit. */ - ThreadState *tst = VG_(get_ThreadState)(tid); + tst = VG_(get_ThreadState)(tid); /* This releases the run lock */ VG_(exit_thread)(tid); @@ -237,10 +240,11 @@ asm( */ void VG_(main_thread_wrapper_NORETURN)(ThreadId tid) { + Addr sp; VG_(debugLog)(1, "syswrap-ppc32-linux", "entering VG_(main_thread_wrapper_NORETURN)\n"); - Addr sp = allocstack(tid); + sp = allocstack(tid); /* make a stack frame */ sp -= 16;