diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-27 08:26:40 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-27 08:26:40 +0000 |
commit | ca80ffc8eb660c9beb252617e2cc790187a14d05 (patch) | |
tree | 7bd96046e8e540d4d965847fd834d09264a8bb2f /gcc | |
parent | ff8e23a236a191ab943c07067b2618645c8da63a (diff) | |
download | gcc-ca80ffc8eb660c9beb252617e2cc790187a14d05.tar.gz |
2009-04-27 Richard Guenther <rguenther@suse.de>
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146828 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 12 | ||||
-rw-r--r-- | gcc/tree-dfa.c | 21 | ||||
-rw-r--r-- | gcc/tree-flow-inline.h | 23 | ||||
-rw-r--r-- | gcc/tree-flow.h | 18 |
4 files changed, 12 insertions, 62 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 67a820ee8be..849123e802b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,15 @@ +2009-04-27 Richard Guenther <rguenther@suse.de> + + * 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 <ubizjak@gmail.com> * 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 1bd54cd99a3..d00324a348e 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 536a111bb44..6a1ae4ce7db 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 71e58a8fc30..5fe75391ad7 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 *); |