https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104817
Bug ID: 104817 Summary: mips: ICE with -fzero-call-used-regs=all Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: xry111 at mengyan1223 dot wang Target Milestone: --- $ echo 'int t() {}' | /home/xry111/git-repos/gcc-test-mips/gcc/cc1 -nostdinc -fzero-call-used-regs=all Analyzing compilation unit Performing interprocedural optimizations <*free_lang_data> {heap 1208k} <visibility> {heap 1208k} <build_ssa_passes> {heap 1208k} <opt_local_passes> {heap 1208k} <remove_symbols> {heap 1208k} <targetclone> {heap 1208k} <free-fnsummary> {heap 1208k} <emutls> {heap 1208k}Streaming LTO <whole-program> {heap 1208k} <fnsummary> {heap 1208k} <inline> {heap 1208k} <modref> {heap 1208k} <free-fnsummary> {heap 1208k} <single-use> {heap 1208k}Assembling functions: tduring RTL pass: final <stdin>: In function âtâ: <stdin>:1:10: internal compiler error: in mips_output_move, at config/mips/mips.cc:5323 0x1834ac9 mips_output_move(rtx_def*, rtx_def*) ../../gcc/gcc/config/mips/mips.cc:5323 0x1ead799 output_313 ../../gcc/gcc/config/mips/mips.md:4771 0xe21260 get_insn_template(int, rtx_insn*) ../../gcc/gcc/final.cc:2047 0xe234ab final_scan_insn_1 ../../gcc/gcc/final.cc:2827 0xe23933 final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*) ../../gcc/gcc/final.cc:2940 0xe21086 final_1 ../../gcc/gcc/final.cc:1997 0xe264d5 rest_of_handle_final ../../gcc/gcc/final.cc:4285 0xe26834 execute ../../gcc/gcc/final.cc:4363 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.