aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2010-10-25 21:15:14 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2010-10-25 21:15:14 +0000
commit3b4f7931365159b202b30c2cf68e30f063f4cb56 (patch)
treedab4adf99905cf2f5d431222a30200d162c7f3f9 /gas
parent2538d009168765590ca18171735bdfe0cad7be87 (diff)
downloadgdb-3b4f7931365159b202b30c2cf68e30f063f4cb56.zip
gdb-3b4f7931365159b202b30c2cf68e30f063f4cb56.tar.gz
gdb-3b4f7931365159b202b30c2cf68e30f063f4cb56.tar.bz2
gas/
* config/tc-mips.c (macro2): Delete.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/config/tc-mips.c63
2 files changed, 4 insertions, 63 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index f3840a5..47b74b9 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,7 @@
+2010-10-25 Richard Sandiford <rdsandiford@googlemail.com>
+
+ * config/tc-mips.c (macro2): Delete.
+
2010-10-25 Nathan Sidwell <nathan@codesourcery.com>
* config/tc-tic6x.c: Add attribution.
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 51dbd6f..507c5ff 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -1072,9 +1072,6 @@ static void macro_start (void);
static void macro_end (void);
static void macro (struct mips_cl_insn * ip);
static void mips16_macro (struct mips_cl_insn * ip);
-#ifdef LOSING_COMPILER
-static void macro2 (struct mips_cl_insn * ip);
-#endif
static void mips_ip (char *str, struct mips_cl_insn * ip);
static void mips16_ip (char *str, struct mips_cl_insn * ip);
static void mips16_immed
@@ -7408,66 +7405,6 @@ macro (struct mips_cl_insn *ip)
move_register (dreg, sreg);
break;
-#ifdef LOSING_COMPILER
- default:
- /* Try and see if this is a new itbl instruction.
- This code builds table entries out of the macros in mip_opcodes.
- FIXME: For now we just assemble the expression and pass it's
- value along as a 32-bit immediate.
- We may want to have the assembler assemble this value,
- so that we gain the assembler's knowledge of delay slots,
- symbols, etc.
- Would it be more efficient to use mask (id) here? */
- if (itbl_have_entries
- && (immed_expr = itbl_assemble (ip->insn_mo->name, "")))
- {
- s = ip->insn_mo->name;
- s2 = "cop3";
- coproc = ITBL_DECODE_PNUM (immed_expr);;
- macro_build (&immed_expr, s, "C");
- break;
- }
- macro2 (ip);
- break;
- }
- if (!mips_opts.at && used_at)
- as_bad (_("Macro used $at after \".set noat\""));
-}
-
-static void
-macro2 (struct mips_cl_insn *ip)
-{
- unsigned int treg, sreg, dreg, breg;
- unsigned int tempreg;
- int mask;
- int used_at;
- expressionS expr1;
- const char *s;
- const char *s2;
- const char *fmt;
- int likely = 0;
- int dbl = 0;
- int coproc = 0;
- int lr = 0;
- int imm = 0;
- int off;
- offsetT maxnum;
- bfd_reloc_code_real_type r;
-
- treg = (ip->insn_opcode >> 16) & 0x1f;
- dreg = (ip->insn_opcode >> 11) & 0x1f;
- sreg = breg = (ip->insn_opcode >> 21) & 0x1f;
- mask = ip->insn_mo->mask;
-
- expr1.X_op = O_constant;
- expr1.X_op_symbol = NULL;
- expr1.X_add_symbol = NULL;
- expr1.X_add_number = 1;
-
- switch (mask)
- {
-#endif /* LOSING_COMPILER */
-
case M_DMUL:
dbl = 1;
case M_MUL: