diff options
author | Thiemo Seufer <ths@networkno.de> | 2002-09-26 09:00:08 +0000 |
---|---|---|
committer | Thiemo Seufer <ths@networkno.de> | 2002-09-26 09:00:08 +0000 |
commit | f3c0ec86c4c4a6784ea449e0e76a6a37f2da4488 (patch) | |
tree | 5cbd8e3abc650c5c5c5c42ab8d2501a3528b3d3c /gas/config | |
parent | 9f951329b6c97a113018ecdcebdf47a355d1b6c7 (diff) | |
download | gdb-f3c0ec86c4c4a6784ea449e0e76a6a37f2da4488.zip gdb-f3c0ec86c4c4a6784ea449e0e76a6a37f2da4488.tar.gz gdb-f3c0ec86c4c4a6784ea449e0e76a6a37f2da4488.tar.bz2 |
* config/tc-mips.c (append_insn): Fix jump overflow check.
* gas/mips/jal-range.s: Fix jump overflow check.
* gas/mips/jal-range.l: Likewise.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-mips.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index ba803d2..bd797c4 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -1858,8 +1858,7 @@ append_insn (place, ip, address_expr, reloc_type, unmatched_hi) if ((address_expr->X_add_number & 3) != 0) as_bad (_("jump to misaligned address (0x%lx)"), (unsigned long) address_expr->X_add_number); - if (address_expr->X_add_number & ~0xfffffff - || address_expr->X_add_number > 0x7fffffc) + if (address_expr->X_add_number & ~0xfffffff) as_bad (_("jump address range overflow (0x%lx)"), (unsigned long) address_expr->X_add_number); ip->insn_opcode |= (address_expr->X_add_number >> 2) & 0x3ffffff; @@ -1869,8 +1868,7 @@ append_insn (place, ip, address_expr, reloc_type, unmatched_hi) if ((address_expr->X_add_number & 3) != 0) as_bad (_("jump to misaligned address (0x%lx)"), (unsigned long) address_expr->X_add_number); - if (address_expr->X_add_number & ~0xfffffff - || address_expr->X_add_number > 0x7fffffc) + if (address_expr->X_add_number & ~0xfffffff) as_bad (_("jump address range overflow (0x%lx)"), (unsigned long) address_expr->X_add_number); ip->insn_opcode |= |