public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Commit: FRV: Add support for -fstack-usage
@ 2012-07-31 10:33 Nick Clifton
  2012-08-26 10:29 ` Gerald Pfeifer
  0 siblings, 1 reply; 2+ messages in thread
From: Nick Clifton @ 2012-07-31 10:33 UTC (permalink / raw)
  To: gcc-patches

Hi Guys,

  I am applying the patch below to add support for the -fstack-usage
  option to the FRV backend.

Cheers
  Nick

gcc/ChangeLog
2012-07-31  Nick Clifton  <nickc@redhat.com>

	* config/frv/frv.c (frv_expand_prologue): Report stack usage.

gcc/testsuite/ChangeLog
2012-07-31  Nick Clifton  <nickc@redhat.com>

	* gcc.dg/stack-usage-1.c (SIZE): Define for FRV.

Index: gcc/config/frv/frv.c
===================================================================
--- gcc/config/frv/frv.c	(revision 190002)
+++ gcc/config/frv/frv.c	(working copy)
@@ -1761,6 +1761,9 @@
   if (TARGET_DEBUG_STACK)
     frv_debug_stack (info);
 
+  if (flag_stack_usage_info)
+    current_function_static_stack_size = info->total_size;
+
   if (info->total_size == 0)
     return;
 
Index: gcc/testsuite/gcc.dg/stack-usage-1.c
===================================================================
--- gcc/testsuite/gcc.dg/stack-usage-1.c	(revision 189996)
+++ gcc/testsuite/gcc.dg/stack-usage-1.c	(working copy)
@@ -62,6 +62,8 @@
 #  define SIZE 254
 #elif defined (__sh__)
 #  define SIZE 252
+#elif defined (__frv__)
+#  define SIZE 248
 #else
 #  define SIZE 256
 #endif

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-08-26 10:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-31 10:33 Commit: FRV: Add support for -fstack-usage Nick Clifton
2012-08-26 10:29 ` Gerald Pfeifer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).