aboutsummaryrefslogtreecommitdiff
path: root/include/opcode
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2016-02-09 16:34:24 +0000
committerNick Clifton <nickc@redhat.com>2016-02-09 16:34:24 +0000
commit609332f15cc2ad651d0ebd573010595a4593e89a (patch)
treeae02dcac97f08c1001e9032db4e07b9329c335d0 /include/opcode
parent1e94266c4db633f7defaf4bb68c74fd09a9cf9e2 (diff)
downloadfsf-binutils-gdb-609332f15cc2ad651d0ebd573010595a4593e89a.zip
fsf-binutils-gdb-609332f15cc2ad651d0ebd573010595a4593e89a.tar.gz
fsf-binutils-gdb-609332f15cc2ad651d0ebd573010595a4593e89a.tar.bz2
Fix compile time warnings building the binutils with a gcc6 compiler.
include * opcode/metag.h (metag_scondtab): Mark as possibly unused. * opcode/nds32.h (nds32_r45map): Likewise. (nds32_r54map): Likewise. * opcode/visium.h (gen_reg_table): Likewise. (fp_reg_table, cc_table, opcode_table): Likewise. bfd * oasys.c (oasys_archive_p): Fix indentation. * elf32-nds32.c (nds32_elf_relax_section): Use an unsigned constant for left shifting.
Diffstat (limited to 'include/opcode')
-rw-r--r--include/opcode/metag.h2
-rw-r--r--include/opcode/nds32.h4
-rw-r--r--include/opcode/visium.h9
3 files changed, 8 insertions, 7 deletions
diff --git a/include/opcode/metag.h b/include/opcode/metag.h
index 1925934..5bce87e 100644
--- a/include/opcode/metag.h
+++ b/include/opcode/metag.h
@@ -683,7 +683,7 @@ typedef struct
enum scond_code code;
} split_condition;
-static const split_condition metag_scondtab[] =
+static const split_condition metag_scondtab[] ATTRIBUTE_UNUSED =
{
{ "LEQ", SCOND_LEQ },
{ "LEZ", SCOND_LEQ },
diff --git a/include/opcode/nds32.h b/include/opcode/nds32.h
index f8ed985..5f29c04 100644
--- a/include/opcode/nds32.h
+++ b/include/opcode/nds32.h
@@ -36,13 +36,13 @@
#define REG_SP 31
/* Macros for extracting fields or making an instruction. */
-static const int nds32_r45map[] =
+static const int nds32_r45map[] ATTRIBUTE_UNUSED =
{
0, 1, 2, 3, 4, 5, 6, 7,
8, 9, 10, 11, 16, 17, 18, 19
};
-static const int nds32_r54map[] =
+static const int nds32_r54map[] ATTRIBUTE_UNUSED =
{
0, 1, 2, 3, 4, 5, 6, 7,
8, 9, 10, 11, -1, -1, -1, -1,
diff --git a/include/opcode/visium.h b/include/opcode/visium.h
index 6138062..3970479 100644
--- a/include/opcode/visium.h
+++ b/include/opcode/visium.h
@@ -104,7 +104,7 @@ struct reg_entry
unsigned char code;
};
-static const struct reg_entry gen_reg_table[] =
+static const struct reg_entry gen_reg_table[] ATTRIBUTE_UNUSED =
{
{"fp", 0x16},
{"r0", 0x0},
@@ -142,7 +142,7 @@ static const struct reg_entry gen_reg_table[] =
{"sp", 0x17},
};
-static const struct reg_entry fp_reg_table[] =
+static const struct reg_entry fp_reg_table[] ATTRIBUTE_UNUSED =
{
{"f0", 0x0},
{"f1", 0x1},
@@ -166,7 +166,7 @@ static const struct cc_entry
{
char *name;
int code;
-} cc_table [] =
+} cc_table [] ATTRIBUTE_UNUSED =
{
{"cc", 6},
{"cs", 2},
@@ -229,7 +229,7 @@ static const struct opcode_entry
unsigned code;
char flags;
}
-opcode_table[] =
+opcode_table[] ATTRIBUTE_UNUSED =
{
{ "adc.b", mode_dab, class3|(1<<21)|(1), def },
{ "adc.l", mode_dab, class3|(1<<21)|(4), def },
@@ -335,3 +335,4 @@ opcode_table[] =
{ "xor.l", mode_dab, class3|(8<<21)|(4), def },
{ "xor.w", mode_dab, class3|(8<<21)|(2), def },
};
+