public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [Patch, microblaze]: Add -fstack-usage support
@ 2013-03-18 12:49 David Holsgrove
  2013-07-15  4:50 ` David Holsgrove
  2013-07-18 16:45 ` Michael Eager
  0 siblings, 2 replies; 9+ messages in thread
From: David Holsgrove @ 2013-03-18 12:49 UTC (permalink / raw)
  To: gcc-patches
  Cc: Michael Eager, Edgar Iglesias, John Williams, Vinod Kathail,
	Vidhumouli Hunsigida, Nagaraju Mekala, Tom Shui

[-- Attachment #1: Type: text/plain, Size: 274 bytes --]

Changelog

2013-03-18  David Holsgrove <david.holsgrove@xilinx.com>

 * gcc/config/microblaze/microblaze.c (microblaze_expand_prologue):
   Add check for flag_stack_usage to handle -fstack-usage support

Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>


[-- Attachment #2: 0004-Patch-microblaze-Add-fstack-usage-support.patch --]
[-- Type: application/octet-stream, Size: 1160 bytes --]

From 6b656bd0ec9ff26a01ababdabcec019768cbb5ef Mon Sep 17 00:00:00 2001
From: David Holsgrove <david.holsgrove@xilinx.com>
Date: Thu, 27 Sep 2012 17:08:20 +1000
Subject: [PATCH] [Patch, microblaze]: Add -fstack-usage support

Changelog

2013-03-18  David Holsgrove <david.holsgrove@xilinx.com>

 * gcc/config/microblaze/microblaze.c (microblaze_expand_prologue):
   Add check for flag_stack_usage to enable -fstack-usage support

Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
---
 gcc/config/microblaze/microblaze.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/gcc/config/microblaze/microblaze.c b/gcc/config/microblaze/microblaze.c
index 7418e49..4417289 100644
--- a/gcc/config/microblaze/microblaze.c
+++ b/gcc/config/microblaze/microblaze.c
@@ -2790,6 +2790,9 @@ microblaze_expand_prologue (void)
 
   fsiz = compute_frame_size (get_frame_size ());
 
+  if (flag_stack_usage)
+    current_function_static_stack_size = fsiz;
+
   /* If this function is a varargs function, store any registers that
      would normally hold arguments ($5 - $10) on the stack.  */
   if (((TYPE_ARG_TYPES (fntype) != 0
-- 
1.7.0.4


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

end of thread, other threads:[~2013-07-23 21:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-18 12:49 [Patch, microblaze]: Add -fstack-usage support David Holsgrove
2013-07-15  4:50 ` David Holsgrove
2013-07-20  8:20   ` Eric Botcazou
2013-07-20 16:45     ` Chung-Ju Wu
2013-07-23  7:18       ` David Holsgrove
2013-07-23 21:23         ` Michael Eager
2013-07-18 16:45 ` Michael Eager
2013-07-18 23:58   ` David Holsgrove
2013-07-19  4:14     ` Michael Eager

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