tree-flow-inline.h (function_ann): Remove.

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.

From-SVN: r146828
This commit is contained in:
Richard Guenther 2009-04-27 08:26:40 +00:00 committed by Richard Biener
parent e3136fa27d
commit 33b223c0a6
4 changed files with 12 additions and 62 deletions

View file

@ -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> 2009-04-27 Uros Bizjak <ubizjak@gmail.com>
* config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code. * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.

View file

@ -138,27 +138,6 @@ create_var_ann (tree t)
return ann; 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. */ /* Renumber all of the gimple stmt uids. */
void void

View file

@ -172,29 +172,6 @@ get_var_ann (tree var)
return (ann) ? ann : create_var_ann (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. */ /* Get the number of the next statement uid to be allocated. */
static inline unsigned int static inline unsigned int
gimple_stmt_max_uid (struct function *fn) gimple_stmt_max_uid (struct function *fn)

View file

@ -32,8 +32,6 @@ along with GCC; see the file COPYING3. If not see
#include "ipa-reference.h" #include "ipa-reference.h"
#include "tree-ssa-alias.h" #include "tree-ssa-alias.h"
struct static_var_ann_d;
/* Gimple dataflow datastructure. All publicly available fields shall have /* Gimple dataflow datastructure. All publicly available fields shall have
gimple_ accessor defined in tree-flow-inline.h, all publicly modifiable gimple_ accessor defined in tree-flow-inline.h, all publicly modifiable
@ -221,17 +219,6 @@ struct GTY(()) var_ann_d {
tree current_def; 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 /* Immediate use lists are used to directly access all uses for an SSA
name and get pointers to the statement for each use. 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 { union GTY((desc ("ann_type ((tree_ann_t)&%h)"))) tree_ann_d {
struct tree_ann_common_d GTY((tag ("TREE_ANN_COMMON"))) common; struct tree_ann_common_d GTY((tag ("TREE_ANN_COMMON"))) common;
struct var_ann_d GTY((tag ("VAR_ANN"))) vdecl; 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 union tree_ann_d *tree_ann_t;
typedef struct var_ann_d *var_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; 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 tree_common_ann (const_tree);
static inline tree_ann_common_t get_tree_common_ann (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 var_ann (const_tree);
static inline var_ann_t get_var_ann (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 enum tree_ann_type ann_type (tree_ann_t);
static inline void update_stmt (gimple); static inline void update_stmt (gimple);
static inline int get_lineno (const_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 */ /* In tree-dfa.c */
extern var_ann_t create_var_ann (tree); extern var_ann_t create_var_ann (tree);
extern function_ann_t create_function_ann (tree);
extern void renumber_gimple_stmt_uids (void); extern void renumber_gimple_stmt_uids (void);
extern tree_ann_common_t create_tree_common_ann (tree); extern tree_ann_common_t create_tree_common_ann (tree);
extern void dump_dfa_stats (FILE *); extern void dump_dfa_stats (FILE *);