From adb6509f4b75e929a237ded6d182f8524697fedf Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Wed, 20 Dec 2006 23:40:48 +0100 Subject: tree-flow-inline.h (gimple_var_anns): New function. * tree-flow-inline.h (gimple_var_anns): New function. (var_ann): Use hashtable for static functions. * tree-dfa.c (create_var_ann): Likewise. * tree-ssa.c (var_ann_eq, var_ann_hash): New functions. (init_tree_ssa): Initialize var anns. (delete_tree_ssa): Delete var anns; also clear out gimple_df. * tree-flow.h (struct static_var_ann_d): New structure. (gimple_df): Add var_anns. From-SVN: r120089 --- gcc/tree-flow.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'gcc/tree-flow.h') diff --git a/gcc/tree-flow.h b/gcc/tree-flow.h index 5f63ba9..8989c2f 100644 --- a/gcc/tree-flow.h +++ b/gcc/tree-flow.h @@ -38,6 +38,7 @@ typedef struct edge_def *edge; struct basic_block_def; typedef struct basic_block_def *basic_block; #endif +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 @@ -92,6 +93,10 @@ struct gimple_df GTY(()) { unsigned int in_ssa_p : 1; struct ssa_operands ssa_operands; + + /* Hashtable of variables annotations. Used for static variables only; + local variables have direct pointer in the tree node. */ + htab_t GTY((param_is (struct static_var_ann_d))) var_anns; }; /* Accessors for internal use only. Generic code should use abstraction @@ -283,6 +288,14 @@ struct var_ann_d GTY(()) unsigned int escape_mask; }; +/* Contianer for variable annotation used by hashtable for annotations for + static variables. */ +struct static_var_ann_d GTY(()) +{ + struct var_ann_d ann; + unsigned int uid; +}; + struct function_ann_d GTY(()) { struct tree_ann_common_d common; -- cgit v1.1