summaryrefslogtreecommitdiff
path: root/gcc48-rh1469697-19.patch
diff options
context:
space:
mode:
Diffstat (limited to 'gcc48-rh1469697-19.patch')
-rw-r--r--gcc48-rh1469697-19.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/gcc48-rh1469697-19.patch b/gcc48-rh1469697-19.patch
new file mode 100644
index 0000000..655097e
--- /dev/null
+++ b/gcc48-rh1469697-19.patch
@@ -0,0 +1,36 @@
+2017-10-31 Segher Boessenkool <segher@kernel.crsahing.org>
+
+ PR target/82674
+ * config/rs6000/rs6000.md (allocate_stack): Force update interval
+ into a register if it does not fit into an immediate offset field.
+
+
+diff -Nrup a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
+--- a/gcc/config/rs6000/rs6000.md 2017-11-06 09:12:21.128237467 -0700
++++ b/gcc/config/rs6000/rs6000.md 2017-11-06 09:13:40.521601373 -0700
+@@ -11886,6 +11886,9 @@
+ {
+ rtx loop_lab, end_loop;
+ bool rotated = CONST_INT_P (rounded_size);
++ rtx update = GEN_INT (-probe_interval);
++ if (probe_interval > 32768)
++ update = force_reg (Pmode, update);
+
+ emit_stack_clash_protection_probe_loop_start (&loop_lab, &end_loop,
+ last_addr, rotated);
+@@ -11893,13 +11896,11 @@
+ if (Pmode == SImode)
+ emit_insn (gen_movsi_update_stack (stack_pointer_rtx,
+ stack_pointer_rtx,
+- GEN_INT (-probe_interval),
+- chain));
++ update, chain));
+ else
+ emit_insn (gen_movdi_di_update_stack (stack_pointer_rtx,
+ stack_pointer_rtx,
+- GEN_INT (-probe_interval),
+- chain));
++ update, chain));
+ emit_stack_clash_protection_probe_loop_end (loop_lab, end_loop,
+ last_addr, rotated);
+ }