aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2010-07-24 01:51:53 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2010-07-24 01:51:53 +0000
commitd3fca0b5d450cea85fba81558f8faa8486d99e69 (patch)
tree10eb4d22d6412769a43abd06c8331e4b25e8d4c2 /gas/config
parent4d2ad3b06d0951856569e528340b4bb960bbdbca (diff)
downloadgdb-d3fca0b5d450cea85fba81558f8faa8486d99e69.zip
gdb-d3fca0b5d450cea85fba81558f8faa8486d99e69.tar.gz
gdb-d3fca0b5d450cea85fba81558f8faa8486d99e69.tar.bz2
gas/
* config/tc-mips.c (macro)[M_JAL_1, M_JAL_2]: Handle the JALR delay slot in the noreorder mode with the o32 ABI. gas/testsuite/ * gas/mips/jal-svr4pic-noreorder.d: New test case. * gas/mips/mips1@jal-svr4pic-noreorder.d: New test subarchitecture. * gas/mips/r3000@jal-svr4pic-noreorder.d: Likewise. * gas/mips/jal-svr4pic-noreorder.s: Source for the new test case. * gas/mips/mips.exp: Run the new test case.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-mips.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 21aedd9..103ab6f 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -6219,6 +6219,8 @@ macro (struct mips_cl_insn *ip)
/* Quiet this warning. */
mips_cprestore_valid = 1;
}
+ if (mips_opts.noreorder)
+ macro_build (NULL, "nop", "");
expr1.X_add_number = mips_cprestore_offset;
macro_build_ldst_constoffset (&expr1, ADDRESS_LOAD_INSN,
mips_gp_register,