summaryrefslogtreecommitdiff
path: root/gcc/explow.c
diff options
context:
space:
mode:
authorechristo <echristo@138bc75d-0d04-0410-961f-82ee72b054a4>2002-10-31 21:35:57 +0000
committerechristo <echristo@138bc75d-0d04-0410-961f-82ee72b054a4>2002-10-31 21:35:57 +0000
commitae5242d3850d39b72d4493e004a85cf6d42a34cb (patch)
tree1bca514fb6ad38d15848a43751e2cb90f903fad7 /gcc/explow.c
parentb0c369a472f8a94fd14f5ce8fece6ae01c774ff4 (diff)
downloadgcc-ae5242d3850d39b72d4493e004a85cf6d42a34cb.tar.gz
2002-10-31 Eric Christopher <echristo@redhat.com>
* explow.c (convert_memory_address): Use shallow_copy_rtx. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58695 138bc75d-0d04-0410-961f-82ee72b054a4
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 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"
-