From: Kazu Hirata Date: Sat, 26 May 2007 15:17:38 +0000 (+0000) Subject: tree-flow.h: Remove the prototype for is_aliased_with. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5ef1348f3c0f87d70e284a9b2310fe48cf4d10ed;p=platform%2Fupstream%2Fgcc.git tree-flow.h: Remove the prototype for is_aliased_with. * tree-flow.h: Remove the prototype for is_aliased_with. * tree-ssa-alias.c (is_aliased_with): Remove. From-SVN: r125095 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d30b21b..5ffa0f1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -3,6 +3,9 @@ * basic-block.h: Remove the prototype for merge_seq_blocks. * cfgcleanup.c (merge_seq_blocks): Remove. + * tree-flow.h: Remove the prototype for is_aliased_with. + * tree-ssa-alias.c (is_aliased_with): Remove. + 2007-05-26 H.J. Lu * config/i386/i386-protos.h (ix86_expand_sse4_unpack): New. diff --git a/gcc/tree-flow.h b/gcc/tree-flow.h index 40e8049..e4260ad 100644 --- a/gcc/tree-flow.h +++ b/gcc/tree-flow.h @@ -834,7 +834,6 @@ extern void debug_points_to_info (void); extern void dump_points_to_info_for (FILE *, tree); extern void debug_points_to_info_for (tree); extern bool may_be_aliased (tree); -extern bool is_aliased_with (tree, tree); extern struct ptr_info_def *get_ptr_info (tree); extern void new_type_alias (tree, tree, tree); extern void count_uses_and_derefs (tree, tree, unsigned *, unsigned *, diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c index 2ecad8b..500845f 100644 --- a/gcc/tree-ssa-alias.c +++ b/gcc/tree-ssa-alias.c @@ -3282,38 +3282,6 @@ may_be_aliased (tree var) return true; } - -/* Given two symbols return TRUE if one is in the alias set of the - other. */ - -bool -is_aliased_with (tree tag, tree sym) -{ - bitmap aliases; - - if (MTAG_P (tag)) - { - aliases = MTAG_ALIASES (tag); - - if (aliases == NULL) - return false; - - return bitmap_bit_p (aliases, DECL_UID (sym)); - } - else - { - gcc_assert (MTAG_P (sym)); - aliases = MTAG_ALIASES (sym); - - if (aliases == NULL) - return false; - - return bitmap_bit_p (aliases, DECL_UID (tag)); - } - - return false; -} - /* The following is based on code in add_stmt_operand to ensure that the same defs/uses/vdefs/vuses will be found after replacing a reference to var (or ARRAY_REF to var) with an INDIRECT_REF to ptr whose value