summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@amd.com>2024-07-24 11:41:48 -0600
committerMark Hatle <mark.hatle@amd.com>2024-07-24 20:55:18 -0600
commit76896af103e13176e7bcbc5e57d5357249c6a0f6 (patch)
tree01ae6bdc5e433243c22c00ee9ad141011c55a62a
parenta5ef63d835bc8c12cf7e5a1a82ee547542295738 (diff)
downloadmeta-xilinx-76896af103e13176e7bcbc5e57d5357249c6a0f6.tar.gz
meta-microblaze: Update to gcc 13
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0001-LOCAL-Testsuite-builtins-tests-require-fpic-Signed-o.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0001-LOCAL-Testsuite-builtins-tests-require-fpic.patch)8
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0002-Quick-fail-g-.dg-opt-memcpy1.C-This-particular-testc.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0002-LOCAL-Quick-fail-g-.dg-opt-memcpy1.C.patch)12
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0003-For-dejagnu-static-testing-on-qemu-suppress-warnings.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0003-LOCAL-For-dejagnu-static-testing-on-qemu-suppress-wa.patch)12
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0004-Add-MicroBlaze-to-target-supports-for-atomic-buil.-..patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0004-Patch-testsuite-Add-MicroBlaze-to-target-supports-fo.patch)12
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0005-Update-MicroBlaze-strings-test-for-new-scan-assembly.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0005-Patch-testsuite-Update-MicroBlaze-strings-test.patch)8
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0006-Allow-MicroBlaze-.weakext-pattern-in-regex-match-Ext.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0006-Patch-testsuite-Allow-MicroBlaze-.weakext-pattern-in.patch)10
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0007-Add-MicroBlaze-to-check_profiling_available-Testsuit.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0007-Patch-testsuite-Add-MicroBlaze-to-check_profiling_av.patch)15
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0008-Fix-atomic-side-effects.-In-atomic_compare_and_swaps.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0008-Patch-microblaze-Fix-atomic-side-effects.patch)17
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0009-Fix-atomic-boolean-return-value.-In-atomic_compare_a.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0009-Patch-microblaze-Fix-atomic-boolean-return-value.patch)12
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0010-Fix-the-Microblaze-crash-with-msmall-divides-flag-Co.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0010-Patch-microblaze-Fix-the-Microblaze-crash-with-msmal.patch)21
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0011-Added-ashrsi3_with_size_opt-Added-ashrsi3_with_size_.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0011-Patch-microblaze-Added-ashrsi3_with_size_opt.patch)14
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0012-Use-bralid-for-profiler-calls-Signed-off-by-Edgar-E..patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0012-Patch-microblaze-Use-bralid-for-profiler-calls.patch)10
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0013-Removed-moddi3-routinue-Using-the-default-moddi3-fun.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0013-Patch-microblaze-Removed-moddi3-routinue.patch)12
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0014-Add-INIT_PRIORITY-support-Added-TARGET_ASM_CONSTRUCT.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0014-Patch-microblaze-Add-INIT_PRIORITY-support-Added.patch)14
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0015-Add-optimized-lshrsi3-When-barrel-shifter-is-not-pre.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0015-Patch-microblaze-Add-optimized-lshrsi3.patch)12
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0016-Add-cbranchsi4_reg-This-patch-optimizes-the-generati.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0016-Patch-microblaze-Add-cbranchsi4_reg.patch)13
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0017-Inline-Expansion-of-fsqrt-builtin.-The-changes-are-m.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0017-Patch-microblaze-Inline-Expansion-of-fsqrt-builtin.patch)32
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0018-microblaze.md-Improve-adddi3-and-subdi3-insn-definit.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0018-PATCH-microblaze.md-Improve-adddi3-and-subdi3-insn-d.patch)12
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0019-Update-ashlsi3-movsf-patterns-This-patch-removes-the.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0019-Patch-microblaze-Update-ashlsi3-movsf-patterns.patch)18
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0020-8-stage-pipeline-for-microblaze-This-patch-adds-the-.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0020-Patch-microblaze-8-stage-pipeline-for-microblaze.patch)20
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0021-Correct-the-const-high-double-immediate-value-with-t.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0021-PATCH-21-53-Patch-microblaze-Correct-the-const-high-.patch)18
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0022-Fix-internal-compiler-error-with-msmall-divides-This.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0022-Fix-microblaze-Fix-internal-compiler-error-with-msma.patch)18
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0023-Fix-the-calculation-of-high-word-in-a-long-long-64-b.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0023-patch-microblaze-Fix-the-calculation-of-high-word-in.patch)11
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0024-this-patch-has-1.Fixed-the-bug-in-version-calculatio.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0024-Patch-MicroBlaze-this-patch-has-1.Fixed-the-bug-in.patch)38
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0025-Fixing-the-issue-with-the-builtin_alloc.-register-r1.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0025-Fixing-the-issue-with-the-builtin_alloc.patch)8
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0026-Removed-fsqrt-generation-for-double-values.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0026-Patch-Microblaze-Removed-fsqrt-generation-for-double.patch)9
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0027-Intial-commit-of-64-bit-Microblaze.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0027-Patch-MicroBlaze-Intial-commit-of-64-bit-Microblaze.patch)32
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0028-Intial-commit-for-64bit-MB-sources.-Need-to-cleanup-.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0028-Intial-commit-for-64bit-MB-sources.patch)86
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0029-re-arrangement-of-the-compare-branches.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0029-Patch-MicroBlaze-re-arrangement-of-the-compare-branc.patch)23
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0030-previous-commit-broke-the-handling-of-SI-Branch-comp.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0030-Patch-Microblaze-previous-commit-broke-the-handling-.patch)10
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0031-Support-of-multilibs-with-m64.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0031-Patch-Microblaze-Support-of-multilibs-with-m64.patch)8
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0032-Fixed-issues-like-1-Interrupt-alignment-issue-2-Sign.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0032-Patch-MicroBlaze-Fixed-issues-like.patch)18
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0033-fixed-below-issues-Floating-point-print-issues-in-64.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0033-Patch-MicroBlaze.patch)23
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0034-Added-double-arith-instructions-Fixed-prologue-stack.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0034-Added-double-arith-instructions.patch)8
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0035-Fixed-the-issue-in-the-delay-slot-with-swap-instruct.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0035-Fixed-the-issue-in-the-delay-slot-with-swap-instruct.patch)8
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0036-Fixed-the-load-store-issue-with-the-32bit-arith-libr.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0036-Fixed-the-load-store-issue-with-the-32bit-arith-libr.patch)16
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0037-extending-the-Dwarf-support-to-64bit-Microblaze.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0037-extending-the-Dwarf-support-to-64bit-Microblaze.patch)8
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0038-fixing-the-typo-errors-in-umodsi3-file.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0038-fixing-the-typo-errors-in-umodsi3-file.patch)8
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0039-fixing-the-32bit-LTO-related-issue9-1014024.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0039-fixing-the-32bit-LTO-related-issue9-1014024.patch)8
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0040-Fixed-the-missing-stack-adjustment-in-prologue-of-mo.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0040-Fixed-the-missing-stack-adjustment-in-prologue-of-mo.patch)8
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0041-corrected-SPN-for-dlong-instruction-mapping.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0041-Patch-Microblaze-corrected-SPN-for-dlong-instruction.patch)9
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0042-fixing-the-long-long-long-mingw-toolchain-issue.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0042-fixing-the-long-long-long-mingw-toolchain-issue.patch)10
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0043-Fix-the-MB-64-bug-of-handling-QI-objects.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0043-Fix-the-MB-64-bug-of-handling-QI-objects.patch)8
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0044-We-will-check-the-possibility-of-peephole2-optimizat.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0044-Patch-Microblaze-We-will-check-the-possibility-of-pe.patch)10
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0045-fixed-typos-in-mul-div-and-mod-assembly-files.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0045-Patch-MicroBlaze-fixed-typos-in-mul-div-and-mod-asse.patch)17
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0046-MB-64-removal-of-barrel-shift-instructions-from-defa.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0046-Patch-microblaze-MB-64-removal-of-barrel-shift-instr.patch)19
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0047-Added-new-MB-64-single-register-arithmetic-instructi.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0047-Added-new-MB-64-single-register-arithmetic-instructi.patch)8
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0048-Added-support-for-64-bit-Immediate-values.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0048-Patch-MicroBlaze-Added-support-for-64-bit-Immediate-.patch)11
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0049-Fix-Compiler-crash-with-freg-struct-return-This-patc.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0049-Patch-microblaze-Fix-Compiler-crash-with-freg-struct.patch)18
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0050-Add-TARGET_OPTION_OPTIMIZATION-and-disable-fivopts-b.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0050-Patch-microblaze-Add-TARGET_OPTION_OPTIMIZATION-and-.patch)10
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0051-Reducing-Stack-space-for-arguments.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0051-Patch-microblaze-Reducing-Stack-space-for-arguments.patch)14
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0052-If-we-use-break_handler-attribute-then-interrupt-vec.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0052-Patch-MicroBlaze.patch)27
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0053-Add-Zero_extended-instructions.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/0053-patch-microblaze64-Add-Zero_extended-instructions.patch)8
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/0054-Fix-failure-with-gcc.c-torture-execute-ashrdi-1.c-Os.patch42
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-13/microblaze-mulitlib-hack.patch (renamed from meta-microblaze/recipes-devtools/gcc/gcc-12/microblaze-mulitlib-hack.patch)0
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-source_12.%.bbappend59
-rw-r--r--meta-microblaze/recipes-devtools/gcc/gcc-source_13.%.bbappend63
-rw-r--r--meta-vitis-tc/recipes-devtools/gcc/gcc-12/riscv-multilib-generator-python.patch14
-rw-r--r--meta-vitis-tc/recipes-devtools/gcc/gcc-13/additional-microblaze-multilibs.patch (renamed from meta-vitis-tc/recipes-devtools/gcc/gcc-12/additional-microblaze-multilibs.patch)0
-rw-r--r--meta-vitis-tc/recipes-devtools/gcc/gcc-source_12.%.bbappend6
-rw-r--r--meta-vitis-tc/recipes-devtools/gcc/gcc-source_13.%.bbappend1
61 files changed, 509 insertions, 495 deletions
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0001-LOCAL-Testsuite-builtins-tests-require-fpic.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0001-LOCAL-Testsuite-builtins-tests-require-fpic-Signed-o.patch
index 1099a0e8..8b9c6177 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0001-LOCAL-Testsuite-builtins-tests-require-fpic.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0001-LOCAL-Testsuite-builtins-tests-require-fpic-Signed-o.patch
@@ -1,7 +1,7 @@
1From 376b0ee790231a99fe50b50e20070c104bbba0d8 Mon Sep 17 00:00:00 2001 1From 8beb2e85436c77db197ce22626c7b7037d41d595 Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Wed, 11 Jan 2017 13:13:57 +0530 3Date: Wed, 11 Jan 2017 13:13:57 +0530
4Subject: [PATCH 01/53] LOCAL]: Testsuite - builtins tests require fpic 4Subject: [PATCH 01/54] LOCAL]: Testsuite - builtins tests require fpic
5 Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com> 5 Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
6 6
7Conflicts: 7Conflicts:
@@ -12,7 +12,7 @@ Conflicts:
12 1 file changed, 8 insertions(+) 12 1 file changed, 8 insertions(+)
13 13
14diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp b/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp 14diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp b/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp
15index fb47f51f90c..d9ecf045554 100644 15index fa762d33232..ce8545fc460 100644
16--- a/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp 16--- a/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp
17+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp 17+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp
18@@ -48,6 +48,14 @@ if { [istarget *-*-eabi*] 18@@ -48,6 +48,14 @@ if { [istarget *-*-eabi*]
@@ -31,5 +31,5 @@ index fb47f51f90c..d9ecf045554 100644
31 if {![string match *-lib.c $src] && [runtest_file_p $runtests $src]} { 31 if {![string match *-lib.c $src] && [runtest_file_p $runtests $src]} {
32 c-torture-execute [list $src \ 32 c-torture-execute [list $src \
33-- 33--
342.37.1 (Apple Git-137.1) 342.34.1
35 35
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0002-LOCAL-Quick-fail-g-.dg-opt-memcpy1.C.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0002-Quick-fail-g-.dg-opt-memcpy1.C-This-particular-testc.patch
index 061dfc86..94970e7b 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0002-LOCAL-Quick-fail-g-.dg-opt-memcpy1.C.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0002-Quick-fail-g-.dg-opt-memcpy1.C-This-particular-testc.patch
@@ -1,10 +1,10 @@
1From b1aea8e71692065497ee3e9be5a9f1fccecf5685 Mon Sep 17 00:00:00 2001 1From 4a2d958fe0d54c78b7a131b9cde1c74165533aaf Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Wed, 11 Jan 2017 14:31:10 +0530 3Date: Wed, 11 Jan 2017 14:31:10 +0530
4Subject: [PATCH 02/53] [LOCAL]: Quick fail g++.dg/opt/memcpy1.C This 4Subject: [PATCH 02/54] Quick fail g++.dg/opt/memcpy1.C This particular
5 particular testcase fails with a timeout. Instead, fail it at compile-time 5 testcase fails with a timeout. Instead, fail it at compile-time for
6 for microblaze. This speeds up the testsuite without removing it from the 6 microblaze. This speeds up the testsuite without removing it from the FAIL
7 FAIL reports. 7 reports.
8 8
9Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com> 9Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
10--- 10---
@@ -27,5 +27,5 @@ index 3862756083d..db9f990f781 100644
27 typedef uint8_t uint8; 27 typedef uint8_t uint8;
28 __extension__ typedef __SIZE_TYPE__ size_t; 28 __extension__ typedef __SIZE_TYPE__ size_t;
29-- 29--
302.37.1 (Apple Git-137.1) 302.34.1
31 31
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0003-LOCAL-For-dejagnu-static-testing-on-qemu-suppress-wa.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0003-For-dejagnu-static-testing-on-qemu-suppress-warnings.patch
index 1b5d428e..5b4466d8 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0003-LOCAL-For-dejagnu-static-testing-on-qemu-suppress-wa.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0003-For-dejagnu-static-testing-on-qemu-suppress-warnings.patch
@@ -1,9 +1,9 @@
1From af78edb2cb91c55f54ac2d720cee9871da13b845 Mon Sep 17 00:00:00 2001 1From 0b4ec0cbfc13f5a40a20663da9c074ac81c5ec3f Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Wed, 11 Jan 2017 15:46:28 +0530 3Date: Wed, 11 Jan 2017 15:46:28 +0530
4Subject: [PATCH 03/53] [LOCAL]: For dejagnu static testing on qemu, suppress 4Subject: [PATCH 03/54] For dejagnu static testing on qemu, suppress warnings
5 warnings about multiple definitions from the test function and libc in line 5 about multiple definitions from the test function and libc in line with
6 with method used by powerpc. Dynamic linking and using a qemu binary which 6 method used by powerpc. Dynamic linking and using a qemu binary which
7 understands sysroot resolves all test failures with builtins 7 understands sysroot resolves all test failures with builtins
8 8
9Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com> 9Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
@@ -12,7 +12,7 @@ Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
12 1 file changed, 4 deletions(-) 12 1 file changed, 4 deletions(-)
13 13
14diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp b/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp 14diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp b/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp
15index d9ecf045554..d6c2b04f286 100644 15index ce8545fc460..72fd697d855 100644
16--- a/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp 16--- a/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp
17+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp 17+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/builtins.exp
18@@ -48,14 +48,10 @@ if { [istarget *-*-eabi*] 18@@ -48,14 +48,10 @@ if { [istarget *-*-eabi*]
@@ -31,5 +31,5 @@ index d9ecf045554..d6c2b04f286 100644
31 if {![string match *-lib.c $src] && [runtest_file_p $runtests $src]} { 31 if {![string match *-lib.c $src] && [runtest_file_p $runtests $src]} {
32 c-torture-execute [list $src \ 32 c-torture-execute [list $src \
33-- 33--
342.37.1 (Apple Git-137.1) 342.34.1
35 35
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0004-Patch-testsuite-Add-MicroBlaze-to-target-supports-fo.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0004-Add-MicroBlaze-to-target-supports-for-atomic-buil.-..patch
index 8db33100..87adeaf4 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0004-Patch-testsuite-Add-MicroBlaze-to-target-supports-fo.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0004-Add-MicroBlaze-to-target-supports-for-atomic-buil.-..patch
@@ -1,8 +1,8 @@
1From 34b7dd28e3fe40f55ec7f6df3f000dd797d6c1cc Mon Sep 17 00:00:00 2001 1From dcb106f7cb2fb68f3117677b12df2b01f3929f7b Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Wed, 11 Jan 2017 15:50:35 +0530 3Date: Wed, 11 Jan 2017 15:50:35 +0530
4Subject: [PATCH 04/53] [Patch, testsuite]: Add MicroBlaze to target-supports 4Subject: [PATCH 04/54] Add MicroBlaze to target-supports for atomic buil. .tin
5 for atomic buil. .tin tests 5 tests
6 6
7MicroBlaze added to supported targets for atomic builtin tests. 7MicroBlaze added to supported targets for atomic builtin tests.
8 8
@@ -19,10 +19,10 @@ Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
19 1 file changed, 1 insertion(+) 19 1 file changed, 1 insertion(+)
20 20
21diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp 21diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
22index 244fe2306f4..c19f251f0d2 100644 22index 40f71e9ed8b..32e29706fcd 100644
23--- a/gcc/testsuite/lib/target-supports.exp 23--- a/gcc/testsuite/lib/target-supports.exp
24+++ b/gcc/testsuite/lib/target-supports.exp 24+++ b/gcc/testsuite/lib/target-supports.exp
25@@ -8639,6 +8639,7 @@ proc check_effective_target_sync_int_long { } { 25@@ -8947,6 +8947,7 @@ proc check_effective_target_sync_int_long { } {
26 && [check_effective_target_arm_acq_rel]) 26 && [check_effective_target_arm_acq_rel])
27 || [istarget bfin*-*linux*] 27 || [istarget bfin*-*linux*]
28 || [istarget hppa*-*linux*] 28 || [istarget hppa*-*linux*]
@@ -31,5 +31,5 @@ index 244fe2306f4..c19f251f0d2 100644
31 || [istarget powerpc*-*-*] 31 || [istarget powerpc*-*-*]
32 || [istarget cris-*-*] 32 || [istarget cris-*-*]
33-- 33--
342.37.1 (Apple Git-137.1) 342.34.1
35 35
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0005-Patch-testsuite-Update-MicroBlaze-strings-test.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0005-Update-MicroBlaze-strings-test-for-new-scan-assembly.patch
index 0fb32850..9a8d0a86 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0005-Patch-testsuite-Update-MicroBlaze-strings-test.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0005-Update-MicroBlaze-strings-test-for-new-scan-assembly.patch
@@ -1,8 +1,8 @@
1From 2d0b5d68aff95a95dfb4ed0b207849658502bd53 Mon Sep 17 00:00:00 2001 1From 68bc05ae258334f591c336dbed6dc907969e90fc Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Wed, 11 Jan 2017 16:20:01 +0530 3Date: Wed, 11 Jan 2017 16:20:01 +0530
4Subject: [PATCH 05/53] [Patch, testsuite]: Update MicroBlaze strings test for 4Subject: [PATCH 05/54] Update MicroBlaze strings test for new scan-assembly
5 new scan-assembly output resulting in use of $LC label 5 output resulting in use of $LC label
6 6
7ChangeLog/testsuite 7ChangeLog/testsuite
8 8
@@ -32,5 +32,5 @@ index efaf3c660ea..347872360d3 100644
32 32
33 extern void somefunc (char *); 33 extern void somefunc (char *);
34-- 34--
352.37.1 (Apple Git-137.1) 352.34.1
36 36
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0006-Patch-testsuite-Allow-MicroBlaze-.weakext-pattern-in.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0006-Allow-MicroBlaze-.weakext-pattern-in-regex-match-Ext.patch
index a82f11cc..c32a8bab 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0006-Patch-testsuite-Allow-MicroBlaze-.weakext-pattern-in.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0006-Allow-MicroBlaze-.weakext-pattern-in-regex-match-Ext.patch
@@ -1,9 +1,9 @@
1From 20b6479f240bfebb46daad06839286a7abcff56c Mon Sep 17 00:00:00 2001 1From 7b07ae9c8086973b7baa031b09889146057de8ab Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Thu, 12 Jan 2017 16:14:15 +0530 3Date: Thu, 12 Jan 2017 16:14:15 +0530
4Subject: [PATCH 06/53] [Patch, testsuite]: Allow MicroBlaze .weakext pattern 4Subject: [PATCH 06/54] Allow MicroBlaze .weakext pattern in regex match Extend
5 in regex match Extend regex pattern to include optional ext at the end of 5 regex pattern to include optional ext at the end of .weak to match the
6 .weak to match the MicroBlaze weak label .weakext 6 MicroBlaze weak label .weakext
7 7
8ChangeLog/testsuite 8ChangeLog/testsuite
9 9
@@ -63,5 +63,5 @@ index 6e8f124bc5e..d1d34fe1e4a 100644
63 63
64 struct Base 64 struct Base
65-- 65--
662.37.1 (Apple Git-137.1) 662.34.1
67 67
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0007-Patch-testsuite-Add-MicroBlaze-to-check_profiling_av.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0007-Add-MicroBlaze-to-check_profiling_available-Testsuit.patch
index 736f5cd1..5de0bfd8 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0007-Patch-testsuite-Add-MicroBlaze-to-check_profiling_av.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0007-Add-MicroBlaze-to-check_profiling_available-Testsuit.patch
@@ -1,10 +1,9 @@
1From 0efefd8ac71dd084c745402afdf07319de9774c6 Mon Sep 17 00:00:00 2001 1From 6de628ecccf3739891052a2fbaf97048384c6190 Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Thu, 12 Jan 2017 16:34:27 +0530 3Date: Thu, 12 Jan 2017 16:34:27 +0530
4Subject: [PATCH 07/53] [Patch, testsuite]: Add MicroBlaze to 4Subject: [PATCH 07/54] Add MicroBlaze to check_profiling_available Testsuite,
5 check_profiling_available Testsuite, add microblaze*-*-* target in 5 add microblaze*-*-* target in check_profiling_available inline with other
6 check_profiling_available inline with other archs setting 6 archs setting profiling_available_saved to 0
7 profiling_available_saved to 0
8 7
9Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com> 8Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
10--- 9---
@@ -12,10 +11,10 @@ Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
12 1 file changed, 1 insertion(+) 11 1 file changed, 1 insertion(+)
13 12
14diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp 13diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
15index c19f251f0d2..c136c93e673 100644 14index 32e29706fcd..47233563339 100644
16--- a/gcc/testsuite/lib/target-supports.exp 15--- a/gcc/testsuite/lib/target-supports.exp
17+++ b/gcc/testsuite/lib/target-supports.exp 16+++ b/gcc/testsuite/lib/target-supports.exp
18@@ -729,6 +729,7 @@ proc check_profiling_available { test_what } { 17@@ -804,6 +804,7 @@ proc check_profiling_available { test_what } {
19 || [istarget m68k-*-elf] 18 || [istarget m68k-*-elf]
20 || [istarget m68k-*-uclinux*] 19 || [istarget m68k-*-uclinux*]
21 || [istarget mips*-*-elf*] 20 || [istarget mips*-*-elf*]
@@ -24,5 +23,5 @@ index c19f251f0d2..c136c93e673 100644
24 || [istarget mn10300-*-elf*] 23 || [istarget mn10300-*-elf*]
25 || [istarget moxie-*-elf*] 24 || [istarget moxie-*-elf*]
26-- 25--
272.37.1 (Apple Git-137.1) 262.34.1
28 27
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0008-Patch-microblaze-Fix-atomic-side-effects.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0008-Fix-atomic-side-effects.-In-atomic_compare_and_swaps.patch
index 451070c0..e554e660 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0008-Patch-microblaze-Fix-atomic-side-effects.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0008-Fix-atomic-side-effects.-In-atomic_compare_and_swaps.patch
@@ -1,11 +1,10 @@
1From 42ab0f7a2e6834feed456d00b3e2ec0ae2532a41 Mon Sep 17 00:00:00 2001 1From cd3db73d253df229054863e5f920e59e60b84c45 Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Thu, 12 Jan 2017 16:41:43 +0530 3Date: Thu, 12 Jan 2017 16:41:43 +0530
4Subject: [PATCH 08/53] [Patch, microblaze]: Fix atomic side effects. In 4Subject: [PATCH 08/54] Fix atomic side effects. In atomic_compare_and_swapsi,
5 atomic_compare_and_swapsi, add side effects to prevent incorrect assumptions 5 add side effects to prevent incorrect assumptions during optimization.
6 during optimization. Previously, the outputs were considered unused; this 6 Previously, the outputs were considered unused; this generated assembly code
7 generated assembly code with undefined side effects after invocation of the 7 with undefined side effects after invocation of the atomic.
8 atomic.
9 8
10Signed-off-by: Kirk Meyer <kirk.meyer@sencore.com> 9Signed-off-by: Kirk Meyer <kirk.meyer@sencore.com>
11Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com> 10Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
@@ -18,7 +17,7 @@ Conflicts:
18 2 files changed, 16 insertions(+), 8 deletions(-) 17 2 files changed, 16 insertions(+), 8 deletions(-)
19 18
20diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md 19diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md
21index 0765ff930c6..ea7f74f1dff 100644 20index 671667b537c..dfd7395432b 100644
22--- a/gcc/config/microblaze/microblaze.md 21--- a/gcc/config/microblaze/microblaze.md
23+++ b/gcc/config/microblaze/microblaze.md 22+++ b/gcc/config/microblaze/microblaze.md
24@@ -43,6 +43,9 @@ 23@@ -43,6 +43,9 @@
@@ -32,7 +31,7 @@ index 0765ff930c6..ea7f74f1dff 100644
32 31
33 (define_c_enum "unspec" [ 32 (define_c_enum "unspec" [
34diff --git a/gcc/config/microblaze/sync.md b/gcc/config/microblaze/sync.md 33diff --git a/gcc/config/microblaze/sync.md b/gcc/config/microblaze/sync.md
35index ae8955ce691..77c3ce8ff27 100644 34index c84bac94101..587f852b3a0 100644
36--- a/gcc/config/microblaze/sync.md 35--- a/gcc/config/microblaze/sync.md
37+++ b/gcc/config/microblaze/sync.md 36+++ b/gcc/config/microblaze/sync.md
38@@ -18,14 +18,19 @@ 37@@ -18,14 +18,19 @@
@@ -64,5 +63,5 @@ index ae8955ce691..77c3ce8ff27 100644
64 "" 63 ""
65 { 64 {
66-- 65--
672.37.1 (Apple Git-137.1) 662.34.1
68 67
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0009-Patch-microblaze-Fix-atomic-boolean-return-value.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0009-Fix-atomic-boolean-return-value.-In-atomic_compare_a.patch
index c7efbb07..617b10f3 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0009-Patch-microblaze-Fix-atomic-boolean-return-value.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0009-Fix-atomic-boolean-return-value.-In-atomic_compare_a.patch
@@ -1,9 +1,9 @@
1From a1b8136a157c549f0f65c14d628e694310ca0d23 Mon Sep 17 00:00:00 2001 1From 7eca0d5cf7bc603c5a359b70521861c11faf6038 Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Thu, 12 Jan 2017 16:45:45 +0530 3Date: Thu, 12 Jan 2017 16:45:45 +0530
4Subject: [PATCH 09/53] [Patch, microblaze]: Fix atomic boolean return value. 4Subject: [PATCH 09/54] Fix atomic boolean return value. In
5 In atomic_compare_and_swapsi, fix boolean return value. Previously, it 5 atomic_compare_and_swapsi, fix boolean return value. Previously, it contained
6 contained zero if successful and non-zero if unsuccessful. 6 zero if successful and non-zero if unsuccessful.
7 7
8Signed-off-by: Kirk Meyer <kirk.meyer@sencore.com> 8Signed-off-by: Kirk Meyer <kirk.meyer@sencore.com>
9Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com> 9Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
@@ -12,7 +12,7 @@ Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
12 1 file changed, 4 insertions(+), 3 deletions(-) 12 1 file changed, 4 insertions(+), 3 deletions(-)
13 13
14diff --git a/gcc/config/microblaze/sync.md b/gcc/config/microblaze/sync.md 14diff --git a/gcc/config/microblaze/sync.md b/gcc/config/microblaze/sync.md
15index 77c3ce8ff27..573ce4765a0 100644 15index 587f852b3a0..230699bf280 100644
16--- a/gcc/config/microblaze/sync.md 16--- a/gcc/config/microblaze/sync.md
17+++ b/gcc/config/microblaze/sync.md 17+++ b/gcc/config/microblaze/sync.md
18@@ -34,15 +34,16 @@ 18@@ -34,15 +34,16 @@
@@ -36,5 +36,5 @@ index 77c3ce8ff27..573ce4765a0 100644
36 } 36 }
37 ) 37 )
38-- 38--
392.37.1 (Apple Git-137.1) 392.34.1
40 40
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0010-Patch-microblaze-Fix-the-Microblaze-crash-with-msmal.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0010-Fix-the-Microblaze-crash-with-msmall-divides-flag-Co.patch
index 1bffafa9..42b9d575 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0010-Patch-microblaze-Fix-the-Microblaze-crash-with-msmal.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0010-Fix-the-Microblaze-crash-with-msmall-divides-flag-Co.patch
@@ -1,13 +1,12 @@
1From 1ab5b8af098d100a1d7af05cca680b3c7181549d Mon Sep 17 00:00:00 2001 1From 72cdba90d70131c092918c5d5c18eb800f0f9dfb Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Thu, 12 Jan 2017 16:50:17 +0530 3Date: Thu, 12 Jan 2017 16:50:17 +0530
4Subject: [PATCH 10/53] [Patch, microblaze]: Fix the Microblaze crash with 4Subject: [PATCH 10/54] Fix the Microblaze crash with msmall-divides flag
5 msmall-divides flag Compiler is crashing when we use msmall-divides and 5 Compiler is crashing when we use msmall-divides and mxl-barrel-shift flag.
6 mxl-barrel-shift flag. This is because when use above flags 6 This is because when use above flags microblaze_expand_divide function will
7 microblaze_expand_divide function will be called for division operation. In 7 be called for division operation. In microblaze_expand_divide function we are
8 microblaze_expand_divide function we are using sub_reg but MicroBlaze doesn't 8 using sub_reg but MicroBlaze doesn't have subreg register due to this
9 have subreg register due to this compiler was crashing. Changed the logic to 9 compiler was crashing. Changed the logic to avoid sub_reg call
10 avoid sub_reg call
11 10
12Signed-off-by:Nagaraju Mekala <nmekala@xilix.com> 11Signed-off-by:Nagaraju Mekala <nmekala@xilix.com>
13 12
@@ -18,10 +17,10 @@ Conflicts:
18 1 file changed, 1 insertion(+), 2 deletions(-) 17 1 file changed, 1 insertion(+), 2 deletions(-)
19 18
20diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc 19diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc
21index f32effecfb6..6922dd94af7 100644 20index 6df2c712cab..11e34b3fdae 100644
22--- a/gcc/config/microblaze/microblaze.cc 21--- a/gcc/config/microblaze/microblaze.cc
23+++ b/gcc/config/microblaze/microblaze.cc 22+++ b/gcc/config/microblaze/microblaze.cc
24@@ -3710,8 +3710,7 @@ microblaze_expand_divide (rtx operands[]) 23@@ -3719,8 +3719,7 @@ microblaze_expand_divide (rtx operands[])
25 mem_rtx = gen_rtx_MEM (QImode, 24 mem_rtx = gen_rtx_MEM (QImode,
26 gen_rtx_PLUS (Pmode, regt1, div_table_rtx)); 25 gen_rtx_PLUS (Pmode, regt1, div_table_rtx));
27 26
@@ -32,5 +31,5 @@ index f32effecfb6..6922dd94af7 100644
32 JUMP_LABEL (jump) = div_end_label; 31 JUMP_LABEL (jump) = div_end_label;
33 LABEL_NUSES (div_end_label) = 1; 32 LABEL_NUSES (div_end_label) = 1;
34-- 33--
352.37.1 (Apple Git-137.1) 342.34.1
36 35
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0011-Patch-microblaze-Added-ashrsi3_with_size_opt.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0011-Added-ashrsi3_with_size_opt-Added-ashrsi3_with_size_.patch
index 1bd73b8a..8988e23b 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0011-Patch-microblaze-Added-ashrsi3_with_size_opt.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0011-Added-ashrsi3_with_size_opt-Added-ashrsi3_with_size_.patch
@@ -1,10 +1,10 @@
1From 7dd4ae2ad891094aa85a907b168cbdce744789e9 Mon Sep 17 00:00:00 2001 1From 41d8b3677d64bf9408925667c103a04b176050d5 Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Thu, 12 Jan 2017 16:52:56 +0530 3Date: Thu, 12 Jan 2017 16:52:56 +0530
4Subject: [PATCH 11/53] [Patch, microblaze]: Added ashrsi3_with_size_opt Added 4Subject: [PATCH 11/54] Added ashrsi3_with_size_opt Added ashrsi3_with_size_opt
5 ashrsi3_with_size_opt pattern to optimize the sra instructions when the -Os 5 pattern to optimize the sra instructions when the -Os optimization is used.
6 optimization is used. lshrsi3_with_size_opt is being removed as it has 6 lshrsi3_with_size_opt is being removed as it has conflicts with unsigned int
7 conflicts with unsigned int variables 7 variables
8 8
9Signed-off-by:Nagaraju Mekala <nmekala@xilix.com> 9Signed-off-by:Nagaraju Mekala <nmekala@xilix.com>
10--- 10---
@@ -12,7 +12,7 @@ Signed-off-by:Nagaraju Mekala <nmekala@xilix.com>
12 1 file changed, 21 insertions(+) 12 1 file changed, 21 insertions(+)
13 13
14diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md 14diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md
15index ea7f74f1dff..9fbb3113f3c 100644 15index dfd7395432b..4f20b8efe33 100644
16--- a/gcc/config/microblaze/microblaze.md 16--- a/gcc/config/microblaze/microblaze.md
17+++ b/gcc/config/microblaze/microblaze.md 17+++ b/gcc/config/microblaze/microblaze.md
18@@ -1508,6 +1508,27 @@ 18@@ -1508,6 +1508,27 @@
@@ -44,5 +44,5 @@ index ea7f74f1dff..9fbb3113f3c 100644
44 [(set (match_operand:SI 0 "register_operand" "=&d") 44 [(set (match_operand:SI 0 "register_operand" "=&d")
45 (ashiftrt:SI (match_operand:SI 1 "register_operand" "d") 45 (ashiftrt:SI (match_operand:SI 1 "register_operand" "d")
46-- 46--
472.37.1 (Apple Git-137.1) 472.34.1
48 48
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0012-Patch-microblaze-Use-bralid-for-profiler-calls.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0012-Use-bralid-for-profiler-calls-Signed-off-by-Edgar-E..patch
index f40fff9a..46a8699a 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0012-Patch-microblaze-Use-bralid-for-profiler-calls.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0012-Use-bralid-for-profiler-calls-Signed-off-by-Edgar-E..patch
@@ -1,15 +1,15 @@
1From 12d7e086376916ef61e2c48639671fd0f7c8fbbf Mon Sep 17 00:00:00 2001 1From 9dc1f7291c4c7abfe254ca4e86a6ba0975a74960 Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Tue, 17 Jan 2017 10:57:19 +0530 3Date: Tue, 17 Jan 2017 10:57:19 +0530
4Subject: [PATCH 12/53] [Patch, microblaze]: Use bralid for profiler calls 4Subject: [PATCH 12/54] Use bralid for profiler calls Signed-off-by: Edgar E.
5 Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com> 5 Iglesias <edgar.iglesias@gmail.com>
6 6
7--- 7---
8 gcc/config/microblaze/microblaze.h | 2 +- 8 gcc/config/microblaze/microblaze.h | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-) 9 1 file changed, 1 insertion(+), 1 deletion(-)
10 10
11diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h 11diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h
12index d28bc766de8..cd544f2030e 100644 12index 0398902362b..49e7fbedd5a 100644
13--- a/gcc/config/microblaze/microblaze.h 13--- a/gcc/config/microblaze/microblaze.h
14+++ b/gcc/config/microblaze/microblaze.h 14+++ b/gcc/config/microblaze/microblaze.h
15@@ -486,7 +486,7 @@ typedef struct microblaze_args 15@@ -486,7 +486,7 @@ typedef struct microblaze_args
@@ -22,5 +22,5 @@ index d28bc766de8..cd544f2030e 100644
22 } 22 }
23 23
24-- 24--
252.37.1 (Apple Git-137.1) 252.34.1
26 26
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0013-Patch-microblaze-Removed-moddi3-routinue.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0013-Removed-moddi3-routinue-Using-the-default-moddi3-fun.patch
index 5c927264..26c24a49 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0013-Patch-microblaze-Removed-moddi3-routinue.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0013-Removed-moddi3-routinue-Using-the-default-moddi3-fun.patch
@@ -1,8 +1,8 @@
1From cd8c9f3c43b266628d1585b74fc78f3e34a33c44 Mon Sep 17 00:00:00 2001 1From a2dbb662c573d2bf1a6a9192eb0d7f453ad20c59 Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Thu, 12 Jan 2017 17:36:16 +0530 3Date: Thu, 12 Jan 2017 17:36:16 +0530
4Subject: [PATCH 13/53] [Patch, microblaze]: Removed moddi3 routinue Using the 4Subject: [PATCH 13/54] Removed moddi3 routinue Using the default moddi3
5 default moddi3 function as the existing implementation has many bugs 5 function as the existing implementation has many bugs
6 6
7Signed-off-by:Nagaraju <nmekala@xilix.com> 7Signed-off-by:Nagaraju <nmekala@xilix.com>
8 8
@@ -16,13 +16,13 @@ Conflicts:
16 16
17diff --git a/libgcc/config/microblaze/moddi3.S b/libgcc/config/microblaze/moddi3.S 17diff --git a/libgcc/config/microblaze/moddi3.S b/libgcc/config/microblaze/moddi3.S
18deleted file mode 100644 18deleted file mode 100644
19index 9b77865df38..00000000000 19index b3e4bf6182e..00000000000
20--- a/libgcc/config/microblaze/moddi3.S 20--- a/libgcc/config/microblaze/moddi3.S
21+++ /dev/null 21+++ /dev/null
22@@ -1,121 +0,0 @@ 22@@ -1,121 +0,0 @@
23-################################### 23-###################################
24-# 24-#
25-# Copyright (C) 2009-2022 Free Software Foundation, Inc. 25-# Copyright (C) 2009-2023 Free Software Foundation, Inc.
26-# 26-#
27-# Contributed by Michael Eager <eager@eagercon.com>. 27-# Contributed by Michael Eager <eager@eagercon.com>.
28-# 28-#
@@ -156,5 +156,5 @@ index 96959f0292b..8d954a49575 100644
156 $(srcdir)/config/microblaze/muldi3_hard.S \ 156 $(srcdir)/config/microblaze/muldi3_hard.S \
157 $(srcdir)/config/microblaze/mulsi3.S \ 157 $(srcdir)/config/microblaze/mulsi3.S \
158-- 158--
1592.37.1 (Apple Git-137.1) 1592.34.1
160 160
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0014-Patch-microblaze-Add-INIT_PRIORITY-support-Added.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0014-Add-INIT_PRIORITY-support-Added-TARGET_ASM_CONSTRUCT.patch
index f8bcabe3..9e4348ad 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0014-Patch-microblaze-Add-INIT_PRIORITY-support-Added.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0014-Add-INIT_PRIORITY-support-Added-TARGET_ASM_CONSTRUCT.patch
@@ -1,8 +1,8 @@
1From 30aa7cef2dd076637155384fba539838ddaf0163 Mon Sep 17 00:00:00 2001 1From 40dd974a6cd608567f1746a934c9743b80ca1e3f Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Mon, 12 Sep 2022 20:20:00 +0530 3Date: Mon, 12 Sep 2022 20:20:00 +0530
4Subject: [PATCH 14/53] [Patch, microblaze]: Add INIT_PRIORITY support Added 4Subject: [PATCH 14/54] Add INIT_PRIORITY support Added TARGET_ASM_CONSTRUCTOR
5 TARGET_ASM_CONSTRUCTOR and TARGET_ASM_DESTRUCTOR macros. 5 and TARGET_ASM_DESTRUCTOR macros.
6 6
7These macros allows users to control the order of initialization 7These macros allows users to control the order of initialization
8of objects defined at namespace scope with the init_priority 8of objects defined at namespace scope with the init_priority
@@ -15,10 +15,10 @@ Lower numbers indicate a higher priority.
15 1 file changed, 53 insertions(+) 15 1 file changed, 53 insertions(+)
16 16
17diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc 17diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc
18index 6922dd94af7..4b0621db168 100644 18index 11e34b3fdae..3fb402b87d4 100644
19--- a/gcc/config/microblaze/microblaze.cc 19--- a/gcc/config/microblaze/microblaze.cc
20+++ b/gcc/config/microblaze/microblaze.cc 20+++ b/gcc/config/microblaze/microblaze.cc
21@@ -2635,6 +2635,53 @@ print_operand_address (FILE * file, rtx addr) 21@@ -2640,6 +2640,53 @@ print_operand_address (FILE * file, rtx addr)
22 } 22 }
23 } 23 }
24 24
@@ -72,7 +72,7 @@ index 6922dd94af7..4b0621db168 100644
72 /* Emit either a label, .comm, or .lcomm directive, and mark that the symbol 72 /* Emit either a label, .comm, or .lcomm directive, and mark that the symbol
73 is used, so that we don't emit an .extern for it in 73 is used, so that we don't emit an .extern for it in
74 microblaze_asm_file_end. */ 74 microblaze_asm_file_end. */
75@@ -3976,6 +4023,12 @@ microblaze_starting_frame_offset (void) 75@@ -3985,6 +4032,12 @@ microblaze_starting_frame_offset (void)
76 #undef TARGET_ATTRIBUTE_TABLE 76 #undef TARGET_ATTRIBUTE_TABLE
77 #define TARGET_ATTRIBUTE_TABLE microblaze_attribute_table 77 #define TARGET_ATTRIBUTE_TABLE microblaze_attribute_table
78 78
@@ -86,5 +86,5 @@ index 6922dd94af7..4b0621db168 100644
86 #define TARGET_IN_SMALL_DATA_P microblaze_elf_in_small_data_p 86 #define TARGET_IN_SMALL_DATA_P microblaze_elf_in_small_data_p
87 87
88-- 88--
892.37.1 (Apple Git-137.1) 892.34.1
90 90
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0015-Patch-microblaze-Add-optimized-lshrsi3.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0015-Add-optimized-lshrsi3-When-barrel-shifter-is-not-pre.patch
index 0f7d356f..fac95b7b 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0015-Patch-microblaze-Add-optimized-lshrsi3.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0015-Add-optimized-lshrsi3-When-barrel-shifter-is-not-pre.patch
@@ -1,9 +1,9 @@
1From b9bb669d9404bd04676f09c793310e1b7f228674 Mon Sep 17 00:00:00 2001 1From d0f1a493d130e06816df4d11f31421a8691761e0 Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Tue, 17 Jan 2017 15:23:57 +0530 3Date: Tue, 17 Jan 2017 15:23:57 +0530
4Subject: [PATCH 15/53] [Patch, microblaze]: Add optimized lshrsi3 When barrel 4Subject: [PATCH 15/54] Add optimized lshrsi3 When barrel shifter is not
5 shifter is not present, the immediate value is greater than #5 and 5 present, the immediate value is greater than #5 and optimization is -OS, the
6 optimization is -OS, the compiler will generate shift operation using loop. 6 compiler will generate shift operation using loop.
7 7
8Changelog 8Changelog
9 9
@@ -26,7 +26,7 @@ Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
26 create mode 100644 gcc/testsuite/gcc.target/microblaze/others/lshrsi_Os_1.c 26 create mode 100644 gcc/testsuite/gcc.target/microblaze/others/lshrsi_Os_1.c
27 27
28diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md 28diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md
29index 9fbb3113f3c..52308cce0cb 100644 29index 4f20b8efe33..5d65ad84449 100644
30--- a/gcc/config/microblaze/microblaze.md 30--- a/gcc/config/microblaze/microblaze.md
31+++ b/gcc/config/microblaze/microblaze.md 31+++ b/gcc/config/microblaze/microblaze.md
32@@ -1618,6 +1618,27 @@ 32@@ -1618,6 +1618,27 @@
@@ -77,5 +77,5 @@ index 00000000000..32a3be7c76a
77+/* { dg-final { scan-assembler "bneid\tr18,.-4" } } */ 77+/* { dg-final { scan-assembler "bneid\tr18,.-4" } } */
78+/* { dg-final { scan-assembler "\srl\tr(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r(\[0-9]\|\[1-2]\[0-9]\|3\[0-1])" } } */ 78+/* { dg-final { scan-assembler "\srl\tr(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r(\[0-9]\|\[1-2]\[0-9]\|3\[0-1])" } } */
79-- 79--
802.37.1 (Apple Git-137.1) 802.34.1
81 81
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0016-Patch-microblaze-Add-cbranchsi4_reg.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0016-Add-cbranchsi4_reg-This-patch-optimizes-the-generati.patch
index 19ae324d..298765dc 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0016-Patch-microblaze-Add-cbranchsi4_reg.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0016-Add-cbranchsi4_reg-This-patch-optimizes-the-generati.patch
@@ -1,10 +1,9 @@
1From 08d7bb4062024f3e34fbb17d695f8fa2c9e1b305 Mon Sep 17 00:00:00 2001 1From e94d406c9fa0d7b99532bd8cf4b2a4580cdb02b7 Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Tue, 17 Jan 2017 17:04:37 +0530 3Date: Tue, 17 Jan 2017 17:04:37 +0530
4Subject: [PATCH 16/53] [Patch, microblaze]: Add cbranchsi4_reg This patch 4Subject: [PATCH 16/54] Add cbranchsi4_reg This patch optimizes the generation
5 optimizes the generation of pcmpne/pcmpeq instruction if the compare 5 of pcmpne/pcmpeq instruction if the compare instruction has no immediate
6 instruction has no immediate values.For the immediate values the xor 6 values.For the immediate values the xor instruction is generated
7 instruction is generated
8 7
9Signed-off-by: Nagaraju Mekala <nmekala@xilix.com> 8Signed-off-by: Nagaraju Mekala <nmekala@xilix.com>
10Signed-off-by: Ajit Agarwal <ajitkum@xilinx.com> 9Signed-off-by: Ajit Agarwal <ajitkum@xilinx.com>
@@ -30,7 +29,7 @@ Conflicts:
30 7 files changed, 18 insertions(+), 18 deletions(-) 29 7 files changed, 18 insertions(+), 18 deletions(-)
31 30
32diff --git a/gcc/config/microblaze/microblaze-protos.h b/gcc/config/microblaze/microblaze-protos.h 31diff --git a/gcc/config/microblaze/microblaze-protos.h b/gcc/config/microblaze/microblaze-protos.h
33index d67355697b5..848cd509003 100644 32index 31a6515176b..41557af0f3c 100644
34--- a/gcc/config/microblaze/microblaze-protos.h 33--- a/gcc/config/microblaze/microblaze-protos.h
35+++ b/gcc/config/microblaze/microblaze-protos.h 34+++ b/gcc/config/microblaze/microblaze-protos.h
36@@ -33,7 +33,7 @@ extern int microblaze_expand_shift (rtx *); 35@@ -33,7 +33,7 @@ extern int microblaze_expand_shift (rtx *);
@@ -143,5 +142,5 @@ index 1d6ba807b12..532c035adfd 100644
143 142
144 } 143 }
145-- 144--
1462.37.1 (Apple Git-137.1) 1452.34.1
147 146
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0017-Patch-microblaze-Inline-Expansion-of-fsqrt-builtin.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0017-Inline-Expansion-of-fsqrt-builtin.-The-changes-are-m.patch
index e3a98a08..91ca87fc 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0017-Patch-microblaze-Inline-Expansion-of-fsqrt-builtin.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0017-Inline-Expansion-of-fsqrt-builtin.-The-changes-are-m.patch
@@ -1,19 +1,19 @@
1From 1593e5a9839b7cade95e9f55ba3cff66d64d0e84 Mon Sep 17 00:00:00 2001 1From 0760cd661f6c09cda8327288f79314319a0b9b14 Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Tue, 17 Jan 2017 17:11:04 +0530 3Date: Tue, 17 Jan 2017 17:11:04 +0530
4Subject: [PATCH 17/53] [Patch,microblaze]: Inline Expansion of fsqrt builtin. 4Subject: [PATCH 17/54] Inline Expansion of fsqrt builtin. The changes are made
5 The changes are made in the patch for the inline expansion of the fsqrt 5 in the patch for the inline expansion of the fsqrt builtin with fqrt
6 builtin with fqrt instruction. The sqrt math function takes double as 6 instruction. The sqrt math function takes double as argument and return
7 argument and return double as argument. The pattern is selected while 7 double as argument. The pattern is selected while expanding the unary op
8 expanding the unary op through expand_unop which passes DFmode and the DFmode 8 through expand_unop which passes DFmode and the DFmode pattern was not there
9 pattern was not there returning zero. Thus the sqrt math function is not 9 returning zero. Thus the sqrt math function is not inlined and expanded. The
10 inlined and expanded. The pattern with DFmode argument is added. Also the 10 pattern with DFmode argument is added. Also the source and destination
11 source and destination argument is not same the DF through two different 11 argument is not same the DF through two different consecutive registers with
12 consecutive registers with lower 32 bit is the argument passed to sqrt and 12 lower 32 bit is the argument passed to sqrt and the higher 32 bit is zero. If
13 the higher 32 bit is zero. If the source and destinations are different the 13 the source and destinations are different the DFmode 64 bits registers is not
14 DFmode 64 bits registers is not set properly giving the problem in runtime. 14 set properly giving the problem in runtime. Such changes are taken care in
15 Such changes are taken care in the implementation of the pattern for DFmode 15 the implementation of the pattern for DFmode for inline expansion of the
16 for inline expansion of the sqrt. 16 sqrt.
17 17
18ChangeLog: 18ChangeLog:
192015-06-16 Ajit Agarwal <ajitkum@xilinx.com> 192015-06-16 Ajit Agarwal <ajitkum@xilinx.com>
@@ -29,7 +29,7 @@ Signed-off-by:Ajit Agarwal ajitkum@xilinx.com
29 1 file changed, 14 insertions(+) 29 1 file changed, 14 insertions(+)
30 30
31diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md 31diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md
32index 52308cce0cb..0e5ef4d7649 100644 32index 5d65ad84449..0597ed8d75a 100644
33--- a/gcc/config/microblaze/microblaze.md 33--- a/gcc/config/microblaze/microblaze.md
34+++ b/gcc/config/microblaze/microblaze.md 34+++ b/gcc/config/microblaze/microblaze.md
35@@ -451,6 +451,20 @@ 35@@ -451,6 +451,20 @@
@@ -54,5 +54,5 @@ index 52308cce0cb..0e5ef4d7649 100644
54 [(set (match_operand:SI 0 "register_operand" "=d") 54 [(set (match_operand:SI 0 "register_operand" "=d")
55 (fix:SI (match_operand:SF 1 "register_operand" "d")))] 55 (fix:SI (match_operand:SF 1 "register_operand" "d")))]
56-- 56--
572.37.1 (Apple Git-137.1) 572.34.1
58 58
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0018-PATCH-microblaze.md-Improve-adddi3-and-subdi3-insn-d.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0018-microblaze.md-Improve-adddi3-and-subdi3-insn-definit.patch
index 831b8f22..f388e9b5 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0018-PATCH-microblaze.md-Improve-adddi3-and-subdi3-insn-d.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0018-microblaze.md-Improve-adddi3-and-subdi3-insn-definit.patch
@@ -1,9 +1,9 @@
1From 9002b7d4c295bef95a3fc28c05f86dde5087dde1 Mon Sep 17 00:00:00 2001 1From 0a7299e82a8f463e9e7cd6297c5bdc0aac3a0ec4 Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Tue, 17 Jan 2017 18:07:24 +0530 3Date: Tue, 17 Jan 2017 18:07:24 +0530
4Subject: [PATCH 18/53] [PATCH] microblaze.md: Improve 'adddi3' and 'subdi3' 4Subject: [PATCH 18/54] microblaze.md: Improve 'adddi3' and 'subdi3' insn
5 insn definitions Change adddi3 to handle DI immediates as the second operand, 5 definitions Change adddi3 to handle DI immediates as the second operand, this
6 this requires modification to the output template however reduces the need to 6 requires modification to the output template however reduces the need to
7 specify seperate templates for 16-bit positive/negative immediate operands. 7 specify seperate templates for 16-bit positive/negative immediate operands.
8 The use of 32-bit immediates for the addi and addic instructions is handled 8 The use of 32-bit immediates for the addi and addic instructions is handled
9 by the assembler, which will emit the imm instructions when required. This 9 by the assembler, which will emit the imm instructions when required. This
@@ -23,7 +23,7 @@ Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
23 1 file changed, 6 insertions(+), 7 deletions(-) 23 1 file changed, 6 insertions(+), 7 deletions(-)
24 24
25diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md 25diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md
26index 0e5ef4d7649..effb9774c32 100644 26index 0597ed8d75a..498926a4a75 100644
27--- a/gcc/config/microblaze/microblaze.md 27--- a/gcc/config/microblaze/microblaze.md
28+++ b/gcc/config/microblaze/microblaze.md 28+++ b/gcc/config/microblaze/microblaze.md
29@@ -502,17 +502,16 @@ 29@@ -502,17 +502,16 @@
@@ -59,5 +59,5 @@ index 0e5ef4d7649..effb9774c32 100644
59 "rsub\t%L0,%L2,%L1\;rsubc\t%M0,%M2,%M1" 59 "rsub\t%L0,%L2,%L1\;rsubc\t%M0,%M2,%M1"
60 [(set_attr "type" "darith") 60 [(set_attr "type" "darith")
61-- 61--
622.37.1 (Apple Git-137.1) 622.34.1
63 63
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0019-Patch-microblaze-Update-ashlsi3-movsf-patterns.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0019-Update-ashlsi3-movsf-patterns-This-patch-removes-the.patch
index ab3fa535..0f388f70 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0019-Patch-microblaze-Update-ashlsi3-movsf-patterns.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0019-Update-ashlsi3-movsf-patterns-This-patch-removes-the.patch
@@ -1,10 +1,10 @@
1From ef94a8b2110f5a3becefb00c1f7c0c3adac6fcac Mon Sep 17 00:00:00 2001 1From a969ab3f04de077eca6d928dd651e3c6b042367d Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Tue, 17 Jan 2017 18:18:41 +0530 3Date: Tue, 17 Jan 2017 18:18:41 +0530
4Subject: [PATCH 19/53] [Patch, microblaze]: Update ashlsi3 & movsf patterns 4Subject: [PATCH 19/54] Update ashlsi3 & movsf patterns This patch removes the
5 This patch removes the use of HOST_WIDE_INT_PRINT_HEX macro in print_operand 5 use of HOST_WIDE_INT_PRINT_HEX macro in print_operand of
6 of ashlsi3_with_mul_nodelay,ashlsi3_with_mul_delay and movsf_internal 6 ashlsi3_with_mul_nodelay,ashlsi3_with_mul_delay and movsf_internal patterns
7 patterns beacuse HOST_WIDE_INT_PRINT_HEX is generating 64-bit value which our 7 beacuse HOST_WIDE_INT_PRINT_HEX is generating 64-bit value which our
8 instruction doesn't support so using gen_int_mode function 8 instruction doesn't support so using gen_int_mode function
9 9
10Signed-off-by :Nagaraju Mekala <nmekala@xilix.com> 10Signed-off-by :Nagaraju Mekala <nmekala@xilix.com>
@@ -30,10 +30,10 @@ Conflicts:
30 2 files changed, 9 insertions(+), 3 deletions(-) 30 2 files changed, 9 insertions(+), 3 deletions(-)
31 31
32diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc 32diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc
33index 4b0621db168..c23061c4e4a 100644 33index 3fb402b87d4..ff64e0ca342 100644
34--- a/gcc/config/microblaze/microblaze.cc 34--- a/gcc/config/microblaze/microblaze.cc
35+++ b/gcc/config/microblaze/microblaze.cc 35+++ b/gcc/config/microblaze/microblaze.cc
36@@ -2469,7 +2469,7 @@ print_operand (FILE * file, rtx op, int letter) 36@@ -2474,7 +2474,7 @@ print_operand (FILE * file, rtx op, int letter)
37 unsigned long value_long; 37 unsigned long value_long;
38 REAL_VALUE_TO_TARGET_SINGLE (*CONST_DOUBLE_REAL_VALUE (op), 38 REAL_VALUE_TO_TARGET_SINGLE (*CONST_DOUBLE_REAL_VALUE (op),
39 value_long); 39 value_long);
@@ -43,7 +43,7 @@ index 4b0621db168..c23061c4e4a 100644
43 else 43 else
44 { 44 {
45diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md 45diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md
46index effb9774c32..a4d7ea29219 100644 46index 498926a4a75..0448101de8a 100644
47--- a/gcc/config/microblaze/microblaze.md 47--- a/gcc/config/microblaze/microblaze.md
48+++ b/gcc/config/microblaze/microblaze.md 48+++ b/gcc/config/microblaze/microblaze.md
49@@ -1368,7 +1368,10 @@ 49@@ -1368,7 +1368,10 @@
@@ -71,5 +71,5 @@ index effb9774c32..a4d7ea29219 100644
71 [(set_attr "type" "no_delay_arith") 71 [(set_attr "type" "no_delay_arith")
72 (set_attr "mode" "SI") 72 (set_attr "mode" "SI")
73-- 73--
742.37.1 (Apple Git-137.1) 742.34.1
75 75
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0020-Patch-microblaze-8-stage-pipeline-for-microblaze.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0020-8-stage-pipeline-for-microblaze-This-patch-adds-the-.patch
index 67eb0893..002e60be 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0020-Patch-microblaze-8-stage-pipeline-for-microblaze.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0020-8-stage-pipeline-for-microblaze-This-patch-adds-the-.patch
@@ -1,9 +1,9 @@
1From 65574bdca9006fda7654e33a0081eeecfcd9976b Mon Sep 17 00:00:00 2001 1From 21daca8e01515b2e73463adbf9488b63bb0ccf54 Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Mon, 12 Sep 2022 21:05:51 +0530 3Date: Mon, 12 Sep 2022 21:05:51 +0530
4Subject: [PATCH 20/53] [Patch, microblaze]: 8-stage pipeline for microblaze 4Subject: [PATCH 20/54] 8-stage pipeline for microblaze This patch adds the
5 This patch adds the support for the 8-stage pipeline. The new 8-stage 5 support for the 8-stage pipeline. The new 8-stage pipeline reduces the
6 pipeline reduces the latencies of float & integer division drastically 6 latencies of float & integer division drastically
7 7
8Signed-off-by :Nagaraju Mekala <nmekala@xilix.com> 8Signed-off-by :Nagaraju Mekala <nmekala@xilix.com>
9--- 9---
@@ -14,10 +14,10 @@ Signed-off-by :Nagaraju Mekala <nmekala@xilix.com>
14 4 files changed, 94 insertions(+), 3 deletions(-) 14 4 files changed, 94 insertions(+), 3 deletions(-)
15 15
16diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc 16diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc
17index c23061c4e4a..bd394c411b8 100644 17index ff64e0ca342..a58a5b2a1b0 100644
18--- a/gcc/config/microblaze/microblaze.cc 18--- a/gcc/config/microblaze/microblaze.cc
19+++ b/gcc/config/microblaze/microblaze.cc 19+++ b/gcc/config/microblaze/microblaze.cc
20@@ -1841,6 +1841,17 @@ microblaze_option_override (void) 20@@ -1846,6 +1846,17 @@ microblaze_option_override (void)
21 "%<-mcpu=v8.30.a%>"); 21 "%<-mcpu=v8.30.a%>");
22 TARGET_REORDER = 0; 22 TARGET_REORDER = 0;
23 } 23 }
@@ -36,7 +36,7 @@ index c23061c4e4a..bd394c411b8 100644
36 if (TARGET_MULTIPLY_HIGH && TARGET_SOFT_MUL) 36 if (TARGET_MULTIPLY_HIGH && TARGET_SOFT_MUL)
37 error ("%<-mxl-multiply-high%> requires %<-mno-xl-soft-mul%>"); 37 error ("%<-mxl-multiply-high%> requires %<-mno-xl-soft-mul%>");
38diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h 38diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h
39index cd544f2030e..640ae6ea9a3 100644 39index 49e7fbedd5a..e4faa9c681f 100644
40--- a/gcc/config/microblaze/microblaze.h 40--- a/gcc/config/microblaze/microblaze.h
41+++ b/gcc/config/microblaze/microblaze.h 41+++ b/gcc/config/microblaze/microblaze.h
42@@ -27,7 +27,8 @@ 42@@ -27,7 +27,8 @@
@@ -50,7 +50,7 @@ index cd544f2030e..640ae6ea9a3 100644
50 50
51 #define MICROBLAZE_MASK_NO_UNSAFE_DELAY 0x00000001 51 #define MICROBLAZE_MASK_NO_UNSAFE_DELAY 0x00000001
52diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md 52diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md
53index a4d7ea29219..9e9dfb1ccb0 100644 53index 0448101de8a..7a01b28d8f0 100644
54--- a/gcc/config/microblaze/microblaze.md 54--- a/gcc/config/microblaze/microblaze.md
55+++ b/gcc/config/microblaze/microblaze.md 55+++ b/gcc/config/microblaze/microblaze.md
56@@ -35,6 +35,7 @@ 56@@ -35,6 +35,7 @@
@@ -161,7 +161,7 @@ index a4d7ea29219..9e9dfb1ccb0 100644
161 (set_attr "length" "4")]) 161 (set_attr "length" "4")])
162 162
163diff --git a/gcc/config/microblaze/microblaze.opt b/gcc/config/microblaze/microblaze.opt 163diff --git a/gcc/config/microblaze/microblaze.opt b/gcc/config/microblaze/microblaze.opt
164index 9f47e67cf2a..cc009363f87 100644 164index dbf6390ef4b..37aaaf9ffda 100644
165--- a/gcc/config/microblaze/microblaze.opt 165--- a/gcc/config/microblaze/microblaze.opt
166+++ b/gcc/config/microblaze/microblaze.opt 166+++ b/gcc/config/microblaze/microblaze.opt
167@@ -133,3 +133,7 @@ Data referenced by offset from start of text instead of GOT (with -fPIC/-fPIE). 167@@ -133,3 +133,7 @@ Data referenced by offset from start of text instead of GOT (with -fPIC/-fPIE).
@@ -173,5 +173,5 @@ index 9f47e67cf2a..cc009363f87 100644
173+Target Mask(AREA_OPTIMIZED_2) 173+Target Mask(AREA_OPTIMIZED_2)
174+Use 8 stage pipeline (frequency optimization) 174+Use 8 stage pipeline (frequency optimization)
175-- 175--
1762.37.1 (Apple Git-137.1) 1762.34.1
177 177
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0021-PATCH-21-53-Patch-microblaze-Correct-the-const-high-.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0021-Correct-the-const-high-double-immediate-value-with-t.patch
index 96fe4f73..2e8182d1 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0021-PATCH-21-53-Patch-microblaze-Correct-the-const-high-.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0021-Correct-the-const-high-double-immediate-value-with-t.patch
@@ -1,11 +1,11 @@
1From 1d56bfb436b008422b4a7d4d4e3180667130c840 Mon Sep 17 00:00:00 2001 1From 1cda2f5772650aa65853e6a3e9d8162498c2f469 Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Tue, 13 Sep 2022 11:49:11 +0530 3Date: Tue, 13 Sep 2022 11:49:11 +0530
4Subject: [PATCH 21/53] [PATCH 21/53] [Patch, microblaze]: Correct the const 4Subject: [PATCH 21/54] Correct the const high double immediate value with this
5 high double immediate value with this patch the loading of the DI mode 5 patch the loading of the DI mode immediate values will be using
6 immediate values will be using REAL_VALUE_FROM_CONST_DOUBLE and 6 REAL_VALUE_FROM_CONST_DOUBLE and REAL_VALUE_TO_TARGET_DOUBLE functions, as
7 REAL_VALUE_TO_TARGET_DOUBLE functions, as CONST_DOUBLE_HIGH was returning 7 CONST_DOUBLE_HIGH was returning the sign extension value even of the unsigned
8 the sign extension value even of the unsigned long long constants also 8 long long constants also
9 9
10Signed-off-by :Nagaraju Mekala <nmekala@xilix.com> 10Signed-off-by :Nagaraju Mekala <nmekala@xilix.com>
11 Ajit Agarwal <ajitkum@xilinx.com> 11 Ajit Agarwal <ajitkum@xilinx.com>
@@ -16,10 +16,10 @@ Signed-off-by :Nagaraju Mekala <nmekala@xilix.com>
16 create mode 100644 gcc/testsuite/gcc.target/microblaze/others/long.c 16 create mode 100644 gcc/testsuite/gcc.target/microblaze/others/long.c
17 17
18diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc 18diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc
19index bd394c411b8..7c648cda1b2 100644 19index a58a5b2a1b0..af5c2371740 100644
20--- a/gcc/config/microblaze/microblaze.cc 20--- a/gcc/config/microblaze/microblaze.cc
21+++ b/gcc/config/microblaze/microblaze.cc 21+++ b/gcc/config/microblaze/microblaze.cc
22@@ -2453,14 +2453,16 @@ print_operand (FILE * file, rtx op, int letter) 22@@ -2458,14 +2458,16 @@ print_operand (FILE * file, rtx op, int letter)
23 else if (letter == 'h' || letter == 'j') 23 else if (letter == 'h' || letter == 'j')
24 { 24 {
25 long val[2]; 25 long val[2];
@@ -54,5 +54,5 @@ index 00000000000..b6b55d5ad65
54+/* { dg-final { scan-assembler "addik\tr(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r0,0x00000000" } } */ 54+/* { dg-final { scan-assembler "addik\tr(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r0,0x00000000" } } */
55+/* { dg-final { scan-assembler "addik\tr(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r0,0xf0000000" } } */ 55+/* { dg-final { scan-assembler "addik\tr(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r0,0xf0000000" } } */
56-- 56--
572.37.1 (Apple Git-137.1) 572.34.1
58 58
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0022-Fix-microblaze-Fix-internal-compiler-error-with-msma.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0022-Fix-internal-compiler-error-with-msmall-divides-This.patch
index 332db5d3..599bd71e 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0022-Fix-microblaze-Fix-internal-compiler-error-with-msma.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0022-Fix-internal-compiler-error-with-msmall-divides-This.patch
@@ -1,11 +1,11 @@
1From cd60ea1bd88ac47856ac66266a0771478ac73bad Mon Sep 17 00:00:00 2001 1From a88796930d8ef1b97056217ffdcc9f86326cdc98 Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Tue, 13 Sep 2022 11:58:14 +0530 3Date: Tue, 13 Sep 2022 11:58:14 +0530
4Subject: [PATCH 22/53] [Fix, microblaze]: Fix internal compiler error with 4Subject: [PATCH 22/54] Fix internal compiler error with msmall-divides This
5 msmall-divides This patch will fix the internal error 5 patch will fix the internal error microblaze_expand_divide function which
6 microblaze_expand_divide function which come of rtx PLUS where the 6 come of rtx PLUS where the mem_rtx is of type SI and the operand is of type
7 mem_rtx is of type SI and the operand is of type QImode. This patch 7 QImode. This patch modifies the mem_rtx as QImode and Plus as QImode to fix
8 modifies the mem_rtx as QImode and Plus as QImode to fix the error. 8 the error.
9 9
10 Signed-off-by :Nagaraju Mekala <nmekala@xilix.com> 10 Signed-off-by :Nagaraju Mekala <nmekala@xilix.com>
11 Ajit Agarwal <ajitkum@xilinx.com> 11 Ajit Agarwal <ajitkum@xilinx.com>
@@ -14,10 +14,10 @@ Subject: [PATCH 22/53] [Fix, microblaze]: Fix internal compiler error with
14 1 file changed, 1 insertion(+), 1 deletion(-) 14 1 file changed, 1 insertion(+), 1 deletion(-)
15 15
16diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc 16diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc
17index 7c648cda1b2..907c0afa9b8 100644 17index af5c2371740..4967d6a0133 100644
18--- a/gcc/config/microblaze/microblaze.cc 18--- a/gcc/config/microblaze/microblaze.cc
19+++ b/gcc/config/microblaze/microblaze.cc 19+++ b/gcc/config/microblaze/microblaze.cc
20@@ -3768,7 +3768,7 @@ microblaze_expand_divide (rtx operands[]) 20@@ -3777,7 +3777,7 @@ microblaze_expand_divide (rtx operands[])
21 emit_insn (gen_ashlsi3_bshift (regt1, operands[1], GEN_INT(4))); 21 emit_insn (gen_ashlsi3_bshift (regt1, operands[1], GEN_INT(4)));
22 emit_insn (gen_addsi3 (regt1, regt1, operands[2])); 22 emit_insn (gen_addsi3 (regt1, regt1, operands[2]));
23 mem_rtx = gen_rtx_MEM (QImode, 23 mem_rtx = gen_rtx_MEM (QImode,
@@ -27,5 +27,5 @@ index 7c648cda1b2..907c0afa9b8 100644
27 insn = emit_insn (gen_zero_extendqisi2(operands[0],mem_rtx)); 27 insn = emit_insn (gen_zero_extendqisi2(operands[0],mem_rtx));
28 jump = emit_jump_insn_after (gen_jump (div_end_label), insn); 28 jump = emit_jump_insn_after (gen_jump (div_end_label), insn);
29-- 29--
302.37.1 (Apple Git-137.1) 302.34.1
31 31
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0023-patch-microblaze-Fix-the-calculation-of-high-word-in.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0023-Fix-the-calculation-of-high-word-in-a-long-long-64-b.patch
index 47e13fa6..65f283ad 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0023-patch-microblaze-Fix-the-calculation-of-high-word-in.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0023-Fix-the-calculation-of-high-word-in-a-long-long-64-b.patch
@@ -1,8 +1,7 @@
1From b98cddb206ce84994425ede4b116365977768e37 Mon Sep 17 00:00:00 2001 1From f9871617fe69a105ebc4aa4838c682bfe40e4f2c Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Tue, 13 Sep 2022 12:03:08 +0530 3Date: Tue, 13 Sep 2022 12:03:08 +0530
4Subject: [PATCH 23/53] [patch,microblaze]: Fix the calculation of high word in 4Subject: [PATCH 23/54] Fix the calculation of high word in a long long 64-bit
5 a long long 64-bit
6 5
7 This patch will change the calculation of high word in a long long 64-bit. 6 This patch will change the calculation of high word in a long long 64-bit.
8 Earlier to this patch the high word of long long word (0xF0000000ULL) is 7 Earlier to this patch the high word of long long word (0xF0000000ULL) is
@@ -19,10 +18,10 @@ Subject: [PATCH 23/53] [patch,microblaze]: Fix the calculation of high word in
19 1 file changed, 3 deletions(-) 18 1 file changed, 3 deletions(-)
20 19
21diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc 20diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc
22index 907c0afa9b8..f75eaff4b49 100644 21index 4967d6a0133..2d516724acc 100644
23--- a/gcc/config/microblaze/microblaze.cc 22--- a/gcc/config/microblaze/microblaze.cc
24+++ b/gcc/config/microblaze/microblaze.cc 23+++ b/gcc/config/microblaze/microblaze.cc
25@@ -2469,9 +2469,6 @@ print_operand (FILE * file, rtx op, int letter) 24@@ -2474,9 +2474,6 @@ print_operand (FILE * file, rtx op, int letter)
26 { 25 {
27 val[0] = (INTVAL (op) & 0xffffffff00000000LL) >> 32; 26 val[0] = (INTVAL (op) & 0xffffffff00000000LL) >> 32;
28 val[1] = INTVAL (op) & 0x00000000ffffffffLL; 27 val[1] = INTVAL (op) & 0x00000000ffffffffLL;
@@ -33,5 +32,5 @@ index 907c0afa9b8..f75eaff4b49 100644
33 fprintf (file, "0x%8.8lx", (letter == 'h') ? val[0] : val[1]); 32 fprintf (file, "0x%8.8lx", (letter == 'h') ? val[0] : val[1]);
34 } 33 }
35-- 34--
362.37.1 (Apple Git-137.1) 352.34.1
37 36
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0024-Patch-MicroBlaze-this-patch-has-1.Fixed-the-bug-in.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0024-this-patch-has-1.Fixed-the-bug-in-version-calculatio.patch
index 8ed5ae83..0356657b 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0024-Patch-MicroBlaze-this-patch-has-1.Fixed-the-bug-in.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0024-this-patch-has-1.Fixed-the-bug-in-version-calculatio.patch
@@ -1,8 +1,8 @@
1From 89269c9b8d2047ebbc13e98c45e94746edc63de6 Mon Sep 17 00:00:00 2001 1From a8991be91d79cf0bd17b7d303a10ec5edd7408c6 Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Tue, 13 Sep 2022 12:23:54 +0530 3Date: Tue, 13 Sep 2022 12:23:54 +0530
4Subject: [PATCH 24/53] [Patch,MicroBlaze] : this patch has 1.Fixed the bug in 4Subject: [PATCH 24/54] this patch has 1.Fixed the bug in version calculation.
5 version calculation. 2.Add new bitfield instructions. 5 2.Add new bitfield instructions.
6 6
7Signed-off-by :Mahesh Bodapati <mbodapat@xilinx.com> 7Signed-off-by :Mahesh Bodapati <mbodapat@xilinx.com>
8--- 8---
@@ -12,7 +12,7 @@ Signed-off-by :Mahesh Bodapati <mbodapat@xilinx.com>
12 3 files changed, 147 insertions(+), 78 deletions(-) 12 3 files changed, 147 insertions(+), 78 deletions(-)
13 13
14diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc 14diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc
15index f75eaff4b49..3abfc834ff2 100644 15index 2d516724acc..e28ab593c3e 100644
16--- a/gcc/config/microblaze/microblaze.cc 16--- a/gcc/config/microblaze/microblaze.cc
17+++ b/gcc/config/microblaze/microblaze.cc 17+++ b/gcc/config/microblaze/microblaze.cc
18@@ -165,6 +165,9 @@ int microblaze_no_unsafe_delay; 18@@ -165,6 +165,9 @@ int microblaze_no_unsafe_delay;
@@ -89,7 +89,7 @@ index f75eaff4b49..3abfc834ff2 100644
89 /* Return truth value if a CONST_DOUBLE is ok to be a legitimate constant. */ 89 /* Return truth value if a CONST_DOUBLE is ok to be a legitimate constant. */
90 static bool 90 static bool
91 microblaze_const_double_ok (rtx op, machine_mode mode) 91 microblaze_const_double_ok (rtx op, machine_mode mode)
92@@ -1339,8 +1399,7 @@ microblaze_rtx_costs (rtx x, machine_mode mode, int outer_code ATTRIBUTE_UNUSED, 92@@ -1344,8 +1404,7 @@ microblaze_rtx_costs (rtx x, machine_mode mode, int outer_code ATTRIBUTE_UNUSED,
93 { 93 {
94 if (TARGET_BARREL_SHIFT) 94 if (TARGET_BARREL_SHIFT)
95 { 95 {
@@ -99,7 +99,7 @@ index f75eaff4b49..3abfc834ff2 100644
99 *total = COSTS_N_INSNS (1); 99 *total = COSTS_N_INSNS (1);
100 else 100 else
101 *total = COSTS_N_INSNS (2); 101 *total = COSTS_N_INSNS (2);
102@@ -1401,8 +1460,7 @@ microblaze_rtx_costs (rtx x, machine_mode mode, int outer_code ATTRIBUTE_UNUSED, 102@@ -1406,8 +1465,7 @@ microblaze_rtx_costs (rtx x, machine_mode mode, int outer_code ATTRIBUTE_UNUSED,
103 } 103 }
104 else if (!TARGET_SOFT_MUL) 104 else if (!TARGET_SOFT_MUL)
105 { 105 {
@@ -109,7 +109,7 @@ index f75eaff4b49..3abfc834ff2 100644
109 *total = COSTS_N_INSNS (1); 109 *total = COSTS_N_INSNS (1);
110 else 110 else
111 *total = COSTS_N_INSNS (3); 111 *total = COSTS_N_INSNS (3);
112@@ -1675,72 +1733,13 @@ function_arg_partial_bytes (cumulative_args_t cum_v, 112@@ -1680,72 +1738,13 @@ function_arg_partial_bytes (cumulative_args_t cum_v,
113 return 0; 113 return 0;
114 } 114 }
115 115
@@ -183,7 +183,7 @@ index f75eaff4b49..3abfc834ff2 100644
183 183
184 microblaze_section_threshold = (OPTION_SET_P (g_switch_value) 184 microblaze_section_threshold = (OPTION_SET_P (g_switch_value)
185 ? g_switch_value 185 ? g_switch_value
186@@ -1761,13 +1760,13 @@ microblaze_option_override (void) 186@@ -1766,13 +1765,13 @@ microblaze_option_override (void)
187 /* Check the MicroBlaze CPU version for any special action to be done. */ 187 /* Check the MicroBlaze CPU version for any special action to be done. */
188 if (microblaze_select_cpu == NULL) 188 if (microblaze_select_cpu == NULL)
189 microblaze_select_cpu = MICROBLAZE_DEFAULT_CPU; 189 microblaze_select_cpu = MICROBLAZE_DEFAULT_CPU;
@@ -200,7 +200,7 @@ index f75eaff4b49..3abfc834ff2 100644
200 if (ver < 0) 200 if (ver < 0)
201 { 201 {
202 /* No hardware exceptions in earlier versions. So no worries. */ 202 /* No hardware exceptions in earlier versions. So no worries. */
203@@ -1778,8 +1777,7 @@ microblaze_option_override (void) 203@@ -1783,8 +1782,7 @@ microblaze_option_override (void)
204 microblaze_pipe = MICROBLAZE_PIPE_3; 204 microblaze_pipe = MICROBLAZE_PIPE_3;
205 } 205 }
206 else if (ver == 0 206 else if (ver == 0
@@ -210,7 +210,7 @@ index f75eaff4b49..3abfc834ff2 100644
210 { 210 {
211 #if 0 211 #if 0
212 microblaze_select_flags |= (MICROBLAZE_MASK_NO_UNSAFE_DELAY); 212 microblaze_select_flags |= (MICROBLAZE_MASK_NO_UNSAFE_DELAY);
213@@ -1796,11 +1794,9 @@ microblaze_option_override (void) 213@@ -1801,11 +1799,9 @@ microblaze_option_override (void)
214 #endif 214 #endif
215 microblaze_no_unsafe_delay = 0; 215 microblaze_no_unsafe_delay = 0;
216 microblaze_pipe = MICROBLAZE_PIPE_5; 216 microblaze_pipe = MICROBLAZE_PIPE_5;
@@ -225,7 +225,7 @@ index f75eaff4b49..3abfc834ff2 100644
225 { 225 {
226 /* Pattern compares are to be turned on by default only when 226 /* Pattern compares are to be turned on by default only when
227 compiling for MB v5.00.'z'. */ 227 compiling for MB v5.00.'z'. */
228@@ -1808,7 +1804,7 @@ microblaze_option_override (void) 228@@ -1813,7 +1809,7 @@ microblaze_option_override (void)
229 } 229 }
230 } 230 }
231 231
@@ -234,7 +234,7 @@ index f75eaff4b49..3abfc834ff2 100644
234 if (ver < 0) 234 if (ver < 0)
235 { 235 {
236 if (TARGET_MULTIPLY_HIGH) 236 if (TARGET_MULTIPLY_HIGH)
237@@ -1817,7 +1813,7 @@ microblaze_option_override (void) 237@@ -1822,7 +1818,7 @@ microblaze_option_override (void)
238 "%<-mcpu=v6.00.a%> or greater"); 238 "%<-mcpu=v6.00.a%> or greater");
239 } 239 }
240 240
@@ -243,7 +243,7 @@ index f75eaff4b49..3abfc834ff2 100644
243 microblaze_has_clz = 1; 243 microblaze_has_clz = 1;
244 if (ver < 0) 244 if (ver < 0)
245 { 245 {
246@@ -1826,7 +1822,7 @@ microblaze_option_override (void) 246@@ -1831,7 +1827,7 @@ microblaze_option_override (void)
247 } 247 }
248 248
249 /* TARGET_REORDER defaults to 2 if -mxl-reorder not specified. */ 249 /* TARGET_REORDER defaults to 2 if -mxl-reorder not specified. */
@@ -252,7 +252,7 @@ index f75eaff4b49..3abfc834ff2 100644
252 if (ver < 0) 252 if (ver < 0)
253 { 253 {
254 if (TARGET_REORDER == 1) 254 if (TARGET_REORDER == 1)
255@@ -1841,7 +1837,7 @@ microblaze_option_override (void) 255@@ -1846,7 +1842,7 @@ microblaze_option_override (void)
256 "%<-mcpu=v8.30.a%>"); 256 "%<-mcpu=v8.30.a%>");
257 TARGET_REORDER = 0; 257 TARGET_REORDER = 0;
258 } 258 }
@@ -261,7 +261,7 @@ index f75eaff4b49..3abfc834ff2 100644
261 if (ver < 0) 261 if (ver < 0)
262 { 262 {
263 if (TARGET_AREA_OPTIMIZED_2) 263 if (TARGET_AREA_OPTIMIZED_2)
264@@ -1851,6 +1847,8 @@ microblaze_option_override (void) 264@@ -1856,6 +1852,8 @@ microblaze_option_override (void)
265 { 265 {
266 if (TARGET_AREA_OPTIMIZED_2) 266 if (TARGET_AREA_OPTIMIZED_2)
267 microblaze_pipe = MICROBLAZE_PIPE_8; 267 microblaze_pipe = MICROBLAZE_PIPE_8;
@@ -271,10 +271,10 @@ index f75eaff4b49..3abfc834ff2 100644
271 271
272 if (TARGET_MULTIPLY_HIGH && TARGET_SOFT_MUL) 272 if (TARGET_MULTIPLY_HIGH && TARGET_SOFT_MUL)
273diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h 273diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h
274index 640ae6ea9a3..67015058198 100644 274index e4faa9c681f..94d96bf6b5d 100644
275--- a/gcc/config/microblaze/microblaze.h 275--- a/gcc/config/microblaze/microblaze.h
276+++ b/gcc/config/microblaze/microblaze.h 276+++ b/gcc/config/microblaze/microblaze.h
277@@ -44,6 +44,7 @@ extern int microblaze_dbx_regno[]; 277@@ -44,6 +44,7 @@ extern int microblaze_debugger_regno[];
278 278
279 extern int microblaze_no_unsafe_delay; 279 extern int microblaze_no_unsafe_delay;
280 extern int microblaze_has_clz; 280 extern int microblaze_has_clz;
@@ -291,7 +291,7 @@ index 640ae6ea9a3..67015058198 100644
291 #define TARGET_SUPPORTS_PIC 1 291 #define TARGET_SUPPORTS_PIC 1
292 292
293diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md 293diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md
294index 9e9dfb1ccb0..dede4d068d3 100644 294index 7a01b28d8f0..a76287ab4fd 100644
295--- a/gcc/config/microblaze/microblaze.md 295--- a/gcc/config/microblaze/microblaze.md
296+++ b/gcc/config/microblaze/microblaze.md 296+++ b/gcc/config/microblaze/microblaze.md
297@@ -2491,4 +2491,73 @@ 297@@ -2491,4 +2491,73 @@
@@ -369,5 +369,5 @@ index 9e9dfb1ccb0..dede4d068d3 100644
369+ 369+
370 (include "sync.md") 370 (include "sync.md")
371-- 371--
3722.37.1 (Apple Git-137.1) 3722.34.1
373 373
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0025-Fixing-the-issue-with-the-builtin_alloc.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0025-Fixing-the-issue-with-the-builtin_alloc.-register-r1.patch
index 109e0686..cd286818 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0025-Fixing-the-issue-with-the-builtin_alloc.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0025-Fixing-the-issue-with-the-builtin_alloc.-register-r1.patch
@@ -1,7 +1,7 @@
1From 101f47dedd82fc09bcefd5db986e6d6b0a1761ad Mon Sep 17 00:00:00 2001 1From 85273a514d0ab3b243b947633ab46705a0d946bc Mon Sep 17 00:00:00 2001
2From: Nagaraju Mekala <nmekala@xilix.com> 2From: Nagaraju Mekala <nmekala@xilix.com>
3Date: Thu, 23 Feb 2017 17:09:04 +0530 3Date: Thu, 23 Feb 2017 17:09:04 +0530
4Subject: [PATCH 25/53] Fixing the issue with the builtin_alloc. register r18 4Subject: [PATCH 25/54] Fixing the issue with the builtin_alloc. register r18
5 was not properly handling the stack pattern which was resolved by using free 5 was not properly handling the stack pattern which was resolved by using free
6 available register 6 available register
7 7
@@ -11,7 +11,7 @@ signed-off-by:nagaraju mekala <nmekala@xilinx.com>
11 1 file changed, 4 insertions(+), 4 deletions(-) 11 1 file changed, 4 insertions(+), 4 deletions(-)
12 12
13diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md 13diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md
14index dede4d068d3..c6d8a87e9d1 100644 14index a76287ab4fd..12270f135cf 100644
15--- a/gcc/config/microblaze/microblaze.md 15--- a/gcc/config/microblaze/microblaze.md
16+++ b/gcc/config/microblaze/microblaze.md 16+++ b/gcc/config/microblaze/microblaze.md
17@@ -2075,10 +2075,10 @@ 17@@ -2075,10 +2075,10 @@
@@ -40,5 +40,5 @@ index dede4d068d3..c6d8a87e9d1 100644
40 } 40 }
41 ) 41 )
42-- 42--
432.37.1 (Apple Git-137.1) 432.34.1
44 44
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0026-Patch-Microblaze-Removed-fsqrt-generation-for-double.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0026-Removed-fsqrt-generation-for-double-values.patch
index 4f101b96..02cc5a1e 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0026-Patch-Microblaze-Removed-fsqrt-generation-for-double.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0026-Removed-fsqrt-generation-for-double-values.patch
@@ -1,15 +1,14 @@
1From b3e51ca34dc4048445b178253051ad4bbdfc5ec4 Mon Sep 17 00:00:00 2001 1From aba85eba7bc5cc19edafe54379fb1f1794dc3844 Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Mon, 4 Jun 2018 10:10:18 +0530 3Date: Mon, 4 Jun 2018 10:10:18 +0530
4Subject: [PATCH 26/53] [Patch,Microblaze] : Removed fsqrt generation for 4Subject: [PATCH 26/54] Removed fsqrt generation for double values.
5 double values.
6 5
7--- 6---
8 gcc/config/microblaze/microblaze.md | 14 -------------- 7 gcc/config/microblaze/microblaze.md | 14 --------------
9 1 file changed, 14 deletions(-) 8 1 file changed, 14 deletions(-)
10 9
11diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md 10diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md
12index c6d8a87e9d1..f23a85c7ac7 100644 11index 12270f135cf..b05f7da30b4 100644
13--- a/gcc/config/microblaze/microblaze.md 12--- a/gcc/config/microblaze/microblaze.md
14+++ b/gcc/config/microblaze/microblaze.md 13+++ b/gcc/config/microblaze/microblaze.md
15@@ -526,20 +526,6 @@ 14@@ -526,20 +526,6 @@
@@ -34,5 +33,5 @@ index c6d8a87e9d1..f23a85c7ac7 100644
34 [(set (match_operand:SI 0 "register_operand" "=d") 33 [(set (match_operand:SI 0 "register_operand" "=d")
35 (fix:SI (match_operand:SF 1 "register_operand" "d")))] 34 (fix:SI (match_operand:SF 1 "register_operand" "d")))]
36-- 35--
372.37.1 (Apple Git-137.1) 362.34.1
38 37
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0027-Patch-MicroBlaze-Intial-commit-of-64-bit-Microblaze.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0027-Intial-commit-of-64-bit-Microblaze.patch
index 2e7106d6..c998d5eb 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0027-Patch-MicroBlaze-Intial-commit-of-64-bit-Microblaze.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0027-Intial-commit-of-64-bit-Microblaze.patch
@@ -1,7 +1,7 @@
1From cf9ab9693d02212e1a49465e55d759a01acc507a Mon Sep 17 00:00:00 2001 1From dd3eee641d2bf28216bf02f324cf8b81d4a61e43 Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Tue, 13 Sep 2022 13:56:52 +0530 3Date: Tue, 13 Sep 2022 13:56:52 +0530
4Subject: [PATCH 27/53] [Patch,MicroBlaze]: Intial commit of 64-bit Microblaze 4Subject: [PATCH 27/54] Intial commit of 64-bit Microblaze
5 5
6 Conflicts: 6 Conflicts:
7 gcc/config/microblaze/microblaze.md 7 gcc/config/microblaze/microblaze.md
@@ -16,7 +16,7 @@ Subject: [PATCH 27/53] [Patch,MicroBlaze]: Intial commit of 64-bit Microblaze
16 7 files changed, 456 insertions(+), 30 deletions(-) 16 7 files changed, 456 insertions(+), 30 deletions(-)
17 17
18diff --git a/gcc/config/microblaze/constraints.md b/gcc/config/microblaze/constraints.md 18diff --git a/gcc/config/microblaze/constraints.md b/gcc/config/microblaze/constraints.md
19index a8934d305ee..2133650147e 100644 19index aae4be73ae3..26742d34980 100644
20--- a/gcc/config/microblaze/constraints.md 20--- a/gcc/config/microblaze/constraints.md
21+++ b/gcc/config/microblaze/constraints.md 21+++ b/gcc/config/microblaze/constraints.md
22@@ -52,6 +52,12 @@ 22@@ -52,6 +52,12 @@
@@ -33,7 +33,7 @@ index a8934d305ee..2133650147e 100644
33 33
34 (define_constraint "G" 34 (define_constraint "G"
35diff --git a/gcc/config/microblaze/microblaze-protos.h b/gcc/config/microblaze/microblaze-protos.h 35diff --git a/gcc/config/microblaze/microblaze-protos.h b/gcc/config/microblaze/microblaze-protos.h
36index 848cd509003..7f575c2adec 100644 36index 41557af0f3c..0e9f783c4a4 100644
37--- a/gcc/config/microblaze/microblaze-protos.h 37--- a/gcc/config/microblaze/microblaze-protos.h
38+++ b/gcc/config/microblaze/microblaze-protos.h 38+++ b/gcc/config/microblaze/microblaze-protos.h
39@@ -36,6 +36,7 @@ extern void microblaze_expand_divide (rtx *); 39@@ -36,6 +36,7 @@ extern void microblaze_expand_divide (rtx *);
@@ -45,10 +45,10 @@ index 848cd509003..7f575c2adec 100644
45 extern void print_operand (FILE *, rtx, int); 45 extern void print_operand (FILE *, rtx, int);
46 extern void print_operand_address (FILE *, rtx); 46 extern void print_operand_address (FILE *, rtx);
47diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc 47diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc
48index 3abfc834ff2..1ac889041b8 100644 48index e28ab593c3e..7975bc182f2 100644
49--- a/gcc/config/microblaze/microblaze.cc 49--- a/gcc/config/microblaze/microblaze.cc
50+++ b/gcc/config/microblaze/microblaze.cc 50+++ b/gcc/config/microblaze/microblaze.cc
51@@ -3433,11 +3433,11 @@ microblaze_expand_move (machine_mode mode, rtx operands[]) 51@@ -3438,11 +3438,11 @@ microblaze_expand_move (machine_mode mode, rtx operands[])
52 op0 = operands[0]; 52 op0 = operands[0];
53 op1 = operands[1]; 53 op1 = operands[1];
54 54
@@ -63,7 +63,7 @@ index 3abfc834ff2..1ac889041b8 100644
63 emit_move_insn (op0, temp); 63 emit_move_insn (op0, temp);
64 return true; 64 return true;
65 } 65 }
66@@ -3502,12 +3502,12 @@ microblaze_expand_move (machine_mode mode, rtx operands[]) 66@@ -3511,12 +3511,12 @@ microblaze_expand_move (machine_mode mode, rtx operands[])
67 && (flag_pic == 2 || microblaze_tls_symbol_p (p0) 67 && (flag_pic == 2 || microblaze_tls_symbol_p (p0)
68 || !SMALL_INT (p1))))) 68 || !SMALL_INT (p1)))))
69 { 69 {
@@ -78,7 +78,7 @@ index 3abfc834ff2..1ac889041b8 100644
78 return true; 78 return true;
79 } 79 }
80 } 80 }
81@@ -3638,7 +3638,7 @@ microblaze_expand_conditional_branch (machine_mode mode, rtx operands[]) 81@@ -3647,7 +3647,7 @@ microblaze_expand_conditional_branch (machine_mode mode, rtx operands[])
82 rtx cmp_op0 = operands[1]; 82 rtx cmp_op0 = operands[1];
83 rtx cmp_op1 = operands[2]; 83 rtx cmp_op1 = operands[2];
84 rtx label1 = operands[3]; 84 rtx label1 = operands[3];
@@ -87,7 +87,7 @@ index 3abfc834ff2..1ac889041b8 100644
87 rtx condition; 87 rtx condition;
88 88
89 gcc_assert ((GET_CODE (cmp_op0) == REG) || (GET_CODE (cmp_op0) == SUBREG)); 89 gcc_assert ((GET_CODE (cmp_op0) == REG) || (GET_CODE (cmp_op0) == SUBREG));
90@@ -3647,23 +3647,36 @@ microblaze_expand_conditional_branch (machine_mode mode, rtx operands[]) 90@@ -3656,23 +3656,36 @@ microblaze_expand_conditional_branch (machine_mode mode, rtx operands[])
91 if (cmp_op1 == const0_rtx) 91 if (cmp_op1 == const0_rtx)
92 { 92 {
93 comp_reg = cmp_op0; 93 comp_reg = cmp_op0;
@@ -130,7 +130,7 @@ index 3abfc834ff2..1ac889041b8 100644
130 } 130 }
131 } 131 }
132 132
133@@ -3674,7 +3687,7 @@ microblaze_expand_conditional_branch_reg (machine_mode mode, rtx operands[]) 133@@ -3683,7 +3696,7 @@ microblaze_expand_conditional_branch_reg (machine_mode mode, rtx operands[])
134 rtx cmp_op0 = operands[1]; 134 rtx cmp_op0 = operands[1];
135 rtx cmp_op1 = operands[2]; 135 rtx cmp_op1 = operands[2];
136 rtx label1 = operands[3]; 136 rtx label1 = operands[3];
@@ -139,7 +139,7 @@ index 3abfc834ff2..1ac889041b8 100644
139 rtx condition; 139 rtx condition;
140 140
141 gcc_assert ((GET_CODE (cmp_op0) == REG) 141 gcc_assert ((GET_CODE (cmp_op0) == REG)
142@@ -3685,30 +3698,63 @@ microblaze_expand_conditional_branch_reg (machine_mode mode, rtx operands[]) 142@@ -3694,30 +3707,63 @@ microblaze_expand_conditional_branch_reg (machine_mode mode, rtx operands[])
143 { 143 {
144 comp_reg = cmp_op0; 144 comp_reg = cmp_op0;
145 condition = gen_rtx_fmt_ee (signed_condition (code), 145 condition = gen_rtx_fmt_ee (signed_condition (code),
@@ -215,7 +215,7 @@ index 3abfc834ff2..1ac889041b8 100644
215 } 215 }
216 } 216 }
217 217
218@@ -3725,6 +3771,19 @@ microblaze_expand_conditional_branch_sf (rtx operands[]) 218@@ -3734,6 +3780,19 @@ microblaze_expand_conditional_branch_sf (rtx operands[])
219 emit_jump_insn (gen_condjump (condition, operands[3])); 219 emit_jump_insn (gen_condjump (condition, operands[3]));
220 } 220 }
221 221
@@ -236,7 +236,7 @@ index 3abfc834ff2..1ac889041b8 100644
236 236
237 static bool 237 static bool
238diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h 238diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h
239index 67015058198..885abc6e5a1 100644 239index 94d96bf6b5d..f35f7075ce3 100644
240--- a/gcc/config/microblaze/microblaze.h 240--- a/gcc/config/microblaze/microblaze.h
241+++ b/gcc/config/microblaze/microblaze.h 241+++ b/gcc/config/microblaze/microblaze.h
242@@ -102,6 +102,7 @@ extern enum pipeline_type microblaze_pipe; 242@@ -102,6 +102,7 @@ extern enum pipeline_type microblaze_pipe;
@@ -265,7 +265,7 @@ index 67015058198..885abc6e5a1 100644
265 #define FLOAT_TYPE_SIZE 32 265 #define FLOAT_TYPE_SIZE 32
266 #define DOUBLE_TYPE_SIZE 64 266 #define DOUBLE_TYPE_SIZE 64
267diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md 267diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md
268index f23a85c7ac7..40711fe224b 100644 268index b05f7da30b4..3f572fe2351 100644
269--- a/gcc/config/microblaze/microblaze.md 269--- a/gcc/config/microblaze/microblaze.md
270+++ b/gcc/config/microblaze/microblaze.md 270+++ b/gcc/config/microblaze/microblaze.md
271@@ -497,7 +497,6 @@ 271@@ -497,7 +497,6 @@
@@ -747,7 +747,7 @@ index f23a85c7ac7..40711fe224b 100644
747 ;; Unconditional branches 747 ;; Unconditional branches
748 ;;---------------------------------------------------------------- 748 ;;----------------------------------------------------------------
749diff --git a/gcc/config/microblaze/microblaze.opt b/gcc/config/microblaze/microblaze.opt 749diff --git a/gcc/config/microblaze/microblaze.opt b/gcc/config/microblaze/microblaze.opt
750index cc009363f87..10910dbb83f 100644 750index 37aaaf9ffda..96615a6d2c4 100644
751--- a/gcc/config/microblaze/microblaze.opt 751--- a/gcc/config/microblaze/microblaze.opt
752+++ b/gcc/config/microblaze/microblaze.opt 752+++ b/gcc/config/microblaze/microblaze.opt
753@@ -136,4 +136,9 @@ Target 753@@ -136,4 +136,9 @@ Target
@@ -780,5 +780,5 @@ index 7e2fc5dcef8..4c25cfe15e7 100644
780 # Extra files 780 # Extra files
781 microblaze-c.o: $(srcdir)/config/microblaze/microblaze-c.cc \ 781 microblaze-c.o: $(srcdir)/config/microblaze/microblaze-c.cc \
782-- 782--
7832.37.1 (Apple Git-137.1) 7832.34.1
784 784
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0028-Intial-commit-for-64bit-MB-sources.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0028-Intial-commit-for-64bit-MB-sources.-Need-to-cleanup-.patch
index 1ffa79cb..58bb6fd8 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0028-Intial-commit-for-64bit-MB-sources.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0028-Intial-commit-for-64bit-MB-sources.-Need-to-cleanup-.patch
@@ -1,8 +1,8 @@
1From da40b160857d0b6a56b6f6c9c81d61dabb5255db Mon Sep 17 00:00:00 2001 1From fcec4be11de1c646bdcd6dcfc3844b7deb42898e Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Tue, 13 Sep 2022 14:38:48 +0530 3Date: Tue, 13 Sep 2022 14:38:48 +0530
4Subject: [PATCH 28/53] Intial commit for 64bit-MB sources. Need to cleanup 4Subject: [PATCH 28/54] Intial commit for 64bit-MB sources. Need to cleanup the
5 the code later. 5 code later.
6 6
7--- 7---
8 gcc/config/microblaze/constraints.md | 2 +- 8 gcc/config/microblaze/constraints.md | 2 +-
@@ -29,7 +29,7 @@ Subject: [PATCH 28/53] Intial commit for 64bit-MB sources. Need to cleanup
29 create mode 100644 libgcc/config/microblaze/umoddi3.S 29 create mode 100644 libgcc/config/microblaze/umoddi3.S
30 30
31diff --git a/gcc/config/microblaze/constraints.md b/gcc/config/microblaze/constraints.md 31diff --git a/gcc/config/microblaze/constraints.md b/gcc/config/microblaze/constraints.md
32index 2133650147e..0ced155340d 100644 32index 26742d34980..7bb1e0b4c8d 100644
33--- a/gcc/config/microblaze/constraints.md 33--- a/gcc/config/microblaze/constraints.md
34+++ b/gcc/config/microblaze/constraints.md 34+++ b/gcc/config/microblaze/constraints.md
35@@ -55,7 +55,7 @@ 35@@ -55,7 +55,7 @@
@@ -42,7 +42,7 @@ index 2133650147e..0ced155340d 100644
42 42
43 ;; Define floating point constraints 43 ;; Define floating point constraints
44diff --git a/gcc/config/microblaze/microblaze-c.cc b/gcc/config/microblaze/microblaze-c.cc 44diff --git a/gcc/config/microblaze/microblaze-c.cc b/gcc/config/microblaze/microblaze-c.cc
45index caabe99b993..ef8d2430565 100644 45index 065351ad218..af73de0709c 100644
46--- a/gcc/config/microblaze/microblaze-c.cc 46--- a/gcc/config/microblaze/microblaze-c.cc
47+++ b/gcc/config/microblaze/microblaze-c.cc 47+++ b/gcc/config/microblaze/microblaze-c.cc
48@@ -100,4 +100,10 @@ microblaze_cpp_define (cpp_reader *pfile) 48@@ -100,4 +100,10 @@ microblaze_cpp_define (cpp_reader *pfile)
@@ -57,7 +57,7 @@ index caabe99b993..ef8d2430565 100644
57+ } 57+ }
58 } 58 }
59diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc 59diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc
60index 1ac889041b8..9d3628c6816 100644 60index 7975bc182f2..46bbf8a21e7 100644
61--- a/gcc/config/microblaze/microblaze.cc 61--- a/gcc/config/microblaze/microblaze.cc
62+++ b/gcc/config/microblaze/microblaze.cc 62+++ b/gcc/config/microblaze/microblaze.cc
63@@ -384,10 +384,10 @@ simple_memory_operand (rtx op, machine_mode mode ATTRIBUTE_UNUSED) 63@@ -384,10 +384,10 @@ simple_memory_operand (rtx op, machine_mode mode ATTRIBUTE_UNUSED)
@@ -100,7 +100,7 @@ index 1ac889041b8..9d3628c6816 100644
100 info->type = ADDRESS_GOTOFF; 100 info->type = ADDRESS_GOTOFF;
101 } 101 }
102 else if (XINT (x, 1) == UNSPEC_PLT) 102 else if (XINT (x, 1) == UNSPEC_PLT)
103@@ -1303,8 +1303,16 @@ microblaze_block_move_loop (rtx dest, rtx src, HOST_WIDE_INT length) 103@@ -1308,8 +1308,16 @@ microblaze_block_move_loop (rtx dest, rtx src, HOST_WIDE_INT length)
104 emit_move_insn (dest_reg, plus_constant (Pmode, dest_reg, MAX_MOVE_BYTES)); 104 emit_move_insn (dest_reg, plus_constant (Pmode, dest_reg, MAX_MOVE_BYTES));
105 105
106 /* Emit the test & branch. */ 106 /* Emit the test & branch. */
@@ -118,7 +118,7 @@ index 1ac889041b8..9d3628c6816 100644
118 118
119 /* Mop up any left-over bytes. */ 119 /* Mop up any left-over bytes. */
120 if (leftover) 120 if (leftover)
121@@ -1634,14 +1642,20 @@ microblaze_function_arg_advance (cumulative_args_t cum_v, 121@@ -1639,14 +1647,20 @@ microblaze_function_arg_advance (cumulative_args_t cum_v,
122 break; 122 break;
123 123
124 case E_DFmode: 124 case E_DFmode:
@@ -141,7 +141,7 @@ index 1ac889041b8..9d3628c6816 100644
141 break; 141 break;
142 142
143 case E_QImode: 143 case E_QImode:
144@@ -2156,7 +2170,7 @@ compute_frame_size (HOST_WIDE_INT size) 144@@ -2161,7 +2175,7 @@ compute_frame_size (HOST_WIDE_INT size)
145 145
146 if (regno != MB_ABI_SUB_RETURN_ADDR_REGNUM) 146 if (regno != MB_ABI_SUB_RETURN_ADDR_REGNUM)
147 /* Don't account for link register. It is accounted specially below. */ 147 /* Don't account for link register. It is accounted specially below. */
@@ -150,7 +150,7 @@ index 1ac889041b8..9d3628c6816 100644
150 150
151 mask |= (1L << (regno - GP_REG_FIRST)); 151 mask |= (1L << (regno - GP_REG_FIRST));
152 } 152 }
153@@ -2425,7 +2439,7 @@ print_operand (FILE * file, rtx op, int letter) 153@@ -2430,7 +2444,7 @@ print_operand (FILE * file, rtx op, int letter)
154 154
155 if ((letter == 'M' && !WORDS_BIG_ENDIAN) 155 if ((letter == 'M' && !WORDS_BIG_ENDIAN)
156 || (letter == 'L' && WORDS_BIG_ENDIAN) || letter == 'D') 156 || (letter == 'L' && WORDS_BIG_ENDIAN) || letter == 'D')
@@ -159,7 +159,7 @@ index 1ac889041b8..9d3628c6816 100644
159 159
160 fprintf (file, "%s", reg_names[regnum]); 160 fprintf (file, "%s", reg_names[regnum]);
161 } 161 }
162@@ -2451,6 +2465,7 @@ print_operand (FILE * file, rtx op, int letter) 162@@ -2456,6 +2470,7 @@ print_operand (FILE * file, rtx op, int letter)
163 else if (letter == 'h' || letter == 'j') 163 else if (letter == 'h' || letter == 'j')
164 { 164 {
165 long val[2]; 165 long val[2];
@@ -167,7 +167,7 @@ index 1ac889041b8..9d3628c6816 100644
167 long l[2]; 167 long l[2];
168 if (code == CONST_DOUBLE) 168 if (code == CONST_DOUBLE)
169 { 169 {
170@@ -2463,12 +2478,12 @@ print_operand (FILE * file, rtx op, int letter) 170@@ -2468,12 +2483,12 @@ print_operand (FILE * file, rtx op, int letter)
171 val[0] = l[WORDS_BIG_ENDIAN != 0]; 171 val[0] = l[WORDS_BIG_ENDIAN != 0];
172 } 172 }
173 } 173 }
@@ -184,7 +184,7 @@ index 1ac889041b8..9d3628c6816 100644
184 } 184 }
185 else if (code == CONST_DOUBLE) 185 else if (code == CONST_DOUBLE)
186 { 186 {
187@@ -2662,7 +2677,10 @@ microblaze_asm_constructor (rtx symbol ATTRIBUTE_UNUSED, int priority) 187@@ -2667,7 +2682,10 @@ microblaze_asm_constructor (rtx symbol ATTRIBUTE_UNUSED, int priority)
188 188
189 switch_to_section (get_section (section, 0, NULL)); 189 switch_to_section (get_section (section, 0, NULL));
190 assemble_align (POINTER_SIZE); 190 assemble_align (POINTER_SIZE);
@@ -196,7 +196,7 @@ index 1ac889041b8..9d3628c6816 100644
196 output_addr_const (asm_out_file, symbol); 196 output_addr_const (asm_out_file, symbol);
197 fputs ("\n", asm_out_file); 197 fputs ("\n", asm_out_file);
198 } 198 }
199@@ -2685,7 +2703,10 @@ microblaze_asm_destructor (rtx symbol, int priority) 199@@ -2690,7 +2708,10 @@ microblaze_asm_destructor (rtx symbol, int priority)
200 200
201 switch_to_section (get_section (section, 0, NULL)); 201 switch_to_section (get_section (section, 0, NULL));
202 assemble_align (POINTER_SIZE); 202 assemble_align (POINTER_SIZE);
@@ -208,7 +208,7 @@ index 1ac889041b8..9d3628c6816 100644
208 output_addr_const (asm_out_file, symbol); 208 output_addr_const (asm_out_file, symbol);
209 fputs ("\n", asm_out_file); 209 fputs ("\n", asm_out_file);
210 } 210 }
211@@ -2751,7 +2772,7 @@ save_restore_insns (int prologue) 211@@ -2756,7 +2777,7 @@ save_restore_insns (int prologue)
212 /* For interrupt_handlers, need to save/restore the MSR. */ 212 /* For interrupt_handlers, need to save/restore the MSR. */
213 if (microblaze_is_interrupt_variant ()) 213 if (microblaze_is_interrupt_variant ())
214 { 214 {
@@ -217,7 +217,7 @@ index 1ac889041b8..9d3628c6816 100644
217 gen_rtx_PLUS (Pmode, base_reg_rtx, 217 gen_rtx_PLUS (Pmode, base_reg_rtx,
218 GEN_INT (current_frame_info. 218 GEN_INT (current_frame_info.
219 gp_offset - 219 gp_offset -
220@@ -2759,8 +2780,8 @@ save_restore_insns (int prologue) 220@@ -2764,8 +2785,8 @@ save_restore_insns (int prologue)
221 221
222 /* Do not optimize in flow analysis. */ 222 /* Do not optimize in flow analysis. */
223 MEM_VOLATILE_P (isr_mem_rtx) = 1; 223 MEM_VOLATILE_P (isr_mem_rtx) = 1;
@@ -228,7 +228,7 @@ index 1ac889041b8..9d3628c6816 100644
228 } 228 }
229 229
230 if (microblaze_is_interrupt_variant () && !prologue) 230 if (microblaze_is_interrupt_variant () && !prologue)
231@@ -2768,8 +2789,8 @@ save_restore_insns (int prologue) 231@@ -2773,8 +2794,8 @@ save_restore_insns (int prologue)
232 emit_move_insn (isr_reg_rtx, isr_mem_rtx); 232 emit_move_insn (isr_reg_rtx, isr_mem_rtx);
233 emit_move_insn (isr_msr_rtx, isr_reg_rtx); 233 emit_move_insn (isr_msr_rtx, isr_reg_rtx);
234 /* Do not optimize in flow analysis. */ 234 /* Do not optimize in flow analysis. */
@@ -239,7 +239,7 @@ index 1ac889041b8..9d3628c6816 100644
239 } 239 }
240 240
241 for (regno = GP_REG_FIRST; regno <= GP_REG_LAST; regno++) 241 for (regno = GP_REG_FIRST; regno <= GP_REG_LAST; regno++)
242@@ -2780,9 +2801,9 @@ save_restore_insns (int prologue) 242@@ -2785,9 +2806,9 @@ save_restore_insns (int prologue)
243 /* Don't handle here. Already handled as the first register. */ 243 /* Don't handle here. Already handled as the first register. */
244 continue; 244 continue;
245 245
@@ -251,7 +251,7 @@ index 1ac889041b8..9d3628c6816 100644
251 if (microblaze_is_interrupt_variant () || save_volatiles) 251 if (microblaze_is_interrupt_variant () || save_volatiles)
252 /* Do not optimize in flow analysis. */ 252 /* Do not optimize in flow analysis. */
253 MEM_VOLATILE_P (mem_rtx) = 1; 253 MEM_VOLATILE_P (mem_rtx) = 1;
254@@ -2797,7 +2818,7 @@ save_restore_insns (int prologue) 254@@ -2802,7 +2823,7 @@ save_restore_insns (int prologue)
255 insn = emit_move_insn (reg_rtx, mem_rtx); 255 insn = emit_move_insn (reg_rtx, mem_rtx);
256 } 256 }
257 257
@@ -260,7 +260,7 @@ index 1ac889041b8..9d3628c6816 100644
260 } 260 }
261 } 261 }
262 262
263@@ -2807,8 +2828,8 @@ save_restore_insns (int prologue) 263@@ -2812,8 +2833,8 @@ save_restore_insns (int prologue)
264 emit_move_insn (isr_mem_rtx, isr_reg_rtx); 264 emit_move_insn (isr_mem_rtx, isr_reg_rtx);
265 265
266 /* Do not optimize in flow analysis. */ 266 /* Do not optimize in flow analysis. */
@@ -271,7 +271,7 @@ index 1ac889041b8..9d3628c6816 100644
271 } 271 }
272 272
273 /* Done saving and restoring */ 273 /* Done saving and restoring */
274@@ -2898,7 +2919,10 @@ microblaze_elf_asm_cdtor (rtx symbol, int priority, bool is_ctor) 274@@ -2903,7 +2924,10 @@ microblaze_elf_asm_cdtor (rtx symbol, int priority, bool is_ctor)
275 275
276 switch_to_section (s); 276 switch_to_section (s);
277 assemble_align (POINTER_SIZE); 277 assemble_align (POINTER_SIZE);
@@ -283,7 +283,7 @@ index 1ac889041b8..9d3628c6816 100644
283 output_addr_const (asm_out_file, symbol); 283 output_addr_const (asm_out_file, symbol);
284 fputs ("\n", asm_out_file); 284 fputs ("\n", asm_out_file);
285 } 285 }
286@@ -3042,10 +3066,10 @@ microblaze_expand_prologue (void) 286@@ -3047,10 +3071,10 @@ microblaze_expand_prologue (void)
287 { 287 {
288 if (offset != 0) 288 if (offset != 0)
289 ptr = gen_rtx_PLUS (Pmode, stack_pointer_rtx, GEN_INT (offset)); 289 ptr = gen_rtx_PLUS (Pmode, stack_pointer_rtx, GEN_INT (offset));
@@ -297,7 +297,7 @@ index 1ac889041b8..9d3628c6816 100644
297 } 297 }
298 } 298 }
299 299
300@@ -3054,15 +3078,23 @@ microblaze_expand_prologue (void) 300@@ -3059,15 +3083,23 @@ microblaze_expand_prologue (void)
301 rtx fsiz_rtx = GEN_INT (fsiz); 301 rtx fsiz_rtx = GEN_INT (fsiz);
302 302
303 rtx_insn *insn = NULL; 303 rtx_insn *insn = NULL;
@@ -323,7 +323,7 @@ index 1ac889041b8..9d3628c6816 100644
323 gen_rtx_PLUS (Pmode, stack_pointer_rtx, 323 gen_rtx_PLUS (Pmode, stack_pointer_rtx,
324 const0_rtx)); 324 const0_rtx));
325 325
326@@ -3070,7 +3102,7 @@ microblaze_expand_prologue (void) 326@@ -3075,7 +3107,7 @@ microblaze_expand_prologue (void)
327 /* Do not optimize in flow analysis. */ 327 /* Do not optimize in flow analysis. */
328 MEM_VOLATILE_P (mem_rtx) = 1; 328 MEM_VOLATILE_P (mem_rtx) = 1;
329 329
@@ -332,7 +332,7 @@ index 1ac889041b8..9d3628c6816 100644
332 insn = emit_move_insn (mem_rtx, reg_rtx); 332 insn = emit_move_insn (mem_rtx, reg_rtx);
333 RTX_FRAME_RELATED_P (insn) = 1; 333 RTX_FRAME_RELATED_P (insn) = 1;
334 } 334 }
335@@ -3180,12 +3212,12 @@ microblaze_expand_epilogue (void) 335@@ -3185,12 +3217,12 @@ microblaze_expand_epilogue (void)
336 if (!crtl->is_leaf || interrupt_handler) 336 if (!crtl->is_leaf || interrupt_handler)
337 { 337 {
338 mem_rtx = 338 mem_rtx =
@@ -347,7 +347,7 @@ index 1ac889041b8..9d3628c6816 100644
347 emit_move_insn (reg_rtx, mem_rtx); 347 emit_move_insn (reg_rtx, mem_rtx);
348 } 348 }
349 349
350@@ -3201,15 +3233,25 @@ microblaze_expand_epilogue (void) 350@@ -3206,15 +3238,25 @@ microblaze_expand_epilogue (void)
351 /* _restore_ registers for epilogue. */ 351 /* _restore_ registers for epilogue. */
352 save_restore_insns (0); 352 save_restore_insns (0);
353 emit_insn (gen_blockage ()); 353 emit_insn (gen_blockage ());
@@ -377,7 +377,7 @@ index 1ac889041b8..9d3628c6816 100644
377 emit_jump_insn (gen_return_internal (gen_rtx_REG (Pmode, GP_REG_FIRST + 377 emit_jump_insn (gen_return_internal (gen_rtx_REG (Pmode, GP_REG_FIRST +
378 MB_ABI_SUB_RETURN_ADDR_REGNUM))); 378 MB_ABI_SUB_RETURN_ADDR_REGNUM)));
379 } 379 }
380@@ -3376,9 +3418,14 @@ microblaze_asm_output_mi_thunk (FILE *file, tree thunk_fndecl ATTRIBUTE_UNUSED, 380@@ -3381,9 +3423,14 @@ microblaze_asm_output_mi_thunk (FILE *file, tree thunk_fndecl ATTRIBUTE_UNUSED,
381 else 381 else
382 this_rtx = gen_rtx_REG (Pmode, MB_ABI_FIRST_ARG_REGNUM); 382 this_rtx = gen_rtx_REG (Pmode, MB_ABI_FIRST_ARG_REGNUM);
383 383
@@ -394,7 +394,7 @@ index 1ac889041b8..9d3628c6816 100644
394 394
395 /* Apply the offset from the vtable, if required. */ 395 /* Apply the offset from the vtable, if required. */
396 if (vcall_offset) 396 if (vcall_offset)
397@@ -3391,7 +3438,10 @@ microblaze_asm_output_mi_thunk (FILE *file, tree thunk_fndecl ATTRIBUTE_UNUSED, 397@@ -3396,7 +3443,10 @@ microblaze_asm_output_mi_thunk (FILE *file, tree thunk_fndecl ATTRIBUTE_UNUSED,
398 rtx loc = gen_rtx_PLUS (Pmode, temp1, vcall_offset_rtx); 398 rtx loc = gen_rtx_PLUS (Pmode, temp1, vcall_offset_rtx);
399 emit_move_insn (temp1, gen_rtx_MEM (Pmode, loc)); 399 emit_move_insn (temp1, gen_rtx_MEM (Pmode, loc));
400 400
@@ -406,7 +406,7 @@ index 1ac889041b8..9d3628c6816 100644
406 } 406 }
407 407
408 /* Generate a tail call to the target function. */ 408 /* Generate a tail call to the target function. */
409@@ -3622,9 +3672,9 @@ microblaze_trampoline_init (rtx m_tramp, tree fndecl, rtx chain_value) 409@@ -3631,9 +3681,9 @@ microblaze_trampoline_init (rtx m_tramp, tree fndecl, rtx chain_value)
410 emit_block_move (m_tramp, assemble_trampoline_template (), 410 emit_block_move (m_tramp, assemble_trampoline_template (),
411 GEN_INT (6*UNITS_PER_WORD), BLOCK_OP_NORMAL); 411 GEN_INT (6*UNITS_PER_WORD), BLOCK_OP_NORMAL);
412 412
@@ -418,7 +418,7 @@ index 1ac889041b8..9d3628c6816 100644
418 emit_move_insn (mem, fnaddr); 418 emit_move_insn (mem, fnaddr);
419 } 419 }
420 420
421@@ -3648,7 +3698,7 @@ microblaze_expand_conditional_branch (machine_mode mode, rtx operands[]) 421@@ -3657,7 +3707,7 @@ microblaze_expand_conditional_branch (machine_mode mode, rtx operands[])
422 { 422 {
423 comp_reg = cmp_op0; 423 comp_reg = cmp_op0;
424 condition = gen_rtx_fmt_ee (signed_condition (code), mode, comp_reg, const0_rtx); 424 condition = gen_rtx_fmt_ee (signed_condition (code), mode, comp_reg, const0_rtx);
@@ -427,7 +427,7 @@ index 1ac889041b8..9d3628c6816 100644
427 emit_jump_insn (gen_condjump (condition, label1)); 427 emit_jump_insn (gen_condjump (condition, label1));
428 else 428 else
429 emit_jump_insn (gen_long_condjump (condition, label1)); 429 emit_jump_insn (gen_long_condjump (condition, label1));
430@@ -3767,7 +3817,7 @@ microblaze_expand_conditional_branch_sf (rtx operands[]) 430@@ -3776,7 +3826,7 @@ microblaze_expand_conditional_branch_sf (rtx operands[])
431 rtx comp_reg = gen_reg_rtx (SImode); 431 rtx comp_reg = gen_reg_rtx (SImode);
432 432
433 emit_insn (gen_cstoresf4 (comp_reg, operands[0], cmp_op0, cmp_op1)); 433 emit_insn (gen_cstoresf4 (comp_reg, operands[0], cmp_op0, cmp_op1));
@@ -436,7 +436,7 @@ index 1ac889041b8..9d3628c6816 100644
436 emit_jump_insn (gen_condjump (condition, operands[3])); 436 emit_jump_insn (gen_condjump (condition, operands[3]));
437 } 437 }
438 438
439@@ -3777,10 +3827,10 @@ microblaze_expand_conditional_branch_df (rtx operands[]) 439@@ -3786,10 +3836,10 @@ microblaze_expand_conditional_branch_df (rtx operands[])
440 rtx condition; 440 rtx condition;
441 rtx cmp_op0 = XEXP (operands[0], 0); 441 rtx cmp_op0 = XEXP (operands[0], 0);
442 rtx cmp_op1 = XEXP (operands[0], 1); 442 rtx cmp_op1 = XEXP (operands[0], 1);
@@ -449,7 +449,7 @@ index 1ac889041b8..9d3628c6816 100644
449 emit_jump_insn (gen_long_condjump (condition, operands[3])); 449 emit_jump_insn (gen_long_condjump (condition, operands[3]));
450 } 450 }
451 451
452@@ -3801,8 +3851,8 @@ microblaze_expand_divide (rtx operands[]) 452@@ -3810,8 +3860,8 @@ microblaze_expand_divide (rtx operands[])
453 { 453 {
454 /* Table lookup software divides. Works for all (nr/dr) where (0 <= nr,dr <= 15). */ 454 /* Table lookup software divides. Works for all (nr/dr) where (0 <= nr,dr <= 15). */
455 455
@@ -460,7 +460,7 @@ index 1ac889041b8..9d3628c6816 100644
460 rtx regqi = gen_reg_rtx (QImode); 460 rtx regqi = gen_reg_rtx (QImode);
461 rtx_code_label *div_label = gen_label_rtx (); 461 rtx_code_label *div_label = gen_label_rtx ();
462 rtx_code_label *div_end_label = gen_label_rtx (); 462 rtx_code_label *div_end_label = gen_label_rtx ();
463@@ -3810,17 +3860,31 @@ microblaze_expand_divide (rtx operands[]) 463@@ -3819,17 +3869,31 @@ microblaze_expand_divide (rtx operands[])
464 rtx mem_rtx; 464 rtx mem_rtx;
465 rtx ret; 465 rtx ret;
466 rtx_insn *jump, *cjump, *insn; 466 rtx_insn *jump, *cjump, *insn;
@@ -499,7 +499,7 @@ index 1ac889041b8..9d3628c6816 100644
499 mem_rtx = gen_rtx_MEM (QImode, 499 mem_rtx = gen_rtx_MEM (QImode,
500 gen_rtx_PLUS (QImode, regt1, div_table_rtx)); 500 gen_rtx_PLUS (QImode, regt1, div_table_rtx));
501 501
502@@ -3967,7 +4031,7 @@ insert_wic_for_ilb_runout (rtx_insn *first) 502@@ -3976,7 +4040,7 @@ insert_wic_for_ilb_runout (rtx_insn *first)
503 { 503 {
504 insn = 504 insn =
505 emit_insn_before (gen_iprefetch 505 emit_insn_before (gen_iprefetch
@@ -508,7 +508,7 @@ index 1ac889041b8..9d3628c6816 100644
508 before_4); 508 before_4);
509 recog_memoized (insn); 509 recog_memoized (insn);
510 INSN_LOCATION (insn) = INSN_LOCATION (before_4); 510 INSN_LOCATION (insn) = INSN_LOCATION (before_4);
511@@ -3977,7 +4041,27 @@ insert_wic_for_ilb_runout (rtx_insn *first) 511@@ -3986,7 +4050,27 @@ insert_wic_for_ilb_runout (rtx_insn *first)
512 } 512 }
513 } 513 }
514 } 514 }
@@ -537,7 +537,7 @@ index 1ac889041b8..9d3628c6816 100644
537 /* Insert instruction prefetch instruction at the fall 537 /* Insert instruction prefetch instruction at the fall
538 through path of the function call. */ 538 through path of the function call. */
539 539
540@@ -4130,6 +4214,17 @@ microblaze_starting_frame_offset (void) 540@@ -4139,6 +4223,17 @@ microblaze_starting_frame_offset (void)
541 #undef TARGET_LRA_P 541 #undef TARGET_LRA_P
542 #define TARGET_LRA_P hook_bool_void_false 542 #define TARGET_LRA_P hook_bool_void_false
543 543
@@ -555,7 +555,7 @@ index 1ac889041b8..9d3628c6816 100644
555 #undef TARGET_FRAME_POINTER_REQUIRED 555 #undef TARGET_FRAME_POINTER_REQUIRED
556 #define TARGET_FRAME_POINTER_REQUIRED microblaze_frame_pointer_required 556 #define TARGET_FRAME_POINTER_REQUIRED microblaze_frame_pointer_required
557 557
558@@ -4139,6 +4234,9 @@ microblaze_starting_frame_offset (void) 558@@ -4148,6 +4243,9 @@ microblaze_starting_frame_offset (void)
559 #undef TARGET_TRAMPOLINE_INIT 559 #undef TARGET_TRAMPOLINE_INIT
560 #define TARGET_TRAMPOLINE_INIT microblaze_trampoline_init 560 #define TARGET_TRAMPOLINE_INIT microblaze_trampoline_init
561 561
@@ -566,7 +566,7 @@ index 1ac889041b8..9d3628c6816 100644
566 #define TARGET_PROMOTE_FUNCTION_MODE default_promote_function_mode_always_promote 566 #define TARGET_PROMOTE_FUNCTION_MODE default_promote_function_mode_always_promote
567 567
568diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h 568diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h
569index 885abc6e5a1..5f30b8ac195 100644 569index f35f7075ce3..3aee003de0d 100644
570--- a/gcc/config/microblaze/microblaze.h 570--- a/gcc/config/microblaze/microblaze.h
571+++ b/gcc/config/microblaze/microblaze.h 571+++ b/gcc/config/microblaze/microblaze.h
572@@ -173,7 +173,6 @@ extern enum pipeline_type microblaze_pipe; 572@@ -173,7 +173,6 @@ extern enum pipeline_type microblaze_pipe;
@@ -735,7 +735,7 @@ index 885abc6e5a1..5f30b8ac195 100644
735 /* Default to -G 8 */ 735 /* Default to -G 8 */
736 #ifndef MICROBLAZE_DEFAULT_GVALUE 736 #ifndef MICROBLAZE_DEFAULT_GVALUE
737diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md 737diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md
738index 40711fe224b..c99150ff0da 100644 738index 3f572fe2351..97da9aad6fd 100644
739--- a/gcc/config/microblaze/microblaze.md 739--- a/gcc/config/microblaze/microblaze.md
740+++ b/gcc/config/microblaze/microblaze.md 740+++ b/gcc/config/microblaze/microblaze.md
741@@ -26,6 +26,7 @@ 741@@ -26,6 +26,7 @@
@@ -1795,7 +1795,7 @@ index 4c25cfe15e7..965132b3513 100644
1795 MULTILIB_EXCEPTIONS += mxl-multiply-high/m64 1795 MULTILIB_EXCEPTIONS += mxl-multiply-high/m64
1796 MULTILIB_EXCEPTIONS += *mxl-multiply-high/mlittle-endian/m64 1796 MULTILIB_EXCEPTIONS += *mxl-multiply-high/mlittle-endian/m64
1797diff --git a/libgcc/config/microblaze/crti.S b/libgcc/config/microblaze/crti.S 1797diff --git a/libgcc/config/microblaze/crti.S b/libgcc/config/microblaze/crti.S
1798index cbbe32d5f6a..ec797e1bf17 100644 1798index 0f24adb750d..1a89a0a2ffa 100644
1799--- a/libgcc/config/microblaze/crti.S 1799--- a/libgcc/config/microblaze/crti.S
1800+++ b/libgcc/config/microblaze/crti.S 1800+++ b/libgcc/config/microblaze/crti.S
1801@@ -40,7 +40,7 @@ 1801@@ -40,7 +40,7 @@
@@ -1815,7 +1815,7 @@ index cbbe32d5f6a..ec797e1bf17 100644
1815+ addik r1, r1, -16 1815+ addik r1, r1, -16
1816 sw r15, r0, r1 1816 sw r15, r0, r1
1817diff --git a/libgcc/config/microblaze/crtn.S b/libgcc/config/microblaze/crtn.S 1817diff --git a/libgcc/config/microblaze/crtn.S b/libgcc/config/microblaze/crtn.S
1818index cb8d8ef2bfa..977b43b9436 100644 1818index d38d7ab9f98..29a004973ae 100644
1819--- a/libgcc/config/microblaze/crtn.S 1819--- a/libgcc/config/microblaze/crtn.S
1820+++ b/libgcc/config/microblaze/crtn.S 1820+++ b/libgcc/config/microblaze/crtn.S
1821@@ -33,9 +33,9 @@ 1821@@ -33,9 +33,9 @@
@@ -2438,5 +2438,5 @@ index 00000000000..7f5cd23f9a1
2438+ .size __umoddi3, . - __umoddi3 2438+ .size __umoddi3, . - __umoddi3
2439+#endif 2439+#endif
2440-- 2440--
24412.37.1 (Apple Git-137.1) 24412.34.1
2442 2442
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0029-Patch-MicroBlaze-re-arrangement-of-the-compare-branc.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0029-re-arrangement-of-the-compare-branches.patch
index 26cdfca2..448e850f 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0029-Patch-MicroBlaze-re-arrangement-of-the-compare-branc.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0029-re-arrangement-of-the-compare-branches.patch
@@ -1,8 +1,7 @@
1From 10d5e7d6cad5e7349b88b7469eb5ae20d87eb908 Mon Sep 17 00:00:00 2001 1From 870bfd716fcddeb72660f3176fb2a68aaa5ecc0e Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Tue, 13 Sep 2022 14:45:15 +0530 3Date: Tue, 13 Sep 2022 14:45:15 +0530
4Subject: [PATCH 29/53] [Patch,MicroBlaze] : re-arrangement of the compare 4Subject: [PATCH 29/54] re-arrangement of the compare branches
5 branches
6 5
7--- 6---
8 gcc/config/microblaze/microblaze.cc | 28 ++---- 7 gcc/config/microblaze/microblaze.cc | 28 ++----
@@ -10,10 +9,10 @@ Subject: [PATCH 29/53] [Patch,MicroBlaze] : re-arrangement of the compare
10 2 files changed, 73 insertions(+), 96 deletions(-) 9 2 files changed, 73 insertions(+), 96 deletions(-)
11 10
12diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc 11diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc
13index 9d3628c6816..4792e3ba370 100644 12index 46bbf8a21e7..de3c95a005e 100644
14--- a/gcc/config/microblaze/microblaze.cc 13--- a/gcc/config/microblaze/microblaze.cc
15+++ b/gcc/config/microblaze/microblaze.cc 14+++ b/gcc/config/microblaze/microblaze.cc
16@@ -3698,11 +3698,7 @@ microblaze_expand_conditional_branch (machine_mode mode, rtx operands[]) 15@@ -3707,11 +3707,7 @@ microblaze_expand_conditional_branch (machine_mode mode, rtx operands[])
17 { 16 {
18 comp_reg = cmp_op0; 17 comp_reg = cmp_op0;
19 condition = gen_rtx_fmt_ee (signed_condition (code), mode, comp_reg, const0_rtx); 18 condition = gen_rtx_fmt_ee (signed_condition (code), mode, comp_reg, const0_rtx);
@@ -26,7 +25,7 @@ index 9d3628c6816..4792e3ba370 100644
26 } 25 }
27 26
28 else if (code == EQ || code == NE) 27 else if (code == EQ || code == NE)
29@@ -3713,10 +3709,7 @@ microblaze_expand_conditional_branch (machine_mode mode, rtx operands[]) 28@@ -3722,10 +3718,7 @@ microblaze_expand_conditional_branch (machine_mode mode, rtx operands[])
30 else 29 else
31 emit_insn (gen_xordi3 (comp_reg, cmp_op0, cmp_op1)); 30 emit_insn (gen_xordi3 (comp_reg, cmp_op0, cmp_op1));
32 condition = gen_rtx_fmt_ee (signed_condition (code), mode, comp_reg, const0_rtx); 31 condition = gen_rtx_fmt_ee (signed_condition (code), mode, comp_reg, const0_rtx);
@@ -38,7 +37,7 @@ index 9d3628c6816..4792e3ba370 100644
38 } 37 }
39 else 38 else
40 { 39 {
41@@ -3749,10 +3742,7 @@ microblaze_expand_conditional_branch_reg (machine_mode mode, rtx operands[]) 40@@ -3758,10 +3751,7 @@ microblaze_expand_conditional_branch_reg (machine_mode mode, rtx operands[])
42 comp_reg = cmp_op0; 41 comp_reg = cmp_op0;
43 condition = gen_rtx_fmt_ee (signed_condition (code), 42 condition = gen_rtx_fmt_ee (signed_condition (code),
44 mode, comp_reg, const0_rtx); 43 mode, comp_reg, const0_rtx);
@@ -50,7 +49,7 @@ index 9d3628c6816..4792e3ba370 100644
50 } 49 }
51 else if (code == EQ) 50 else if (code == EQ)
52 { 51 {
53@@ -3767,10 +3757,7 @@ microblaze_expand_conditional_branch_reg (machine_mode mode, rtx operands[]) 52@@ -3776,10 +3766,7 @@ microblaze_expand_conditional_branch_reg (machine_mode mode, rtx operands[])
54 cmp_op1)); 53 cmp_op1));
55 } 54 }
56 condition = gen_rtx_EQ (mode, comp_reg, const0_rtx); 55 condition = gen_rtx_EQ (mode, comp_reg, const0_rtx);
@@ -62,7 +61,7 @@ index 9d3628c6816..4792e3ba370 100644
62 61
63 } 62 }
64 else if (code == NE) 63 else if (code == NE)
65@@ -3786,10 +3773,7 @@ microblaze_expand_conditional_branch_reg (machine_mode mode, rtx operands[]) 64@@ -3795,10 +3782,7 @@ microblaze_expand_conditional_branch_reg (machine_mode mode, rtx operands[])
66 cmp_op1)); 65 cmp_op1));
67 } 66 }
68 condition = gen_rtx_NE (mode, comp_reg, const0_rtx); 67 condition = gen_rtx_NE (mode, comp_reg, const0_rtx);
@@ -74,7 +73,7 @@ index 9d3628c6816..4792e3ba370 100644
74 } 73 }
75 else 74 else
76 { 75 {
77@@ -3831,7 +3815,7 @@ microblaze_expand_conditional_branch_df (rtx operands[]) 76@@ -3840,7 +3824,7 @@ microblaze_expand_conditional_branch_df (rtx operands[])
78 77
79 emit_insn (gen_cstoredf4 (comp_reg, operands[0], cmp_op0, cmp_op1)); 78 emit_insn (gen_cstoredf4 (comp_reg, operands[0], cmp_op0, cmp_op1));
80 condition = gen_rtx_NE (Pmode, comp_reg, const0_rtx); 79 condition = gen_rtx_NE (Pmode, comp_reg, const0_rtx);
@@ -84,7 +83,7 @@ index 9d3628c6816..4792e3ba370 100644
84 83
85 /* Implement TARGET_FRAME_POINTER_REQUIRED. */ 84 /* Implement TARGET_FRAME_POINTER_REQUIRED. */
86diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md 85diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md
87index c99150ff0da..566c53ba228 100644 86index 97da9aad6fd..31bf04e4abd 100644
88--- a/gcc/config/microblaze/microblaze.md 87--- a/gcc/config/microblaze/microblaze.md
89+++ b/gcc/config/microblaze/microblaze.md 88+++ b/gcc/config/microblaze/microblaze.md
90@@ -2268,7 +2268,27 @@ else 89@@ -2268,7 +2268,27 @@ else
@@ -265,5 +264,5 @@ index c99150ff0da..566c53ba228 100644
265 ;; Unconditional branches 264 ;; Unconditional branches
266 ;;---------------------------------------------------------------- 265 ;;----------------------------------------------------------------
267-- 266--
2682.37.1 (Apple Git-137.1) 2672.34.1
269 268
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0030-Patch-Microblaze-previous-commit-broke-the-handling-.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0030-previous-commit-broke-the-handling-of-SI-Branch-comp.patch
index 83d047cb..92951b08 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0030-Patch-Microblaze-previous-commit-broke-the-handling-.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0030-previous-commit-broke-the-handling-of-SI-Branch-comp.patch
@@ -1,15 +1,15 @@
1From af910dd71faec99838e421dd76fd5231e34bee3e Mon Sep 17 00:00:00 2001 1From e4713a382c1e6729cd3228284def9fa59da70028 Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Wed, 8 Aug 2018 17:37:26 +0530 3Date: Wed, 8 Aug 2018 17:37:26 +0530
4Subject: [PATCH 30/53] [Patch,Microblaze] : previous commit broke the 4Subject: [PATCH 30/54] previous commit broke the handling of SI Branch compare
5 handling of SI Branch compare for Microblaze 32-bit.. 5 for Microblaze 32-bit..
6 6
7--- 7---
8 gcc/config/microblaze/microblaze.md | 4 ++-- 8 gcc/config/microblaze/microblaze.md | 4 ++--
9 1 file changed, 2 insertions(+), 2 deletions(-) 9 1 file changed, 2 insertions(+), 2 deletions(-)
10 10
11diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md 11diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md
12index 566c53ba228..e54888550f6 100644 12index 31bf04e4abd..e37a7704195 100644
13--- a/gcc/config/microblaze/microblaze.md 13--- a/gcc/config/microblaze/microblaze.md
14+++ b/gcc/config/microblaze/microblaze.md 14+++ b/gcc/config/microblaze/microblaze.md
15@@ -2224,8 +2224,8 @@ else 15@@ -2224,8 +2224,8 @@ else
@@ -24,5 +24,5 @@ index 566c53ba228..e54888550f6 100644
24 (pc)))] 24 (pc)))]
25 "" 25 ""
26-- 26--
272.37.1 (Apple Git-137.1) 272.34.1
28 28
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0031-Patch-Microblaze-Support-of-multilibs-with-m64.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0031-Support-of-multilibs-with-m64.patch
index c230049c..40009bf0 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0031-Patch-Microblaze-Support-of-multilibs-with-m64.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0031-Support-of-multilibs-with-m64.patch
@@ -1,7 +1,7 @@
1From 6921698fc0acf40cb036cf71649762e7a21bf604 Mon Sep 17 00:00:00 2001 1From 0673e986a5c06cba6507e0361ebdb9cf309f6a4c Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Tue, 11 Sep 2018 13:43:48 +0530 3Date: Tue, 11 Sep 2018 13:43:48 +0530
4Subject: [PATCH 31/53] [Patch, Microblaze] : Support of multilibs with m64 ... 4Subject: [PATCH 31/54] Support of multilibs with m64 ...
5 5
6Conflicts: 6Conflicts:
7 gcc/config/microblaze/microblaze-c.c 7 gcc/config/microblaze/microblaze-c.c
@@ -14,7 +14,7 @@ signed-off-by : Mahesh Bodapati <mbodapat@xilinx.com>
14 3 files changed, 10 insertions(+), 17 deletions(-) 14 3 files changed, 10 insertions(+), 17 deletions(-)
15 15
16diff --git a/gcc/config/microblaze/microblaze-c.cc b/gcc/config/microblaze/microblaze-c.cc 16diff --git a/gcc/config/microblaze/microblaze-c.cc b/gcc/config/microblaze/microblaze-c.cc
17index ef8d2430565..4e83a84b112 100644 17index af73de0709c..c7cb139d25a 100644
18--- a/gcc/config/microblaze/microblaze-c.cc 18--- a/gcc/config/microblaze/microblaze-c.cc
19+++ b/gcc/config/microblaze/microblaze-c.cc 19+++ b/gcc/config/microblaze/microblaze-c.cc
20@@ -102,6 +102,7 @@ microblaze_cpp_define (cpp_reader *pfile) 20@@ -102,6 +102,7 @@ microblaze_cpp_define (cpp_reader *pfile)
@@ -73,5 +73,5 @@ index 35021b24b7d..8d954a49575 100644
73- $(srcdir)/config/microblaze/divsi3_table.c \ 73- $(srcdir)/config/microblaze/divsi3_table.c \
74+ $(srcdir)/config/microblaze/divsi3_table.c 74+ $(srcdir)/config/microblaze/divsi3_table.c
75-- 75--
762.37.1 (Apple Git-137.1) 762.34.1
77 77
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0032-Patch-MicroBlaze-Fixed-issues-like.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0032-Fixed-issues-like-1-Interrupt-alignment-issue-2-Sign.patch
index 36a20450..df7ef8da 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0032-Patch-MicroBlaze-Fixed-issues-like.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0032-Fixed-issues-like-1-Interrupt-alignment-issue-2-Sign.patch
@@ -1,8 +1,8 @@
1From 7f827e73dff27c764e5f475613e3e06ae546103f Mon Sep 17 00:00:00 2001 1From 63e3adfb493e225c55536e72cfbf8be70977cdc8 Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Tue, 13 Sep 2022 15:24:25 +0530 3Date: Tue, 13 Sep 2022 15:24:25 +0530
4Subject: [PATCH 32/53] [Patch,MicroBlaze]: Fixed issues like: 1 Interrupt 4Subject: [PATCH 32/54] Fixed issues like: 1 Interrupt alignment issue 2 Sign
5 alignment issue 2 Sign extension issue 5 extension issue
6 6
7--- 7---
8 gcc/config/microblaze/microblaze.cc | 16 ++++++++++------ 8 gcc/config/microblaze/microblaze.cc | 16 ++++++++++------
@@ -10,10 +10,10 @@ Subject: [PATCH 32/53] [Patch,MicroBlaze]: Fixed issues like: 1 Interrupt
10 2 files changed, 11 insertions(+), 7 deletions(-) 10 2 files changed, 11 insertions(+), 7 deletions(-)
11 11
12diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc 12diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc
13index 4792e3ba370..f1da145232a 100644 13index de3c95a005e..6fbecb43e4a 100644
14--- a/gcc/config/microblaze/microblaze.cc 14--- a/gcc/config/microblaze/microblaze.cc
15+++ b/gcc/config/microblaze/microblaze.cc 15+++ b/gcc/config/microblaze/microblaze.cc
16@@ -2178,9 +2178,14 @@ compute_frame_size (HOST_WIDE_INT size) 16@@ -2183,9 +2183,14 @@ compute_frame_size (HOST_WIDE_INT size)
17 17
18 total_size += gp_reg_size; 18 total_size += gp_reg_size;
19 19
@@ -30,7 +30,7 @@ index 4792e3ba370..f1da145232a 100644
30 30
31 /* No space to be allocated for link register in leaf functions with no other 31 /* No space to be allocated for link register in leaf functions with no other
32 stack requirements. */ 32 stack requirements. */
33@@ -2465,7 +2470,6 @@ print_operand (FILE * file, rtx op, int letter) 33@@ -2470,7 +2475,6 @@ print_operand (FILE * file, rtx op, int letter)
34 else if (letter == 'h' || letter == 'j') 34 else if (letter == 'h' || letter == 'j')
35 { 35 {
36 long val[2]; 36 long val[2];
@@ -38,7 +38,7 @@ index 4792e3ba370..f1da145232a 100644
38 long l[2]; 38 long l[2];
39 if (code == CONST_DOUBLE) 39 if (code == CONST_DOUBLE)
40 { 40 {
41@@ -2480,10 +2484,10 @@ print_operand (FILE * file, rtx op, int letter) 41@@ -2485,10 +2489,10 @@ print_operand (FILE * file, rtx op, int letter)
42 } 42 }
43 else if (code == CONST_INT || code == CONST)// || code == SYMBOL_REF ||code == LABEL_REF) 43 else if (code == CONST_INT || code == CONST)// || code == SYMBOL_REF ||code == LABEL_REF)
44 { 44 {
@@ -53,7 +53,7 @@ index 4792e3ba370..f1da145232a 100644
53 else if (code == CONST_DOUBLE) 53 else if (code == CONST_DOUBLE)
54 { 54 {
55diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md 55diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md
56index e54888550f6..4e5d21a1f4c 100644 56index e37a7704195..72c2a9a38cd 100644
57--- a/gcc/config/microblaze/microblaze.md 57--- a/gcc/config/microblaze/microblaze.md
58+++ b/gcc/config/microblaze/microblaze.md 58+++ b/gcc/config/microblaze/microblaze.md
59@@ -1096,7 +1096,7 @@ 59@@ -1096,7 +1096,7 @@
@@ -66,5 +66,5 @@ index e54888550f6..4e5d21a1f4c 100644
66 } 66 }
67 } 67 }
68-- 68--
692.37.1 (Apple Git-137.1) 692.34.1
70 70
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0033-Patch-MicroBlaze.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0033-fixed-below-issues-Floating-point-print-issues-in-64.patch
index 9c9e4dd2..cf1076ea 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0033-Patch-MicroBlaze.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0033-fixed-below-issues-Floating-point-print-issues-in-64.patch
@@ -1,9 +1,8 @@
1From 0a86428a345ed359f788a72a0e185053b598e908 Mon Sep 17 00:00:00 2001 1From 58d4d2ca4fdf90d9d21e7813a599b3491f52e34d Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Tue, 13 Sep 2022 15:28:58 +0530 3Date: Tue, 13 Sep 2022 15:28:58 +0530
4Subject: [PATCH 33/53] [Patch,MicroBlaze]: fixed below issues: - Floating 4Subject: [PATCH 33/54] fixed below issues: - Floating point print issues in
5 point print issues in 64bit mode - Dejagnu Jump related issues - 5 64bit mode - Dejagnu Jump related issues - Added dbl instruction
6 Added dbl instruction
7 6
8 Conflicts: 7 Conflicts:
9 gcc/config/microblaze/microblaze.md 8 gcc/config/microblaze/microblaze.md
@@ -16,10 +15,10 @@ Subject: [PATCH 33/53] [Patch,MicroBlaze]: fixed below issues: - Floating
16 5 files changed, 125 insertions(+), 17 deletions(-) 15 5 files changed, 125 insertions(+), 17 deletions(-)
17 16
18diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc 17diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc
19index f1da145232a..7a08390a027 100644 18index 6fbecb43e4a..965a041ea8c 100644
20--- a/gcc/config/microblaze/microblaze.cc 19--- a/gcc/config/microblaze/microblaze.cc
21+++ b/gcc/config/microblaze/microblaze.cc 20+++ b/gcc/config/microblaze/microblaze.cc
22@@ -2474,7 +2474,12 @@ print_operand (FILE * file, rtx op, int letter) 21@@ -2479,7 +2479,12 @@ print_operand (FILE * file, rtx op, int letter)
23 if (code == CONST_DOUBLE) 22 if (code == CONST_DOUBLE)
24 { 23 {
25 if (GET_MODE (op) == DFmode) 24 if (GET_MODE (op) == DFmode)
@@ -33,7 +32,7 @@ index f1da145232a..7a08390a027 100644
33 else 32 else
34 { 33 {
35 REAL_VALUE_TO_TARGET_DOUBLE (*CONST_DOUBLE_REAL_VALUE (op), l); 34 REAL_VALUE_TO_TARGET_DOUBLE (*CONST_DOUBLE_REAL_VALUE (op), l);
36@@ -3877,7 +3882,10 @@ microblaze_expand_divide (rtx operands[]) 35@@ -3886,7 +3891,10 @@ microblaze_expand_divide (rtx operands[])
37 gen_rtx_PLUS (QImode, regt1, div_table_rtx)); 36 gen_rtx_PLUS (QImode, regt1, div_table_rtx));
38 37
39 insn = emit_insn (gen_zero_extendqisi2(operands[0],mem_rtx)); 38 insn = emit_insn (gen_zero_extendqisi2(operands[0],mem_rtx));
@@ -46,7 +45,7 @@ index f1da145232a..7a08390a027 100644
46 LABEL_NUSES (div_end_label) = 1; 45 LABEL_NUSES (div_end_label) = 1;
47 emit_barrier (); 46 emit_barrier ();
48diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h 47diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h
49index 5f30b8ac195..ac4ea43a706 100644 48index 3aee003de0d..145368db8b8 100644
50--- a/gcc/config/microblaze/microblaze.h 49--- a/gcc/config/microblaze/microblaze.h
51+++ b/gcc/config/microblaze/microblaze.h 50+++ b/gcc/config/microblaze/microblaze.h
52@@ -888,10 +888,17 @@ do { \ 51@@ -888,10 +888,17 @@ do { \
@@ -68,7 +67,7 @@ index 5f30b8ac195..ac4ea43a706 100644
68 /* We need to group -lm as well, since some Newlib math functions 67 /* We need to group -lm as well, since some Newlib math functions
69 reference __errno! */ 68 reference __errno! */
70diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md 69diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md
71index 4e5d21a1f4c..5a950b49591 100644 70index 72c2a9a38cd..b3d265d9941 100644
72--- a/gcc/config/microblaze/microblaze.md 71--- a/gcc/config/microblaze/microblaze.md
73+++ b/gcc/config/microblaze/microblaze.md 72+++ b/gcc/config/microblaze/microblaze.md
74@@ -527,6 +527,15 @@ 73@@ -527,6 +527,15 @@
@@ -229,7 +228,7 @@ index 4e5d21a1f4c..5a950b49591 100644
229 "" 228 ""
230 "mfs\t%0,rpc\n\taddik\t%0,%0,_GLOBAL_OFFSET_TABLE_+8" 229 "mfs\t%0,rpc\n\taddik\t%0,%0,_GLOBAL_OFFSET_TABLE_+8"
231diff --git a/libgcc/config/microblaze/crti.S b/libgcc/config/microblaze/crti.S 230diff --git a/libgcc/config/microblaze/crti.S b/libgcc/config/microblaze/crti.S
232index ec797e1bf17..15ebe68c277 100644 231index 1a89a0a2ffa..7cf5664880b 100644
233--- a/libgcc/config/microblaze/crti.S 232--- a/libgcc/config/microblaze/crti.S
234+++ b/libgcc/config/microblaze/crti.S 233+++ b/libgcc/config/microblaze/crti.S
235@@ -33,11 +33,32 @@ 234@@ -33,11 +33,32 @@
@@ -272,7 +271,7 @@ index ec797e1bf17..15ebe68c277 100644
272 sw r15, r0, r1 271 sw r15, r0, r1
273+#endif 272+#endif
274diff --git a/libgcc/config/microblaze/crtn.S b/libgcc/config/microblaze/crtn.S 273diff --git a/libgcc/config/microblaze/crtn.S b/libgcc/config/microblaze/crtn.S
275index 977b43b9436..9de3d4de13c 100644 274index 29a004973ae..9697b247b6c 100644
276--- a/libgcc/config/microblaze/crtn.S 275--- a/libgcc/config/microblaze/crtn.S
277+++ b/libgcc/config/microblaze/crtn.S 276+++ b/libgcc/config/microblaze/crtn.S
278@@ -29,7 +29,19 @@ 277@@ -29,7 +29,19 @@
@@ -301,5 +300,5 @@ index 977b43b9436..9de3d4de13c 100644
301 addik r1, r1, 16 300 addik r1, r1, 16
302+#endif 301+#endif
303-- 302--
3042.37.1 (Apple Git-137.1) 3032.34.1
305 304
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0034-Added-double-arith-instructions.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0034-Added-double-arith-instructions-Fixed-prologue-stack.patch
index 7bd3001d..ab50b599 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0034-Added-double-arith-instructions.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0034-Added-double-arith-instructions-Fixed-prologue-stack.patch
@@ -1,7 +1,7 @@
1From 80c16e39bdf8643184c353e34f146dc8601c2c1e Mon Sep 17 00:00:00 2001 1From 924a756b5c9edc5d626f68323f67ced2800c75ff Mon Sep 17 00:00:00 2001
2From: Nagaraju Mekala <nmekala@xilix.com> 2From: Nagaraju Mekala <nmekala@xilix.com>
3Date: Tue, 9 Oct 2018 10:07:08 +0530 3Date: Tue, 9 Oct 2018 10:07:08 +0530
4Subject: [PATCH 34/53] -Added double arith instructions -Fixed prologue stack 4Subject: [PATCH 34/54] -Added double arith instructions -Fixed prologue stack
5 pointer decrement issue 5 pointer decrement issue
6 6
7--- 7---
@@ -10,7 +10,7 @@ Subject: [PATCH 34/53] -Added double arith instructions -Fixed prologue stack
10 2 files changed, 76 insertions(+), 9 deletions(-) 10 2 files changed, 76 insertions(+), 9 deletions(-)
11 11
12diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md 12diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md
13index 5a950b49591..5506aee7be5 100644 13index b3d265d9941..0f769f320b2 100644
14--- a/gcc/config/microblaze/microblaze.md 14--- a/gcc/config/microblaze/microblaze.md
15+++ b/gcc/config/microblaze/microblaze.md 15+++ b/gcc/config/microblaze/microblaze.md
16@@ -527,6 +527,66 @@ 16@@ -527,6 +527,66 @@
@@ -131,5 +131,5 @@ index 47b869b9303..3522afd4831 100644
131 MULTILIB_EXCEPTIONS += *mlittle-endian/mxl-multiply-high mxl-multiply-high 131 MULTILIB_EXCEPTIONS += *mlittle-endian/mxl-multiply-high mxl-multiply-high
132 MULTILIB_EXCEPTIONS += *m64/mxl-barrel-shift/mlittle-endian/mxl-multiply-high 132 MULTILIB_EXCEPTIONS += *m64/mxl-barrel-shift/mlittle-endian/mxl-multiply-high
133-- 133--
1342.37.1 (Apple Git-137.1) 1342.34.1
135 135
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0035-Fixed-the-issue-in-the-delay-slot-with-swap-instruct.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0035-Fixed-the-issue-in-the-delay-slot-with-swap-instruct.patch
index 89018aae..589ca998 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0035-Fixed-the-issue-in-the-delay-slot-with-swap-instruct.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0035-Fixed-the-issue-in-the-delay-slot-with-swap-instruct.patch
@@ -1,7 +1,7 @@
1From 455216291580ca22767433eec11941c5f2471892 Mon Sep 17 00:00:00 2001 1From 3ebc7f9a11d66843982544cd0f88f35cc4defb83 Mon Sep 17 00:00:00 2001
2From: Nagaraju Mekala <nmekala@xilix.com> 2From: Nagaraju Mekala <nmekala@xilix.com>
3Date: Fri, 12 Oct 2018 16:07:36 +0530 3Date: Fri, 12 Oct 2018 16:07:36 +0530
4Subject: [PATCH 35/53] Fixed the issue in the delay slot with swap 4Subject: [PATCH 35/54] Fixed the issue in the delay slot with swap
5 instructions 5 instructions
6 6
7--- 7---
@@ -9,7 +9,7 @@ Subject: [PATCH 35/53] Fixed the issue in the delay slot with swap
9 1 file changed, 6 insertions(+) 9 1 file changed, 6 insertions(+)
10 10
11diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md 11diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md
12index 5506aee7be5..4a372f8fd3f 100644 12index 0f769f320b2..6ada55ac2bc 100644
13--- a/gcc/config/microblaze/microblaze.md 13--- a/gcc/config/microblaze/microblaze.md
14+++ b/gcc/config/microblaze/microblaze.md 14+++ b/gcc/config/microblaze/microblaze.md
15@@ -443,6 +443,9 @@ 15@@ -443,6 +443,9 @@
@@ -33,5 +33,5 @@ index 5506aee7be5..4a372f8fd3f 100644
33 33
34 ;;---------------------------------------------------------------- 34 ;;----------------------------------------------------------------
35-- 35--
362.37.1 (Apple Git-137.1) 362.34.1
37 37
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0036-Fixed-the-load-store-issue-with-the-32bit-arith-libr.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0036-Fixed-the-load-store-issue-with-the-32bit-arith-libr.patch
index 0c27d69f..8431cb16 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0036-Fixed-the-load-store-issue-with-the-32bit-arith-libr.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0036-Fixed-the-load-store-issue-with-the-32bit-arith-libr.patch
@@ -1,7 +1,7 @@
1From b8c468f1bd467213083b59b54af100ee0c6dea9e Mon Sep 17 00:00:00 2001 1From 9ea2aee3599d2f1fc9d67c7a72cd7c826272a2fa Mon Sep 17 00:00:00 2001
2From: Nagaraju Mekala <nmekala@xilix.com> 2From: Nagaraju Mekala <nmekala@xilix.com>
3Date: Sat, 13 Oct 2018 21:12:43 +0530 3Date: Sat, 13 Oct 2018 21:12:43 +0530
4Subject: [PATCH 36/53] Fixed the load store issue with the 32bit arith 4Subject: [PATCH 36/54] Fixed the load store issue with the 32bit arith
5 libraries 5 libraries
6 6
7--- 7---
@@ -13,7 +13,7 @@ Subject: [PATCH 36/53] Fixed the load store issue with the 32bit arith
13 5 files changed, 98 insertions(+), 4 deletions(-) 13 5 files changed, 98 insertions(+), 4 deletions(-)
14 14
15diff --git a/libgcc/config/microblaze/divsi3.S b/libgcc/config/microblaze/divsi3.S 15diff --git a/libgcc/config/microblaze/divsi3.S b/libgcc/config/microblaze/divsi3.S
16index 14829ec6701..b464deed481 100644 16index a449fedd53e..9f04f59104e 100644
17--- a/libgcc/config/microblaze/divsi3.S 17--- a/libgcc/config/microblaze/divsi3.S
18+++ b/libgcc/config/microblaze/divsi3.S 18+++ b/libgcc/config/microblaze/divsi3.S
19@@ -41,6 +41,17 @@ 19@@ -41,6 +41,17 @@
@@ -70,7 +70,7 @@ index 14829ec6701..b464deed481 100644
70 .size __divsi3, . - __divsi3 70 .size __divsi3, . - __divsi3
71 71
72diff --git a/libgcc/config/microblaze/modsi3.S b/libgcc/config/microblaze/modsi3.S 72diff --git a/libgcc/config/microblaze/modsi3.S b/libgcc/config/microblaze/modsi3.S
73index b8f2e37809d..e0fbd91e766 100644 73index 282fabfd966..d2f9dc770e4 100644
74--- a/libgcc/config/microblaze/modsi3.S 74--- a/libgcc/config/microblaze/modsi3.S
75+++ b/libgcc/config/microblaze/modsi3.S 75+++ b/libgcc/config/microblaze/modsi3.S
76@@ -41,6 +41,17 @@ 76@@ -41,6 +41,17 @@
@@ -128,7 +128,7 @@ index b8f2e37809d..e0fbd91e766 100644
128 .size __modsi3, . - __modsi3 128 .size __modsi3, . - __modsi3
129 129
130diff --git a/libgcc/config/microblaze/mulsi3.S b/libgcc/config/microblaze/mulsi3.S 130diff --git a/libgcc/config/microblaze/mulsi3.S b/libgcc/config/microblaze/mulsi3.S
131index f48fcf8270c..657668ef826 100644 131index 3da55416964..437e2bc309e 100644
132--- a/libgcc/config/microblaze/mulsi3.S 132--- a/libgcc/config/microblaze/mulsi3.S
133+++ b/libgcc/config/microblaze/mulsi3.S 133+++ b/libgcc/config/microblaze/mulsi3.S
134@@ -41,6 +41,9 @@ 134@@ -41,6 +41,9 @@
@@ -142,7 +142,7 @@ index f48fcf8270c..657668ef826 100644
142 .frame r1,0,r15 142 .frame r1,0,r15
143 add r3,r0,r0 143 add r3,r0,r0
144diff --git a/libgcc/config/microblaze/udivsi3.S b/libgcc/config/microblaze/udivsi3.S 144diff --git a/libgcc/config/microblaze/udivsi3.S b/libgcc/config/microblaze/udivsi3.S
145index 2c321f94b09..fc6a4b5a248 100644 145index 7f3fe99eb12..496dd6794bf 100644
146--- a/libgcc/config/microblaze/udivsi3.S 146--- a/libgcc/config/microblaze/udivsi3.S
147+++ b/libgcc/config/microblaze/udivsi3.S 147+++ b/libgcc/config/microblaze/udivsi3.S
148@@ -41,6 +41,16 @@ 148@@ -41,6 +41,16 @@
@@ -197,7 +197,7 @@ index 2c321f94b09..fc6a4b5a248 100644
197 .end __udivsi3 197 .end __udivsi3
198 .size __udivsi3, . - __udivsi3 198 .size __udivsi3, . - __udivsi3
199diff --git a/libgcc/config/microblaze/umodsi3.S b/libgcc/config/microblaze/umodsi3.S 199diff --git a/libgcc/config/microblaze/umodsi3.S b/libgcc/config/microblaze/umodsi3.S
200index fbe942dc5f2..b68ba7a5ea6 100644 200index 6c7f2b3c917..fffc784b4cb 100644
201--- a/libgcc/config/microblaze/umodsi3.S 201--- a/libgcc/config/microblaze/umodsi3.S
202+++ b/libgcc/config/microblaze/umodsi3.S 202+++ b/libgcc/config/microblaze/umodsi3.S
203@@ -41,6 +41,16 @@ 203@@ -41,6 +41,16 @@
@@ -252,5 +252,5 @@ index fbe942dc5f2..b68ba7a5ea6 100644
252 .end __umodsi3 252 .end __umodsi3
253 .size __umodsi3, . - __umodsi3 253 .size __umodsi3, . - __umodsi3
254-- 254--
2552.37.1 (Apple Git-137.1) 2552.34.1
256 256
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0037-extending-the-Dwarf-support-to-64bit-Microblaze.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0037-extending-the-Dwarf-support-to-64bit-Microblaze.patch
index 2eab03ec..8b0fa208 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0037-extending-the-Dwarf-support-to-64bit-Microblaze.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0037-extending-the-Dwarf-support-to-64bit-Microblaze.patch
@@ -1,14 +1,14 @@
1From 2bc476e64f1bacc27874c152340c004c17bfd942 Mon Sep 17 00:00:00 2001 1From d2c971646ce103fa17cc32474cb942268bc59258 Mon Sep 17 00:00:00 2001
2From: Nagaraju Mekala <nmekala@xilix.com> 2From: Nagaraju Mekala <nmekala@xilix.com>
3Date: Mon, 15 Oct 2018 12:00:10 +0530 3Date: Mon, 15 Oct 2018 12:00:10 +0530
4Subject: [PATCH 37/53] extending the Dwarf support to 64bit Microblaze 4Subject: [PATCH 37/54] extending the Dwarf support to 64bit Microblaze
5 5
6--- 6---
7 gcc/config/microblaze/microblaze.h | 2 +- 7 gcc/config/microblaze/microblaze.h | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-) 8 1 file changed, 1 insertion(+), 1 deletion(-)
9 9
10diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h 10diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h
11index ac4ea43a706..56dfc2a3824 100644 11index 145368db8b8..4258dcde0d1 100644
12--- a/gcc/config/microblaze/microblaze.h 12--- a/gcc/config/microblaze/microblaze.h
13+++ b/gcc/config/microblaze/microblaze.h 13+++ b/gcc/config/microblaze/microblaze.h
14@@ -207,7 +207,7 @@ extern enum pipeline_type microblaze_pipe; 14@@ -207,7 +207,7 @@ extern enum pipeline_type microblaze_pipe;
@@ -21,5 +21,5 @@ index ac4ea43a706..56dfc2a3824 100644
21 /* Target machine storage layout */ 21 /* Target machine storage layout */
22 22
23-- 23--
242.37.1 (Apple Git-137.1) 242.34.1
25 25
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0038-fixing-the-typo-errors-in-umodsi3-file.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0038-fixing-the-typo-errors-in-umodsi3-file.patch
index 4d6be758..d7b78895 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0038-fixing-the-typo-errors-in-umodsi3-file.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0038-fixing-the-typo-errors-in-umodsi3-file.patch
@@ -1,14 +1,14 @@
1From 1e0eaa1330f24d4989af6326ce1af4f613ea0d89 Mon Sep 17 00:00:00 2001 1From 0c0b4fb378d9035f0c5f847321b543a5c2ff70e2 Mon Sep 17 00:00:00 2001
2From: Nagaraju Mekala <nmekala@xilix.com> 2From: Nagaraju Mekala <nmekala@xilix.com>
3Date: Tue, 16 Oct 2018 07:55:46 +0530 3Date: Tue, 16 Oct 2018 07:55:46 +0530
4Subject: [PATCH 38/53] fixing the typo errors in umodsi3 file 4Subject: [PATCH 38/54] fixing the typo errors in umodsi3 file
5 5
6--- 6---
7 libgcc/config/microblaze/umodsi3.S | 6 +++--- 7 libgcc/config/microblaze/umodsi3.S | 6 +++---
8 1 file changed, 3 insertions(+), 3 deletions(-) 8 1 file changed, 3 insertions(+), 3 deletions(-)
9 9
10diff --git a/libgcc/config/microblaze/umodsi3.S b/libgcc/config/microblaze/umodsi3.S 10diff --git a/libgcc/config/microblaze/umodsi3.S b/libgcc/config/microblaze/umodsi3.S
11index b68ba7a5ea6..03be6df1fc6 100644 11index fffc784b4cb..a706017c634 100644
12--- a/libgcc/config/microblaze/umodsi3.S 12--- a/libgcc/config/microblaze/umodsi3.S
13+++ b/libgcc/config/microblaze/umodsi3.S 13+++ b/libgcc/config/microblaze/umodsi3.S
14@@ -47,9 +47,9 @@ __umodsi3: 14@@ -47,9 +47,9 @@ __umodsi3:
@@ -25,5 +25,5 @@ index b68ba7a5ea6..03be6df1fc6 100644
25 __umodsi3: 25 __umodsi3:
26 .frame r1,0,r15 26 .frame r1,0,r15
27-- 27--
282.37.1 (Apple Git-137.1) 282.34.1
29 29
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0039-fixing-the-32bit-LTO-related-issue9-1014024.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0039-fixing-the-32bit-LTO-related-issue9-1014024.patch
index 1a5a0ef7..27b6efd1 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0039-fixing-the-32bit-LTO-related-issue9-1014024.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0039-fixing-the-32bit-LTO-related-issue9-1014024.patch
@@ -1,14 +1,14 @@
1From 7dbdc5ba78c9237b0a367ca61f448cf3a0277ea6 Mon Sep 17 00:00:00 2001 1From 8dfc5e76a3b0388bb5c88c5c0072256f3062f3c8 Mon Sep 17 00:00:00 2001
2From: Nagaraju Mekala <nmekala@xilix.com> 2From: Nagaraju Mekala <nmekala@xilix.com>
3Date: Wed, 17 Oct 2018 16:56:14 +0530 3Date: Wed, 17 Oct 2018 16:56:14 +0530
4Subject: [PATCH 39/53] fixing the 32bit LTO related issue9(1014024) 4Subject: [PATCH 39/54] fixing the 32bit LTO related issue9(1014024)
5 5
6--- 6---
7 gcc/config/microblaze/microblaze.h | 24 ++++++++++++++---------- 7 gcc/config/microblaze/microblaze.h | 24 ++++++++++++++----------
8 1 file changed, 14 insertions(+), 10 deletions(-) 8 1 file changed, 14 insertions(+), 10 deletions(-)
9 9
10diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h 10diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h
11index 56dfc2a3824..c48b6de0d58 100644 11index 4258dcde0d1..4d6babfe9c4 100644
12--- a/gcc/config/microblaze/microblaze.h 12--- a/gcc/config/microblaze/microblaze.h
13+++ b/gcc/config/microblaze/microblaze.h 13+++ b/gcc/config/microblaze/microblaze.h
14@@ -265,12 +265,14 @@ extern enum pipeline_type microblaze_pipe; 14@@ -265,12 +265,14 @@ extern enum pipeline_type microblaze_pipe;
@@ -64,5 +64,5 @@ index 56dfc2a3824..c48b6de0d58 100644
64 #define REGNO_OK_FOR_BASE_P(regno) microblaze_regno_ok_for_base_p ((regno), 1) 64 #define REGNO_OK_FOR_BASE_P(regno) microblaze_regno_ok_for_base_p ((regno), 1)
65 65
66-- 66--
672.37.1 (Apple Git-137.1) 672.34.1
68 68
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0040-Fixed-the-missing-stack-adjustment-in-prologue-of-mo.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0040-Fixed-the-missing-stack-adjustment-in-prologue-of-mo.patch
index 7c6f9008..35251ff8 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0040-Fixed-the-missing-stack-adjustment-in-prologue-of-mo.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0040-Fixed-the-missing-stack-adjustment-in-prologue-of-mo.patch
@@ -1,7 +1,7 @@
1From a21a41a0c574b807c7e7edaa7051a0f7395d8142 Mon Sep 17 00:00:00 2001 1From 411324e0340a32b4a84094b38e5d74f38cf391bc Mon Sep 17 00:00:00 2001
2From: Nagaraju Mekala <nmekala@xilix.com> 2From: Nagaraju Mekala <nmekala@xilix.com>
3Date: Fri, 19 Oct 2018 14:26:25 +0530 3Date: Fri, 19 Oct 2018 14:26:25 +0530
4Subject: [PATCH 40/53] Fixed the missing stack adjustment in prologue of 4Subject: [PATCH 40/54] Fixed the missing stack adjustment in prologue of
5 modsi3 function 5 modsi3 function
6 6
7--- 7---
@@ -9,7 +9,7 @@ Subject: [PATCH 40/53] Fixed the missing stack adjustment in prologue of
9 1 file changed, 1 insertion(+) 9 1 file changed, 1 insertion(+)
10 10
11diff --git a/libgcc/config/microblaze/modsi3.S b/libgcc/config/microblaze/modsi3.S 11diff --git a/libgcc/config/microblaze/modsi3.S b/libgcc/config/microblaze/modsi3.S
12index e0fbd91e766..3ec17685e51 100644 12index d2f9dc770e4..f8684db721e 100644
13--- a/libgcc/config/microblaze/modsi3.S 13--- a/libgcc/config/microblaze/modsi3.S
14+++ b/libgcc/config/microblaze/modsi3.S 14+++ b/libgcc/config/microblaze/modsi3.S
15@@ -119,6 +119,7 @@ $LaRETURN_HERE: 15@@ -119,6 +119,7 @@ $LaRETURN_HERE:
@@ -21,5 +21,5 @@ index e0fbd91e766..3ec17685e51 100644
21 .end __modsi3 21 .end __modsi3
22 .size __modsi3, . - __modsi3 22 .size __modsi3, . - __modsi3
23-- 23--
242.37.1 (Apple Git-137.1) 242.34.1
25 25
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0041-Patch-Microblaze-corrected-SPN-for-dlong-instruction.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0041-corrected-SPN-for-dlong-instruction-mapping.patch
index 9cec7be9..bb797a4a 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0041-Patch-Microblaze-corrected-SPN-for-dlong-instruction.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0041-corrected-SPN-for-dlong-instruction-mapping.patch
@@ -1,15 +1,14 @@
1From 5f799ea01bae0573a44f3fefa825861e99f4e30a Mon Sep 17 00:00:00 2001 1From b03e3a75a37213823c062bb72e4f6f470c516222 Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Wed, 24 Oct 2018 18:31:04 +0530 3Date: Wed, 24 Oct 2018 18:31:04 +0530
4Subject: [PATCH 41/53] [Patch,Microblaze] : corrected SPN for dlong 4Subject: [PATCH 41/54] corrected SPN for dlong instruction mapping.
5 instruction mapping.
6 5
7--- 6---
8 gcc/config/microblaze/microblaze.md | 4 ++-- 7 gcc/config/microblaze/microblaze.md | 4 ++--
9 1 file changed, 2 insertions(+), 2 deletions(-) 8 1 file changed, 2 insertions(+), 2 deletions(-)
10 9
11diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md 10diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md
12index 4a372f8fd3f..5a964e70d1f 100644 11index 6ada55ac2bc..36b050670b8 100644
13--- a/gcc/config/microblaze/microblaze.md 12--- a/gcc/config/microblaze/microblaze.md
14+++ b/gcc/config/microblaze/microblaze.md 13+++ b/gcc/config/microblaze/microblaze.md
15@@ -602,9 +602,9 @@ 14@@ -602,9 +602,9 @@
@@ -25,5 +24,5 @@ index 4a372f8fd3f..5a964e70d1f 100644
25 "dlong\t%0,%1" 24 "dlong\t%0,%1"
26 [(set_attr "type" "fcvt") 25 [(set_attr "type" "fcvt")
27-- 26--
282.37.1 (Apple Git-137.1) 272.34.1
29 28
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0042-fixing-the-long-long-long-mingw-toolchain-issue.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0042-fixing-the-long-long-long-mingw-toolchain-issue.patch
index 8836d0e7..cbafaafc 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0042-fixing-the-long-long-long-mingw-toolchain-issue.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0042-fixing-the-long-long-long-mingw-toolchain-issue.patch
@@ -1,7 +1,7 @@
1From 9c37b9690ec2c6290095209c039725f235537379 Mon Sep 17 00:00:00 2001 1From b926d05a0cdd32d9821a48f62eef49c5b1025f73 Mon Sep 17 00:00:00 2001
2From: Nagaraju Mekala <nmekala@xilix.com> 2From: Nagaraju Mekala <nmekala@xilix.com>
3Date: Thu, 29 Nov 2018 17:55:08 +0530 3Date: Thu, 29 Nov 2018 17:55:08 +0530
4Subject: [PATCH 42/53] fixing the long & long long mingw toolchain issue 4Subject: [PATCH 42/54] fixing the long & long long mingw toolchain issue
5 5
6--- 6---
7 gcc/config/microblaze/constraints.md | 2 +- 7 gcc/config/microblaze/constraints.md | 2 +-
@@ -9,7 +9,7 @@ Subject: [PATCH 42/53] fixing the long & long long mingw toolchain issue
9 2 files changed, 5 insertions(+), 5 deletions(-) 9 2 files changed, 5 insertions(+), 5 deletions(-)
10 10
11diff --git a/gcc/config/microblaze/constraints.md b/gcc/config/microblaze/constraints.md 11diff --git a/gcc/config/microblaze/constraints.md b/gcc/config/microblaze/constraints.md
12index 0ced155340d..3f9805dfe0a 100644 12index 7bb1e0b4c8d..fa605831bfe 100644
13--- a/gcc/config/microblaze/constraints.md 13--- a/gcc/config/microblaze/constraints.md
14+++ b/gcc/config/microblaze/constraints.md 14+++ b/gcc/config/microblaze/constraints.md
15@@ -55,7 +55,7 @@ 15@@ -55,7 +55,7 @@
@@ -22,7 +22,7 @@ index 0ced155340d..3f9805dfe0a 100644
22 22
23 ;; Define floating point constraints 23 ;; Define floating point constraints
24diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md 24diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md
25index 5a964e70d1f..f509bd5e665 100644 25index 36b050670b8..e123bf3a7d1 100644
26--- a/gcc/config/microblaze/microblaze.md 26--- a/gcc/config/microblaze/microblaze.md
27+++ b/gcc/config/microblaze/microblaze.md 27+++ b/gcc/config/microblaze/microblaze.md
28@@ -648,8 +648,8 @@ 28@@ -648,8 +648,8 @@
@@ -55,5 +55,5 @@ index 5a964e70d1f..f509bd5e665 100644
55 else 55 else
56 return "addlik\t%0,r0,%1"; 56 return "addlik\t%0,r0,%1";
57-- 57--
582.37.1 (Apple Git-137.1) 582.34.1
59 59
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0043-Fix-the-MB-64-bug-of-handling-QI-objects.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0043-Fix-the-MB-64-bug-of-handling-QI-objects.patch
index c8caff29..af8c684f 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0043-Fix-the-MB-64-bug-of-handling-QI-objects.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0043-Fix-the-MB-64-bug-of-handling-QI-objects.patch
@@ -1,14 +1,14 @@
1From 0ed24f5a2e6e47f5d13896793ab2c6ea89e8c8e6 Mon Sep 17 00:00:00 2001 1From 854371934116e5197d627cebaf274f431205b914 Mon Sep 17 00:00:00 2001
2From: Nagaraju <nmekala@xilinx.com> 2From: Nagaraju <nmekala@xilinx.com>
3Date: Thu, 14 Mar 2019 18:11:04 +0530 3Date: Thu, 14 Mar 2019 18:11:04 +0530
4Subject: [PATCH 43/53] Fix the MB-64 bug of handling QI objects 4Subject: [PATCH 43/54] Fix the MB-64 bug of handling QI objects
5 5
6--- 6---
7 gcc/config/microblaze/microblaze.md | 14 +++++++------- 7 gcc/config/microblaze/microblaze.md | 14 +++++++-------
8 1 file changed, 7 insertions(+), 7 deletions(-) 8 1 file changed, 7 insertions(+), 7 deletions(-)
9 9
10diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md 10diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md
11index f509bd5e665..27436c0f660 100644 11index e123bf3a7d1..0f81b0ed58c 100644
12--- a/gcc/config/microblaze/microblaze.md 12--- a/gcc/config/microblaze/microblaze.md
13+++ b/gcc/config/microblaze/microblaze.md 13+++ b/gcc/config/microblaze/microblaze.md
14@@ -2345,11 +2345,11 @@ else 14@@ -2345,11 +2345,11 @@ else
@@ -43,5 +43,5 @@ index f509bd5e665..27436c0f660 100644
43 "TARGET_MB_64" 43 "TARGET_MB_64"
44 { 44 {
45-- 45--
462.37.1 (Apple Git-137.1) 462.34.1
47 47
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0044-Patch-Microblaze-We-will-check-the-possibility-of-pe.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0044-We-will-check-the-possibility-of-peephole2-optimizat.patch
index e0d7df3d..277e5be2 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0044-Patch-Microblaze-We-will-check-the-possibility-of-pe.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0044-We-will-check-the-possibility-of-peephole2-optimizat.patch
@@ -1,15 +1,15 @@
1From e8286e00f939486dde52e9475bc9cca0aa025a42 Mon Sep 17 00:00:00 2001 1From 5527cec8136440a1edea87b2bb6dafa8e78d07b0 Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Fri, 29 Mar 2019 12:08:39 +0530 3Date: Fri, 29 Mar 2019 12:08:39 +0530
4Subject: [PATCH 44/53] [Patch,Microblaze] : We will check the possibility of 4Subject: [PATCH 44/54] We will check the possibility of peephole2
5 peephole2 optimization,if we can then we will fix the compiler issue. 5 optimization,if we can then we will fix the compiler issue.
6 6
7--- 7---
8 gcc/config/microblaze/microblaze.md | 63 +++++++++++++++++------------ 8 gcc/config/microblaze/microblaze.md | 63 +++++++++++++++++------------
9 1 file changed, 38 insertions(+), 25 deletions(-) 9 1 file changed, 38 insertions(+), 25 deletions(-)
10 10
11diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md 11diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md
12index 27436c0f660..4b9acddb1f1 100644 12index 0f81b0ed58c..f661ba1c241 100644
13--- a/gcc/config/microblaze/microblaze.md 13--- a/gcc/config/microblaze/microblaze.md
14+++ b/gcc/config/microblaze/microblaze.md 14+++ b/gcc/config/microblaze/microblaze.md
15@@ -882,31 +882,44 @@ 15@@ -882,31 +882,44 @@
@@ -83,5 +83,5 @@ index 27436c0f660..4b9acddb1f1 100644
83 ;;---------------------------------------------------------------- 83 ;;----------------------------------------------------------------
84 ;; Negation and one's complement 84 ;; Negation and one's complement
85-- 85--
862.37.1 (Apple Git-137.1) 862.34.1
87 87
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0045-Patch-MicroBlaze-fixed-typos-in-mul-div-and-mod-asse.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0045-fixed-typos-in-mul-div-and-mod-assembly-files.patch
index 770d0f70..4760926f 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0045-Patch-MicroBlaze-fixed-typos-in-mul-div-and-mod-asse.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0045-fixed-typos-in-mul-div-and-mod-assembly-files.patch
@@ -1,8 +1,7 @@
1From 29c33e35373d7dc52e43162dce38a3ec0e350db3 Mon Sep 17 00:00:00 2001 1From 3c6f051ce41f06eab29932859be52ed864bef52f Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Wed, 17 Apr 2019 12:36:16 +0530 3Date: Wed, 17 Apr 2019 12:36:16 +0530
4Subject: [PATCH 45/53] [Patch,MicroBlaze]: fixed typos in mul,div and mod 4Subject: [PATCH 45/54] fixed typos in mul,div and mod assembly files.
5 assembly files.
6 5
7--- 6---
8 libgcc/config/microblaze/divsi3.S | 47 ++++++++++++++++++++---- 7 libgcc/config/microblaze/divsi3.S | 47 ++++++++++++++++++++----
@@ -13,7 +12,7 @@ Subject: [PATCH 45/53] [Patch,MicroBlaze]: fixed typos in mul,div and mod
13 5 files changed, 212 insertions(+), 20 deletions(-) 12 5 files changed, 212 insertions(+), 20 deletions(-)
14 13
15diff --git a/libgcc/config/microblaze/divsi3.S b/libgcc/config/microblaze/divsi3.S 14diff --git a/libgcc/config/microblaze/divsi3.S b/libgcc/config/microblaze/divsi3.S
16index b464deed481..ceeed6be1f4 100644 15index 9f04f59104e..e1dfccbf257 100644
17--- a/libgcc/config/microblaze/divsi3.S 16--- a/libgcc/config/microblaze/divsi3.S
18+++ b/libgcc/config/microblaze/divsi3.S 17+++ b/libgcc/config/microblaze/divsi3.S
19@@ -46,7 +46,7 @@ 18@@ -46,7 +46,7 @@
@@ -107,7 +106,7 @@ index b464deed481..ceeed6be1f4 100644
107 $LaDiv_By_Zero: 106 $LaDiv_By_Zero:
108 $LaResult_Is_Zero: 107 $LaResult_Is_Zero:
109diff --git a/libgcc/config/microblaze/modsi3.S b/libgcc/config/microblaze/modsi3.S 108diff --git a/libgcc/config/microblaze/modsi3.S b/libgcc/config/microblaze/modsi3.S
110index 3ec17685e51..637b06c09a3 100644 109index f8684db721e..3bf9b10ec3e 100644
111--- a/libgcc/config/microblaze/modsi3.S 110--- a/libgcc/config/microblaze/modsi3.S
112+++ b/libgcc/config/microblaze/modsi3.S 111+++ b/libgcc/config/microblaze/modsi3.S
113@@ -62,40 +62,72 @@ __modsi3: 112@@ -62,40 +62,72 @@ __modsi3:
@@ -196,7 +195,7 @@ index 3ec17685e51..637b06c09a3 100644
196 nop 195 nop
197 #else 196 #else
198diff --git a/libgcc/config/microblaze/mulsi3.S b/libgcc/config/microblaze/mulsi3.S 197diff --git a/libgcc/config/microblaze/mulsi3.S b/libgcc/config/microblaze/mulsi3.S
199index 657668ef826..6be75dc95e8 100644 198index 437e2bc309e..bc9ff9cdc89 100644
200--- a/libgcc/config/microblaze/mulsi3.S 199--- a/libgcc/config/microblaze/mulsi3.S
201+++ b/libgcc/config/microblaze/mulsi3.S 200+++ b/libgcc/config/microblaze/mulsi3.S
202@@ -43,7 +43,37 @@ 201@@ -43,7 +43,37 @@
@@ -246,7 +245,7 @@ index 657668ef826..6be75dc95e8 100644
246 .end __mulsi3 245 .end __mulsi3
247 .size __mulsi3, . - __mulsi3 246 .size __mulsi3, . - __mulsi3
248diff --git a/libgcc/config/microblaze/udivsi3.S b/libgcc/config/microblaze/udivsi3.S 247diff --git a/libgcc/config/microblaze/udivsi3.S b/libgcc/config/microblaze/udivsi3.S
249index fc6a4b5a248..f8ce88bd8b7 100644 248index 496dd6794bf..486bc8f0819 100644
250--- a/libgcc/config/microblaze/udivsi3.S 249--- a/libgcc/config/microblaze/udivsi3.S
251+++ b/libgcc/config/microblaze/udivsi3.S 250+++ b/libgcc/config/microblaze/udivsi3.S
252@@ -59,52 +59,96 @@ __udivsi3: 251@@ -59,52 +59,96 @@ __udivsi3:
@@ -360,7 +359,7 @@ index fc6a4b5a248..f8ce88bd8b7 100644
360 NOP 359 NOP
361 #else 360 #else
362diff --git a/libgcc/config/microblaze/umodsi3.S b/libgcc/config/microblaze/umodsi3.S 361diff --git a/libgcc/config/microblaze/umodsi3.S b/libgcc/config/microblaze/umodsi3.S
363index 03be6df1fc6..3be3658f7a2 100644 362index a706017c634..1d8e2921745 100644
364--- a/libgcc/config/microblaze/umodsi3.S 363--- a/libgcc/config/microblaze/umodsi3.S
365+++ b/libgcc/config/microblaze/umodsi3.S 364+++ b/libgcc/config/microblaze/umodsi3.S
366@@ -46,7 +46,7 @@ 365@@ -46,7 +46,7 @@
@@ -462,5 +461,5 @@ index 03be6df1fc6..3be3658f7a2 100644
462 $LaRETURN_HERE: 461 $LaRETURN_HERE:
463 # Restore values of CSRs and that of r3 and the divisor and the dividend 462 # Restore values of CSRs and that of r3 and the divisor and the dividend
464-- 463--
4652.37.1 (Apple Git-137.1) 4642.34.1
466 465
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0046-Patch-microblaze-MB-64-removal-of-barrel-shift-instr.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0046-MB-64-removal-of-barrel-shift-instructions-from-defa.patch
index 29a7b4eb..5f45d03f 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0046-Patch-microblaze-MB-64-removal-of-barrel-shift-instr.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0046-MB-64-removal-of-barrel-shift-instructions-from-defa.patch
@@ -1,11 +1,10 @@
1From 39589348962a2e0453ad49118b6bc3dd8a7b1bb5 Mon Sep 17 00:00:00 2001 1From 0776495e85a15c1ad84fd90736059902bb3ea152 Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Tue, 13 Sep 2022 15:59:12 +0530 3Date: Tue, 13 Sep 2022 15:59:12 +0530
4Subject: [PATCH 46/53] [Patch, microblaze]: MB-64 removal of barrel-shift 4Subject: [PATCH 46/54] MB-64 removal of barrel-shift instructions from default
5 instructions from default By default MB-64 is generatting 5 By default MB-64 is generatting barrel-shift instructions. It has been
6 barrel-shift instructions. It has been removed from default. 6 removed from default. Barrel-shift instructions will be generated only if
7 Barrel-shift instructions will be generated only if barrel-shifter is 7 barrel-shifter is enabled. Similarly to double instructions as well.
8 enabled. Similarly to double instructions as well.
9 8
10 Signed-off-by :Nagaraju Mekala <nmekala@xilix.com> 9 Signed-off-by :Nagaraju Mekala <nmekala@xilix.com>
11--- 10---
@@ -14,10 +13,10 @@ Subject: [PATCH 46/53] [Patch, microblaze]: MB-64 removal of barrel-shift
14 2 files changed, 252 insertions(+), 19 deletions(-) 13 2 files changed, 252 insertions(+), 19 deletions(-)
15 14
16diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc 15diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc
17index 7a08390a027..3ee3996a38d 100644 16index 965a041ea8c..f949a8863d3 100644
18--- a/gcc/config/microblaze/microblaze.cc 17--- a/gcc/config/microblaze/microblaze.cc
19+++ b/gcc/config/microblaze/microblaze.cc 18+++ b/gcc/config/microblaze/microblaze.cc
20@@ -3871,7 +3871,7 @@ microblaze_expand_divide (rtx operands[]) 19@@ -3880,7 +3880,7 @@ microblaze_expand_divide (rtx operands[])
21 emit_insn (gen_rtx_CLOBBER (Pmode, reg18)); 20 emit_insn (gen_rtx_CLOBBER (Pmode, reg18));
22 21
23 if (TARGET_MB_64) { 22 if (TARGET_MB_64) {
@@ -27,7 +26,7 @@ index 7a08390a027..3ee3996a38d 100644
27 } 26 }
28 else { 27 else {
29diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md 28diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md
30index 4b9acddb1f1..3695e9e101d 100644 29index f661ba1c241..9bc9512db8e 100644
31--- a/gcc/config/microblaze/microblaze.md 30--- a/gcc/config/microblaze/microblaze.md
32+++ b/gcc/config/microblaze/microblaze.md 31+++ b/gcc/config/microblaze/microblaze.md
33@@ -547,7 +547,7 @@ 32@@ -547,7 +547,7 @@
@@ -473,5 +472,5 @@ index 4b9acddb1f1..3695e9e101d 100644
473 [(set_attr "type" "arith") 472 [(set_attr "type" "arith")
474 (set_attr "mode" "DI") 473 (set_attr "mode" "DI")
475-- 474--
4762.37.1 (Apple Git-137.1) 4752.34.1
477 476
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0047-Added-new-MB-64-single-register-arithmetic-instructi.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0047-Added-new-MB-64-single-register-arithmetic-instructi.patch
index 774fad5a..0272fd3c 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0047-Added-new-MB-64-single-register-arithmetic-instructi.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0047-Added-new-MB-64-single-register-arithmetic-instructi.patch
@@ -1,14 +1,14 @@
1From e32334b0f8a4c9532975001ffab33e86469ea4e1 Mon Sep 17 00:00:00 2001 1From 003f60fa4eedddd15de6e9f633bffec1a887fe45 Mon Sep 17 00:00:00 2001
2From: Nagaraju <nmekala@xilinx.com> 2From: Nagaraju <nmekala@xilinx.com>
3Date: Fri, 23 Aug 2019 16:16:53 +0530 3Date: Fri, 23 Aug 2019 16:16:53 +0530
4Subject: [PATCH 47/53] Added new MB-64 single register arithmetic instructions 4Subject: [PATCH 47/54] Added new MB-64 single register arithmetic instructions
5 5
6--- 6---
7 gcc/config/microblaze/microblaze.md | 56 +++++++++++++++++++++++++++++ 7 gcc/config/microblaze/microblaze.md | 56 +++++++++++++++++++++++++++++
8 1 file changed, 56 insertions(+) 8 1 file changed, 56 insertions(+)
9 9
10diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md 10diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md
11index 3695e9e101d..85c1ab45994 100644 11index 9bc9512db8e..9172f1bc209 100644
12--- a/gcc/config/microblaze/microblaze.md 12--- a/gcc/config/microblaze/microblaze.md
13+++ b/gcc/config/microblaze/microblaze.md 13+++ b/gcc/config/microblaze/microblaze.md
14@@ -654,6 +654,18 @@ 14@@ -654,6 +654,18 @@
@@ -103,5 +103,5 @@ index 3695e9e101d..85c1ab45994 100644
103 [(set (match_operand:DI 0 "register_operand" "=d,d") 103 [(set (match_operand:DI 0 "register_operand" "=d,d")
104 (xor:DI (match_operand:DI 1 "arith_operand" "%d,d") 104 (xor:DI (match_operand:DI 1 "arith_operand" "%d,d")
105-- 105--
1062.37.1 (Apple Git-137.1) 1062.34.1
107 107
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0048-Patch-MicroBlaze-Added-support-for-64-bit-Immediate-.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0048-Added-support-for-64-bit-Immediate-values.patch
index a442bf0f..0be495a8 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0048-Patch-MicroBlaze-Added-support-for-64-bit-Immediate-.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0048-Added-support-for-64-bit-Immediate-values.patch
@@ -1,8 +1,7 @@
1From f5f262b196de197b7e9ece8cc08c8715f953857f Mon Sep 17 00:00:00 2001 1From 8d20c82d95e22a42551b446c087d9e06958a3580 Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Mon, 26 Aug 2019 15:55:22 +0530 3Date: Mon, 26 Aug 2019 15:55:22 +0530
4Subject: [PATCH 48/53] [Patch,MicroBlaze] : Added support for 64 bit Immediate 4Subject: [PATCH 48/54] Added support for 64 bit Immediate values.
5 values.
6 5
7--- 6---
8 gcc/config/microblaze/constraints.md | 4 ++-- 7 gcc/config/microblaze/constraints.md | 4 ++--
@@ -10,7 +9,7 @@ Subject: [PATCH 48/53] [Patch,MicroBlaze] : Added support for 64 bit Immediate
10 2 files changed, 3 insertions(+), 4 deletions(-) 9 2 files changed, 3 insertions(+), 4 deletions(-)
11 10
12diff --git a/gcc/config/microblaze/constraints.md b/gcc/config/microblaze/constraints.md 11diff --git a/gcc/config/microblaze/constraints.md b/gcc/config/microblaze/constraints.md
13index 3f9805dfe0a..91653f36f52 100644 12index fa605831bfe..40cd88a870c 100644
14--- a/gcc/config/microblaze/constraints.md 13--- a/gcc/config/microblaze/constraints.md
15+++ b/gcc/config/microblaze/constraints.md 14+++ b/gcc/config/microblaze/constraints.md
16@@ -53,9 +53,9 @@ 15@@ -53,9 +53,9 @@
@@ -26,7 +25,7 @@ index 3f9805dfe0a..91653f36f52 100644
26 25
27 ;; Define floating point constraints 26 ;; Define floating point constraints
28diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md 27diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md
29index 85c1ab45994..0ac6e1480e6 100644 28index 9172f1bc209..f41474feca6 100644
30--- a/gcc/config/microblaze/microblaze.md 29--- a/gcc/config/microblaze/microblaze.md
31+++ b/gcc/config/microblaze/microblaze.md 30+++ b/gcc/config/microblaze/microblaze.md
32@@ -1332,8 +1332,7 @@ 31@@ -1332,8 +1332,7 @@
@@ -40,5 +39,5 @@ index 85c1ab45994..0ac6e1480e6 100644
40 addlk\t%0,r0,r0\t 39 addlk\t%0,r0,r0\t
41 addlik\t%0,r0,%1\t #N1 %X1 40 addlik\t%0,r0,%1\t #N1 %X1
42-- 41--
432.37.1 (Apple Git-137.1) 422.34.1
44 43
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0049-Patch-microblaze-Fix-Compiler-crash-with-freg-struct.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0049-Fix-Compiler-crash-with-freg-struct-return-This-patc.patch
index 5732000d..ca813796 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0049-Patch-microblaze-Fix-Compiler-crash-with-freg-struct.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0049-Fix-Compiler-crash-with-freg-struct-return-This-patc.patch
@@ -1,10 +1,10 @@
1From d45405d05a1f9079f7db86ba60dcd30d358613d4 Mon Sep 17 00:00:00 2001 1From 8107e0be46e5bdbfc353648ce5129afde5275ea9 Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Tue, 13 Sep 2022 16:06:10 +0530 3Date: Tue, 13 Sep 2022 16:06:10 +0530
4Subject: [PATCH 49/53] [Patch, microblaze]: Fix Compiler crash with 4Subject: [PATCH 49/54] Fix Compiler crash with -freg-struct-return This patch
5 -freg-struct-return This patch fixes a bug in MB GCC regarding the 5 fixes a bug in MB GCC regarding the passing struct values in registers.
6 passing struct values in registers. Currently we are only handling SImode 6 Currently we are only handling SImode With this patch all other modes are
7 With this patch all other modes are handled properly 7 handled properly
8 8
9 Signed-off-by :Nagaraju Mekala <nmekala@xilix.com> 9 Signed-off-by :Nagaraju Mekala <nmekala@xilix.com>
10--- 10---
@@ -13,10 +13,10 @@ Subject: [PATCH 49/53] [Patch, microblaze]: Fix Compiler crash with
13 2 files changed, 10 insertions(+), 20 deletions(-) 13 2 files changed, 10 insertions(+), 20 deletions(-)
14 14
15diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc 15diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc
16index 3ee3996a38d..4668a81d060 100644 16index f949a8863d3..4748c8c1f0d 100644
17--- a/gcc/config/microblaze/microblaze.cc 17--- a/gcc/config/microblaze/microblaze.cc
18+++ b/gcc/config/microblaze/microblaze.cc 18+++ b/gcc/config/microblaze/microblaze.cc
19@@ -3909,7 +3909,16 @@ microblaze_function_value (const_tree valtype, 19@@ -3918,7 +3918,16 @@ microblaze_function_value (const_tree valtype,
20 const_tree func ATTRIBUTE_UNUSED, 20 const_tree func ATTRIBUTE_UNUSED,
21 bool outgoing ATTRIBUTE_UNUSED) 21 bool outgoing ATTRIBUTE_UNUSED)
22 { 22 {
@@ -35,7 +35,7 @@ index 3ee3996a38d..4668a81d060 100644
35 35
36 /* Implement TARGET_SCHED_ADJUST_COST. */ 36 /* Implement TARGET_SCHED_ADJUST_COST. */
37diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h 37diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h
38index c48b6de0d58..730ad87b13b 100644 38index 4d6babfe9c4..eea360fda47 100644
39--- a/gcc/config/microblaze/microblaze.h 39--- a/gcc/config/microblaze/microblaze.h
40+++ b/gcc/config/microblaze/microblaze.h 40+++ b/gcc/config/microblaze/microblaze.h
41@@ -266,13 +266,6 @@ extern enum pipeline_type microblaze_pipe; 41@@ -266,13 +266,6 @@ extern enum pipeline_type microblaze_pipe;
@@ -72,5 +72,5 @@ index c48b6de0d58..730ad87b13b 100644
72 On the MicroBlaze, R2 R3 are the only register thus used. 72 On the MicroBlaze, R2 R3 are the only register thus used.
73 Currently, R2 are only implemented here (C has no complex type) */ 73 Currently, R2 are only implemented here (C has no complex type) */
74-- 74--
752.37.1 (Apple Git-137.1) 752.34.1
76 76
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0050-Patch-microblaze-Add-TARGET_OPTION_OPTIMIZATION-and-.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0050-Add-TARGET_OPTION_OPTIMIZATION-and-disable-fivopts-b.patch
index ed48daf7..3b8fad81 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0050-Patch-microblaze-Add-TARGET_OPTION_OPTIMIZATION-and-.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0050-Add-TARGET_OPTION_OPTIMIZATION-and-disable-fivopts-b.patch
@@ -1,8 +1,8 @@
1From a64afc59e82703f40d04d4d7126038811a195467 Mon Sep 17 00:00:00 2001 1From b7fb925d6277d11e4014aa1731fc58813e30761f Mon Sep 17 00:00:00 2001
2From: Nagaraju <nmekala@xilinx.com> 2From: Nagaraju <nmekala@xilinx.com>
3Date: Wed, 8 May 2019 14:12:03 +0530 3Date: Wed, 8 May 2019 14:12:03 +0530
4Subject: [PATCH 50/53] [Patch, microblaze]: Add TARGET_OPTION_OPTIMIZATION and 4Subject: [PATCH 50/54] Add TARGET_OPTION_OPTIMIZATION and disable fivopts by
5 disable fivopts by default 5 default
6 6
7Added TARGET_OPTION_OPTIMIZATIONS and Turn off ivopts by default. 7Added TARGET_OPTION_OPTIMIZATIONS and Turn off ivopts by default.
8 8
@@ -21,7 +21,7 @@ Conflicts:
21 1 file changed, 13 insertions(+) 21 1 file changed, 13 insertions(+)
22 22
23diff --git a/gcc/common/config/microblaze/microblaze-common.cc b/gcc/common/config/microblaze/microblaze-common.cc 23diff --git a/gcc/common/config/microblaze/microblaze-common.cc b/gcc/common/config/microblaze/microblaze-common.cc
24index 21b35f55b92..137332ded25 100644 24index 8750b022447..8a924e8a997 100644
25--- a/gcc/common/config/microblaze/microblaze-common.cc 25--- a/gcc/common/config/microblaze/microblaze-common.cc
26+++ b/gcc/common/config/microblaze/microblaze-common.cc 26+++ b/gcc/common/config/microblaze/microblaze-common.cc
27@@ -24,7 +24,20 @@ 27@@ -24,7 +24,20 @@
@@ -46,5 +46,5 @@ index 21b35f55b92..137332ded25 100644
46+ 46+
47 struct gcc_targetm_common targetm_common = TARGETM_COMMON_INITIALIZER; 47 struct gcc_targetm_common targetm_common = TARGETM_COMMON_INITIALIZER;
48-- 48--
492.37.1 (Apple Git-137.1) 492.34.1
50 50
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-13/0051-Reducing-Stack-space-for-arguments.patch
index b9575eac..648da43a 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-13/0051-Reducing-Stack-space-for-arguments.patch
@@ -1,7 +1,7 @@
1From 09e10c513f8970f4d2402244b7ac69ecd33b4c04 Mon Sep 17 00:00:00 2001 1From a464c0e6070cac9b40b7fe760e25cbd484a615a7 Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Tue, 13 Sep 2022 16:35:00 +0530 3Date: Tue, 13 Sep 2022 16:35:00 +0530
4Subject: [PATCH 51/53] [Patch, microblaze]: Reducing Stack space for arguments 4Subject: [PATCH 51/54] Reducing Stack space for arguments
5 5
6 Currently in Microblaze target stack space for arguments in register is being 6 Currently in Microblaze target stack space for arguments in register is being
7 allocated even if there are no arguments in the function. 7 allocated even if there are no arguments in the function.
@@ -16,7 +16,7 @@ Subject: [PATCH 51/53] [Patch, microblaze]: Reducing Stack space for arguments
16 3 files changed, 133 insertions(+), 2 deletions(-) 16 3 files changed, 133 insertions(+), 2 deletions(-)
17 17
18diff --git a/gcc/config/microblaze/microblaze-protos.h b/gcc/config/microblaze/microblaze-protos.h 18diff --git a/gcc/config/microblaze/microblaze-protos.h b/gcc/config/microblaze/microblaze-protos.h
19index 7f575c2adec..bd594699940 100644 19index 0e9f783c4a4..091d8d9a51b 100644
20--- a/gcc/config/microblaze/microblaze-protos.h 20--- a/gcc/config/microblaze/microblaze-protos.h
21+++ b/gcc/config/microblaze/microblaze-protos.h 21+++ b/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);
@@ -28,10 +28,10 @@ index 7f575c2adec..bd594699940 100644
28 28
29 /* Declare functions in microblaze-c.cc. */ 29 /* Declare functions in microblaze-c.cc. */
30diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc 30diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc
31index 4668a81d060..24ac215b6d5 100644 31index 4748c8c1f0d..e6d3f35370c 100644
32--- a/gcc/config/microblaze/microblaze.cc 32--- a/gcc/config/microblaze/microblaze.cc
33+++ b/gcc/config/microblaze/microblaze.cc 33+++ b/gcc/config/microblaze/microblaze.cc
34@@ -2081,6 +2081,136 @@ microblaze_must_save_register (int regno) 34@@ -2086,6 +2086,136 @@ microblaze_must_save_register (int regno)
35 return 0; 35 return 0;
36 } 36 }
37 37
@@ -169,7 +169,7 @@ index 4668a81d060..24ac215b6d5 100644
169 stack pointer. 169 stack pointer.
170 170
171diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h 171diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h
172index 730ad87b13b..dfacd080b6d 100644 172index eea360fda47..f23805b1c03 100644
173--- a/gcc/config/microblaze/microblaze.h 173--- a/gcc/config/microblaze/microblaze.h
174+++ b/gcc/config/microblaze/microblaze.h 174+++ b/gcc/config/microblaze/microblaze.h
175@@ -447,9 +447,9 @@ extern struct microblaze_frame_info current_frame_info; 175@@ -447,9 +447,9 @@ extern struct microblaze_frame_info current_frame_info;
@@ -185,5 +185,5 @@ index 730ad87b13b..dfacd080b6d 100644
185 #define STACK_BOUNDARY (TARGET_MB_64 ? 64 : 32) 185 #define STACK_BOUNDARY (TARGET_MB_64 ? 64 : 32)
186 186
187-- 187--
1882.37.1 (Apple Git-137.1) 1882.34.1
189 189
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0052-Patch-MicroBlaze.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0052-If-we-use-break_handler-attribute-then-interrupt-vec.patch
index d504a092..d0474dd9 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0052-Patch-MicroBlaze.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0052-If-we-use-break_handler-attribute-then-interrupt-vec.patch
@@ -1,22 +1,21 @@
1From fe2781d189493dc82a3714b48bbc12c6bd5cdfd0 Mon Sep 17 00:00:00 2001 1From b792943436857172e7a39e26a00602c7e6620860 Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Tue, 13 Sep 2022 16:38:43 +0530 3Date: Tue, 13 Sep 2022 16:38:43 +0530
4Subject: [PATCH 52/53] [Patch,MicroBlaze] : If we use break_handler 4Subject: [PATCH 52/54] If we use break_handler attribute then interrupt vector
5 attribute then interrupt vector call happened to break_handler instead of 5 call happened to break_handler instead of interrupt_handler. this fix will
6 interrupt_handler. this fix will resolve the issue CR-1081780. This 6 resolve the issue CR-1081780. This fix will not change the behavior of
7 fix will not change the behavior of compiler unless there is a usage of 7 compiler unless there is a usage of break_handler attribute. signed-off-by :
8 break_handler attribute. signed-off-by : Mahesh Bodapati 8 Mahesh Bodapati <mbodapat@xilinx.com>
9 <mbodapat@xilinx.com>
10 9
11--- 10---
12 gcc/config/microblaze/microblaze.cc | 13 +++++-------- 11 gcc/config/microblaze/microblaze.cc | 13 +++++--------
13 1 file changed, 5 insertions(+), 8 deletions(-) 12 1 file changed, 5 insertions(+), 8 deletions(-)
14 13
15diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc 14diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc
16index 24ac215b6d5..66d62f6f909 100644 15index e6d3f35370c..58d091fbed2 100644
17--- a/gcc/config/microblaze/microblaze.cc 16--- a/gcc/config/microblaze/microblaze.cc
18+++ b/gcc/config/microblaze/microblaze.cc 17+++ b/gcc/config/microblaze/microblaze.cc
19@@ -2020,7 +2020,7 @@ microblaze_save_volatiles (tree func) 18@@ -2025,7 +2025,7 @@ microblaze_save_volatiles (tree func)
20 int 19 int
21 microblaze_is_interrupt_variant (void) 20 microblaze_is_interrupt_variant (void)
22 { 21 {
@@ -25,7 +24,7 @@ index 24ac215b6d5..66d62f6f909 100644
25 } 24 }
26 int 25 int
27 microblaze_is_break_handler (void) 26 microblaze_is_break_handler (void)
28@@ -2059,7 +2059,7 @@ microblaze_must_save_register (int regno) 27@@ -2064,7 +2064,7 @@ microblaze_must_save_register (int regno)
29 { 28 {
30 if (df_regs_ever_live_p (regno) 29 if (df_regs_ever_live_p (regno)
31 || regno == MB_ABI_MSR_SAVE_REG 30 || regno == MB_ABI_MSR_SAVE_REG
@@ -34,7 +33,7 @@ index 24ac215b6d5..66d62f6f909 100644
34 && (regno == MB_ABI_ASM_TEMP_REGNUM 33 && (regno == MB_ABI_ASM_TEMP_REGNUM
35 || regno == MB_ABI_EXCEPTION_RETURN_ADDR_REGNUM))) 34 || regno == MB_ABI_EXCEPTION_RETURN_ADDR_REGNUM)))
36 return 1; 35 return 1;
37@@ -2275,9 +2275,6 @@ compute_frame_size (HOST_WIDE_INT size) 36@@ -2280,9 +2280,6 @@ compute_frame_size (HOST_WIDE_INT size)
38 fast_interrupt = 37 fast_interrupt =
39 microblaze_fast_interrupt_function_p (current_function_decl); 38 microblaze_fast_interrupt_function_p (current_function_decl);
40 save_volatiles = microblaze_save_volatiles (current_function_decl); 39 save_volatiles = microblaze_save_volatiles (current_function_decl);
@@ -44,7 +43,7 @@ index 24ac215b6d5..66d62f6f909 100644
44 gp_reg_size = 0; 43 gp_reg_size = 0;
45 mask = 0; 44 mask = 0;
46 var_size = size; 45 var_size = size;
47@@ -3237,7 +3234,7 @@ microblaze_expand_prologue (void) 46@@ -3242,7 +3239,7 @@ microblaze_expand_prologue (void)
48 gen_rtx_PLUS (Pmode, stack_pointer_rtx, 47 gen_rtx_PLUS (Pmode, stack_pointer_rtx,
49 const0_rtx)); 48 const0_rtx));
50 49
@@ -53,7 +52,7 @@ index 24ac215b6d5..66d62f6f909 100644
53 /* Do not optimize in flow analysis. */ 52 /* Do not optimize in flow analysis. */
54 MEM_VOLATILE_P (mem_rtx) = 1; 53 MEM_VOLATILE_P (mem_rtx) = 1;
55 54
56@@ -3348,12 +3345,12 @@ microblaze_expand_epilogue (void) 55@@ -3353,12 +3350,12 @@ microblaze_expand_epilogue (void)
57 a load-use stall cycle :) This is also important to handle alloca. 56 a load-use stall cycle :) This is also important to handle alloca.
58 (See comments for if (frame_pointer_needed) below. */ 57 (See comments for if (frame_pointer_needed) below. */
59 58
@@ -69,5 +68,5 @@ index 24ac215b6d5..66d62f6f909 100644
69 MEM_VOLATILE_P (mem_rtx) = 1; 68 MEM_VOLATILE_P (mem_rtx) = 1;
70 reg_rtx = gen_rtx_REG (Pmode, MB_ABI_SUB_RETURN_ADDR_REGNUM); 69 reg_rtx = gen_rtx_REG (Pmode, MB_ABI_SUB_RETURN_ADDR_REGNUM);
71-- 70--
722.37.1 (Apple Git-137.1) 712.34.1
73 72
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/0053-patch-microblaze64-Add-Zero_extended-instructions.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0053-Add-Zero_extended-instructions.patch
index 6b3f4ddd..52017a9d 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/0053-patch-microblaze64-Add-Zero_extended-instructions.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0053-Add-Zero_extended-instructions.patch
@@ -1,7 +1,7 @@
1From 6c2e67237a12cecfd8c0575fd17314d3024943fc Mon Sep 17 00:00:00 2001 1From fbf853f0b9571529dcc72fc53adf4a35abd3e050 Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com> 2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Tue, 13 Sep 2022 16:45:41 +0530 3Date: Tue, 13 Sep 2022 16:45:41 +0530
4Subject: [PATCH 53/53] [patch, microblaze64]: Add Zero_extended instructions 4Subject: [PATCH 53/54] Add Zero_extended instructions
5 5
6 Due to latest changes in GCC-10.2 MB64 perforamance has reduced 6 Due to latest changes in GCC-10.2 MB64 perforamance has reduced
7 We have added zero_extended instructions to get rid of left shift 7 We have added zero_extended instructions to get rid of left shift
@@ -16,7 +16,7 @@ Subject: [PATCH 53/53] [patch, microblaze64]: Add Zero_extended instructions
16 1 file changed, 27 insertions(+) 16 1 file changed, 27 insertions(+)
17 17
18diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md 18diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md
19index 0ac6e1480e6..7a7c70d607b 100644 19index f41474feca6..aff98604db7 100644
20--- a/gcc/config/microblaze/microblaze.md 20--- a/gcc/config/microblaze/microblaze.md
21+++ b/gcc/config/microblaze/microblaze.md 21+++ b/gcc/config/microblaze/microblaze.md
22@@ -1191,6 +1191,33 @@ 22@@ -1191,6 +1191,33 @@
@@ -54,5 +54,5 @@ index 0ac6e1480e6..7a7c70d607b 100644
54 ;; Sign extension 54 ;; Sign extension
55 ;;---------------------------------------------------------------- 55 ;;----------------------------------------------------------------
56-- 56--
572.37.1 (Apple Git-137.1) 572.34.1
58 58
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-13/0054-Fix-failure-with-gcc.c-torture-execute-ashrdi-1.c-Os.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/0054-Fix-failure-with-gcc.c-torture-execute-ashrdi-1.c-Os.patch
new file mode 100644
index 00000000..ec8bc0cf
--- /dev/null
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/0054-Fix-failure-with-gcc.c-torture-execute-ashrdi-1.c-Os.patch
@@ -0,0 +1,42 @@
1From 79d007fea870a3b8d72faa90238cee2cdfaf5c85 Mon Sep 17 00:00:00 2001
2From: Gopi Kumar Bulusu <gopi@sankhya.com>
3Date: Fri, 28 Jun 2024 12:18:38 +0530
4Subject: [PATCH 54/54] Fix failure with gcc.c-torture/execute/ashrdi-1.c -Os
5 execution test
6
7The following tests fail with -Os option because a shift instruction
8in a branch delay slot gets replaced with multiple instructions when
9the processor has no barrel shifter. This fix addresses the problem
10by marking the responsible instruction pattern as type multi preventing
11it from being placed in a delay slot.
12
13> gcc.c-torture/execute/ashrdi-1.c -Os execution test
14> gcc.c-torture/execute/pr40057.c -Os execution test
15> gcc.c-torture/execute/pr79121.c -Os execution test
16> gcc.c-torture/execute/pr82524.c -Os execution test
17> c-c++-common/torture/vector-compare-1.c -Os execution test
18> gcc.dg/torture/vec-cvt-1.c -Os execution test
19
20These tests pass with this fix.
21
22Signed-off-by: Gopi Kumar Bulusu <gopi@sankhya.com>
23---
24 gcc/config/microblaze/microblaze.md | 2 +-
25 1 file changed, 1 insertion(+), 1 deletion(-)
26
27diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md
28index aff98604db7..0e3981390c8 100644
29--- a/gcc/config/microblaze/microblaze.md
30+++ b/gcc/config/microblaze/microblaze.md
31@@ -2286,7 +2286,7 @@ else
32 output_asm_insn ("bneid\t%3,.-4", operands);
33 return "sra\t%0,%0";
34 }
35- [(set_attr "type" "arith")
36+ [(set_attr "type" "multi")
37 (set_attr "mode" "SI")
38 (set_attr "length" "20")]
39 )
40--
412.34.1
42
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-12/microblaze-mulitlib-hack.patch b/meta-microblaze/recipes-devtools/gcc/gcc-13/microblaze-mulitlib-hack.patch
index af8ebf3b..af8ebf3b 100644
--- a/meta-microblaze/recipes-devtools/gcc/gcc-12/microblaze-mulitlib-hack.patch
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-13/microblaze-mulitlib-hack.patch
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-source_12.%.bbappend b/meta-microblaze/recipes-devtools/gcc/gcc-source_12.%.bbappend
deleted file mode 100644
index 42bcd174..00000000
--- a/meta-microblaze/recipes-devtools/gcc/gcc-source_12.%.bbappend
+++ /dev/null
@@ -1,59 +0,0 @@
1# Add MicroBlaze Patches (only when using MicroBlaze)
2FILESEXTRAPATHS:append := ":${THISDIR}/gcc-12"
3
4SRC_URI += " \
5 file://0001-LOCAL-Testsuite-builtins-tests-require-fpic.patch \
6 file://0002-LOCAL-Quick-fail-g-.dg-opt-memcpy1.C.patch \
7 file://0003-LOCAL-For-dejagnu-static-testing-on-qemu-suppress-wa.patch \
8 file://0004-Patch-testsuite-Add-MicroBlaze-to-target-supports-fo.patch \
9 file://0005-Patch-testsuite-Update-MicroBlaze-strings-test.patch \
10 file://0006-Patch-testsuite-Allow-MicroBlaze-.weakext-pattern-in.patch \
11 file://0007-Patch-testsuite-Add-MicroBlaze-to-check_profiling_av.patch \
12 file://0008-Patch-microblaze-Fix-atomic-side-effects.patch \
13 file://0009-Patch-microblaze-Fix-atomic-boolean-return-value.patch \
14 file://0010-Patch-microblaze-Fix-the-Microblaze-crash-with-msmal.patch \
15 file://0011-Patch-microblaze-Added-ashrsi3_with_size_opt.patch \
16 file://0012-Patch-microblaze-Use-bralid-for-profiler-calls.patch \
17 file://0013-Patch-microblaze-Removed-moddi3-routinue.patch \
18 file://0014-Patch-microblaze-Add-INIT_PRIORITY-support-Added.patch \
19 file://0015-Patch-microblaze-Add-optimized-lshrsi3.patch \
20 file://0016-Patch-microblaze-Add-cbranchsi4_reg.patch \
21 file://0017-Patch-microblaze-Inline-Expansion-of-fsqrt-builtin.patch \
22 file://0018-PATCH-microblaze.md-Improve-adddi3-and-subdi3-insn-d.patch \
23 file://0019-Patch-microblaze-Update-ashlsi3-movsf-patterns.patch \
24 file://0020-Patch-microblaze-8-stage-pipeline-for-microblaze.patch \
25 file://0021-PATCH-21-53-Patch-microblaze-Correct-the-const-high-.patch \
26 file://0022-Fix-microblaze-Fix-internal-compiler-error-with-msma.patch \
27 file://0023-patch-microblaze-Fix-the-calculation-of-high-word-in.patch \
28 file://0024-Patch-MicroBlaze-this-patch-has-1.Fixed-the-bug-in.patch \
29 file://0025-Fixing-the-issue-with-the-builtin_alloc.patch \
30 file://0026-Patch-Microblaze-Removed-fsqrt-generation-for-double.patch \
31 file://0027-Patch-MicroBlaze-Intial-commit-of-64-bit-Microblaze.patch \
32 file://0028-Intial-commit-for-64bit-MB-sources.patch \
33 file://0029-Patch-MicroBlaze-re-arrangement-of-the-compare-branc.patch \
34 file://0030-Patch-Microblaze-previous-commit-broke-the-handling-.patch \
35 file://0031-Patch-Microblaze-Support-of-multilibs-with-m64.patch \
36 file://0032-Patch-MicroBlaze-Fixed-issues-like.patch \
37 file://0033-Patch-MicroBlaze.patch \
38 file://0034-Added-double-arith-instructions.patch \
39 file://0035-Fixed-the-issue-in-the-delay-slot-with-swap-instruct.patch \
40 file://0036-Fixed-the-load-store-issue-with-the-32bit-arith-libr.patch \
41 file://0037-extending-the-Dwarf-support-to-64bit-Microblaze.patch \
42 file://0038-fixing-the-typo-errors-in-umodsi3-file.patch \
43 file://0039-fixing-the-32bit-LTO-related-issue9-1014024.patch \
44 file://0040-Fixed-the-missing-stack-adjustment-in-prologue-of-mo.patch \
45 file://0041-Patch-Microblaze-corrected-SPN-for-dlong-instruction.patch \
46 file://0042-fixing-the-long-long-long-mingw-toolchain-issue.patch \
47 file://0043-Fix-the-MB-64-bug-of-handling-QI-objects.patch \
48 file://0044-Patch-Microblaze-We-will-check-the-possibility-of-pe.patch \
49 file://0045-Patch-MicroBlaze-fixed-typos-in-mul-div-and-mod-asse.patch \
50 file://0046-Patch-microblaze-MB-64-removal-of-barrel-shift-instr.patch \
51 file://0047-Added-new-MB-64-single-register-arithmetic-instructi.patch \
52 file://0048-Patch-MicroBlaze-Added-support-for-64-bit-Immediate-.patch \
53 file://0049-Patch-microblaze-Fix-Compiler-crash-with-freg-struct.patch \
54 file://0050-Patch-microblaze-Add-TARGET_OPTION_OPTIMIZATION-and-.patch \
55 file://0051-Patch-microblaze-Reducing-Stack-space-for-arguments.patch \
56 file://0052-Patch-MicroBlaze.patch \
57 file://0053-patch-microblaze64-Add-Zero_extended-instructions.patch \
58 file://microblaze-mulitlib-hack.patch \
59"
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-source_13.%.bbappend b/meta-microblaze/recipes-devtools/gcc/gcc-source_13.%.bbappend
new file mode 100644
index 00000000..51b08f36
--- /dev/null
+++ b/meta-microblaze/recipes-devtools/gcc/gcc-source_13.%.bbappend
@@ -0,0 +1,63 @@
1# Add MicroBlaze Patches (only when using MicroBlaze)
2FILESEXTRAPATHS:append := ":${THISDIR}/gcc-13"
3
4# Our changes are all local, no real patch-status
5ERROR_QA:remove = "patch-status"
6
7SRC_URI += " \
8 file://0001-LOCAL-Testsuite-builtins-tests-require-fpic-Signed-o.patch \
9 file://0002-Quick-fail-g-.dg-opt-memcpy1.C-This-particular-testc.patch \
10 file://0003-For-dejagnu-static-testing-on-qemu-suppress-warnings.patch \
11 file://0004-Add-MicroBlaze-to-target-supports-for-atomic-buil.-..patch \
12 file://0005-Update-MicroBlaze-strings-test-for-new-scan-assembly.patch \
13 file://0006-Allow-MicroBlaze-.weakext-pattern-in-regex-match-Ext.patch \
14 file://0007-Add-MicroBlaze-to-check_profiling_available-Testsuit.patch \
15 file://0008-Fix-atomic-side-effects.-In-atomic_compare_and_swaps.patch \
16 file://0009-Fix-atomic-boolean-return-value.-In-atomic_compare_a.patch \
17 file://0010-Fix-the-Microblaze-crash-with-msmall-divides-flag-Co.patch \
18 file://0011-Added-ashrsi3_with_size_opt-Added-ashrsi3_with_size_.patch \
19 file://0012-Use-bralid-for-profiler-calls-Signed-off-by-Edgar-E..patch \
20 file://0013-Removed-moddi3-routinue-Using-the-default-moddi3-fun.patch \
21 file://0014-Add-INIT_PRIORITY-support-Added-TARGET_ASM_CONSTRUCT.patch \
22 file://0015-Add-optimized-lshrsi3-When-barrel-shifter-is-not-pre.patch \
23 file://0016-Add-cbranchsi4_reg-This-patch-optimizes-the-generati.patch \
24 file://0017-Inline-Expansion-of-fsqrt-builtin.-The-changes-are-m.patch \
25 file://0018-microblaze.md-Improve-adddi3-and-subdi3-insn-definit.patch \
26 file://0019-Update-ashlsi3-movsf-patterns-This-patch-removes-the.patch \
27 file://0020-8-stage-pipeline-for-microblaze-This-patch-adds-the-.patch \
28 file://0021-Correct-the-const-high-double-immediate-value-with-t.patch \
29 file://0022-Fix-internal-compiler-error-with-msmall-divides-This.patch \
30 file://0023-Fix-the-calculation-of-high-word-in-a-long-long-64-b.patch \
31 file://0024-this-patch-has-1.Fixed-the-bug-in-version-calculatio.patch \
32 file://0025-Fixing-the-issue-with-the-builtin_alloc.-register-r1.patch \
33 file://0026-Removed-fsqrt-generation-for-double-values.patch \
34 file://0027-Intial-commit-of-64-bit-Microblaze.patch \
35 file://0028-Intial-commit-for-64bit-MB-sources.-Need-to-cleanup-.patch \
36 file://0029-re-arrangement-of-the-compare-branches.patch \
37 file://0030-previous-commit-broke-the-handling-of-SI-Branch-comp.patch \
38 file://0031-Support-of-multilibs-with-m64.patch \
39 file://0032-Fixed-issues-like-1-Interrupt-alignment-issue-2-Sign.patch \
40 file://0033-fixed-below-issues-Floating-point-print-issues-in-64.patch \
41 file://0034-Added-double-arith-instructions-Fixed-prologue-stack.patch \
42 file://0035-Fixed-the-issue-in-the-delay-slot-with-swap-instruct.patch \
43 file://0036-Fixed-the-load-store-issue-with-the-32bit-arith-libr.patch \
44 file://0037-extending-the-Dwarf-support-to-64bit-Microblaze.patch \
45 file://0038-fixing-the-typo-errors-in-umodsi3-file.patch \
46 file://0039-fixing-the-32bit-LTO-related-issue9-1014024.patch \
47 file://0040-Fixed-the-missing-stack-adjustment-in-prologue-of-mo.patch \
48 file://0041-corrected-SPN-for-dlong-instruction-mapping.patch \
49 file://0042-fixing-the-long-long-long-mingw-toolchain-issue.patch \
50 file://0043-Fix-the-MB-64-bug-of-handling-QI-objects.patch \
51 file://0044-We-will-check-the-possibility-of-peephole2-optimizat.patch \
52 file://0045-fixed-typos-in-mul-div-and-mod-assembly-files.patch \
53 file://0046-MB-64-removal-of-barrel-shift-instructions-from-defa.patch \
54 file://0047-Added-new-MB-64-single-register-arithmetic-instructi.patch \
55 file://0048-Added-support-for-64-bit-Immediate-values.patch \
56 file://0049-Fix-Compiler-crash-with-freg-struct-return-This-patc.patch \
57 file://0050-Add-TARGET_OPTION_OPTIMIZATION-and-disable-fivopts-b.patch \
58 file://0051-Reducing-Stack-space-for-arguments.patch \
59 file://0052-If-we-use-break_handler-attribute-then-interrupt-vec.patch \
60 file://0053-Add-Zero_extended-instructions.patch \
61 file://0054-Fix-failure-with-gcc.c-torture-execute-ashrdi-1.c-Os.patch \
62 file://microblaze-mulitlib-hack.patch \
63"
diff --git a/meta-vitis-tc/recipes-devtools/gcc/gcc-12/riscv-multilib-generator-python.patch b/meta-vitis-tc/recipes-devtools/gcc/gcc-12/riscv-multilib-generator-python.patch
deleted file mode 100644
index 9575539e..00000000
--- a/meta-vitis-tc/recipes-devtools/gcc/gcc-12/riscv-multilib-generator-python.patch
+++ /dev/null
@@ -1,14 +0,0 @@
1Use python3 instead of python when calling the mutlib-generator
2
3Upstream-Status: Backport
4
5Signed-off-by: Mark Hatle <mark.hatle@amd.com>
6
7--- gcc-12.2.0/gcc/config/riscv/multilib-generator.orig 2024-02-22 19:23:07.166805418 -0700
8+++ gcc-12.2.0/gcc/config/riscv/multilib-generator 2024-02-22 19:18:12.803798625 -0700
9@@ -1,4 +1,4 @@
10-#!/usr/bin/env python
11+#!/usr/bin/env python3
12
13 # RISC-V multilib list generator.
14 # Copyright (C) 2011-2022 Free Software Foundation, Inc.
diff --git a/meta-vitis-tc/recipes-devtools/gcc/gcc-12/additional-microblaze-multilibs.patch b/meta-vitis-tc/recipes-devtools/gcc/gcc-13/additional-microblaze-multilibs.patch
index e035b8a6..e035b8a6 100644
--- a/meta-vitis-tc/recipes-devtools/gcc/gcc-12/additional-microblaze-multilibs.patch
+++ b/meta-vitis-tc/recipes-devtools/gcc/gcc-13/additional-microblaze-multilibs.patch
diff --git a/meta-vitis-tc/recipes-devtools/gcc/gcc-source_12.%.bbappend b/meta-vitis-tc/recipes-devtools/gcc/gcc-source_12.%.bbappend
deleted file mode 100644
index a439407d..00000000
--- a/meta-vitis-tc/recipes-devtools/gcc/gcc-source_12.%.bbappend
+++ /dev/null
@@ -1,6 +0,0 @@
1# Add MicroBlaze Patches (only when using MicroBlaze)
2FILESEXTRAPATHS:append := ":${THISDIR}/gcc-12"
3SRC_URI += " \
4 file://additional-microblaze-multilibs.patch \
5 file://riscv-multilib-generator-python.patch \
6"
diff --git a/meta-vitis-tc/recipes-devtools/gcc/gcc-source_13.%.bbappend b/meta-vitis-tc/recipes-devtools/gcc/gcc-source_13.%.bbappend
index d7b58f1e..e38dd8b3 100644
--- a/meta-vitis-tc/recipes-devtools/gcc/gcc-source_13.%.bbappend
+++ b/meta-vitis-tc/recipes-devtools/gcc/gcc-source_13.%.bbappend
@@ -1,4 +1,5 @@
1FILESEXTRAPATHS:append := ":${THISDIR}/gcc-13" 1FILESEXTRAPATHS:append := ":${THISDIR}/gcc-13"
2SRC_URI += " \ 2SRC_URI += " \
3 file://additional-microblaze-multilibs.patch \
3 file://riscv-multilib-generator-python.patch \ 4 file://riscv-multilib-generator-python.patch \
4" 5"