re PR ipa/59176 (ICE edge points to wrong declaration / verify_cgraph_node failed)
commit3d8d00439b8507ebb9c89949d44133bbdcde333f
authorMartin Jambor <mjambor@suse.cz>
Fri, 21 Mar 2014 12:59:35 +0000 (21 13:59 +0100)
committerMartin Jambor <jamborm@gcc.gnu.org>
Fri, 21 Mar 2014 12:59:35 +0000 (21 13:59 +0100)
tree9a7d70708594301be7def95ae86b5e51f4577ef8
parentd833415cdac558ab5da28048154d119856b62ad6
re PR ipa/59176 (ICE edge points to wrong declaration / verify_cgraph_node failed)

2014-03-21  Martin Jambor  <mjambor@suse.cz>

PR ipa/59176
* cgraph.h (symtab_node): New flag body_removed.
* ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
when removing bodies.
* symtab.c (dump_symtab_base): Dump body_removed flag.
* cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
had their bodies removed.

testsuite/
        * g++.dg/torture/pr59176.C: New test.

From-SVN: r208748
gcc/ChangeLog
gcc/cgraph.c
gcc/cgraph.h
gcc/ipa.c
gcc/symtab.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr59176.C [new file with mode: 0644]