]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
explow.c (convert_memory_address): Use shallow_copy_rtx.
authorEric Christopher <echristo@redhat.com>
Thu, 31 Oct 2002 21:35:57 +0000 (21:35 +0000)
committerEric Christopher <echristo@gcc.gnu.org>
Thu, 31 Oct 2002 21:35:57 +0000 (21:35 +0000)
2002-10-31  Eric Christopher  <echristo@redhat.com>

        * explow.c (convert_memory_address): Use shallow_copy_rtx.

From-SVN: r58695

gcc/ChangeLog
gcc/explow.c

index 04ed8535448e37910ef3fa2eed1b21ed91b3c8a7..42e7d5105928208bea63eeafbc4ab78b6454aa69 100644 (file)
@@ -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.
index 8d5114397c979706054bcdcd50e9d067451a1f57..b6caa521172c4c2a94c6bb6b7db5649c025e797e 100644 (file)
@@ -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"
-