From 919b75f7e28942fe320dc533759f88131f160bf3 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 17 Aug 2015 11:51:44 +0930 Subject: Trailing space in opcodes/ generated files HJ recently removed trailing space in binutils files, but unfortunately they return when regenerating files in opcodes. This fixes the regen process. * cgen.sh: Trim trailing space from cgen output. * ia64-gen.c (print_dependency_table): Don't generate trailing space. (print_dis_table): Likewise. * opc2c.c (dump_lines): Likewise. (orig_filename): Warning fix. * ia64-asmtab.c: Regenerate. --- opcodes/opc2c.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'opcodes/opc2c.c') diff --git a/opcodes/opc2c.c b/opcodes/opc2c.c index ce8d70e..6ded918 100644 --- a/opcodes/opc2c.c +++ b/opcodes/opc2c.c @@ -121,7 +121,7 @@ int n_varies = 0; unsigned char cur_bits[MAX_BYTES + 1]; -char * orig_filename; +const char * orig_filename; FILE * sim_log = NULL; #define lprintf if (sim_log) fprintf @@ -339,7 +339,10 @@ dump_lines (opcode * op, int level, Indirect * ind) printf ("#line %d \"%s\"\n", op->lineno + 1, orig_filename); for (i = 0; i < op->nlines; i++) - printf ("%*s%s", level, "", op->lines[i]); + if (op->lines[i][0] == '\n') + printf ("%s", op->lines[i]); + else + printf ("%*s%s", level, "", op->lines[i]); if (op->comment) printf ("%*s}\n", level, ""); -- cgit v1.1