commit: 997aa15f3f8aea5660399525476c925953464d41 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Mon Nov 3 14:33:29 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Nov 3 14:33:29 2025 +0000 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=997aa15f
16.0.0: add kernel fix Bug: https://gcc.gnu.org/PR122536 Signed-off-by: Sam James <sam <AT> gentoo.org> 16.0.0/gentoo/89_all_PR122536-rtx.patch | 23 +++++++++++++++++++++++ 16.0.0/gentoo/README.history | 1 + 2 files changed, 24 insertions(+) diff --git a/16.0.0/gentoo/89_all_PR122536-rtx.patch b/16.0.0/gentoo/89_all_PR122536-rtx.patch new file mode 100644 index 0000000..6004f2f --- /dev/null +++ b/16.0.0/gentoo/89_all_PR122536-rtx.patch @@ -0,0 +1,23 @@ +https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122536#c4 +--- a/gcc/simplify-rtx.cc ++++ b/gcc/simplify-rtx.cc +@@ -3686,8 +3686,8 @@ simplify_context::simplify_binary_operation_1 (rtx_code code, + && XEXP (op0, 1) == CONST1_RTX (mode) + && XEXP (op1, 1) == CONST1_RTX (mode) + /* Verify bit positions (for cases with variable bit position). */ +- && CONST_INT_P (XEXP (op0, 1)) +- && CONST_INT_P (XEXP (op1, 1))) ++ && CONST_INT_P (XEXP (XEXP (op0, 0), 1)) ++ && CONST_INT_P (XEXP (XEXP (op1, 0), 1))) + { + unsigned HOST_WIDE_INT bitpos1 = INTVAL (XEXP (XEXP (op0, 0), 1)); + unsigned HOST_WIDE_INT bitpos2 = INTVAL (XEXP (XEXP (op1, 0), 1)); +@@ -3718,7 +3718,7 @@ simplify_context::simplify_binary_operation_1 (rtx_code code, + && XEXP (op0, 1) == CONST1_RTX (mode) + && XEXP (op1, 1) == CONST0_RTX (mode) + /* Verify bit position. */ +- && CONST_INT_P (XEXP (op0, 1))) ++ && CONST_INT_P (XEXP (XEXP (op0, 0), 1))) + { + unsigned HOST_WIDE_INT bitpos1 = INTVAL (XEXP (XEXP (op0, 0), 1)); + unsigned HOST_WIDE_INT mask diff --git a/16.0.0/gentoo/README.history b/16.0.0/gentoo/README.history index 4d82d29..c95a651 100644 --- a/16.0.0/gentoo/README.history +++ b/16.0.0/gentoo/README.history @@ -1,6 +1,7 @@ 21 ???? U 88_all_PR122502.patch + + 89_all_PR122536-rtx.patch 20 3 November 2025
