From 1557f0ea6e1ae6c363544b853c805d4ee5900ec3 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 11 Jun 2021 15:28:11 +0200 Subject: gcc: update 8/9 --- .../8.4.0/0002-xtensa-fix-PR-target-91880.patch | 49 ---------------------- 1 file changed, 49 deletions(-) delete mode 100644 toolchain/gcc/patches/8.4.0/0002-xtensa-fix-PR-target-91880.patch (limited to 'toolchain/gcc/patches/8.4.0/0002-xtensa-fix-PR-target-91880.patch') diff --git a/toolchain/gcc/patches/8.4.0/0002-xtensa-fix-PR-target-91880.patch b/toolchain/gcc/patches/8.4.0/0002-xtensa-fix-PR-target-91880.patch deleted file mode 100644 index e65352501..000000000 --- a/toolchain/gcc/patches/8.4.0/0002-xtensa-fix-PR-target-91880.patch +++ /dev/null @@ -1,49 +0,0 @@ -From 7c11710230921246156aecc20eb4b6ccaeaaa473 Mon Sep 17 00:00:00 2001 -From: Max Filippov -Date: Tue, 24 Sep 2019 04:15:17 -0700 -Subject: [PATCH] xtensa: fix PR target/91880 - -Xtensa hwloop_optimize segfaults when zero overhead loop is about to be -inserted as the first instruction of the function. -Insert zero overhead loop instruction into new basic block before the -loop when basic block that precedes the loop is empty. - -2019-09-26 Max Filippov -gcc/ - * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead - loop instruction into new basic block before the loop when basic - block that precedes the loop is empty. - -Signed-off-by: Max Filippov ---- -Backported from: r276166 - - gcc/config/xtensa/xtensa.c | 5 ++-- - 1 file changed, 3 insertions(+), 2 deletions(-) - -diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c -index ee5612441e25..2527468d57db 100644 ---- a/gcc/config/xtensa/xtensa.c -+++ b/gcc/config/xtensa/xtensa.c -@@ -4232,7 +4232,9 @@ hwloop_optimize (hwloop_info loop) - - seq = get_insns (); - -- if (!single_succ_p (entry_bb) || vec_safe_length (loop->incoming) > 1) -+ entry_after = BB_END (entry_bb); -+ if (!single_succ_p (entry_bb) || vec_safe_length (loop->incoming) > 1 -+ || !entry_after) - { - basic_block new_bb; - edge e; -@@ -4253,7 +4255,6 @@ hwloop_optimize (hwloop_info loop) - } - else - { -- entry_after = BB_END (entry_bb); - while (DEBUG_INSN_P (entry_after) - || (NOTE_P (entry_after) - && NOTE_KIND (entry_after) != NOTE_INSN_BASIC_BLOCK)) --- -2.11.0 - -- cgit v1.2.3