|
From: <sv...@va...> - 2009-05-04 07:05:42
|
Author: njn
Date: 2009-05-04 08:05:34 +0100 (Mon, 04 May 2009)
New Revision: 9767
Log:
Remove an unnecessary comment, and conditionally compiled some
Darwin-specific code.
Modified:
branches/DARWIN/Makefile.flags.am
branches/DARWIN/coregrind/m_translate.c
Modified: branches/DARWIN/Makefile.flags.am
===================================================================
--- branches/DARWIN/Makefile.flags.am 2009-05-04 06:55:05 UTC (rev 9766)
+++ branches/DARWIN/Makefile.flags.am 2009-05-04 07:05:34 UTC (rev 9767)
@@ -104,7 +104,6 @@
-DVGP_amd64_darwin=1
AM_CFLAGS_AMD64_DARWIN = $(WERROR) -arch x86_64 $(AM_CFLAGS_BASE) \
-mmacosx-version-min=10.5 -fno-stack-protector
-# GrP fixme -O0 for debugging goes here
AM_CCASFLAGS_AMD64_DARWIN = $(AM_CPPFLAGS_AMD64_DARWIN) -arch x86_64 -g
# Flags for the primary target. These must be used to build the
Modified: branches/DARWIN/coregrind/m_translate.c
===================================================================
--- branches/DARWIN/coregrind/m_translate.c 2009-05-04 06:55:05 UTC (rev 9766)
+++ branches/DARWIN/coregrind/m_translate.c 2009-05-04 07:05:34 UTC (rev 9767)
@@ -711,12 +711,14 @@
static Bool self_check_required ( NSegment const* seg, ThreadId tid )
{
+#if defined(VGO_darwin)
// GrP fixme hack - dyld i386 IMPORT gets rewritten
// to really do this correctly, we'd need to flush the
// translation cache whenever a segment became +WX
if (seg->hasX && seg->hasW) {
return True;
}
+#endif
switch (VG_(clo_smc_check)) {
case Vg_SmcNone: return False;
case Vg_SmcAll: return True;
|