From f80dac49ecbd4b3de0abc6e89bb1ed04d5c67b24 Mon Sep 17 00:00:00 2001 From: Nathan Rossi Date: Fri, 17 Apr 2015 15:38:04 +1000 Subject: recipes-microblaze: Move all MicroBlaze appends * Move recipes that are specifically for MicroBlaze support into the recipes-microblaze directory Signed-off-by: Nathan Rossi --- ...Patch-microblaze-Add-fstack-usage-support.patch | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 recipes-microblaze/gcc/files/0005-Patch-microblaze-Add-fstack-usage-support.patch (limited to 'recipes-microblaze/gcc/files/0005-Patch-microblaze-Add-fstack-usage-support.patch') diff --git a/recipes-microblaze/gcc/files/0005-Patch-microblaze-Add-fstack-usage-support.patch b/recipes-microblaze/gcc/files/0005-Patch-microblaze-Add-fstack-usage-support.patch new file mode 100644 index 00000000..ee3cb9db --- /dev/null +++ b/recipes-microblaze/gcc/files/0005-Patch-microblaze-Add-fstack-usage-support.patch @@ -0,0 +1,30 @@ +From: David Holsgrove +Subject: [PATCH 5/8] [Patch, microblaze]: Add -fstack-usage support + +Changelog + +2013-03-18 David Holsgrove + + * gcc/config/microblaze/microblaze.c (microblaze_expand_prologue): + Add check for flag_stack_usage to enable -fstack-usage support + +Signed-off-by: David Holsgrove +Upstream-Status: Pending + +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.5.4 + -- cgit v1.2.3-54-g00ecf