https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104335
Bug ID: 104335 Summary: [12 regression] build failure if go is included in languages after r12-6747 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: seurer at gcc dot gnu.org Target Milestone: --- g:aa8cfe785953a0e87d2472311e1260cd98c605c0, r12-6747 This is a non-bootstrap build on a power 10 system with the configuration: configure --enable-languages=all --with-cpu=power10 --disable-bootstrap libtool: compile: /home/seurer/gcc/git/build/gcc-test/./gcc/gccgo -B/home/seurer/gcc/git/build/gcc-test/./gcc/ -B/home/seurer/gcc/git/install/gcc-test/powerpc64le-unknown-linux-gnu/bin/ -B/home/seurer/gcc/git/install/gcc-test/powerpc64le-unknown-linux-gnu/lib/ -isystem /home/seurer/gcc/git/install/gcc-test/powerpc64le-unknown-linux-gnu/include -isystem /home/seurer/gcc/git/install/gcc-test/powerpc64le-unknown-linux-gnu/sys-include -O2 -g -I . -c -fgo-pkgpath=golang.org/x/tools/internal/analysisinternal /home/seurer/gcc/git/gcc-test/libgo/go/golang.org/x/tools/internal/analysisinternal/analysis.go -o golang.org/x/tools/internal/analysisinternal.o during RTL pass: ce2 /home/seurer/gcc/git/gcc-test/libgo/go/golang.org/x/tools/internal/analysisinternal/analysis.go: In function 'golang.org/x/tools/internal/analysisinternal.FindBestMatch': /home/seurer/gcc/git/gcc-test/libgo/go/golang.org/x/tools/internal/analysisinternal/analysis.go:402:1: internal compiler error: in validate_condition_mode, at config/rs6000/rs6000.cc:11358 402 | func FindBestMatch(pattern string, idents []*ast.Ident) ast.Expr { | ^ 0x11128e5f validate_condition_mode(rtx_code, machine_mode) /home/seurer/gcc/git/gcc-test/gcc/config/rs6000/rs6000.cc:11354 0x1112909b rs6000_generate_compare /home/seurer/gcc/git/gcc-test/gcc/config/rs6000/rs6000.cc:15153 0x11132f63 rs6000_emit_int_cmove(rtx_def*, rtx_def*, rtx_def*, rtx_def*) /home/seurer/gcc/git/gcc-test/gcc/config/rs6000/rs6000.cc:16320 0x11840903 gen_movsicc(rtx_def*, rtx_def*, rtx_def*, rtx_def*) /home/seurer/gcc/git/gcc-test/gcc/config/rs6000/rs6000.md:5365 0x10a678e7 rtx_insn* insn_gen_fn::operator()<rtx_def*, rtx_def*, rtx_def*, rtx_def*>(rtx_def*, rtx_def*, rtx_def*, rtx_def*) const /home/seurer/gcc/git/gcc-test/gcc/recog.h:407 0x10a678e7 maybe_gen_insn(insn_code, unsigned int, expand_operand*) /home/seurer/gcc/git/gcc-test/gcc/optabs.cc:7962 0x10a68a93 maybe_expand_insn(insn_code, unsigned int, expand_operand*) /home/seurer/gcc/git/gcc-test/gcc/optabs.cc:7993 0x10a68a93 emit_conditional_move_1 /home/seurer/gcc/git/gcc-test/gcc/optabs.cc:5030 0x10a68a93 emit_conditional_move_1 /home/seurer/gcc/git/gcc-test/gcc/optabs.cc:4991 0x10a68bdb emit_conditional_move(rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, machine_mode) /home/seurer/gcc/git/gcc-test/gcc/optabs.cc:4980 0x11b9408f noce_emit_cmove /home/seurer/gcc/git/gcc-test/gcc/ifcvt.cc:1753 0x11b94d5b try_emit_cmove_seq /home/seurer/gcc/git/gcc-test/gcc/ifcvt.cc:3179 0x11b9c0a7 noce_convert_multiple_sets /home/seurer/gcc/git/gcc-test/gcc/ifcvt.cc:3394 0x11b9d8bf noce_process_if_block /home/seurer/gcc/git/gcc-test/gcc/ifcvt.cc:3613 0x11ba08bf noce_find_if_block /home/seurer/gcc/git/gcc-test/gcc/ifcvt.cc:4367 0x11ba08bf find_if_header /home/seurer/gcc/git/gcc-test/gcc/ifcvt.cc:4572 0x11ba08bf if_convert /home/seurer/gcc/git/gcc-test/gcc/ifcvt.cc:5713 0x11ba1a0b execute /home/seurer/gcc/git/gcc-test/gcc/ifcvt.cc:5866 commit e9ebb86799fd77cdd5351078230c114a90e66066 (HEAD) Author: Robin Dapp <rd...@linux.ibm.com> Date: Wed Nov 27 13:53:40 2019 +0100 ifcvt/optabs: Allow using a CC comparison for emit_conditional_move.