[Bug target/109713] [14 Regression] gcc/config/riscv/sync.md:66:1: error: control reaches end of non-void function [-Werror=return-type] since r14-406-gbff7c773864479
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jul 31 16:19:29 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109713
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Patrick O'Neill
<poneill@gcc.gnu.org>:
https://gcc.gnu.org/g:1e9180b3298def6c01d9055d558fdb52231f8d2d
commit r13-7674-g1e9180b3298def6c01d9055d558fdb52231f8d2d
Author: Martin Liska <mliska@suse.cz>
Date: Wed May 3 16:35:26 2023 +0200
riscv: fix error: control reaches end of non-void function
Fixes:
gcc/config/riscv/sync.md:66:1: error: control reaches end of non-void
function [-Werror=return-type]
66 | [(set (attr "length") (const_int 4))])
| ^
PR target/109713
gcc/ChangeLog:
* config/riscv/sync.md: Add gcc_unreachable to a switch.
More information about the Gcc-bugs
mailing list