From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1062) id B2572384B128; Sat, 9 Jul 2022 12:35:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B2572384B128 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Alan Modra To: bfd-cvs@sourceware.org Subject: [binutils-gdb] gas: itbl_files X-Act-Checkin: binutils-gdb X-Git-Author: Alan Modra X-Git-Refname: refs/heads/master X-Git-Oldrev: b18220936c6a1c660a108b88165c1972944e51fc X-Git-Newrev: f1307e43df8e1784416822e6dd67cb2f4215bc1f Message-Id: <20220709123555.B2572384B128@sourceware.org> Date: Sat, 9 Jul 2022 12:35:55 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jul 2022 12:35:55 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Df1307e43df8e= 1784416822e6dd67cb2f4215bc1f commit f1307e43df8e1784416822e6dd67cb2f4215bc1f Author: Alan Modra Date: Thu Jul 7 20:19:44 2022 +0930 gas: itbl_files =20 itbl_files seems to be debug code. Get rid of it. =20 * as.c (struct itbl_file_list): Delete. (itbl_files): Delete. (parse_args): Don't keep itbl_files list. Diff: --- gas/as.c | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/gas/as.c b/gas/as.c index 49a44863001..8b2b3e8d33f 100644 --- a/gas/as.c +++ b/gas/as.c @@ -122,16 +122,6 @@ static char *listing_filename =3D NULL; =20 static struct defsym_list *defsyms; =20 -#ifdef HAVE_ITBL_CPU -/* Keep a record of the itbl files we read in. */ -struct itbl_file_list -{ - struct itbl_file_list *next; - char *name; -}; -static struct itbl_file_list *itbl_files; -#endif - static long start_time; =20 static int flag_macro_alternate; @@ -791,27 +781,19 @@ This program has absolutely no warranty.\n")); { /* optarg is the name of the file containing the instruction formats, opcodes, register names, etc. */ - struct itbl_file_list *n; - if (optarg =3D=3D NULL) { as_warn (_("no file name following -t option")); break; } =20 - n =3D XNEW (struct itbl_file_list); - n->next =3D itbl_files; - n->name =3D optarg; - itbl_files =3D n; - /* Parse the file and add the new instructions to our internal table. If multiple instruction tables are specified, the information from this table gets appended onto the existing internal table. */ - itbl_files->name =3D xstrdup (optarg); - if (itbl_parse (itbl_files->name) !=3D 0) + if (itbl_parse (optarg) !=3D 0) as_fatal (_("failed to read instruction table %s\n"), - itbl_files->name); + optarg); } break; #endif