This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] emit-rtl.c: Remove set_mem_attrs_from_reg.
- From: kazu at codesourcery dot com (Kazu Hirata)
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 16 Apr 2009 01:04:41 -0700 (PDT)
- Subject: [patch] emit-rtl.c: Remove set_mem_attrs_from_reg.
Hi,
Attached is a patch to remove set_mem_attrs_from_reg.
AFAICT, this function has been unused since:
2008-10-12 Richard Henderson <rth@redhat.com>
PR middle-end/37447
* Makefile.in (reload1.o): Depend on EMIT_RTL_H.
* alias.c (value_addr_p, stack_addr_p): Remove.
(nonoverlapping_memrefs_p): Remove IRA special case.
* emit-rtl.c (get_spill_slot_decl, set_mem_attrs_for_spill): New.
* emit-rtl.h (set_mem_attrs_for_spill): Declare.
* reload1.c (alter_reg): Use it.
Bootstrapped on x86_64-pc-linux-gnu. OK to apply?
Kazu Hirata
2009-04-16 Kazu Hirata <kazu@codesourcery.com>
* emit-rtl.c (set_mem_attrs_from_reg): Remove.
* rtl.h: Remove the prototype for set_mem_attrs_from_reg.
Index: gcc/emit-rtl.c
===================================================================
--- gcc/emit-rtl.c (revision 146080)
+++ gcc/emit-rtl.c (working copy)
@@ -1858,17 +1858,6 @@ set_mem_attributes (rtx ref, tree t, int
set_mem_attributes_minus_bitpos (ref, t, objectp, 0);
}
-/* Set MEM to the decl that REG refers to. */
-
-void
-set_mem_attrs_from_reg (rtx mem, rtx reg)
-{
- MEM_ATTRS (mem)
- = get_mem_attrs (MEM_ALIAS_SET (mem), REG_EXPR (reg),
- GEN_INT (REG_OFFSET (reg)),
- MEM_SIZE (mem), MEM_ALIGN (mem), GET_MODE (mem));
-}
-
/* Set the alias set of MEM to SET. */
void
Index: gcc/rtl.h
===================================================================
--- gcc/rtl.h (revision 146080)
+++ gcc/rtl.h (working copy)
@@ -1493,7 +1493,6 @@ extern rtx copy_insn (rtx);
extern rtx gen_int_mode (HOST_WIDE_INT, enum machine_mode);
extern rtx emit_copy_of_insn_after (rtx, rtx);
extern void set_reg_attrs_from_value (rtx, rtx);
-extern void set_mem_attrs_from_reg (rtx, rtx);
extern void set_reg_attrs_for_parm (rtx, rtx);
extern void adjust_reg_mode (rtx, enum machine_mode);
extern int mem_expr_equal_p (const_tree, const_tree);