From: Richard Sandiford Date: Mon, 25 Oct 2010 21:15:14 +0000 (+0000) Subject: gas/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3b4f7931365159b202b30c2cf68e30f063f4cb56;p=binutils-gdb.git gas/ * config/tc-mips.c (macro2): Delete. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index f3840a571f8..47b74b973ff 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2010-10-25 Richard Sandiford + + * config/tc-mips.c (macro2): Delete. + 2010-10-25 Nathan Sidwell * config/tc-tic6x.c: Add attribution. diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 51dbd6f4153..507c5ff1d19 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: