]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2001-03-22 Ben Elliston <bje@redhat.com>
authorBen Elliston <bje@au.ibm.com>
Thu, 22 Mar 2001 04:05:03 +0000 (04:05 +0000)
committerBen Elliston <bje@au.ibm.com>
Thu, 22 Mar 2001 04:05:03 +0000 (04:05 +0000)
* cgen-asm.in (@arch@_cgen_assemble_insn): Move tmp_errmsg
declaration inside CGEN_VERBOSE_ASSEMBLER_ERRORS conditional.
* cgen-ibld.in (put_insn_int_value): Mark cd parameter as unused
to allay a compiler warning.

opcodes/ChangeLog
opcodes/cgen-asm.in
opcodes/cgen-ibld.in

index b75e0b33055feac86ad90bed839d92cf3dca6179..1c5b7bab8932d999f83932ff91930e810e5f44c8 100644 (file)
@@ -1,3 +1,10 @@
+2001-03-22  Ben Elliston  <bje@redhat.com>
+
+       * cgen-asm.in (@arch@_cgen_assemble_insn): Move tmp_errmsg
+       declaration inside CGEN_VERBOSE_ASSEMBLER_ERRORS conditional.
+       * cgen-ibld.in (put_insn_int_value): Mark cd parameter as unused
+       to allay a compiler warning.
+
 2001-03-22  Alan Modra  <alan@linuxcare.com.au>
 
        * i386-dis.c (dis386_twobyte_att): Add entries for paddq, psubq.
index 7249708ebb0d073a0c370c10363d67a814478ba6..aba8e46c2af5ef2b577613af15d4c6c4c3a0038b 100644 (file)
@@ -262,9 +262,9 @@ const CGEN_INSN *
 
   {
     static char errbuf[150];
+#ifdef CGEN_VERBOSE_ASSEMBLER_ERRORS
     const char *tmp_errmsg;
 
-#ifdef CGEN_VERBOSE_ASSEMBLER_ERRORS
     /* If requesting verbose error messages, use insert_errmsg.
        Failing that, use parse_errmsg */
     tmp_errmsg = (insert_errmsg ? insert_errmsg :
index 6921a53dac991a3b20f9206f542ae6b955197aba..69a5d1116b32d344849c340897bd53782d007728 100644 (file)
@@ -265,7 +265,7 @@ insert_insn_normal (cd, insn, fields, buffer, pc)
 
 static void
 put_insn_int_value (cd, buf, length, insn_length, value)
-     CGEN_CPU_DESC cd;
+     CGEN_CPU_DESC cd ATTRIBUTE_UNUSED;
      CGEN_INSN_BYTES_PTR buf;
      int length;
      int insn_length;