diff options
author | Alan Modra <amodra@gmail.com> | 2022-07-07 20:19:44 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-07-09 21:22:39 +0930 |
commit | f1307e43df8e1784416822e6dd67cb2f4215bc1f (patch) | |
tree | 0c80d663b79a8cd58b08964f65ac25b865f648fd | |
parent | b18220936c6a1c660a108b88165c1972944e51fc (diff) | |
download | gdb-f1307e43df8e1784416822e6dd67cb2f4215bc1f.zip gdb-f1307e43df8e1784416822e6dd67cb2f4215bc1f.tar.gz gdb-f1307e43df8e1784416822e6dd67cb2f4215bc1f.tar.bz2 |
gas: itbl_files
itbl_files seems to be debug code. Get rid of it.
* as.c (struct itbl_file_list): Delete.
(itbl_files): Delete.
(parse_args): Don't keep itbl_files list.
-rw-r--r-- | gas/as.c | 22 |
1 files changed, 2 insertions, 20 deletions
@@ -122,16 +122,6 @@ static char *listing_filename = NULL; static struct defsym_list *defsyms; -#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; 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 == NULL) { as_warn (_("no file name following -t option")); break; } - n = XNEW (struct itbl_file_list); - n->next = itbl_files; - n->name = optarg; - itbl_files = 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 = xstrdup (optarg); - if (itbl_parse (itbl_files->name) != 0) + if (itbl_parse (optarg) != 0) as_fatal (_("failed to read instruction table %s\n"), - itbl_files->name); + optarg); } break; #endif |