aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-02-19 00:01:46 +0000
committerSam James <sam@gentoo.org>2024-02-19 00:01:46 +0000
commite54a7fbca63053b5753fd9ba543c27ef392d3084 (patch)
tree23ef5f5293b9786dffae9371d7345837290107c3
parent14.0.0: drop upstream patch (diff)
downloadgcc-patches-e54a7fbca63053b5753fd9ba543c27ef392d3084.tar.gz
gcc-patches-e54a7fbca63053b5753fd9ba543c27ef392d3084.tar.bz2
gcc-patches-e54a7fbca63053b5753fd9ba543c27ef392d3084.zip
14.0.0: arm: fix inconsistency between atomic patterns and expected attributes
Apply workaround patch from Andrew Pinski at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113915#c9. Bug: https://gcc.gnu.org/PR113915 Bug: https://bugs.gentoo.org/924237 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--14.0.0/gentoo/75_all_arm_PR113915-atomics.patch36
-rw-r--r--14.0.0/gentoo/README.history5
2 files changed, 41 insertions, 0 deletions
diff --git a/14.0.0/gentoo/75_all_arm_PR113915-atomics.patch b/14.0.0/gentoo/75_all_arm_PR113915-atomics.patch
new file mode 100644
index 0000000..82fa84a
--- /dev/null
+++ b/14.0.0/gentoo/75_all_arm_PR113915-atomics.patch
@@ -0,0 +1,36 @@
+From 9b1d9f15e7ecfd7d27a2bb878efb6577741eecaa Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Sun, 18 Feb 2024 22:58:51 +0000
+Subject: [PATCH] arm: fix inconsistency between atomic patterns and expected
+ attributes
+
+Apply workaround patch from Andrew Pinski at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113915#c9.
+
+Bug: https://gcc.gnu.org/PR113915
+Bug: https://bugs.gentoo.org/924237
+---
+ gcc/config/arm/arm.cc | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/gcc/config/arm/arm.cc b/gcc/config/arm/arm.cc
+index 1cd69268ee98..9f0d2405b905 100644
+--- a/gcc/config/arm/arm.cc
++++ b/gcc/config/arm/arm.cc
+@@ -25614,11 +25614,12 @@ arm_final_prescan_insn (rtx_insn *insn)
+
+ case INSN:
+ /* Instructions using or affecting the condition codes make it
+- fail. */
++ fail or ones which cannot be predicable. */
+ scanbody = PATTERN (this_insn);
+ if (!(GET_CODE (scanbody) == SET
+ || GET_CODE (scanbody) == PARALLEL)
+- || get_attr_conds (this_insn) != CONDS_NOCOND)
++ || get_attr_conds (this_insn) != CONDS_NOCOND
++ || get_attr_predicable (this_insn) != PREDICABLE_YES)
+ fail = TRUE;
+ break;
+
+--
+2.43.2
+
diff --git a/14.0.0/gentoo/README.history b/14.0.0/gentoo/README.history
index 8cfb3c2..dd7c933 100644
--- a/14.0.0/gentoo/README.history
+++ b/14.0.0/gentoo/README.history
@@ -1,3 +1,8 @@
+23 19 Feb 2024
+
+ - 75_all_PR113734_middle_end_update_vector_loop_bounds.patch
+ + 75_all_arm_PR113915-atomics.patch
+
22 13 Feb 2024
+ 75_all_PR113734_middle_end_update_vector_loop_bounds.patch