https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97417
Levy <admin at levyhsu dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #49470|0 |1 is obsolete| | Attachment #49500|0 |1 is obsolete| | --- Comment #23 from Levy <admin at levyhsu dot com> --- Created attachment 49524 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49524&action=edit Third test patch While I'm waiting for a solution, I've reused my second patch and made a new patch. Third test patch adds one extra function gen_extend_insn_auto() in optabs.c/h then just called by riscv_legitimize_move() Now it can emit sign/unsigned-extend insn automatically. Still haven't solved the shorten-memrefs issue. So it will still raise 2 error when make report-gcc So the -Os option (size optimization) may not behave as expected.