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

* Re: Commit: FRV: Add support for -fstack-usage
  2012-07-31 10:33 Commit: FRV: Add support for -fstack-usage Nick Clifton
@ 2012-08-26 10:29 ` Gerald Pfeifer
  0 siblings, 0 replies; 2+ messages in thread
From: Gerald Pfeifer @ 2012-08-26 10:29 UTC (permalink / raw)
  To: Nick Clifton; +Cc: gcc-patches

On Tue, 31 Jul 2012, Nick Clifton wrote:
>   I am applying the patch below to add support for the -fstack-usage
>   option to the FRV backend.

I also added the below to our release notes.  Feel free to tweak,
add more, or let me know of changes you'd like to see.

Gerald

Index: changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.8/changes.html,v
retrieving revision 1.17
diff -u -3 -p -r1.17 changes.html
--- changes.html	20 Aug 2012 12:23:39 -0000	1.17
+++ changes.html	26 Aug 2012 10:27:18 -0000
@@ -153,6 +153,13 @@ by this change.</p>
     libraries.  This includes the system libraries and startup modules.</li>
   </ul>
 
+<h3 id="frv">FRV</h3>
+
+  <ul>
+    <li>This target now supports the <code>-fstack-usage</code> 
+    command-line option.</li>
+  </ul>
+
 <h3 id="mips">MIPS</h3>
   <ul>
     <li>GCC now passes the <code>-mmcu</code> and <code>-mno-mcu</code>

^ 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).