From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by sourceware.org (Postfix) with ESMTPS id 6FD75386DC6B for ; Sat, 9 Jul 2022 12:29:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6FD75386DC6B Received: by mail-pl1-x633.google.com with SMTP id m14so908695plg.5 for ; Sat, 09 Jul 2022 05:29:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition; bh=fROsIBo00RcOWxczK4bvHsonGLVFY9gF/11n8V0V3Ok=; b=L4ntFglGS9EzHCt517ysDF7u+sxrd8W4uObwI9d5pqyUxaYGryLFxz+2P6XI6oxwvK jwJshhOyuVF0gabgQ8T0+eg5nEDzd4+IlBrQZ3lN54V82ndF4zLHnEb7fcxG7qra5oq/ 2Xk9SjIuFZ1mcH1aEC47MJ7u4JY7Dl1WZtx8nesBc5EYHXa2Hl5O4XJNKAoMjS6H128H aBafvvbL5/q1pvhQDqH5noqPucZNmDJSBmRCXOX32wvi8a+FnI/TFyTsow4sKWYwTpZn wPUnJI8RJOvSDVPqdLTzP6oz/BtcrhkIPi+GFMglOb3iGnn35DalD/nIikH8O9+nOA/p LCew== X-Gm-Message-State: AJIora+TfJjBZcpG9a00VFjXWWYmprU7nPSfo5iGism0rjuYNnlTaPxe R1qU6zSOojspnP5ybN2A/NMQDD/v4ks= X-Google-Smtp-Source: AGRyM1s8qSychIzzcZLvWDjJ/cDegShUUNlRCtbBR6RwwtRD2jq2+QUOvowvCPg2HBxi0nb0vSYPQg== X-Received: by 2002:a17:90a:af98:b0:1ef:1d10:c052 with SMTP id w24-20020a17090aaf9800b001ef1d10c052mr5833072pjq.111.1657369775364; Sat, 09 Jul 2022 05:29:35 -0700 (PDT) Received: from squeak.grove.modra.org (158.106.96.58.static.exetel.com.au. [58.96.106.158]) by smtp.gmail.com with ESMTPSA id a8-20020aa795a8000000b0051c49fb62b7sm1359241pfk.165.2022.07.09.05.29.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Jul 2022 05:29:35 -0700 (PDT) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id B21671143046; Sat, 9 Jul 2022 21:59:32 +0930 (ACST) Date: Sat, 9 Jul 2022 21:59:32 +0930 From: Alan Modra To: binutils@sourceware.org Subject: gas: itbl_files Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-3036.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jul 2022 12:29:38 -0000 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. 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 = 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 -- Alan Modra Australia Development Lab, IBM