|
From: <sv...@va...> - 2014-07-17 13:29:52
|
Author: mjw
Date: Thu Jul 17 13:29:43 2014
New Revision: 14173
Log:
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");
Modified:
trunk/none/tests/ppc32/ldst_multiple.c
Modified: trunk/none/tests/ppc32/ldst_multiple.c
==============================================================================
--- trunk/none/tests/ppc32/ldst_multiple.c (original)
+++ trunk/none/tests/ppc32/ldst_multiple.c Thu Jul 17 13:29:43 2014
@@ -177,7 +177,11 @@
{ 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;
|