summaryrefslogtreecommitdiff
path: root/gcc48-rh1469697-19.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-01 14:23:42 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-01 14:23:42 +0000
commit82711f6567ef069eebb942e382e2c3fa61fbf538 (patch)
tree22200b7326b32ca672ffb6e4ce6d19a09dc476e5 /gcc48-rh1469697-19.patch
parent5d624aa0d36abe76a344f0593eae5cf36d083b15 (diff)
automatic import of compat-libgfortran-48openeuler24.03_LTSopeneuler23.09
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);
+ }