From ce02ba255cf6b023124277264fe6b34554674910 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Thu, 31 Oct 2002 21:35:57 +0000 Subject: [PATCH] explow.c (convert_memory_address): Use shallow_copy_rtx. 2002-10-31 Eric Christopher * explow.c (convert_memory_address): Use shallow_copy_rtx. From-SVN: r58695 --- gcc/ChangeLog | 4 ++++ gcc/explow.c | 7 ++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 04ed8535448..42e7d510592 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2002-10-31 Eric Christopher + + * explow.c (convert_memory_address): Use shallow_copy_rtx. + 2002-10-31 Steve Ellcey * expmed.c (store_bit_field): Check FUNCTION_ARG_REG_LITTLE_ENDIAN. diff --git a/gcc/explow.c b/gcc/explow.c index 8d5114397c9..b6caa521172 100644 --- a/gcc/explow.c +++ b/gcc/explow.c @@ -405,10 +405,8 @@ convert_memory_address (to_mode, x) break; case SYMBOL_REF: - temp = gen_rtx_SYMBOL_REF (to_mode, XSTR (x, 0)); - SYMBOL_REF_FLAG (temp) = SYMBOL_REF_FLAG (x); - CONSTANT_POOL_ADDRESS_P (temp) = CONSTANT_POOL_ADDRESS_P (x); - STRING_POOL_ADDRESS_P (temp) = STRING_POOL_ADDRESS_P (x); + temp = shallow_copy_rtx (x); + PUT_MODE (temp, to_mode); return temp; break; @@ -1716,4 +1714,3 @@ rtx_to_tree_code (code) } #include "gt-explow.h" - -- 2.30.2