OSDN Git Service

ChangeLog:
authoruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Jan 2011 13:25:36 +0000 (13:25 +0000)
committeruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Jan 2011 13:25:36 +0000 (13:25 +0000)
* config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.

testsuite/ChangeLog:

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168509 138bc75d-0d04-0410-961f-82ee72b054a4

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

index d25e30c..96233b1 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 915de55..271116e 100644 (file)
@@ -2086,6 +2086,8 @@ spu_expand_prologue (void)
        }
     }
 
+  if (flag_stack_usage)
+    current_function_static_stack_size = total_size;
 }
 
 void
index 867e6a0..1c3d417 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 6c91990..1d03a8d 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