summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2000-07-26 22:45:49 +0000
committerDave Brolley <brolley@redhat.com>2000-07-26 22:45:49 +0000
commit02030d9f9791b8390767f67496ec05a2998e0856 (patch)
treef387bddaf1dd044e4671c5ccdabecaddc5de92ea
parent9c21795642ca8cd9bd542a1c4b17e58c191e90aa (diff)
downloadgdb-02030d9f9791b8390767f67496ec05a2998e0856.tar.gz
2000-07-26 Dave Brolley <brolley@redhat.com>
* cgen-opc.c (cgen_hw_lookup_by_name): 'i' is now unsigned. (cgen_hw_lookup_by_num): Ditto. (cgen_operand_lookup_by_name): Ditto. (print_address): Ditto. (print_keyword): Ditto. * cgen-dis.c (hash_insn_array): Mark unused parameters with ATTRIBUTE_UNUSED. * cgen-asm.c (hash_insn_array): Mark unused parameters with ATTRIBUTE_UNUSED. (cgen_parse_keyword): Ditto.
-rw-r--r--opcodes/ChangeLog13
-rw-r--r--opcodes/cgen-asm.c4
-rw-r--r--opcodes/cgen-dis.c2
-rw-r--r--opcodes/cgen-opc.c8
4 files changed, 20 insertions, 7 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 67d86a8275e..96f148960c3 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,16 @@
+2000-07-26 Dave Brolley <brolley@redhat.com>
+
+ * cgen-opc.c (cgen_hw_lookup_by_name): 'i' is now unsigned.
+ (cgen_hw_lookup_by_num): Ditto.
+ (cgen_operand_lookup_by_name): Ditto.
+ (print_address): Ditto.
+ (print_keyword): Ditto.
+ * cgen-dis.c (hash_insn_array): Mark unused parameters with
+ ATTRIBUTE_UNUSED.
+ * cgen-asm.c (hash_insn_array): Mark unused parameters with
+ ATTRIBUTE_UNUSED.
+ (cgen_parse_keyword): Ditto.
+
2000-07-20 Hans-Peter Nilsson <hp@axis.com>
* Makefile.am (CFILES): Add cris-dis.c and cris-opc.c.
diff --git a/opcodes/cgen-asm.c b/opcodes/cgen-asm.c
index 4ed69363a9d..1e7ef2cba04 100644
--- a/opcodes/cgen-asm.c
+++ b/opcodes/cgen-asm.c
@@ -66,7 +66,7 @@ hash_insn_array (cd, insns, count, entsize, htable, hentbuf)
CGEN_CPU_DESC cd;
const CGEN_INSN *insns;
int count;
- int entsize;
+ int entsize ATTRIBUTE_UNUSED;
CGEN_INSN_LIST **htable;
CGEN_INSN_LIST *hentbuf;
{
@@ -198,7 +198,7 @@ cgen_asm_lookup_insn (cd, insn)
const char *
cgen_parse_keyword (cd, strp, keyword_table, valuep)
- CGEN_CPU_DESC cd;
+ CGEN_CPU_DESC cd ATTRIBUTE_UNUSED;
const char **strp;
CGEN_KEYWORD *keyword_table;
long *valuep;
diff --git a/opcodes/cgen-dis.c b/opcodes/cgen-dis.c
index 78b1cd90ed9..f8598f1e33b 100644
--- a/opcodes/cgen-dis.c
+++ b/opcodes/cgen-dis.c
@@ -43,7 +43,7 @@ hash_insn_array (cd, insns, count, entsize, htable, hentbuf)
CGEN_CPU_DESC cd;
const CGEN_INSN * insns;
int count;
- int entsize;
+ int entsize ATTRIBUTE_UNUSED;
CGEN_INSN_LIST ** htable;
CGEN_INSN_LIST * hentbuf;
{
diff --git a/opcodes/cgen-opc.c b/opcodes/cgen-opc.c
index ede3adde115..bcf0309e17d 100644
--- a/opcodes/cgen-opc.c
+++ b/opcodes/cgen-opc.c
@@ -263,7 +263,7 @@ cgen_hw_lookup_by_name (cd, name)
CGEN_CPU_DESC cd;
const char *name;
{
- int i;
+ unsigned int i;
const CGEN_HW_ENTRY **hw = cd->hw_table.entries;
for (i = 0; i < cd->hw_table.num_entries; ++i)
@@ -281,9 +281,9 @@ cgen_hw_lookup_by_name (cd, name)
const CGEN_HW_ENTRY *
cgen_hw_lookup_by_num (cd, hwnum)
CGEN_CPU_DESC cd;
- int hwnum;
+ unsigned int hwnum;
{
- int i;
+ unsigned int i;
const CGEN_HW_ENTRY **hw = cd->hw_table.entries;
/* ??? This can be speeded up. */
@@ -305,7 +305,7 @@ cgen_operand_lookup_by_name (cd, name)
CGEN_CPU_DESC cd;
const char *name;
{
- int i;
+ unsigned int i;
const CGEN_OPERAND **op = cd->operand_table.entries;
for (i = 0; i < cd->operand_table.num_entries; ++i)