https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89330

            Bug ID: 89330
           Summary: IPA inliner touches released cgraph_edges
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

Created attachment 45689
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45689&action=edit
Sanity check

Using the sanity check one can see following ICE:

$ g++ 1.ii 2.ii -shared -O2 -flto=8 -Wno-odr
removing edge: 0x7ffff7884420
removing edge: 0x7ffff78843c0
removing edge: 0x7ffff7884360
removing edge: 0x7ffff7884300
removing edge: 0x7ffff7884420
removing edge: 0x7ffff78843c0
removing edge: 0x7ffff7884360
removing edge: 0x7ffff7884420
removing edge: 0x7ffff78843c0
removing edge: 0x7ffff7884360
removing edge: 0x7ffff7884300
removing edge: 0x7ffff7884300
removing edge: 0x7ffff7525480
removing edge: 0x7ffff7525480
add_new_edges_to_heap: 0x7ffff7525480
during IPA pass: inline
lto1: internal compiler error: in add_new_edges_to_heap, at ipa-inline.c:1631
0x748286 add_new_edges_to_heap
        ../../gcc/ipa-inline.c:1631
0x1493d48 inline_small_functions
        ../../gcc/ipa-inline.c:2075
0x1493d48 ipa_inline
        ../../gcc/ipa-inline.c:2535
0x1493d48 execute
        ../../gcc/ipa-inline.c:2943

Reply via email to