From 9eec94880e46d26d9be550ced93b8bef75645245 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sat, 29 May 2010 21:43:37 +0200 Subject: cgraph.h (struct varpool_node_set_def, [...]): Remove unused AUX pointer. * cgraph.h (struct varpool_node_set_def, struct cgraph_node_set_def): Remove unused AUX pointer. (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use VEC_empty macro. * lto.c (bitmap vector): Remove. (lto_cgraph_node_sets, lto_varpool_node_sets): Remove. (ltrans_partition_def): New structure. (ltrans_partition): New type and VECtor. (new_partition): New function. (add_cgraph_node_to_partition): New function. (lto_1_to_1_map): Reorganize for partitions. (lto_add_inline_clones): Remove. (lto_add_all_inlinees): Remove. (lto_promote_cross_file_statics): Use partitions. (cmp_partitions): New function. (lto_wpa_write_files): Do not call lto_add_all_inlinees; use partitions; output files sorted by size. From-SVN: r160034 --- gcc/cgraph.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'gcc/cgraph.h') diff --git a/gcc/cgraph.h b/gcc/cgraph.h index b4ce531..5b1960f 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -311,7 +311,6 @@ struct GTY(()) cgraph_node_set_def { htab_t GTY((param_is (struct cgraph_node_set_element_def))) hashtab; VEC(cgraph_node_ptr, gc) *nodes; - PTR GTY ((skip)) aux; }; typedef struct varpool_node *varpool_node_ptr; @@ -326,7 +325,6 @@ struct GTY(()) varpool_node_set_def { htab_t GTY((param_is (struct varpool_node_set_element_def))) hashtab; VEC(varpool_node_ptr, gc) *nodes; - PTR GTY ((skip)) aux; }; typedef struct cgraph_node_set_def *cgraph_node_set; @@ -869,14 +867,14 @@ struct GTY(()) constant_descriptor_tree { static inline bool cgraph_node_set_nonempty_p (cgraph_node_set set) { - return VEC_length (cgraph_node_ptr, set->nodes); + return !VEC_empty (cgraph_node_ptr, set->nodes); } /* Return true if set is nonempty. */ static inline bool varpool_node_set_nonempty_p (varpool_node_set set) { - return VEC_length (varpool_node_ptr, set->nodes); + return !VEC_empty (varpool_node_ptr, set->nodes); } /* Return true when function NODE is only called directly. -- cgit v1.1