Ensure that f() doesn't get inlined.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5340 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/perf/sarp.c b/perf/sarp.c
index cf803fe..6265ad7 100644
--- a/perf/sarp.c
+++ b/perf/sarp.c
@@ -13,12 +13,13 @@
#define REPS 1000*1000*10
+__attribute__((noinline))
int f(int i)
{
// This nonsense is just to ensure that the compiler does not optimise
// away the stack allocation.
char big_array[500];
- big_array[0] = 12;
+ big_array[ 0] = 12;
big_array[ 23] = 34;
big_array[256] = 56;
big_array[434] = 78;