aboutsummaryrefslogtreecommitdiff
path: root/gcc/explow.c
diff options
context:
space:
mode:
authorEric Christopher <echristo@redhat.com>2002-10-31 21:35:57 +0000
committerEric Christopher <echristo@gcc.gnu.org>2002-10-31 21:35:57 +0000
commitce02ba255cf6b023124277264fe6b34554674910 (patch)
tree1bca514fb6ad38d15848a43751e2cb90f903fad7 /gcc/explow.c
parent8efb33ec2da91dba827bd966e5552db13f84f860 (diff)
downloadgcc-ce02ba255cf6b023124277264fe6b34554674910.zip
gcc-ce02ba255cf6b023124277264fe6b34554674910.tar.gz
gcc-ce02ba255cf6b023124277264fe6b34554674910.tar.bz2
explow.c (convert_memory_address): Use shallow_copy_rtx.
2002-10-31 Eric Christopher <echristo@redhat.com> * explow.c (convert_memory_address): Use shallow_copy_rtx. From-SVN: r58695
Diffstat (limited to 'gcc/explow.c')
-rw-r--r--gcc/explow.c7
1 files changed, 2 insertions, 5 deletions
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"
-