Commit 753d358d by Jan Hubicka Committed by Jan Hubicka

cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).

	* cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
	* cgraphunit.c (clone_of_p): Compile only when checking is enabled.

From-SVN: r159925
parent 44491ebd
2010-05-27 Jan Hubicka <jh@suse.cz> 2010-05-27 Jan Hubicka <jh@suse.cz>
* cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
* cgraphunit.c (clone_of_p): Compile only when checking is enabled.
2010-05-27 Jan Hubicka <jh@suse.cz>
* sched-ebb.c: Rename struct deps to struct deps_desc. * sched-ebb.c: Rename struct deps to struct deps_desc.
* ddg.c: Likewise. * ddg.c: Likewise.
* sel-sched-ir.c: Likewise. * sel-sched-ir.c: Likewise.
......
...@@ -227,8 +227,9 @@ struct GTY((chain_next ("%h.next"), chain_prev ("%h.previous"))) cgraph_node { ...@@ -227,8 +227,9 @@ struct GTY((chain_next ("%h.next"), chain_prev ("%h.previous"))) cgraph_node {
to the edge to speed up cgraph_edge function. */ to the edge to speed up cgraph_edge function. */
htab_t GTY((param_is (struct cgraph_edge))) call_site_hash; htab_t GTY((param_is (struct cgraph_edge))) call_site_hash;
#ifdef ENABLE_CHECKING #ifdef ENABLE_CHECKING
/* Declaration node used to be clone of. Used for checking only. */ /* Declaration node used to be clone of. Used for checking only.
tree former_clone_of; We must skip it or we get references from release checking GGC files. */
tree GTY ((skip)) former_clone_of;
#endif #endif
PTR GTY ((skip)) aux; PTR GTY ((skip)) aux;
......
...@@ -557,6 +557,7 @@ cgraph_mark_if_needed (tree decl) ...@@ -557,6 +557,7 @@ cgraph_mark_if_needed (tree decl)
cgraph_mark_needed_node (node); cgraph_mark_needed_node (node);
} }
#ifdef ENABLE_CHECKING
/* Return TRUE if NODE2 is equivalent to NODE or its clone. */ /* Return TRUE if NODE2 is equivalent to NODE or its clone. */
static bool static bool
clone_of_p (struct cgraph_node *node, struct cgraph_node *node2) clone_of_p (struct cgraph_node *node, struct cgraph_node *node2)
...@@ -565,6 +566,7 @@ clone_of_p (struct cgraph_node *node, struct cgraph_node *node2) ...@@ -565,6 +566,7 @@ clone_of_p (struct cgraph_node *node, struct cgraph_node *node2)
node2 = node2->clone_of; node2 = node2->clone_of;
return node2 != NULL; return node2 != NULL;
} }
#endif
/* Verify cgraph nodes of given cgraph node. */ /* Verify cgraph nodes of given cgraph node. */
void void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment