[ gas/ChangeLog ]
authorThiemo Seufer <ths@networkno.de>
Thu, 11 May 2006 14:30:58 +0000 (14:30 +0000)
committerThiemo Seufer <ths@networkno.de>
Thu, 11 May 2006 14:30:58 +0000 (14:30 +0000)
* config/tc-mips.c (append_insn): Don't check the range of j or
jal addresses.

[ gas/testsuite/ChangeLog ]
* gas/mips/jal-range.l: Don't check the range of j or jal
addresses.

gas/ChangeLog
gas/config/tc-mips.c
gas/testsuite/ChangeLog
gas/testsuite/gas/mips/jal-range.l
gas/testsuite/gas/mips/jal-range.s

index 9b08640d4b55c6a3f9d9b4a49e1af1d94beaf20c..54ac4a32a1f3481ab081a5fd03cf87dff0ca111c 100644 (file)
@@ -1,3 +1,8 @@
+2006-05-11  Thiemo Seufer  <ths@mips.com>
+
+       * config/tc-mips.c (append_insn): Don't check the range of j or
+       jal addresses.
+
 2006-05-11  Pedro Alves  <pedro_alves@portugalmail.pt>
 
        * config/tc-arm.c (md_pcrel_from_section): Force a bias for
index 673c13885d9fa66a983693ea39531cb7e2822320..3108d0aa62801ba497d43f8e2814191a93dcb31d 100644 (file)
@@ -2415,9 +2415,6 @@ append_insn (struct mips_cl_insn *ip, expressionS *address_expr,
              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)
-               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;
 
@@ -2425,9 +2422,6 @@ append_insn (struct mips_cl_insn *ip, expressionS *address_expr,
              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)
-               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)
index 9f856c0a167eb8a2548d296b812e7d4a3f60e658..9ef3da998503c6abd65721705884c3ac9db9a05b 100644 (file)
@@ -1,3 +1,8 @@
+2006-05-11  Thiemo Seufer  <ths@mips.com>
+
+       * gas/mips/jal-range.l: Don't check the range of j or jal
+       addresses.
+
 2006-05-09  H.J. Lu  <hongjiu.lu@intel.com>
 
        * gas/i386/x86-64-gidt.d: Adjusted.
index 64e4ec5c709ad8f2946d9ebfd23bed179ae94151..309e407c18de70c8abd1cdc57038302a933fc992 100644 (file)
@@ -1,4 +1,4 @@
 .*: Assembler messages:
 .*:4: Error: jump to misaligned address \(0x1\)
 .*:6: Error: jump to misaligned address \(0xfffffff\)
-.*:7: Warning: jump address range overflow \(0x10000000\)
+.*:8: Error: jump to misaligned address \(0x10000003\)
index e52f56024add44ae891943cfec67e3947fe2dcd1..cd6cde040f56d9d621b78a7c653a8ad8b9bc8de7 100644 (file)
@@ -1,7 +1,8 @@
-# Source file use to test border cases of jumps
+# Source file used to test misaligned targets of absolute jumps
 
        jal     0x0
        jal     0x1
        jal     0xffffffc
        jal     0xfffffff
        jal     0x10000000
+       jal     0x10000003