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

            Bug ID: 58332
           Summary: error: inlined_to pointer is set but no predecessors
                    found
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rsandifo at gcc dot gnu.org
                CC: hubicka at gcc dot gnu.org
            Target: x86_64-linux-gnu

The following testcase:

----------------------------------------------------------------------------
static inline int foo (int x) { return x + 1; }
__attribute__ ((__optimize__ (0))) int bar (void) { return foo (100); }
----------------------------------------------------------------------------

ICEs after r202187 with:

----------------------------------------------------------------------------
foo.c:2:71: error: inlined_to pointer is set but no predecessors found
 __attribute__ ((__optimize__ (0))) int bar (void) { return foo (100); }
                                                                       ^
_ZL3fooi/0 (int foo(int)) @0x7f6911eac000
  Type: function definition analyzed
  Visibility: prevailing_def_ironly
  References: 
  Referring: 
  Function int foo(int)/0 is inline copy in int bar()/1
  Availability: local
  Function flags: body local
  Called by: 
  Calls: 
/tmp/foo.c:2:71: internal compiler error: verify_cgraph_node failed
0x918f05 verify_cgraph_node(cgraph_node*)
        /home/richards/gcc/wide-int/gcc/gcc/cgraph.c:2866
0x910531 verify_symtab_node(symtab_node_def*)
        /home/richards/gcc/wide-int/gcc/gcc/symtab.c:772
0x910598 verify_symtab()
        /home/richards/gcc/wide-int/gcc/gcc/symtab.c:789
0x921389 compile()
        /home/richards/gcc/wide-int/gcc/gcc/cgraphunit.c:2146
0x9214b1 finalize_compilation_unit()
        /home/richards/gcc/wide-int/gcc/gcc/cgraphunit.c:2209
0x697554 cp_write_global_declarations()
        /home/richards/gcc/wide-int/gcc/gcc/cp/decl2.c:4364
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
----------------------------------------------------------------------------

I'm not saying we did the right thing before that either,
just that it didn't ICE :-)

Reply via email to