diff options
| author | Mark Hatle <mark.hatle@kernel.crashing.org> | 2022-07-25 21:50:29 -0500 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@kernel.crashing.org> | 2022-09-01 09:53:21 -0500 |
| commit | 4f55e171396816ee995e47060fba59463f5ddccd (patch) | |
| tree | 6cc38644fe8e08718c686f1a935e912a24afbb5d /meta-microblaze/recipes-devtools/gcc/gcc-12/0051-Patch-microblaze-Reducing-Stack-space-for-arguments.patch | |
| parent | d018b3b86a7933f8ae03e47548db2c39e2c4a25a (diff) | |
| download | meta-xilinx-4f55e171396816ee995e47060fba59463f5ddccd.tar.gz | |
gcc: Update patches for Langdale gcc
Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Diffstat (limited to 'meta-microblaze/recipes-devtools/gcc/gcc-12/0051-Patch-microblaze-Reducing-Stack-space-for-arguments.patch')
| -rw-r--r-- | meta-microblaze/recipes-devtools/gcc/gcc-12/0051-Patch-microblaze-Reducing-Stack-space-for-arguments.patch | 44 |
1 files changed, 16 insertions, 28 deletions
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0051-Patch-microblaze-Reducing-Stack-space-for-arguments.patch b/meta-microblaze/recipes-devtools/gcc/gcc-12/0051-Patch-microblaze-Reducing-Stack-space-for-arguments.patch index 73b170c1..fbc51bc8 100644 --- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0051-Patch-microblaze-Reducing-Stack-space-for-arguments.patch +++ b/meta-microblaze/recipes-devtools/gcc/gcc-12/0051-Patch-microblaze-Reducing-Stack-space-for-arguments.patch | |||
| @@ -11,14 +11,14 @@ Signed-off-by :Nagaraju Mekala <nmekala@xilix.com> | |||
| 11 | :Ajit Agarwal <ajitkum@xilinx.com> | 11 | :Ajit Agarwal <ajitkum@xilinx.com> |
| 12 | --- | 12 | --- |
| 13 | gcc/config/microblaze/microblaze-protos.h | 1 + | 13 | gcc/config/microblaze/microblaze-protos.h | 1 + |
| 14 | gcc/config/microblaze/microblaze.c | 132 +++++++++++++++++++++- | 14 | gcc/config/microblaze/microblaze.cc | 132 +++++++++++++++++++++- |
| 15 | gcc/config/microblaze/microblaze.h | 4 +- | 15 | gcc/config/microblaze/microblaze.h | 4 +- |
| 16 | 3 files changed, 134 insertions(+), 3 deletions(-) | 16 | 3 files changed, 134 insertions(+), 3 deletions(-) |
| 17 | 17 | ||
| 18 | diff --git a/gcc/config/microblaze/microblaze-protos.h b/gcc/config/microblaze/microblaze-protos.h | 18 | Index: gcc-12.1.0/gcc/config/microblaze/microblaze-protos.h |
| 19 | index 302f6bbda2e..87a7093e369 100644 | 19 | =================================================================== |
| 20 | --- a/gcc/config/microblaze/microblaze-protos.h | 20 | --- gcc-12.1.0.orig/gcc/config/microblaze/microblaze-protos.h |
| 21 | +++ b/gcc/config/microblaze/microblaze-protos.h | 21 | +++ gcc-12.1.0/gcc/config/microblaze/microblaze-protos.h |
| 22 | @@ -60,6 +60,7 @@ extern int symbol_mentioned_p (rtx); | 22 | @@ -60,6 +60,7 @@ extern int symbol_mentioned_p (rtx); |
| 23 | extern int label_mentioned_p (rtx); | 23 | extern int label_mentioned_p (rtx); |
| 24 | extern bool microblaze_cannot_force_const_mem (machine_mode, rtx); | 24 | extern bool microblaze_cannot_force_const_mem (machine_mode, rtx); |
| @@ -26,12 +26,12 @@ index 302f6bbda2e..87a7093e369 100644 | |||
| 26 | +int microblaze_reg_parm_stack_space(tree fun); | 26 | +int microblaze_reg_parm_stack_space(tree fun); |
| 27 | #endif /* RTX_CODE */ | 27 | #endif /* RTX_CODE */ |
| 28 | 28 | ||
| 29 | /* Declare functions in microblaze-c.c. */ | 29 | /* Declare functions in microblaze-c.cc. */ |
| 30 | diff --git a/gcc/config/microblaze/microblaze.c b/gcc/config/microblaze/microblaze.c | 30 | Index: gcc-12.1.0/gcc/config/microblaze/microblaze.cc |
| 31 | index 5afac2ba8d1..6914eb8380c 100644 | 31 | =================================================================== |
| 32 | --- a/gcc/config/microblaze/microblaze.c | 32 | --- gcc-12.1.0.orig/gcc/config/microblaze/microblaze.cc |
| 33 | +++ b/gcc/config/microblaze/microblaze.c | 33 | +++ gcc-12.1.0/gcc/config/microblaze/microblaze.cc |
| 34 | @@ -2080,6 +2080,136 @@ microblaze_must_save_register (int regno) | 34 | @@ -2081,6 +2081,136 @@ microblaze_must_save_register (int regno |
| 35 | return 0; | 35 | return 0; |
| 36 | } | 36 | } |
| 37 | 37 | ||
| @@ -168,20 +168,11 @@ index 5afac2ba8d1..6914eb8380c 100644 | |||
| 168 | /* Return the bytes needed to compute the frame pointer from the current | 168 | /* Return the bytes needed to compute the frame pointer from the current |
| 169 | stack pointer. | 169 | stack pointer. |
| 170 | 170 | ||
| 171 | @@ -3470,7 +3600,7 @@ microblaze_asm_output_mi_thunk (FILE *file, tree thunk_fndecl ATTRIBUTE_UNUSED, | 171 | Index: gcc-12.1.0/gcc/config/microblaze/microblaze.h |
| 172 | emit_insn (gen_indirect_jump (temp2)); | 172 | =================================================================== |
| 173 | 173 | --- gcc-12.1.0.orig/gcc/config/microblaze/microblaze.h | |
| 174 | /* Run just enough of rest_of_compilation. This sequence was | 174 | +++ gcc-12.1.0/gcc/config/microblaze/microblaze.h |
| 175 | - "borrowed" from rs6000.c. */ | 175 | @@ -447,9 +447,9 @@ extern struct microblaze_frame_info curr |
| 176 | + "borrowed" from microblaze.c */ | ||
| 177 | insn = get_insns (); | ||
| 178 | shorten_branches (insn); | ||
| 179 | assemble_start_function (thunk_fndecl, fnname); | ||
| 180 | diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h | ||
| 181 | index 2581d52d17a..9c48978d2ca 100644 | ||
| 182 | --- a/gcc/config/microblaze/microblaze.h | ||
| 183 | +++ b/gcc/config/microblaze/microblaze.h | ||
| 184 | @@ -447,9 +447,9 @@ extern struct microblaze_frame_info current_frame_info; | ||
| 185 | #define ARG_POINTER_CFA_OFFSET(FNDECL) 0 | 176 | #define ARG_POINTER_CFA_OFFSET(FNDECL) 0 |
| 186 | #define DWARF_CIE_DATA_ALIGNMENT -1 | 177 | #define DWARF_CIE_DATA_ALIGNMENT -1 |
| 187 | 178 | ||
| @@ -193,6 +184,3 @@ index 2581d52d17a..9c48978d2ca 100644 | |||
| 193 | 184 | ||
| 194 | #define STACK_BOUNDARY (TARGET_MB_64 ? 64 : 32) | 185 | #define STACK_BOUNDARY (TARGET_MB_64 ? 64 : 32) |
| 195 | 186 | ||
| 196 | -- | ||
| 197 | 2.17.1 | ||
| 198 | |||
