diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2011-11-14 13:43:23 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@linux-mips.org> | 2011-11-14 13:43:23 +0000 |
commit | 9301f9c3e348449d38ecb37b575ffbf4ac37bdde (patch) | |
tree | 16dc3a280b31e0486705f09a0351c5e12c46b56f /gas/config | |
parent | edcc485a366503e7591c65dd1504cc40e028b0f5 (diff) | |
download | gdb-9301f9c3e348449d38ecb37b575ffbf4ac37bdde.zip gdb-9301f9c3e348449d38ecb37b575ffbf4ac37bdde.tar.gz gdb-9301f9c3e348449d38ecb37b575ffbf4ac37bdde.tar.bz2 |
gas/
* config/tc-mips.c (can_swap_branch_p): Exclude microMIPS
variant frags too.
gas/testsuite/
* gas/mips/relax-swap3.d: New test.
* gas/mips/mips16@relax-swap3.d: Likewise.
* gas/mips/micromips@relax-swap3.d: Likewise.
* gas/mips/relax-swap3.s: New test source.
* gas/mips/mips.exp: Run the new tests.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-mips.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 28f124a..c4afee3 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -3728,9 +3728,8 @@ can_swap_branch_p (struct mips_cl_insn *ip) /* If the previous instruction is in a variant frag other than this branch's one, we cannot do the swap. This does not apply to - MIPS16/microMIPS code, which uses variant frags for different - purposes. */ - if (!HAVE_CODE_COMPRESSION + MIPS16 code, which uses variant frags for different purposes. */ + if (!mips_opts.mips16 && history[0].frag && history[0].frag->fr_type == rs_machine_dependent) return FALSE; |