The following valid code snippet triggers an ICE on mainline
when compiled with "gcc -fno-unit-at-a-time -O":

========================================
static inline void foo() {}

void bar()
{
  foo();
}
========================================

bug.c:6: error: inlined_to pointer is set but no predecessors found
foo/2(-1): (inline copy in bar/1) availability:available(0) tree finalized
inlinable
  called by: 
  calls: 
bug.c:6: internal compiler error: verify_cgraph_node failed
Please submit a full bug report, [etc.]

The regression seems to be quite recent, as I cannot reproduce it with
GCC 4.3.0-20070112.


-- 
           Summary: [4.3 regression] ICE with -fno-unit-at-a-time an
                    inlining
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, monitored
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30537

Reply via email to