From: DJ Delorie Date: Mon, 21 Jul 2008 17:50:54 +0000 (+0000) Subject: * config/tc-h8300.c (fix_operand_size): Use the default size X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cc189afcf837979aa67600a94fd2719128e8f9e3;p=binutils-gdb.git * config/tc-h8300.c (fix_operand_size): Use the default size specified by the .lbranch/.sbranch pseudos. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 85e5037215b..2022edca76b 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2008-07-21 DJ Delorie + + * config/tc-h8300.c (fix_operand_size): Use the default size + specified by the .lbranch/.sbranch pseudos. + 2008-07-18 DJ Delorie * config/tc-m32c.h (H_TICK_HEX): Define. diff --git a/gas/config/tc-h8300.c b/gas/config/tc-h8300.c index d0a7554c03a..95864f3bf4a 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;