aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.h
diff options
context:
space:
mode:
authorMartin Jambor <mjambor@suse.cz>2014-03-21 13:59:35 +0100
committerMartin Jambor <jamborm@gcc.gnu.org>2014-03-21 13:59:35 +0100
commit3d8d00439b8507ebb9c89949d44133bbdcde333f (patch)
tree9a7d70708594301be7def95ae86b5e51f4577ef8 /gcc/cgraph.h
parentd833415cdac558ab5da28048154d119856b62ad6 (diff)
downloadgcc-3d8d00439b8507ebb9c89949d44133bbdcde333f.zip
gcc-3d8d00439b8507ebb9c89949d44133bbdcde333f.tar.gz
gcc-3d8d00439b8507ebb9c89949d44133bbdcde333f.tar.bz2
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
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r--gcc/cgraph.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h
index 32b1ee1..59d9ce6 100644
--- a/gcc/cgraph.h
+++ b/gcc/cgraph.h
@@ -91,7 +91,9 @@ public:
unsigned forced_by_abi : 1;
/* True when the name is known to be unique and thus it does not need mangling. */
unsigned unique_name : 1;
-
+ /* True when body and other characteristics have been removed by
+ symtab_remove_unreachable_nodes. */
+ unsigned body_removed : 1;
/*** WHOPR Partitioning flags.
These flags are used at ltrans stage when only part of the callgraph is