spu.c (spu_expand_prologue): Support -fstack-usage.
authorUlrich Weigand <uweigand@de.ibm.com>
Wed, 5 Jan 2011 13:25:36 +0000 (13:25 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Wed, 5 Jan 2011 13:25:36 +0000 (13:25 +0000)
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

gcc/ChangeLog
gcc/config/spu/spu.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/stack-usage-1.c

index d25e30c1bd13ebeb0354af4d39704a6d43a9d995..96233b1db94749d2f8caca27966663885f64017b 100644 (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
index 915de556ca0c4e26a00fcc6aca3d45eb1db0dece..271116efcbbb03e64591d970ddadb6800d876ba4 100644 (file)
@@ -2086,6 +2086,8 @@ spu_expand_prologue (void)
        }
     }
 
+  if (flag_stack_usage)
+    current_function_static_stack_size = total_size;
 }
 
 void
index 867e6a09550bf847286316250e8be8189a5fb914..1c3d417a5cb80430630f947afda8bc740adce3ea 100644 (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.
index 6c9199011ca4758baf029ce50ce22605ad40977c..1d03a8dc994c8aac17804c0ca8471bd2c510f207 100644 (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