aboutsummaryrefslogtreecommitdiff
path: root/gas
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
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')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-h8300.c7
2 files changed, 11 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 85e5037..2022edc 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2008-07-21 DJ Delorie <dj@redhat.com>
+
+ * config/tc-h8300.c (fix_operand_size): Use the default size
+ specified by the .lbranch/.sbranch pseudos.
+
2008-07-18 DJ Delorie <dj@redhat.com>
* config/tc-m32c.h (H_TICK_HEX): Define.
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;