[coreboot-gerrit] New patch to review for coreboot: crossgcc: Attempt to fix out of bounds array access for nds32le
Stefan Reinauer (stefan.reinauer@coreboot.org)
gerrit at coreboot.org
Fri Apr 15 19:14:56 CEST 2016
Stefan Reinauer (stefan.reinauer at coreboot.org) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/14380
-gerrit
commit 9d9ccd36795e186c3fe55025291f4f1d9e241f06
Author: Stefan Reinauer <stefan.reinauer at coreboot.org>
Date: Fri Apr 15 10:12:57 2016 -0700
crossgcc: Attempt to fix out of bounds array access for nds32le
Patch from Segher Boessenkohl
Change-Id: Ia91e0d6e50399da38afd8cdc0b92c82e4efa0a08
Signed-off-by: Stefan Reinauer <stefan.reinauer at coreboot.org>
---
util/crossgcc/patches/gcc-5.2.0_nds32.diff | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/util/crossgcc/patches/gcc-5.2.0_nds32.diff b/util/crossgcc/patches/gcc-5.2.0_nds32.diff
new file mode 100644
index 0000000..3b772fa
--- /dev/null
+++ b/util/crossgcc/patches/gcc-5.2.0_nds32.diff
@@ -0,0 +1,17 @@
+diff -urN gcc-5.2.0.orig/gcc/config/nds32/nds32.md gcc-5.2.0/gcc/config/nds32/nds32.md
+--- gcc-5.2.0.orig/gcc/config/nds32/nds32.md 2015-01-15 22:45:09.000000000 -0800
++++ gcc-5.2.0/gcc/config/nds32/nds32.md 2016-04-14 22:09:09.000000000 -0700
+@@ -2289,11 +2289,11 @@
+ emit_jump_insn (gen_cbranchsi4 (test, operands[0], operands[2],
+ operands[4]));
+
+- operands[5] = gen_reg_rtx (SImode);
++ rtx tmp = gen_reg_rtx (SImode);
+ /* Step C, D, E, and F, using another temporary register operands[5]. */
+ emit_jump_insn (gen_casesi_internal (operands[0],
+ operands[3],
+- operands[5]));
++ tmp));
+ DONE;
+ })
+
More information about the coreboot-gerrit
mailing list