aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/perl/perl/debian/sh4_op_optimize_workaround.diff
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/perl/perl/debian/sh4_op_optimize_workaround.diff')
-rw-r--r--meta/recipes-devtools/perl/perl/debian/sh4_op_optimize_workaround.diff31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl/debian/sh4_op_optimize_workaround.diff b/meta/recipes-devtools/perl/perl/debian/sh4_op_optimize_workaround.diff
new file mode 100644
index 0000000000..6ff0f8967c
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/sh4_op_optimize_workaround.diff
@@ -0,0 +1,31 @@
+From 540afd0f01e5179cdb247daeaa9160939f8462a0 Mon Sep 17 00:00:00 2001
+From: Niko Tyni <ntyni@debian.org>
+Date: Sat, 29 Jul 2017 23:32:51 +0300
+Subject: Also lower the optimization level of op.c and opmini.c on sh4
+
+This amends
+ debian/hppa_op_optimize_workaround.diff
+ debian/hppa_opmini_optimize_workaround.diff
+
+Bug-Debian: https://bugs.debian.org/869373
+Patch-Name: debian/sh4_op_optimize_workaround.diff
+---
+ cflags.SH | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/cflags.SH b/cflags.SH
+index ae3b1e88f0..daa73a1659 100755
+--- a/cflags.SH
++++ b/cflags.SH
+@@ -493,9 +493,9 @@ for file do
+ # or customize here
+
+ case "$file" in
+- op|opmini) : work around http://bugs.debian.org/838613 and 869122
++ op|opmini) : work around http://bugs.debian.org/838613 869122 869373
+ case $archname in
+- hppa-*)
++ hppa-*|sh4-*)
+ optimize="$optimize -O0";;
+ esac;;
+