commit:     3ab6b70bf9ee185da7e092e1df20753cdc35d710
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Feb  3 07:52:17 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Feb  3 07:52:17 2024 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=3ab6b70b

14.0.0: add PR113731 crash fix

Bug: https://gcc.gnu.org/PR113731
Signed-off-by: Sam James <sam <AT> gentoo.org>

 14.0.0/gentoo/76_all_PR113731-vect-crash.patch | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/14.0.0/gentoo/76_all_PR113731-vect-crash.patch 
b/14.0.0/gentoo/76_all_PR113731-vect-crash.patch
new file mode 100644
index 0000000..671f11f
--- /dev/null
+++ b/14.0.0/gentoo/76_all_PR113731-vect-crash.patch
@@ -0,0 +1,13 @@
+https://gcc.gnu.org/PR113731
+--- a/gcc/tree-vect-loop.cc
++++ b/gcc/tree-vect-loop.cc
+@@ -11801,7 +11801,8 @@ move_early_exit_stmts (loop_vec_info loop_vinfo)
+ 
+       gimple_stmt_iterator stmt_gsi = gsi_for_stmt (stmt);
+       gsi_move_before (&stmt_gsi, &dest_gsi);
+-      gsi_prev (&dest_gsi);
++      if (!gsi_end_p (dest_gsi))
++       gsi_prev (&dest_gsi);
+     }
+ 
+   /* Update all the stmts with their new reaching VUSES.  */

Reply via email to