https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91880

--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Max Filippov
<jcmvb...@gcc.gnu.org>:

https://gcc.gnu.org/g:20c6c0c8b18ae1bb3582456085e98cb50ab5854a

commit r9-8500-g20c6c0c8b18ae1bb3582456085e98cb50ab5854a
Author: Max Filippov <jcmvb...@gmail.com>
Date:   Thu Sep 26 20:51:27 2019 +0000

    xtensa: backport fix for 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.

    2020-04-15  Max Filippov  <jcmvb...@gmail.com>
    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.

    gcc/testsuite/
            * gcc.target/xtensa/pr91880.c: New test case.
            * gcc.target/xtensa/xtensa.exp: New test suite.

Reply via email to