diff options
| author | Nathan Rossi <nathan.rossi@xilinx.com> | 2013-07-08 17:44:05 +1000 |
|---|---|---|
| committer | Nathan Rossi <nathan.rossi@xilinx.com> | 2013-07-08 17:44:05 +1000 |
| commit | c6f9c704a9da6542d0a52259c9e238b420075d98 (patch) | |
| tree | f872e0871e36a6a31b27011c791d78ac95a1bc11 /recipes-devtools/gcc/files/0005-Patch-microblaze-Add-fstack-usage-support.patch | |
| parent | 2500aa69b35b0817cc2fe989473e5fbee5524514 (diff) | |
| download | meta-xilinx-c6f9c704a9da6542d0a52259c9e238b420075d98.tar.gz | |
gcc: Added MicroBlaze specific patches
* Patches are submitted upstream and pending acceptance
Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
Diffstat (limited to 'recipes-devtools/gcc/files/0005-Patch-microblaze-Add-fstack-usage-support.patch')
| -rw-r--r-- | recipes-devtools/gcc/files/0005-Patch-microblaze-Add-fstack-usage-support.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/recipes-devtools/gcc/files/0005-Patch-microblaze-Add-fstack-usage-support.patch b/recipes-devtools/gcc/files/0005-Patch-microblaze-Add-fstack-usage-support.patch new file mode 100644 index 00000000..ee3cb9db --- /dev/null +++ b/recipes-devtools/gcc/files/0005-Patch-microblaze-Add-fstack-usage-support.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | From: David Holsgrove <david.holsgrove@xilinx.com> | ||
| 2 | Subject: [PATCH 5/8] [Patch, microblaze]: Add -fstack-usage support | ||
| 3 | |||
| 4 | Changelog | ||
| 5 | |||
| 6 | 2013-03-18 David Holsgrove <david.holsgrove@xilinx.com> | ||
| 7 | |||
| 8 | * gcc/config/microblaze/microblaze.c (microblaze_expand_prologue): | ||
| 9 | Add check for flag_stack_usage to enable -fstack-usage support | ||
| 10 | |||
| 11 | Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com> | ||
| 12 | Upstream-Status: Pending | ||
| 13 | |||
| 14 | diff --git a/gcc/config/microblaze/microblaze.c b/gcc/config/microblaze/microblaze.c | ||
| 15 | index 7418e49..4417289 100644 | ||
| 16 | --- a/gcc/config/microblaze/microblaze.c | ||
| 17 | +++ b/gcc/config/microblaze/microblaze.c | ||
| 18 | @@ -2790,6 +2790,9 @@ microblaze_expand_prologue (void) | ||
| 19 | |||
| 20 | fsiz = compute_frame_size (get_frame_size ()); | ||
| 21 | |||
| 22 | + if (flag_stack_usage) | ||
| 23 | + current_function_static_stack_size = fsiz; | ||
| 24 | + | ||
| 25 | /* If this function is a varargs function, store any registers that | ||
| 26 | would normally hold arguments ($5 - $10) on the stack. */ | ||
| 27 | if (((TYPE_ARG_TYPES (fntype) != 0 | ||
| 28 | -- | ||
| 29 | 1.7.5.4 | ||
| 30 | |||
