aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>1998-06-30 21:13:55 -0700
committerRichard Henderson <rth@gcc.gnu.org>1998-06-30 21:13:55 -0700
commit822a3443ec9bf4bc2d8cc424d837cb89ce8504b4 (patch)
treee266e4dd73353d29ed398e6bbcc09ff07d9fc816 /gcc/expr.c
parentc714f03d304611def7fd70e3b623e1969d8ac947 (diff)
downloadgcc-822a3443ec9bf4bc2d8cc424d837cb89ce8504b4.zip
gcc-822a3443ec9bf4bc2d8cc424d837cb89ce8504b4.tar.gz
gcc-822a3443ec9bf4bc2d8cc424d837cb89ce8504b4.tar.bz2
expr.c (expand_assignment, [...]): Use convert_memory_address instead of convert_to_mode when possible.
* expr.c (expand_assignment, store_constructor, expand_expr): Use convert_memory_address instead of convert_to_mode when possible. From-SVN: r20865
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 79c1f92..e01f08a 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -2938,7 +2938,7 @@ expand_assignment (to, from, want_value, suggest_reg)
if (GET_MODE (offset_rtx) != ptr_mode)
{
#ifdef POINTERS_EXTEND_UNSIGNED
- offset_rtx = convert_to_mode (ptr_mode, offset_rtx, 1);
+ offset_rtx = convert_memory_address (ptr_mode, offset_rtx);
#else
offset_rtx = convert_to_mode (ptr_mode, offset_rtx, 0);
#endif
@@ -3737,7 +3737,7 @@ store_constructor (exp, target, cleared)
if (GET_MODE (offset_rtx) != ptr_mode)
{
#ifdef POINTERS_EXTEND_UNSIGNED
- offset_rtx = convert_to_mode (ptr_mode, offset_rtx, 1);
+ offset_rtx = convert_memory_address (ptr_mode, offset_rtx);
#else
offset_rtx = convert_to_mode (ptr_mode, offset_rtx, 0);
#endif
@@ -5974,7 +5974,7 @@ expand_expr (exp, target, tmode, modifier)
if (GET_MODE (offset_rtx) != ptr_mode)
{
#ifdef POINTERS_EXTEND_UNSIGNED
- offset_rtx = convert_to_mode (ptr_mode, offset_rtx, 1);
+ offset_rtx = convert_memory_address (ptr_mode, offset_rtx);
#else
offset_rtx = convert_to_mode (ptr_mode, offset_rtx, 0);
#endif