diff options
author | dberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-03-25 19:17:26 +0000 |
---|---|---|
committer | dberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-03-25 19:17:26 +0000 |
commit | 604eef2cbd1a1c2dd2b268b3f5e4eedeb70c3983 (patch) | |
tree | 224a37b6b651b721ab029a9a7063751f561e976e /gcc/tree-flow-inline.h | |
parent | c2c965913f11f7a2a85aff51f95818fa8a084ec3 (diff) | |
download | gcc-604eef2cbd1a1c2dd2b268b3f5e4eedeb70c3983.tar.gz |
2006-03-25 Daniel Berlin <dberlin@dberlin.org>
PR tree-optimization/26804
* tree.h (DECL_CALL_CLOBBERED): New macro.
(tree_decl_common): Add call_clobbered_flag.
* tree-flow-inline.h (is_call_clobbered): Use DECL_CALL_CLOBBERED.
(mark_call_clobbered): Set DECL_CALL_CLOBBERED.
(clear_call_clobbered): Clear DECL_CALL_CLOBBERED.
(mark_non_addressable): Ditto.
* tree-ssa.c (verify_call_clobbered): New function.
(verify_alias_info): Use it.
* tree-pass.h (pass_reset_cc_flags): New prototype.
* tree-ssa-alias.c (pass_reset_cc_flags): New structure.
(reset_cc_flags): New function.
* passes.c (init_optimization_passes): Call reset_cc_flags after
initializing referenced_vars.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112380 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-flow-inline.h')
-rw-r--r-- | gcc/tree-flow-inline.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gcc/tree-flow-inline.h b/gcc/tree-flow-inline.h index 6a37b863c4c..f83c89c593a 100644 --- a/gcc/tree-flow-inline.h +++ b/gcc/tree-flow-inline.h @@ -821,7 +821,10 @@ loop_containing_stmt (tree stmt) static inline bool is_call_clobbered (tree var) { - return bitmap_bit_p (call_clobbered_vars, DECL_UID (var)); + if (!MTAG_P (var)) + return DECL_CALL_CLOBBERED (var); + else + return bitmap_bit_p (call_clobbered_vars, DECL_UID (var)); } /* Mark variable VAR as being clobbered by function calls. */ @@ -829,6 +832,8 @@ static inline void mark_call_clobbered (tree var, unsigned int escape_type) { var_ann (var)->escape_mask |= escape_type; + if (!MTAG_P (var)) + DECL_CALL_CLOBBERED (var) = true; bitmap_set_bit (call_clobbered_vars, DECL_UID (var)); } @@ -840,6 +845,8 @@ clear_call_clobbered (tree var) ann->escape_mask = 0; if (MTAG_P (var) && TREE_CODE (var) != STRUCT_FIELD_TAG) MTAG_GLOBAL (var) = 0; + if (!MTAG_P (var)) + DECL_CALL_CLOBBERED (var) = false; bitmap_clear_bit (call_clobbered_vars, DECL_UID (var)); } @@ -847,6 +854,8 @@ clear_call_clobbered (tree var) static inline void mark_non_addressable (tree var) { + if (!MTAG_P (var)) + DECL_CALL_CLOBBERED (var) = false; bitmap_clear_bit (call_clobbered_vars, DECL_UID (var)); TREE_ADDRESSABLE (var) = 0; } |