X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=opcodes%2Fia64-gen.c;h=1239e714c1cbcb23931431e8d69781286de62324;hb=d10be0cb9e61f29a0de368ebcc78bba22a902ad5;hp=ad8f6d9d25ccac368d3c1f806ea9b9b1ce0f08ed;hpb=43e65147c07b1400ae0dbb6694882eceb2363713;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/ia64-gen.c b/opcodes/ia64-gen.c index ad8f6d9d25..1239e714c1 100644 --- a/opcodes/ia64-gen.c +++ b/opcodes/ia64-gen.c @@ -1,5 +1,5 @@ /* ia64-gen.c -- Generate a shrunk set of opcode tables - Copyright (C) 1999-2015 Free Software Foundation, Inc. + Copyright (C) 1999-2019 Free Software Foundation, Inc. Written by Bob Manson, Cygnus Solutions, This file is part of the GNU opcodes library. @@ -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"); @@ -2843,7 +2843,7 @@ main (int argc, char **argv) collapse_redundant_completers (); printf ("/* This file is automatically generated by ia64-gen. Do not edit! */\n"); - printf ("/* Copyright (C) 2007-2015 Free Software Foundation, Inc.\n\ + printf ("/* Copyright (C) 2007-2019 Free Software Foundation, Inc.\n\ \n\ This file is part of the GNU opcodes library.\n\ \n\