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

            Bug ID: 81360
           Summary: ice in estimate_edge_growth, at ipa-inline.h:86
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

The following reduced code, with recent trunk gcc and compiler flag -O2,
does this:

bug366.c:10:1: internal compiler error: in estimate_edge_growth, at
ipa-inline.h:86
 }
 ^
0x9e5aa3 estimate_edge_growth
        ../../trunk/gcc/ipa-inline.h:85
0x9e5aa3 estimate_size_after_inlining(cgraph_node*, cgraph_edge*)
        ../../trunk/gcc/ipa-inline-analysis.c:300
0x14c33e1 caller_growth_limits
        ../../trunk/gcc/ipa-inline.c:186
0x14c33e1 can_inline_edge_p
        ../../trunk/gcc/ipa-inline.c:383

Reduced code is

typedef a;
b(void *c, a d) {
  if (c)
    e(0, __PRETTY_FUNCTION__);
}
typedef f, g;
__attribute__((optimize(0))) h() {
  g i;
  b(i, sizeof(f));
}

I'll have a go at finding out which revision caused the problem,
but at the moment, it looks like sometime after gcc revision 249539.

Reply via email to