aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--14.0.0/gentoo/76_all_PR113731-vect-crash.patch13
1 files changed, 13 insertions, 0 deletions
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. */