summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-bsp/recipes-microblaze/gcc/gcc-7/0031-Fixing-the-issue-with-MicroBlaze-builtin_alloc.patch
diff options
context:
space:
mode:
authorNathan Rossi <nathan@nathanrossi.com>2017-12-13 16:58:34 -0800
committerManjukumar Matha <manjukumar.harthikote-matha@xilinx.com>2018-01-12 15:47:59 -0800
commit7935ef724cd7359ed97e6ae3d90ebc8f07dd7e1f (patch)
tree7c6faff836ccec34825a97fa7b7c49936e2bc4e2 /meta-xilinx-bsp/recipes-microblaze/gcc/gcc-7/0031-Fixing-the-issue-with-MicroBlaze-builtin_alloc.patch
parentfb15f2e401ed07f774ea89e0c91ecd927bf09235 (diff)
downloadmeta-xilinx-7935ef724cd7359ed97e6ae3d90ebc8f07dd7e1f.tar.gz
gcc-source: Add all Xilinx MicroBlaze GCC 7.2 patchesrocko
Add all the Xilinx patches for MicroBlaze, this includes a number of bug fixes, testsuite fixes, feature improvements and additional feature support. Important changes: * v10.0 - CPU support * v10.0 - Bit-field instruction support * v10.0 - 8-stage pipeline aka 'frequency' optimized * Size optimized implementations for shift instructions Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
Diffstat (limited to 'meta-xilinx-bsp/recipes-microblaze/gcc/gcc-7/0031-Fixing-the-issue-with-MicroBlaze-builtin_alloc.patch')
-rw-r--r--meta-xilinx-bsp/recipes-microblaze/gcc/gcc-7/0031-Fixing-the-issue-with-MicroBlaze-builtin_alloc.patch48
1 files changed, 48 insertions, 0 deletions
diff --git a/meta-xilinx-bsp/recipes-microblaze/gcc/gcc-7/0031-Fixing-the-issue-with-MicroBlaze-builtin_alloc.patch b/meta-xilinx-bsp/recipes-microblaze/gcc/gcc-7/0031-Fixing-the-issue-with-MicroBlaze-builtin_alloc.patch
new file mode 100644
index 00000000..3786a71a
--- /dev/null
+++ b/meta-xilinx-bsp/recipes-microblaze/gcc/gcc-7/0031-Fixing-the-issue-with-MicroBlaze-builtin_alloc.patch
@@ -0,0 +1,48 @@
1From fdb99f97b41f7cd06b81e668b88463d0fc2cbe87 Mon Sep 17 00:00:00 2001
2From: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
3Date: Sat, 26 Aug 2017 19:21:54 -0700
4Subject: [PATCH] Fixing the issue with MicroBlaze builtin_alloc
5
6Fixing the issue with the builtin_alloc. Register r18 was not properly
7handling the stack pattern which was resolved by using free available
8register
9
10Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
11Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
12Upstream-Status: Pending
13---
14 gcc/config/microblaze/microblaze.md | 8 ++++----
15 1 file changed, 4 insertions(+), 4 deletions(-)
16
17diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md
18index 7a00629922..68c3b22bd4 100644
19--- a/gcc/config/microblaze/microblaze.md
20+++ b/gcc/config/microblaze/microblaze.md
21@@ -2076,10 +2076,10 @@
22 ""
23 {
24 rtx retaddr = gen_rtx_MEM (Pmode, stack_pointer_rtx);
25- rtx rtmp = gen_rtx_REG (SImode, R_TMP);
26+ rtx reg = gen_reg_rtx (Pmode);
27 rtx neg_op0;
28
29- emit_move_insn (rtmp, retaddr);
30+ emit_move_insn (reg, retaddr);
31 if (GET_CODE (operands[1]) != CONST_INT)
32 {
33 neg_op0 = gen_reg_rtx (Pmode);
34@@ -2088,9 +2088,9 @@
35 neg_op0 = GEN_INT (- INTVAL (operands[1]));
36
37 emit_insn (gen_addsi3 (stack_pointer_rtx, stack_pointer_rtx, neg_op0));
38- emit_move_insn (gen_rtx_MEM (Pmode, stack_pointer_rtx), rtmp);
39+ emit_move_insn (gen_rtx_MEM (Pmode, stack_pointer_rtx), reg);
40 emit_move_insn (operands[0], virtual_stack_dynamic_rtx);
41- emit_insn (gen_rtx_CLOBBER (SImode, rtmp));
42+ emit_insn (gen_rtx_CLOBBER (SImode, reg));
43 DONE;
44 }
45 )
46--
472.14.2
48