exp-sgcheck/tests/hackedbz2.c mark vex_strlen as noinline
Explicitly set noinline so the test can check it is in the backtrace.
Newer gcc versions happily optimize it away otherwise.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14326 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/exp-sgcheck/tests/hackedbz2.c b/exp-sgcheck/tests/hackedbz2.c
index 0d3d8d4..2f32769 100644
--- a/exp-sgcheck/tests/hackedbz2.c
+++ b/exp-sgcheck/tests/hackedbz2.c
@@ -999,8 +999,8 @@
else
return c;
}
-
-static Int vex_strlen ( const HChar* str )
+/* Explicitly set noinline so the test can check it is in the backtrace. */
+static __attribute__(( noinline)) Int vex_strlen ( const HChar* str )
{
Int i = 0;
while (str[i] != 0) i++;