aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorThiemo Seufer <ths@networkno.de>2006-05-09 14:16:50 +0000
committerThiemo Seufer <ths@networkno.de>2006-05-09 14:16:50 +0000
commit4e2a74a8413a6389d557bf54bc8a4a85004322d5 (patch)
tree3701bfc8c62bbca94455e60f71194546329e6efa /gas
parent337ff0a5afa6511854390af9ca41f5de27a40cbc (diff)
downloadgdb-4e2a74a8413a6389d557bf54bc8a4a85004322d5.zip
gdb-4e2a74a8413a6389d557bf54bc8a4a85004322d5.tar.gz
gdb-4e2a74a8413a6389d557bf54bc8a4a85004322d5.tar.bz2
[ 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.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-mips.c8
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/mips/jal-range.l2
4 files changed, 15 insertions, 5 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index b72aa5b..4596052 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2006-05-09 David Ung <davidu@mips.com>
+
+ * config/tc-mips.c (append_insn): Only warn about an out-of-range
+ j or jal address.
+
2006-05-09 Nick Clifton <nickc@redhat.com>
* 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 c42de18..673c138 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 1b7ff836..62e1ee2 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2006-05-09 David Ung <davidu@mips.com>
+
+ * gas/mips/jal-range.l: Only warn about an out-of-range j or jal
+ address.
+
2006-05-08 Thiemo Seufer <ths@mips.com>
* 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 3887e18..64e4ec5 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\)