summaryrefslogtreecommitdiff
path: root/gcc/cgraph.h
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-27 02:07:01 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-27 02:07:01 +0000
commite748b31d9ba52be4fa7e00e5e7a801b89343ec14 (patch)
treefda3a71a120f0aa875aaa5fd29137598b8654835 /gcc/cgraph.h
parent3204f47b72f93dfdc5639db42285e872bde50d34 (diff)
downloadgcc-e748b31d9ba52be4fa7e00e5e7a801b89343ec14.tar.gz
* cgraphunit.c (verify_cgraph_node): Do checking that DECL match
edge only when checking is enabled; check using former_clone_of; check inline clones too. (cgraph_materialize_clone): Record former_clone_of pointer. (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not combining redirections; dump args_to_skip bitmap (cgraph_materialize_all_clones): Do no redirection here. * ipa-inline.c (inline_transform): Do redirection here. * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled cheking only). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159907 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r--gcc/cgraph.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h
index f352cc65e3a..1080c4452c6 100644
--- a/gcc/cgraph.h
+++ b/gcc/cgraph.h
@@ -226,6 +226,10 @@ struct GTY((chain_next ("%h.next"), chain_prev ("%h.previous"))) cgraph_node {
/* For functions with many calls sites it holds map from call expression
to the edge to speed up cgraph_edge function. */
htab_t GTY((param_is (struct cgraph_edge))) call_site_hash;
+#ifdef ENABLE_CHECKING
+ /* Declaration node used to be clone of. Used for checking only. */
+ tree former_clone_of;
+#endif
PTR GTY ((skip)) aux;