diff options
author | dberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-22 15:01:02 +0000 |
---|---|---|
committer | dberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-22 15:01:02 +0000 |
commit | 20168cf29dbef684cb40d4b196bc3df39d8e34ee (patch) | |
tree | d35b07b258135f64556be040612caee313e68554 /gcc/ipa-reference.c | |
parent | 3d6b8be710445a7a01af0b657ea2e47c6a3c6670 (diff) | |
download | gcc-20168cf29dbef684cb40d4b196bc3df39d8e34ee.tar.gz |
2005-12-22 Daniel Berlin <dberlin@dberlin.org>
* ipa-reference.c (get_reference_vars_info_from_cgraph): Use
function_ann.
(get_local_reference_vars_info): Ditto.
(get_global_reference_vars_info): Ditto.
(analyze_function): Ditto.
(clean_function): Ditto.
* tree-dfa.c (create_function_ann): New function.
* tree-flow-inline.h (var_ann): FUNCTION_DECL's don't have
var_ann.
(function_ann): New.
(get_function_ann): Ditto.
* tree-flow.h (tree_ann_type): Add FUNCTION_ANN.
(struct var_ann_d): Move reference_vars_info to function annotation.
(struct function_ann_d): New.
(union tree_ann_d): Add function_ann.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108950 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-reference.c')
-rw-r--r-- | gcc/ipa-reference.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/ipa-reference.c b/gcc/ipa-reference.c index 531705226a5..ec8d3b8e595 100644 --- a/gcc/ipa-reference.c +++ b/gcc/ipa-reference.c @@ -111,7 +111,7 @@ tree memory_identifier_string; static inline ipa_reference_vars_info_t get_reference_vars_info_from_cgraph (struct cgraph_node * node) { - return get_var_ann (node->decl)->reference_vars_info; + return get_function_ann (node->decl)->reference_vars_info; } /* Get a bitmap that contains all of the locally referenced static @@ -119,7 +119,7 @@ get_reference_vars_info_from_cgraph (struct cgraph_node * node) static ipa_reference_local_vars_info_t get_local_reference_vars_info (tree fn) { - ipa_reference_vars_info_t info = get_var_ann (fn)->reference_vars_info; + ipa_reference_vars_info_t info = get_function_ann (fn)->reference_vars_info; if (info) return info->local; @@ -134,7 +134,7 @@ get_local_reference_vars_info (tree fn) static ipa_reference_global_vars_info_t get_global_reference_vars_info (tree fn) { - ipa_reference_vars_info_t info = get_var_ann (fn)->reference_vars_info; + ipa_reference_vars_info_t info = get_function_ann (fn)->reference_vars_info; if (info) return info->global; @@ -790,7 +790,7 @@ analyze_function (struct cgraph_node *fn) tree decl = fn->decl; /* Add the info to the tree's annotation. */ - get_var_ann (fn->decl)->reference_vars_info = info; + get_function_ann (fn->decl)->reference_vars_info = info; info->local = l; l->statics_read = BITMAP_ALLOC (&ipa_obstack); @@ -874,8 +874,8 @@ clean_function (struct cgraph_node *fn) } - free (get_var_ann (fn->decl)->reference_vars_info); - get_var_ann (fn->decl)->reference_vars_info = NULL; + free (get_function_ann (fn->decl)->reference_vars_info); + get_function_ann (fn->decl)->reference_vars_info = NULL; } |