From: Richard Guenther Date: Mon, 27 Apr 2009 08:26:40 +0000 (+0000) Subject: tree-flow-inline.h (function_ann): Remove. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=33b223c0a6fccd7dc07d0181f32a85d9a2d5705b;p=platform%2Fupstream%2Fgcc.git tree-flow-inline.h (function_ann): Remove. 2009-04-27 Richard Guenther * tree-flow-inline.h (function_ann): Remove. (get_function_ann): Likewise. * tree-dfa.c (create_function_ann): Remove. * tree-flow.h (struct static_var_ann_d): Remove. (struct function_ann_d): Likewise. (union tree_ann_d): Remove fdecl member. (function_ann_t): Remove. (function_ann, get_function_ann, create_function_ann): Remove declarations. From-SVN: r146828 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 67a820e..849123e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,15 @@ +2009-04-27 Richard Guenther + + * tree-flow-inline.h (function_ann): Remove. + (get_function_ann): Likewise. + * tree-dfa.c (create_function_ann): Remove. + * tree-flow.h (struct static_var_ann_d): Remove. + (struct function_ann_d): Likewise. + (union tree_ann_d): Remove fdecl member. + (function_ann_t): Remove. + (function_ann, get_function_ann, create_function_ann): Remove + declarations. + 2009-04-27 Uros Bizjak * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code. diff --git a/gcc/tree-dfa.c b/gcc/tree-dfa.c index 1bd54cd..d00324a 100644 --- a/gcc/tree-dfa.c +++ b/gcc/tree-dfa.c @@ -138,27 +138,6 @@ create_var_ann (tree t) return ann; } -/* Create a new annotation for a FUNCTION_DECL node T. */ - -function_ann_t -create_function_ann (tree t) -{ - function_ann_t ann; - - gcc_assert (t); - gcc_assert (TREE_CODE (t) == FUNCTION_DECL); - gcc_assert (!t->base.ann || t->base.ann->common.type == FUNCTION_ANN); - - ann = (function_ann_t) ggc_alloc (sizeof (*ann)); - memset ((void *) ann, 0, sizeof (*ann)); - - ann->common.type = FUNCTION_ANN; - - t->base.ann = (tree_ann_t) ann; - - return ann; -} - /* Renumber all of the gimple stmt uids. */ void diff --git a/gcc/tree-flow-inline.h b/gcc/tree-flow-inline.h index 536a111..6a1ae4c 100644 --- a/gcc/tree-flow-inline.h +++ b/gcc/tree-flow-inline.h @@ -172,29 +172,6 @@ get_var_ann (tree var) return (ann) ? ann : create_var_ann (var); } -/* Return the function annotation for T, which must be a FUNCTION_DECL node. - Return NULL if the function annotation doesn't already exist. */ -static inline function_ann_t -function_ann (const_tree t) -{ - gcc_assert (t); - gcc_assert (TREE_CODE (t) == FUNCTION_DECL); - gcc_assert (!t->base.ann - || t->base.ann->common.type == FUNCTION_ANN); - - return (function_ann_t) t->base.ann; -} - -/* Return the function annotation for T, which must be a FUNCTION_DECL node. - Create the function annotation if it doesn't exist. */ -static inline function_ann_t -get_function_ann (tree var) -{ - function_ann_t ann = function_ann (var); - gcc_assert (!var->base.ann || var->base.ann->common.type == FUNCTION_ANN); - return (ann) ? ann : create_function_ann (var); -} - /* Get the number of the next statement uid to be allocated. */ static inline unsigned int gimple_stmt_max_uid (struct function *fn) diff --git a/gcc/tree-flow.h b/gcc/tree-flow.h index 71e58a8..5fe7539 100644 --- a/gcc/tree-flow.h +++ b/gcc/tree-flow.h @@ -32,8 +32,6 @@ along with GCC; see the file COPYING3. If not see #include "ipa-reference.h" #include "tree-ssa-alias.h" -struct static_var_ann_d; - /* Gimple dataflow datastructure. All publicly available fields shall have gimple_ accessor defined in tree-flow-inline.h, all publicly modifiable @@ -221,17 +219,6 @@ struct GTY(()) var_ann_d { tree current_def; }; -/* Container for variable annotation used by hashtable for annotations for - static variables. */ -struct GTY(()) static_var_ann_d { - struct var_ann_d ann; - unsigned int uid; -}; - -struct GTY(()) function_ann_d { - struct tree_ann_common_d common; -}; - /* Immediate use lists are used to directly access all uses for an SSA name and get pointers to the statement for each use. @@ -330,20 +317,16 @@ typedef struct immediate_use_iterator_d union GTY((desc ("ann_type ((tree_ann_t)&%h)"))) tree_ann_d { struct tree_ann_common_d GTY((tag ("TREE_ANN_COMMON"))) common; struct var_ann_d GTY((tag ("VAR_ANN"))) vdecl; - struct function_ann_d GTY((tag ("FUNCTION_ANN"))) fdecl; }; typedef union tree_ann_d *tree_ann_t; typedef struct var_ann_d *var_ann_t; -typedef struct function_ann_d *function_ann_t; typedef struct tree_ann_common_d *tree_ann_common_t; static inline tree_ann_common_t tree_common_ann (const_tree); static inline tree_ann_common_t get_tree_common_ann (tree); static inline var_ann_t var_ann (const_tree); static inline var_ann_t get_var_ann (tree); -static inline function_ann_t function_ann (const_tree); -static inline function_ann_t get_function_ann (tree); static inline enum tree_ann_type ann_type (tree_ann_t); static inline void update_stmt (gimple); static inline int get_lineno (const_gimple); @@ -566,7 +549,6 @@ extern const char *op_symbol_code (enum tree_code); /* In tree-dfa.c */ extern var_ann_t create_var_ann (tree); -extern function_ann_t create_function_ann (tree); extern void renumber_gimple_stmt_uids (void); extern tree_ann_common_t create_tree_common_ann (tree); extern void dump_dfa_stats (FILE *);