Hi, Andrew Haley <aph-gcc@xxxxxxxxxxxxxxxxxxx> wrote: [...]
BUILT_IN_PREFETCH was added here: r47582 | janis | 2001-12-04 00:50:35 +0000 (Tue, 04 Dec 2001) | 6 lines * builtin-types.def (BT_FN_VOID_PTR_INT_INT): New. * builtins.def (BUILT_IN_PREFETCH): New. * builtins.c (expand_builtin_expect): New. (expand_builtin): Call it. * doc/extend.texi: Document __builtin_expect. So every version of gcc that branched since then has it. That would be, I think, 3.1 onwards. Whether __builtin_prefetc does anything or not depends on the particular back end you're using.
I'm using gcc 4.1.0. Can I disable the prefetch instructions using this gcc version? Best regards Jakob