summaryrefslogtreecommitdiffstats
path: root/gcc/tree-flow-inline.h
diff options
context:
space:
mode:
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-12-20 18:18:37 +0000
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-12-20 18:18:37 +0000
commit0cf506c886ca609627c8a38b1b44f4309a68f552 (patch)
tree4f20301c6201fe9b132e07d84f5911f4816afa44 /gcc/tree-flow-inline.h
parent460651e85342dd28d9c32872e71579cbe0ba9059 (diff)
downloadppe42-gcc-0cf506c886ca609627c8a38b1b44f4309a68f552.tar.gz
ppe42-gcc-0cf506c886ca609627c8a38b1b44f4309a68f552.zip
PR tree-optimization/19080
Merge from tree-cleanup-branch * tree-flow-inline.h (clear_call_clobbered): New function. * tree-ssa-alias.c (init_alias_info): Call it. testsuite/ChangeLog PR tree-optimization/19080 * gcc.c-torture/compile/pr19080.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92423 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-flow-inline.h')
-rw-r--r--gcc/tree-flow-inline.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/tree-flow-inline.h b/gcc/tree-flow-inline.h
index fd31a76f84c..b6bcb6528d9 100644
--- a/gcc/tree-flow-inline.h
+++ b/gcc/tree-flow-inline.h
@@ -625,6 +625,18 @@ mark_call_clobbered (tree var)
ssa_ro_call_cache_valid = false;
}
+/* Clear the call-clobbered attribute from variable VAR. */
+static inline void
+clear_call_clobbered (tree var)
+{
+ var_ann_t ann = var_ann (var);
+ if (ann->mem_tag_kind != NOT_A_TAG)
+ DECL_EXTERNAL (var) = 0;
+ bitmap_clear_bit (call_clobbered_vars, ann->uid);
+ ssa_call_clobbered_cache_valid = false;
+ ssa_ro_call_cache_valid = false;
+}
+
/* Mark variable VAR as being non-addressable. */
static inline void
mark_non_addressable (tree var)
OpenPOWER on IntegriCloud