* cgraphunit.c (clone_of_p): Compile only when checking is enabled.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159925
138bc75d-0d04-0410-961f-
82ee72b054a4
+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.
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;
+ /* Declaration node used to be clone of. Used for checking only.
+ We must skip it or we get references from release checking GGC files. */
+ tree GTY ((skip)) former_clone_of;
#endif
PTR GTY ((skip)) aux;
cgraph_mark_needed_node (node);
}
+#ifdef ENABLE_CHECKING
/* Return TRUE if NODE2 is equivalent to NODE or its clone. */
static bool
clone_of_p (struct cgraph_node *node, struct cgraph_node *node2)
node2 = node2->clone_of;
return node2 != NULL;
}
+#endif
/* Verify cgraph nodes of given cgraph node. */
void