diff options
author | Thiemo Seufer <ths@networkno.de> | 2006-05-11 14:30:58 +0000 |
---|---|---|
committer | Thiemo Seufer <ths@networkno.de> | 2006-05-11 14:30:58 +0000 |
commit | 89ee2ebe8b9182015a1bf8643bb87c312c92474c (patch) | |
tree | 4fefae908d6d3c86783adcc5140e80df7a129e93 /gas | |
parent | 8ef6493a1d95fb17f086831f6ab4ed13b0c79500 (diff) | |
download | binutils-89ee2ebe8b9182015a1bf8643bb87c312c92474c.zip binutils-89ee2ebe8b9182015a1bf8643bb87c312c92474c.tar.gz binutils-89ee2ebe8b9182015a1bf8643bb87c312c92474c.tar.bz2 |
[ gas/ChangeLog ]
* 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.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-mips.c | 6 | ||||
-rw-r--r-- | gas/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/jal-range.l | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/jal-range.s | 3 |
5 files changed, 13 insertions, 8 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 9b08640..54ac4a3 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -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 diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 673c138..3108d0a 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -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) diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 9f856c0..9ef3da9 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -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. diff --git a/gas/testsuite/gas/mips/jal-range.l b/gas/testsuite/gas/mips/jal-range.l index 64e4ec5..309e407 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: Warning: jump address range overflow \(0x10000000\) +.*:8: Error: jump to misaligned address \(0x10000003\) diff --git a/gas/testsuite/gas/mips/jal-range.s b/gas/testsuite/gas/mips/jal-range.s index e52f560..cd6cde0 100644 --- a/gas/testsuite/gas/mips/jal-range.s +++ b/gas/testsuite/gas/mips/jal-range.s @@ -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 |