Re: [gcc13 backport 12/12] riscv: fix error: control reaches end of non-void function

2023-07-26 Thread Patrick O'Neill
This final patch fixes an error introduced by patch 9/12 in this series. I'll backport alongside the other patches once the 13 branch is unfrozen :) On 7/25/23 18:22, Kito Cheng wrote: OK for backport :) On Wed, Jul 26, 2023 at 2:11 AM Patrick O'Neill wrote: From: Martin Liska Fixes: gcc/co

Re: [gcc13 backport 12/12] riscv: fix error: control reaches end of non-void function

2023-07-25 Thread Kito Cheng via Gcc-patches
OK for backport :) On Wed, Jul 26, 2023 at 2:11 AM Patrick O'Neill wrote: > > From: Martin Liska > > 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/109

[gcc13 backport 12/12] riscv: fix error: control reaches end of non-void function

2023-07-25 Thread Patrick O'Neill
From: Martin Liska 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. --- gcc