Commit 4c825c02 by Ulrich Weigand Committed by Ulrich Weigand

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
parent 5e9fba51
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> 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
PR tree-optimization/47005 PR tree-optimization/47005
......
...@@ -2086,6 +2086,8 @@ spu_expand_prologue (void) ...@@ -2086,6 +2086,8 @@ spu_expand_prologue (void)
} }
} }
if (flag_stack_usage)
current_function_static_stack_size = total_size;
} }
void void
......
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> 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/opt14.adb: New test. * gnat.dg/opt14.adb: New test.
......
...@@ -39,6 +39,8 @@ ...@@ -39,6 +39,8 @@
# define SIZE 96 /* 256 - 160 bytes for register save area */ # define SIZE 96 /* 256 - 160 bytes for register save area */
#elif defined (__s390__) #elif defined (__s390__)
# define SIZE 160 /* 256 - 96 bytes for register save area */ # define SIZE 160 /* 256 - 96 bytes for register save area */
#elif defined (__SPU__)
# define SIZE 224
#else #else
# define SIZE 256 # define SIZE 256
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment