From: Thiemo Seufer Date: Tue, 9 May 2006 14:16:50 +0000 (+0000) Subject: [ gas/ChangeLog ] X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4e2a74a8413a6389d557bf54bc8a4a85004322d5;p=binutils-gdb.git [ gas/ChangeLog ] * config/tc-mips.c (append_insn): Only warn about an out-of-range j or jal address. [ gas/testsuite/ChangeLog ] * gas/mips/jal-range.l: Only warn about an out-of-range j or jal address. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index b72aa5b450f..4596052f18a 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2006-05-09 David Ung + + * config/tc-mips.c (append_insn): Only warn about an out-of-range + j or jal address. + 2006-05-09 Nick Clifton * config/tc-arm.c (arm_fix_adjustable): For COFF, convert fixups diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index c42de18b102..673c13885d9 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -2416,8 +2416,8 @@ append_insn (struct mips_cl_insn *ip, expressionS *address_expr, as_bad (_("jump to misaligned address (0x%lx)"), (unsigned long) address_expr->X_add_number); if (address_expr->X_add_number & ~0xfffffff) - as_bad (_("jump address range overflow (0x%lx)"), - (unsigned long) address_expr->X_add_number); + as_warn (_("jump address range overflow (0x%lx)"), + (unsigned long) address_expr->X_add_number); ip->insn_opcode |= (address_expr->X_add_number >> 2) & 0x3ffffff; break; @@ -2426,8 +2426,8 @@ append_insn (struct mips_cl_insn *ip, expressionS *address_expr, as_bad (_("jump to misaligned address (0x%lx)"), (unsigned long) address_expr->X_add_number); if (address_expr->X_add_number & ~0xfffffff) - as_bad (_("jump address range overflow (0x%lx)"), - (unsigned long) address_expr->X_add_number); + as_warn (_("jump address range overflow (0x%lx)"), + (unsigned long) address_expr->X_add_number); ip->insn_opcode |= (((address_expr->X_add_number & 0x7c0000) << 3) | ((address_expr->X_add_number & 0xf800000) >> 7) diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 1b7ff836128..62e1ee213f9 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2006-05-09 David Ung + + * gas/mips/jal-range.l: Only warn about an out-of-range j or jal + address. + 2006-05-08 Thiemo Seufer * gas/mips/mips32.s, gas/mips/mips32.d: Extend testcase to check diff --git a/gas/testsuite/gas/mips/jal-range.l b/gas/testsuite/gas/mips/jal-range.l index 3887e1812c2..64e4ec5c709 100644 --- a/gas/testsuite/gas/mips/jal-range.l +++ b/gas/testsuite/gas/mips/jal-range.l @@ -1,4 +1,4 @@ .*: Assembler messages: .*:4: Error: jump to misaligned address \(0x1\) .*:6: Error: jump to misaligned address \(0xfffffff\) -.*:7: Error: jump address range overflow \(0x10000000\) +.*:7: Warning: jump address range overflow \(0x10000000\)