aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2008-07-21 17:50:54 +0000
committerDJ Delorie <dj@redhat.com>2008-07-21 17:50:54 +0000
commitcc189afcf837979aa67600a94fd2719128e8f9e3 (patch)
tree8af7cf9c3febdf7e135a1735f8c65b5f50cfc17b /gas/config
parent781b42b0ba532fe1d16fddce1301180dfd184788 (diff)
downloadgdb-cc189afcf837979aa67600a94fd2719128e8f9e3.zip
gdb-cc189afcf837979aa67600a94fd2719128e8f9e3.tar.gz
gdb-cc189afcf837979aa67600a94fd2719128e8f9e3.tar.bz2
* config/tc-h8300.c (fix_operand_size): Use the default size
specified by the .lbranch/.sbranch pseudos.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-h8300.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gas/config/tc-h8300.c b/gas/config/tc-h8300.c
index d0a7554..95864f3 100644
--- a/gas/config/tc-h8300.c
+++ b/gas/config/tc-h8300.c
@@ -1815,7 +1815,12 @@ fix_operand_size (struct h8_op *operand, int size)
/* This condition is long standing, though somewhat suspect. */
if (operand->exp.X_add_number > -128
&& operand->exp.X_add_number < 127)
- operand->mode |= L_8;
+ {
+ if (operand->exp.X_add_symbol != NULL)
+ operand->mode |= bsize;
+ else
+ operand->mode |= L_8;
+ }
else
operand->mode |= L_16;
break;