From afd7af371b1ef72af5c470243bc5fc7141f84b3c Mon Sep 17 00:00:00 2001 From: Gareth Rees Date: Mon, 4 Feb 2013 16:40:28 +0000 Subject: [PATCH] Don't #error if defined(mps_build_ll) and __has_builtin(__builtin_readcyclecounter). put a todo here instead, referencing job003411. Copied from Perforce Change: 180903 ServerID: perforce.ravenbrook.com --- mps/code/clock.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mps/code/clock.h b/mps/code/clock.h index 920a69c9bee..b9205f2e9be 100644 --- a/mps/code/clock.h +++ b/mps/code/clock.h @@ -21,14 +21,13 @@ * RB 2012-09-11 */ -/* TODO: Clang supposedly provides a cross-platform builtin for a fast - timer, but it doesn't seem to be present on Mac OS X 10.8. We should - use it if it ever appears. +/* Clang provides a cross-platform builtin for a fast timer, but it + was not available on Mac OS X 10.8 until the release of XCode 4.6. */ #if defined(MPS_BUILD_LL) #if __has_builtin(__builtin_readcyclecounter) -#error "__builtin_readcyclecounter is available but not used" +/* TODO: use this for EVENT_CLOCK. See job003411. */ #endif /* __has_builtin(__builtin_readcyclecounter) */ #endif