From: Bart Van Assche Date: Thu, 12 Jun 2008 06:04:59 +0000 (+0000) Subject: Disabled bitmap cache rotation optimization because not all gcc versions compile... X-Git-Tag: svn/VALGRIND_3_4_0~480 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=344bcc9592cac43b93b61e4a7f07223b032336be;p=thirdparty%2Fvalgrind.git Disabled bitmap cache rotation optimization because not all gcc versions compile it correctly. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8224 --- 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);