From: Zhi-Gang Liu Date: Wed, 15 Apr 2015 02:33:09 +0000 (+0000) Subject: Address minor issues in Julian's last review. X-Git-Tag: svn/VALGRIND_3_11_0~502 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b6b2f0ebb3b8e32279b493392bb1e64cb2fc4d33;p=thirdparty%2Fvalgrind.git Address minor issues in Julian's last review. For TILEGX only. By: Zhi-Gang Liu git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15094 --- diff --git a/coregrind/m_debuglog.c b/coregrind/m_debuglog.c index 76adccce42..5c2c96cafd 100644 --- a/coregrind/m_debuglog.c +++ b/coregrind/m_debuglog.c @@ -508,13 +508,15 @@ static UInt local_sys_getpid ( void ) : "$2" ); return (UInt)(__res); } + #elif defined(VGP_tilegx_linux) + static UInt local_sys_write_stderr ( const HChar* buf, Int n ) { volatile Long block[2]; block[0] = (Long)buf; block[1] = n; - ULong __res = 0; + Long __res = 0; __asm__ volatile ( "movei r0, 2 \n\t" /* stderr */ "move r1, %1 \n\t" /* buf */ diff --git a/coregrind/m_libcassert.c b/coregrind/m_libcassert.c index 365b50377a..2f8026c74b 100644 --- a/coregrind/m_libcassert.c +++ b/coregrind/m_libcassert.c @@ -227,7 +227,7 @@ } #elif defined(VGP_tilegx_linux) # define GET_STARTREGS(srP) \ - { UInt pc, sp, fp, ra; \ + { ULong pc, sp, fp, ra; \ __asm__ __volatile__( \ "move r8, lr \n" \ "jal 0f \n" \