|
From: <sv...@va...> - 2014-08-28 21:02:18
|
Author: philippe
Date: Thu Aug 28 21:02:11 2014
New Revision: 14379
Log:
Fix a bunch of defined(VGA_ppc64)
(a.o. this was making leak_cpp_interior test failing,
as the ppc64 specific code in mc_leakcheck.c was not compiled in)
Modified:
trunk/exp-sgcheck/pc_main.c
trunk/memcheck/mc_leakcheck.c
trunk/memcheck/mc_machine.c
Modified: trunk/exp-sgcheck/pc_main.c
==============================================================================
--- trunk/exp-sgcheck/pc_main.c (original)
+++ trunk/exp-sgcheck/pc_main.c Thu Aug 28 21:02:11 2014
@@ -65,7 +65,7 @@
VG_(printf)("SGCheck doesn't work on s390x yet, sorry.\n");
VG_(exit)(1);
#endif
-#if defined(VGA_ppc32) || defined(VGA_ppc64)
+#if defined(VGA_ppc32) || defined(VGA_ppc64be) || defined(VGA_ppc64le)
VG_(printf)("SGCheck doesn't work on PPC yet, sorry.\n");
VG_(exit)(1);
#endif
Modified: trunk/memcheck/mc_leakcheck.c
==============================================================================
--- trunk/memcheck/mc_leakcheck.c (original)
+++ trunk/memcheck/mc_leakcheck.c Thu Aug 28 21:02:11 2014
@@ -648,7 +648,7 @@
if (pot_fn == 0)
continue; // NULL fn pointer. Seems it can happen in vtable.
seg = VG_(am_find_nsegment) (pot_fn);
-#if defined(VGA_ppc64)
+#if defined(VGA_ppc64be) || defined(VGA_ppc64le)
// ppc64 use a thunk table. So, we have one more level of indirection
// to follow.
if (seg == NULL
Modified: trunk/memcheck/mc_machine.c
==============================================================================
--- trunk/memcheck/mc_machine.c (original)
+++ trunk/memcheck/mc_machine.c Thu Aug 28 21:02:11 2014
@@ -371,7 +371,7 @@
Int o = offset;
Int sz = szB;
tl_assert(sz > 0);
-#if defined(VGA_ppc64)
+#if defined(VGA_ppc64be)
tl_assert(host_is_big_endian());
#elif defined(VGA_ppc64le)
tl_assert(host_is_little_endian());
|