summaryrefslogtreecommitdiff
path: root/opcodes/ia64-gen.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2015-08-17 11:51:44 +0930
committerAlan Modra <amodra@gmail.com>2015-08-17 12:07:12 +0930
commit919b75f7e28942fe320dc533759f88131f160bf3 (patch)
tree4ebcf1b62752af990aae03c497539c41a8a73a5e /opcodes/ia64-gen.c
parent26a4b92c9131ab952f3db9bcafa82fb2360d19b6 (diff)
downloadbinutils-gdb-919b75f7e28942fe320dc533759f88131f160bf3.tar.gz
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.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/opcodes/ia64-gen.c b/opcodes/ia64-gen.c
index ad8f6d9d25c..2488f4b55e0 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");