From fca2040b459acf56e7ea9b7fb7a74884ff92832e Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Thu, 22 Mar 2001 04:05:03 +0000 Subject: [PATCH] 2001-03-22 Ben Elliston * 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 | 7 +++++++ opcodes/cgen-asm.in | 2 +- opcodes/cgen-ibld.in | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index b75e0b3305..1c5b7bab89 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,10 @@ +2001-03-22 Ben Elliston + + * 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 * i386-dis.c (dis386_twobyte_att): Add entries for paddq, psubq. diff --git a/opcodes/cgen-asm.in b/opcodes/cgen-asm.in index 7249708ebb..aba8e46c2a 100644 --- a/opcodes/cgen-asm.in +++ b/opcodes/cgen-asm.in @@ -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 : diff --git a/opcodes/cgen-ibld.in b/opcodes/cgen-ibld.in index 6921a53dac..69a5d1116b 100644 --- a/opcodes/cgen-ibld.in +++ b/opcodes/cgen-ibld.in @@ -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; -- 2.34.1