]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Un-break ppc32-linux following r15784. It appears that ppc32-ELF
authorJulian Seward <jseward@acm.org>
Thu, 28 Apr 2016 15:52:01 +0000 (15:52 +0000)
committerJulian Seward <jseward@acm.org>
Thu, 28 Apr 2016 15:52:01 +0000 (15:52 +0000)
layout constraints are different from x86-ELF and so the assertion on
the sizeof(TTEntryC) fails on ppc32-linux.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15875

coregrind/m_transtab.c

index 75debaf4ef8a0902855e006979c02860a6943a7b..3651381b6438c08145c3f88ecc51c87ae233d6bf 100644 (file)
@@ -2448,10 +2448,18 @@ void VG_(init_tt_tc) ( void )
    if (sizeof(HWord) == 8) {
       vg_assert(sizeof(TTEntryH) <= 32);
       vg_assert(sizeof(TTEntryC) <= 112);
-   } else if (sizeof(HWord) == 4) {
+   } 
+   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
+         structure is larger than on other 32 bit targets. */
+      vg_assert(sizeof(TTEntryC) <= 96);
+#     else
       vg_assert(sizeof(TTEntryC) <= 88);
-   } else {
+#     endif
+   }
+   else {
       vg_assert(0);
    }