aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2002-07-29 12:53:34 -0700
committerRichard Henderson <rth@gcc.gnu.org>2002-07-29 12:53:34 -0700
commit6f1087be10e5765a7dde63dca95fecf7f359d021 (patch)
tree2f03e25d0a8da1b034e4545a18f1ffde2c8ca534 /gcc/expr.h
parent61ccbcfd47fc677635169421f8ecb079fa99c5f8 (diff)
downloadgcc-6f1087be10e5765a7dde63dca95fecf7f359d021.zip
gcc-6f1087be10e5765a7dde63dca95fecf7f359d021.tar.gz
gcc-6f1087be10e5765a7dde63dca95fecf7f359d021.tar.bz2
emit-rtl.c (set_mem_attributes_minus_bitpos): Rename from set_mem_attributes and add BITPOS argument.
* emit-rtl.c (set_mem_attributes_minus_bitpos): Rename from set_mem_attributes and add BITPOS argument. Subtract it from OFFSET when same is adjusted. (set_mem_attributes): New wrapper function. * expr.c (expand_assignment): Use set_mem_attributes_minus_bitpos; remove offset adjustment hack. * expr.h (set_mem_attributes_minus_bitpos): Declare. From-SVN: r55846
Diffstat (limited to 'gcc/expr.h')
-rw-r--r--gcc/expr.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/expr.h b/gcc/expr.h
index ea51ba8..64340a2 100644
--- a/gcc/expr.h
+++ b/gcc/expr.h
@@ -666,6 +666,12 @@ extern void maybe_set_unchanging PARAMS ((rtx, tree));
corresponding to REF, set the memory attributes. OBJECTP is nonzero
if we are making a new object of this type. */
extern void set_mem_attributes PARAMS ((rtx, tree, int));
+
+/* Similar, except that BITPOS has not yet been applied to REF, so if
+ we alter MEM_OFFSET according to T then we should subtract BITPOS
+ expecting that it'll be added back in later. */
+extern void set_mem_attributes_minus_bitpos PARAMS ((rtx, tree, int,
+ HOST_WIDE_INT));
#endif
/* Assemble the static constant template for function entry trampolines. */