opcodes/
* mips-formats.h (MAPPED_INT, MAPPED_REG, REG_PAIR): Add ATTRIBUTE_UNUSED.
This commit is contained in:
parent
57e6060ea5
commit
b56e23fb1f
|
@ -1,3 +1,8 @@
|
||||||
|
2013-07-17 Richard Sandiford <rdsandiford@googlemail.com>
|
||||||
|
|
||||||
|
* mips-formats.h (MAPPED_INT, MAPPED_REG, REG_PAIR): Add
|
||||||
|
ATTRIBUTE_UNUSED.
|
||||||
|
|
||||||
2013-07-14 Richard Sandiford <rdsandiford@googlemail.com>
|
2013-07-14 Richard Sandiford <rdsandiford@googlemail.com>
|
||||||
|
|
||||||
* Makefile.am (mips-opc.lo, micromips-opc.lo, mips16-opc.lo): Remove
|
* Makefile.am (mips-opc.lo, micromips-opc.lo, mips16-opc.lo): Remove
|
||||||
|
|
|
@ -45,7 +45,8 @@
|
||||||
|
|
||||||
#define MAPPED_INT(SIZE, LSB, MAP, PRINT_HEX) \
|
#define MAPPED_INT(SIZE, LSB, MAP, PRINT_HEX) \
|
||||||
{ \
|
{ \
|
||||||
typedef char static_assert[(1 << (SIZE)) == ARRAY_SIZE (MAP)]; \
|
typedef char ATTRIBUTE_UNUSED \
|
||||||
|
static_assert[(1 << (SIZE)) == ARRAY_SIZE (MAP)]; \
|
||||||
static const struct mips_mapped_int_operand op = { \
|
static const struct mips_mapped_int_operand op = { \
|
||||||
{ OP_MAPPED_INT, SIZE, LSB }, MAP, PRINT_HEX \
|
{ OP_MAPPED_INT, SIZE, LSB }, MAP, PRINT_HEX \
|
||||||
}; \
|
}; \
|
||||||
|
@ -70,7 +71,8 @@
|
||||||
|
|
||||||
#define MAPPED_REG(SIZE, LSB, BANK, MAP) \
|
#define MAPPED_REG(SIZE, LSB, BANK, MAP) \
|
||||||
{ \
|
{ \
|
||||||
typedef char static_assert[(1 << (SIZE)) == ARRAY_SIZE (MAP)]; \
|
typedef char ATTRIBUTE_UNUSED \
|
||||||
|
static_assert[(1 << (SIZE)) == ARRAY_SIZE (MAP)]; \
|
||||||
static const struct mips_reg_operand op = { \
|
static const struct mips_reg_operand op = { \
|
||||||
{ OP_REG, SIZE, LSB }, OP_REG_##BANK, MAP \
|
{ OP_REG, SIZE, LSB }, OP_REG_##BANK, MAP \
|
||||||
}; \
|
}; \
|
||||||
|
@ -79,8 +81,10 @@
|
||||||
|
|
||||||
#define REG_PAIR(SIZE, LSB, BANK, MAP) \
|
#define REG_PAIR(SIZE, LSB, BANK, MAP) \
|
||||||
{ \
|
{ \
|
||||||
typedef char static_assert1[(1 << (SIZE)) == ARRAY_SIZE (MAP##1)]; \
|
typedef char ATTRIBUTE_UNUSED \
|
||||||
typedef char static_assert2[(1 << (SIZE)) == ARRAY_SIZE (MAP##2)]; \
|
static_assert1[(1 << (SIZE)) == ARRAY_SIZE (MAP##1)]; \
|
||||||
|
typedef char ATTRIBUTE_UNUSED \
|
||||||
|
static_assert2[(1 << (SIZE)) == ARRAY_SIZE (MAP##2)]; \
|
||||||
static const struct mips_reg_pair_operand op = { \
|
static const struct mips_reg_pair_operand op = { \
|
||||||
{ OP_REG_PAIR, SIZE, LSB }, OP_REG_##BANK, MAP##1, MAP##2 \
|
{ OP_REG_PAIR, SIZE, LSB }, OP_REG_##BANK, MAP##1, MAP##2 \
|
||||||
}; \
|
}; \
|
||||||
|
|
Loading…
Reference in New Issue