spu.c (spu_expand_prologue): Support -fstack-usage.

ChangeLog:

	* config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.

testsuite/ChangeLog:

	* gcc.dg/stack-usage-1.c (SIZE): Provide proper value for __SPU__.

From-SVN: r168509
This commit is contained in:
Ulrich Weigand 2011-01-05 13:25:36 +00:00 committed by Ulrich Weigand
parent 5e9fba51b5
commit 4c825c0240
4 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
PR tree-optimization/47005

View File

@ -2086,6 +2086,8 @@ spu_expand_prologue (void)
}
}
if (flag_stack_usage)
current_function_static_stack_size = total_size;
}
void

View File

@ -1,3 +1,7 @@
2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* gcc.dg/stack-usage-1.c (SIZE): Provide proper value for __SPU__.
2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/opt14.adb: New test.

View File

@ -39,6 +39,8 @@
# define SIZE 96 /* 256 - 160 bytes for register save area */
#elif defined (__s390__)
# define SIZE 160 /* 256 - 96 bytes for register save area */
#elif defined (__SPU__)
# define SIZE 224
#else
# define SIZE 256
#endif