From: Mark Wielaard Date: Thu, 17 Jul 2014 13:29:43 +0000 (+0000) Subject: Omit frame pointer also for main in ppc ldst_multiple test. X-Git-Tag: svn/VALGRIND_3_10_0~265 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93ad03c5bbb8fa3d7ac888ea70f6dfd724ea257e;p=thirdparty%2Fvalgrind.git Omit frame pointer also for main in ppc ldst_multiple test. Other functions already explicitly omitted the frame pointer. Also do that for main to prevent gcc 4.8.2 complaining: ldst_multiple.c: In function ‘main’: ldst_multiple.c:180:5: error: frame pointer required, but reserved int main(void) ^ ldst_multiple.c:31:18: note: for ‘r31’ register HWord_t r31 asm("r31"); git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14173 --- diff --git a/none/tests/ppc32/ldst_multiple.c b/none/tests/ppc32/ldst_multiple.c index 6c610b99f5..90f4c57261 100644 --- a/none/tests/ppc32/ldst_multiple.c +++ b/none/tests/ppc32/ldst_multiple.c @@ -177,7 +177,11 @@ static test_table_t all_tests[] = { { NULL, NULL }, }; -int main(void) +/* + * gcc is not happy if we modify r31 (the frame pointer) behind its back + * so we omit it + */ +int __attribute__((optimize("-fomit-frame-pointer"))) main(void) { test_func_t func; int i = 0;