From 5cc193e778c61020143d5c59dad085b9f5df3d13 Mon Sep 17 00:00:00 2001 From: kenner Date: Thu, 25 Oct 2001 12:55:16 +0000 Subject: * alias.c (can_address_p): No longer static. * emit-rtl.c (get_mem_attrs): New parameter, MODE; all callers changed. Return 0 if all parameters are default values. (set_mem_attributes): Set MEM_KEEP_ALIAS_SET_P. (adjust_address_1): Try harder to compute a size. * expr.c (expand_assignment, store_constructor): If can't address, set MEM_KEEP_ALIAS_SET_P. (store_constructor_field): Don't change set if MEM_KEEP_ALIAS_SET_P. (store_field): Likewise. (store_constructor): Simplify call to store_constructor_field. * expr.h (can_address_p): New declaration. * gensupport.c (gen_rtx_CONST_INT): New function. * rtl.h (MEM_KEEP_ALIAS_SET_P): New macro. (MEM_SIZE): Get size from mode, if not set and not BLKmode. (MEM_COPY_ATTRIBUTES): Copy MEM_KEEP_ALIAS_SET_P. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46487 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/alias.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gcc/alias.c') diff --git a/gcc/alias.c b/gcc/alias.c index 3de48b2973b..c754e6e50a1 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -95,7 +95,6 @@ static rtx find_base_term PARAMS ((rtx)); static int base_alias_check PARAMS ((rtx, rtx, enum machine_mode, enum machine_mode)); static int handled_component_p PARAMS ((tree)); -static int can_address_p PARAMS ((tree)); static rtx find_base_value PARAMS ((rtx)); static int mems_in_disjoint_alias_sets_p PARAMS ((rtx, rtx)); static int insert_subset_children PARAMS ((splay_tree_node, void*)); @@ -426,7 +425,7 @@ handled_component_p (t) /* Return 1 if all the nested component references handled by get_inner_reference in T are such that we can address the object in T. */ -static int +int can_address_p (t) tree t; { -- cgit v1.2.1