From cc189afcf837979aa67600a94fd2719128e8f9e3 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Mon, 21 Jul 2008 17:50:54 +0000 Subject: [PATCH] * config/tc-h8300.c (fix_operand_size): Use the default size specified by the .lbranch/.sbranch pseudos. --- gas/ChangeLog | 5 +++++ gas/config/tc-h8300.c | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 85e5037215..2022edca76 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 d0a7554c03..95864f3bf4 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; -- 2.34.1