From 344bcc9592cac43b93b61e4a7f07223b032336be Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 12 Jun 2008 06:04:59 +0000 Subject: [PATCH] Disabled bitmap cache rotation optimization because not all gcc versions compile it correctly. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8224 --- exp-drd/drd_bitmap.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/exp-drd/drd_bitmap.h b/exp-drd/drd_bitmap.h index c5b3f5ab3d..396d72f81e 100644 --- a/exp-drd/drd_bitmap.h +++ b/exp-drd/drd_bitmap.h @@ -210,13 +210,11 @@ static struct bitmap2* bm2_make_exclusive(struct bitmap* const bm, /** Rotate elements cache[0..n-1] such that the element at position n-1 is * moved to position 0. This allows to speed up future cache lookups. - * - * @note Apparently gcc 4.2 compiles this code correctly, but gcc 4.1 not. */ static __inline__ void bm_cache_rotate(struct bm_cache_elem cache[], const int n) { -#if __GNUC__ >= 4 && __GNUC_MINOR__ >= 2 +#if 0 struct bm_cache_elem t; tl_assert(2 <= n && n <= 8); -- 2.47.2