https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111074
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Li Xu <x...@gcc.gnu.org>: https://gcc.gnu.org/g:93c4226585cc53fd86dfa3ca2d70d5b417d960b3 commit r13-7738-g93c4226585cc53fd86dfa3ca2d70d5b417d960b3 Author: xuli <xu...@eswincomputing.com> Date: Tue Aug 22 06:21:00 2023 +0000 RISCV: Fix PR111074 [GCC13 BUG] his patch fixes this issue happens on GCC-13. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111074 This patch should be backported to GCC-13. GCC-14 has rewritten propagate_avl function, so there is no issue. PR target/111074 gcc/ChangeLog: * config/riscv/riscv-vsetvl.cc (extract_single_source): Fix bug.