public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Nick Clifton <nickc@redhat.com>
To: gcc-patches@gcc.gnu.org
Subject: Commit: FRV: Add support for -fstack-usage
Date: Tue, 31 Jul 2012 10:33:00 -0000	[thread overview]
Message-ID: <87r4rsuvwj.fsf@redhat.com> (raw)

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

             reply	other threads:[~2012-07-31 10:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-31 10:33 Nick Clifton [this message]
2012-08-26 10:29 ` Gerald Pfeifer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r4rsuvwj.fsf@redhat.com \
    --to=nickc@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).