From: Petar Jovanovic Date: Fri, 6 May 2016 17:34:55 +0000 (+0000) Subject: mips32: raise the limit for sizeof(TTEntryC) X-Git-Tag: svn/VALGRIND_3_12_0~147 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7d3589646344d63e616b230f8f6bb5e855a951b;p=thirdparty%2Fvalgrind.git mips32: raise the limit for sizeof(TTEntryC) Raise limit for sizeof(TTEntryC) due to 8-byte alignement requirement for ULong on mips32 platforms. It is a follow up to the same change on ppc32 (see r15875), and it un-breaks mips32-linux (broken with r15784). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15876 --- diff --git a/coregrind/m_transtab.c b/coregrind/m_transtab.c index 3651381b64..8e0ffb3c12 100644 --- a/coregrind/m_transtab.c +++ b/coregrind/m_transtab.c @@ -2451,8 +2451,8 @@ void VG_(init_tt_tc) ( void ) } else if (sizeof(HWord) == 4) { vg_assert(sizeof(TTEntryH) <= 20); -# if defined(VGP_ppc32_linux) - /* ppc32-linux is weird. It thinks alignof(ULong) == 8 and so the +# if defined(VGP_ppc32_linux) || defined(VGP_mips32_linux) + /* On PPC32 and MIPS32 platforms alignof(ULong) == 8, so the structure is larger than on other 32 bit targets. */ vg_assert(sizeof(TTEntryC) <= 96); # else