https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69146
Bug ID: 69146 Summary: [5 Regression] ICE in extract_insn, at recog.c:2343 on powerpc64le-linux-gnu Product: gcc Version: 5.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: doko at gcc dot gnu.org Target Milestone: --- seen building the kumofs package with the gcc-5 branch 20160101: reduced test case: class A { bool m_fn1(); short m_role; }; char a; bool A::m_fn1() { __sync_bool_compare_and_swap(&m_role, -1, a); } $ g++ -c -g -O2 cluster.ii cluster.ii: In member function 'bool A::m_fn1()': cluster.ii:6:65: error: unrecognizable insn: bool A::m_fn1() { __sync_bool_compare_and_swap(&m_role, -1, a); } ^ (insn 11 10 12 4 (set (reg:CC 166) (compare:CC (reg:SI 165) (const_int 65535 [0xffff]))) cluster.ii:6 -1 (nil)) cluster.ii:6:65: internal compiler error: in extract_insn, at recog.c:2343 0x102c0103 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) ../../src/gcc/rtl-error.c:110 0x102c014f _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) ../../src/gcc/rtl-error.c:118 0x109a5bfb extract_insn(rtx_insn*) ../../src/gcc/recog.c:2343 0x10832e7f instantiate_virtual_regs_in_insn ../../src/gcc/function.c:1598 0x10832e7f instantiate_virtual_regs ../../src/gcc/function.c:1966 0x10832e7f execute ../../src/gcc/function.c:2015 Please submit a full bug report, with preprocessed source if appropriate.