diff options
author | Alan Modra <amodra@gmail.com> | 2015-08-17 11:51:44 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2015-08-17 12:07:12 +0930 |
commit | 919b75f7e28942fe320dc533759f88131f160bf3 (patch) | |
tree | 4ebcf1b62752af990aae03c497539c41a8a73a5e /opcodes/ia64-gen.c | |
parent | 26a4b92c9131ab952f3db9bcafa82fb2360d19b6 (diff) | |
download | gdb-919b75f7e28942fe320dc533759f88131f160bf3.zip gdb-919b75f7e28942fe320dc533759f88131f160bf3.tar.gz gdb-919b75f7e28942fe320dc533759f88131f160bf3.tar.bz2 |
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.
Diffstat (limited to 'opcodes/ia64-gen.c')
-rw-r--r-- | opcodes/ia64-gen.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/opcodes/ia64-gen.c b/opcodes/ia64-gen.c index ad8f6d9..2488f4b 100644 --- a/opcodes/ia64-gen.c +++ b/opcodes/ia64-gen.c @@ -1610,16 +1610,16 @@ print_dependency_table (void) /* And dependency lists. */ for (i=0;i < dlistlen;i++) { - int len = 2; - printf ("static const unsigned short dep%d[] = {\n ", i); + unsigned int len = (unsigned) -1; + printf ("static const unsigned short dep%d[] = {", i); for (j=0;j < dlists[i]->len; j++) { - len += printf ("%d, ", dlists[i]->deps[j]); - if (len > 75) + if (len > 74) { - printf("\n "); - len = 2; + printf("\n "); + len = 1; } + len += printf (" %d,", dlists[i]->deps[j]); } printf ("\n};\n\n"); } @@ -2124,13 +2124,13 @@ print_dis_table (void) int x; struct disent *cent = disinsntable; - printf ("static const char dis_table[] = {\n"); + printf ("static const char dis_table[] = {"); for (x = 0; x < insn_list_len; x++) { - if ((x > 0) && ((x % 12) == 0)) - printf ("\n"); + if (x % 12 == 0) + printf ("\n "); - printf ("0x%02x, ", insn_list[x]); + printf (" 0x%02x,", insn_list[x]); } printf ("\n};\n\n"); |