aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2001-12-02 11:04:23 -0800
committerRichard Henderson <rth@gcc.gnu.org>2001-12-02 11:04:23 -0800
commit998d7deb143c6511c68e21abb811af9f5524f89d (patch)
tree7dcf60eaed1d63b62946ca9c11cf34b2d9ceaa21 /gcc/expr.h
parent3d55d212918e4f8853365fbf7531d30b9d88a82f (diff)
downloadgcc-998d7deb143c6511c68e21abb811af9f5524f89d.zip
gcc-998d7deb143c6511c68e21abb811af9f5524f89d.tar.gz
gcc-998d7deb143c6511c68e21abb811af9f5524f89d.tar.bz2
rtl.h (mem_attrs): Rename decl to expr; adjust all users.
* rtl.h (mem_attrs): Rename decl to expr; adjust all users. (MEM_EXPR): Rename from MEM_DECL; adjust all users. * emit-rtl.c (set_mem_expr): Rename from set_mem_decl. * expr.h, final.c, reload1.c: Adjust users. * alias.c (nonoverlapping_component_refs_p): New. (decl_for_component_ref, adjust_offset_for_component_ref): New. (nonoverlapping_memrefs_p): Use them. * emit-rtl.c (component_ref_for_mem_expr): New. (set_mem_attributes): Use it. (set_mem_offset): New. * expr.c (expand_assignment): Call set_mem_attributes for inner references; adjust the memory offset as needed. * print-rtl.c (print_mem_expr): New. (print_rtx): Use it. From-SVN: r47534
Diffstat (limited to 'gcc/expr.h')
-rw-r--r--gcc/expr.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/expr.h b/gcc/expr.h
index 4275b81..aa4bde6 100644
--- a/gcc/expr.h
+++ b/gcc/expr.h
@@ -614,8 +614,11 @@ extern void set_mem_alias_set PARAMS ((rtx, HOST_WIDE_INT));
/* Set the alignment of MEM to ALIGN bits. */
extern void set_mem_align PARAMS ((rtx, unsigned int));
-/* Set the DECL for MEM to DECL. */
-extern void set_mem_decl PARAMS ((rtx, tree));
+/* Set the expr for MEM to EXPR. */
+extern void set_mem_expr PARAMS ((rtx, tree));
+
+/* Set the offset for MEM to OFFSET. */
+extern void set_mem_offset PARAMS ((rtx, rtx));
/* Return a memory reference like MEMREF, but with its mode changed
to MODE and its address changed to ADDR.