From 4e2a74a8413a6389d557bf54bc8a4a85004322d5 Mon Sep 17 00:00:00 2001 From: Thiemo Seufer Date: Tue, 9 May 2006 14:16:50 +0000 Subject: [PATCH] [ 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. --- gas/ChangeLog | 5 +++++ gas/config/tc-mips.c | 8 ++++---- gas/testsuite/ChangeLog | 5 +++++ gas/testsuite/gas/mips/jal-range.l | 2 +- 4 files changed, 15 insertions(+), 5 deletions(-) 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\) -- 2.30.2