[Gc] gcc prefetch accidentally disabled

Peter Wang wangp at students.cs.mu.OZ.AU
Wed Jul 19 18:52:31 PDT 2006


Hi, there is a typo in gcconfig.h causing gcc prefetch builtins
not to be used on Linux x86-64.

Index: include/private/gcconfig.h
===================================================================
RCS file: /cvsroot/bdwgc/bdwgc/include/private/gcconfig.h,v
retrieving revision 1.16
diff -u -r1.16 gcconfig.h
--- include/private/gcconfig.h  7 Jul 2006 21:14:17 -0000       1.16
+++ include/private/gcconfig.h  20 Jul 2006 01:44:49 -0000
@@ -1857,7 +1857,7 @@
             extern int etext[];
 #            define DATASTART ((ptr_t)((((word) (etext)) + 0xfff) & ~0xfff))
 #       endif
-#       if defined(__GNUC__) && __GNUC >= 3
+#       if defined(__GNUC__) && __GNUC__ >= 3
 #          define PREFETCH(x) __builtin_prefetch((x), 0, 0)
 #          define PREFETCH_FOR_WRITE(x) __builtin_prefetch((x), 1)
 #      endif




More information about the Gc mailing list