This is the mail archive of the cgen@sources.redhat.com mailing list for the CGEN project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[patch] cgen/opc-ibld.scm



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;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]