From: Jan Beulich Date: Fri, 16 Aug 2024 06:34:50 +0000 (+0200) Subject: opcodes/cgen: drop trailing whitespace also for cris X-Git-Tag: gdb-16-branchpoint~1124 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4b939bab12e8f9a94af388aa1b77ada4d15e45fd;p=thirdparty%2Fbinutils-gdb.git opcodes/cgen: drop trailing whitespace also for cris While 919b75f7e289 ("Trailing space in opcodes/ generated files") took care of permanently zapping trailing whitespace, 547112801156 ("opcodes: cris: move desc & opc files from sim/") then didn't enhance the newly added code accordingly. --- diff --git a/opcodes/cgen.sh b/opcodes/cgen.sh index f6b9e4d8b16..467535e5f90 100644 --- a/opcodes/cgen.sh +++ b/opcodes/cgen.sh @@ -192,15 +192,15 @@ desc) -O ${tmp}-opc.h1 sed -e "s/@ARCH@/${ARCH}/g" -e "s/@arch@/${arch}/g" \ - -e "s/@prefix@/${prefix}/g" \ + -e "s/@prefix@/${prefix}/g" -e 's/[ ][ ]*$//' \ < ${tmp}-desc.h1 > ${tmp}-desc.h ${rootdir}/move-if-change ${tmp}-desc.h ${srcdir}/${arch}-desc.h sed -e "s/@ARCH@/${ARCH}/g" -e "s/@arch@/${arch}/g" \ - -e "s/@prefix@/${prefix}/g" \ + -e "s/@prefix@/${prefix}/g" -e 's/[ ][ ]*$//' \ < ${tmp}-desc.c1 > ${tmp}-desc.c ${rootdir}/move-if-change ${tmp}-desc.c ${srcdir}/${arch}-desc.c sed -e "s/@ARCH@/${ARCH}/g" -e "s/@arch@/${arch}/g" \ - -e "s/@prefix@/${prefix}/g" \ + -e "s/@prefix@/${prefix}/g" -e 's/[ ][ ]*$//' \ < ${tmp}-opc.h1 > ${tmp}-opc.h ${rootdir}/move-if-change ${tmp}-opc.h ${srcdir}/${arch}-opc.h diff --git a/opcodes/cris-desc.c b/opcodes/cris-desc.c index bf1536a7f84..2c8624c93e6 100644 --- a/opcodes/cris-desc.c +++ b/opcodes/cris-desc.c @@ -840,175 +840,175 @@ const CGEN_OPERAND cris_cgen_operand_table[] = { /* pc: program counter */ { "pc", CRIS_OPERAND_PC, HW_H_PC, 0, 0, - { 0, { &cris_cgen_ifld_table[CRIS_F_NIL] } }, + { 0, { &cris_cgen_ifld_table[CRIS_F_NIL] } }, { 0|A(SEM_ONLY), { { { (1<signed_overflow_ok_p = 0; - + return (CGEN_CPU_DESC) cd; } @@ -2782,7 +2782,7 @@ cris_cgen_cpu_close (CGEN_CPU_DESC cd) for (i = 0; i < cd->insn_table.num_init_entries; ++i, ++insns) if (CGEN_INSN_RX (insns)) regfree (CGEN_INSN_RX (insns)); - } + } free ((CGEN_INSN *) cd->macro_insn_table.init_entries); free ((CGEN_INSN *) cd->insn_table.init_entries);