[OpenWrt-Devel] [PATCH 2/4] archs38: Add patch for gcc8 compilance

Evgeniy Didin Evgeniy.Didin at synopsys.com
Sat Mar 28 07:12:35 EDT 2020


Building Linux kernel version 5.4.x with GCC8 ends up
with internal compiler error. The workaround on this issue
can be introdution of additional compiler option "--mmpy-option=2" 

Signed-off-by: Evgeniy Didin <Evgeniy.Didin at synopsys.com>
Cc: Alexey Brodkin <abrodkin at synopsys.com>
Cc: Petr Å tetiar <ynezz at true.cz>
Cc: Hauke Mehrtens <hauke at hauke-m.de>
Cc: John Crispin <john at phrozen.org>
---
 ...h-arc-Add-compiler-option-for-gcc8.4.patch | 26 +++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 target/linux/archs38/patches-5.4/0001-arch-arc-Add-compiler-option-for-gcc8.4.patch

diff --git a/target/linux/archs38/patches-5.4/0001-arch-arc-Add-compiler-option-for-gcc8.4.patch b/target/linux/archs38/patches-5.4/0001-arch-arc-Add-compiler-option-for-gcc8.4.patch
new file mode 100644
index 0000000000..a6502009c7
--- /dev/null
+++ b/target/linux/archs38/patches-5.4/0001-arch-arc-Add-compiler-option-for-gcc8.4.patch
@@ -0,0 +1,26 @@
+From 2e2b3aeda9af9c029bf347c974911fe96cd79c43 Mon Sep 17 00:00:00 2001
+From: Evgeniy Didin <didin at synopsys.com>
+Date: Mon, 23 Mar 2020 15:57:18 +0300
+Subject: [PATCH] arch/arc: Add compiler option for gcc8.4
+
+Signed-off-by: Evgeniy Didin <didin at synopsys.com>
+---
+ arch/arc/Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/arch/arc/Makefile b/arch/arc/Makefile
+index f1c44cccf8d6..806ec4a9e80a 100644
+--- a/arch/arc/Makefile
++++ b/arch/arc/Makefile
+@@ -11,7 +11,7 @@ endif
+ 
+ cflags-y	+= -fno-common -pipe -fno-builtin -mmedium-calls -D__linux__
+ cflags-$(CONFIG_ISA_ARCOMPACT)	+= -mA7
+-cflags-$(CONFIG_ISA_ARCV2)	+= -mcpu=hs38
++cflags-$(CONFIG_ISA_ARCV2)	+= -mcpu=hs38 -mmpy-option=2
+ 
+ ifdef CONFIG_ARC_CURR_IN_REG
+ # For a global register defintion, make sure it gets passed to every file
+-- 
+2.23.0
+
-- 
2.23.0


-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list