aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorMichael Hayes <m.hayes@elec.canterbury.ac.nz>1999-10-15 23:29:00 +0000
committerMichael Hayes <m.hayes@gcc.gnu.org>1999-10-15 23:29:00 +0000
commit1a616dfc0ce5c5a9b92f297a2083a8be18682d21 (patch)
treec596d39d66a10b4622526a28743d8130047474fd /gcc/config
parentf9b5668e116d3ff40b693a347f491ea743b10258 (diff)
downloadgcc-1a616dfc0ce5c5a9b92f297a2083a8be18682d21.zip
gcc-1a616dfc0ce5c5a9b92f297a2083a8be18682d21.tar.gz
gcc-1a616dfc0ce5c5a9b92f297a2083a8be18682d21.tar.bz2
c4x.c (src_operand): Check SYMBOL_REF and LABEL_REF memory mode.
* config/c4x/c4x.c (src_operand): Check SYMBOL_REF and LABEL_REF memory mode. From-SVN: r30026
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/c4x/c4x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/c4x/c4x.c b/gcc/config/c4x/c4x.c
index 837d03d..34b57f0 100644
--- a/gcc/config/c4x/c4x.c
+++ b/gcc/config/c4x/c4x.c
@@ -3119,7 +3119,7 @@ src_operand (op, mode)
&& ((GET_CODE (XEXP (op, 0)) == SYMBOL_REF
|| GET_CODE (XEXP (op, 0)) == LABEL_REF
|| GET_CODE (XEXP (op, 0)) == CONST)))
- return ! TARGET_EXPOSE_LDP;
+ return ! TARGET_EXPOSE_LDP && GET_MODE (op) == mode;
return general_operand (op, mode);
}