* config/tc-h8300.c (fix_operand_size): Use the default size
authorDJ Delorie <dj@redhat.com>
Mon, 21 Jul 2008 17:50:54 +0000 (17:50 +0000)
committerDJ Delorie <dj@redhat.com>
Mon, 21 Jul 2008 17:50:54 +0000 (17:50 +0000)
specified by the .lbranch/.sbranch pseudos.

gas/ChangeLog
gas/config/tc-h8300.c

index 85e5037215bf2f7b3f2050d5715d52dfcc63706f..2022edca76b8a8e415f511a0d0b796d0d5e7fd0e 100644 (file)
@@ -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.
index d0a7554c03af97e5761cf4084d0cf43e99328106..95864f3bf4af0c69fb893b35ee7bd0418d27ba29 100644 (file)
@@ -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;