This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
[patch] cgen/opc-ibld.scm
- To: cgen at sources dot redhat dot com
- Subject: [patch] cgen/opc-ibld.scm
- From: Johan Rydberg <johan dot rydberg at netinsight dot se>
- Date: Wed, 06 Dec 2000 04:12:41 +0100
- Organization: Net Insight AB
Hi.
This small patch removes some warnings when compiling opcodes.
Commit?
2000-12-06 Johan Rydberg <jrydberg@opencores.org>
* opc-ibld.scm: Handle unsigned arguments with ATTRIBUTE_UNUSED.
diff -u -r1.1.1.1 opc-ibld.scm
--- opc-ibld.scm 2000/07/28 04:11:52 1.1.1.1
+++ opc-ibld.scm 2000/12/06 03:07:16
@@ -15,7 +15,7 @@
int
@arch@_cgen_get_int_operand (cd, opindex, fields)
- CGEN_CPU_DESC cd;
+ CGEN_CPU_DESC cd ATTRIBUTE_UNUSED;
int opindex;
const CGEN_FIELDS * fields;
{
@@ -38,7 +38,7 @@
bfd_vma
@arch@_cgen_get_vma_operand (cd, opindex, fields)
- CGEN_CPU_DESC cd;
+ CGEN_CPU_DESC cd ATTRIBUTE_UNUSED;
int opindex;
const CGEN_FIELDS * fields;
{
@@ -72,7 +72,7 @@
void
@arch@_cgen_set_int_operand (cd, opindex, fields, value)
- CGEN_CPU_DESC cd;
+ CGEN_CPU_DESC cd ATTRIBUTE_UNUSED;
int opindex;
CGEN_FIELDS * fields;
int value;
@@ -92,7 +92,7 @@
void
@arch@_cgen_set_vma_operand (cd, opindex, fields, value)
- CGEN_CPU_DESC cd;
+ CGEN_CPU_DESC cd ATTRIBUTE_UNUSED;
int opindex;
CGEN_FIELDS * fields;
bfd_vma value;
@@ -178,7 +178,7 @@
const char *
@arch@_cgen_insert_operand (cd, opindex, fields, buffer, pc)
- CGEN_CPU_DESC cd;
+ CGEN_CPU_DESC cd ATTRIBUTE_UNUSED;
int opindex;
CGEN_FIELDS * fields;
CGEN_INSN_BYTES_PTR buffer;
@@ -225,7 +225,7 @@
int
@arch@_cgen_extract_operand (cd, opindex, ex_info, insn_value, fields,
pc)
- CGEN_CPU_DESC cd;
+ CGEN_CPU_DESC cd ATTRIBUTE_UNUSED;
int opindex;
CGEN_EXTRACT_INFO *ex_info;
CGEN_INSN_INT insn_value;