binutils-2.24 and HEAD: patch for gas/config/tc-i386.c

Thomas Klausner tk@giga.or.at
Mon Jan 6 19:23:00 GMT 2014


Hi!

When compiling binutils-2.24 on NetBSD-6.99.28/amd64 with
clang-3.4rc1, the build stops in gas/config/tc-i386.c:

config/tc-i386.c:1668:32: error: unused variable 'regbnd' [-Werror,-Wunused-const-variable]
static const i386_operand_type regbnd = OPERAND_TYPE_REGBND;
                               ^
config/tc-i386.c:1669:32: error: unused variable 'vec_disp8' [-Werror,-Wunused-const-variable]
static const i386_operand_type vec_disp8 = OPERAND_TYPE_VEC_DISP8;
                               ^

The attached patch comments out these variables, but perhaps they
should be used instead? I don't know, so I thought I'd just report
this issue.

The current version according to
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=gas/config/tc-i386.c;h=c6e1dba5039f6dde1f6ed95b781c3140333cd160;hb=HEAD
still has the same issue.

Cheers,
 Thomas
-------------- next part --------------
$NetBSD: patch-gas_config_tc-i386.c,v 1.1 2014/01/06 14:58:41 wiz Exp $

Comment out unused variables (-Wno-unused complains about them,
and with -Werror build fails).

--- gas/config/tc-i386.c.orig	2013-11-26 11:37:33.000000000 +0000
+++ gas/config/tc-i386.c
@@ -1665,8 +1665,8 @@ static const i386_operand_type imm16_32 
 static const i386_operand_type imm16_32s = OPERAND_TYPE_IMM16_32S;
 static const i386_operand_type imm16_32_32s = OPERAND_TYPE_IMM16_32_32S;
 static const i386_operand_type vec_imm4 = OPERAND_TYPE_VEC_IMM4;
-static const i386_operand_type regbnd = OPERAND_TYPE_REGBND;
-static const i386_operand_type vec_disp8 = OPERAND_TYPE_VEC_DISP8;
+//static const i386_operand_type regbnd = OPERAND_TYPE_REGBND;
+//static const i386_operand_type vec_disp8 = OPERAND_TYPE_VEC_DISP8;
 
 enum operand_type
 {


More information about the Binutils mailing list