This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH][MIPS] Fix build with GCC 4.6
- From: Aurelien Jarno <aurelien at aurel32 dot net>
- To: binutils at sourceware dot org
- Date: Tue, 5 Jul 2011 00:20:03 +0200
- Subject: [PATCH][MIPS] Fix build with GCC 4.6
binutils/mips doesn't build with GCC 4.6 with -Werror -Wall, due to
unused but set variables. The patch below removes them.
2011-07-04 Aurelien Jarno <aurelien@aurel32.net>
* config/tc-mips.c (append_insn): delete prev_pinfo2 and pinfo2.
Index: gas/config/tc-mips.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-mips.c,v
retrieving revision 1.475
diff -u -d -p -r1.475 tc-mips.c
--- gas/config/tc-mips.c 4 Jul 2011 20:22:52 -0000 1.475
+++ gas/config/tc-mips.c 4 Jul 2011 22:14:21 -0000
@@ -3279,7 +3279,6 @@ append_insn (struct mips_cl_insn *ip, ex
bfd_reloc_code_real_type *reloc_type)
{
unsigned long prev_pinfo, pinfo;
- unsigned long prev_pinfo2, pinfo2;
bfd_boolean relaxed_branch = FALSE;
enum append_method method;
@@ -3292,9 +3291,7 @@ append_insn (struct mips_cl_insn *ip, ex
file_ase_mips16 |= mips_opts.mips16;
prev_pinfo = history[0].insn_mo->pinfo;
- prev_pinfo2 = history[0].insn_mo->pinfo2;
pinfo = ip->insn_mo->pinfo;
- pinfo2 = ip->insn_mo->pinfo2;
if (address_expr == NULL)
ip->complete_p = 1;
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net