diff options
| -rw-r--r-- | gcc/ChangeLog | 4 | ||||
| -rw-r--r-- | gcc/explow.c | 7 |
2 files changed, 6 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 04ed853..42e7d51 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2002-10-31 Eric Christopher <echristo@redhat.com> + + * explow.c (convert_memory_address): Use shallow_copy_rtx. + 2002-10-31 Steve Ellcey <sje@cup.hp.com> * expmed.c (store_bit_field): Check FUNCTION_ARG_REG_LITTLE_ENDIAN. diff --git a/gcc/explow.c b/gcc/explow.c index 8d51143..b6caa52 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" - |
