From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24453 invoked by alias); 2 May 2005 06:11:28 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 24324 invoked from network); 2 May 2005 06:11:20 -0000 Received: from unknown (HELO ausmtp01.au.ibm.com) (202.81.18.186) by sourceware.org with SMTP; 2 May 2005 06:11:20 -0000 Received: from sd0112e0.au.ibm.com (d23rh903.au.ibm.com [202.81.18.201]) by ausmtp01.au.ibm.com (8.12.10/8.12.10) with ESMTP id j426DaLU060892 for ; Mon, 2 May 2005 16:13:37 +1000 Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.250.243]) by sd0112e0.au.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id j426E1CK117294 for ; Mon, 2 May 2005 16:14:01 +1000 Received: from d23av02.au.ibm.com (loopback [127.0.0.1]) by d23av02.au.ibm.com (8.12.11/8.13.3) with ESMTP id j426BFcj022723 for ; Mon, 2 May 2005 16:11:15 +1000 Received: from ozlabs.au.ibm.com (ozlabs.au.ibm.com [9.190.163.12]) by d23av02.au.ibm.com (8.12.11/8.12.11) with ESMTP id j426BFPc022717 for ; Mon, 2 May 2005 16:11:15 +1000 Received: from [10.61.2.237] (haven.au.ibm.com [9.190.164.82]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.au.ibm.com (Postfix) with ESMTP id F2A1F7354D for ; Mon, 2 May 2005 16:11:26 +1000 (EST) Message-ID: <4275C481.6040808@au.ibm.com> Date: Mon, 02 May 2005 06:11:00 -0000 From: Ben Elliston User-Agent: Debian Thunderbird 1.0.2 (X11/20050331) MIME-Version: 1.0 To: binutils@sources.redhat.com Subject: PATCH: remove unused code from dlltool.c Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig01E0D0ADF52E6D995C1D5452" X-SW-Source: 2005-05/txt/msg00025.txt.bz2 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig01E0D0ADF52E6D995C1D5452 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-length: 1984 Okay for mainline? 2005-05-02 Ben Elliston * dlltool.c (dtab): Remove empty function. (process_duplicates): Remove calls to dtab(). Index: dlltool.c =================================================================== RCS file: /home/bje/src-cvs/src/binutils/dlltool.c,v retrieving revision 1.59 diff -u -p -r1.59 dlltool.c --- dlltool.c 23 Feb 2005 12:25:57 -0000 1.59 +++ dlltool.c 2 May 2005 06:10:06 -0000 @@ -703,7 +703,6 @@ static void gen_lib_file (void); static int pfunc (const void *, const void *); static int nfunc (const void *, const void *); static void remove_null_names (export_type **); -static void dtab (export_type **); static void process_duplicates (export_type **); static void fill_ordinals (export_type **); static int alphafunc (const void *, const void *); @@ -2857,27 +2856,6 @@ remove_null_names (export_type **ptr) } static void -dtab (export_type **ptr ATTRIBUTE_UNUSED) -{ -#ifdef SACDEBUG - int i; - for (i = 0; i < d_nfuncs; i++) - { - if (ptr[i]) - { - printf ("%d %s @ %d %s%s%s\n", - i, ptr[i]->name, ptr[i]->ordinal, - ptr[i]->noname ? "NONAME " : "", - ptr[i]->constant ? "CONSTANT" : "", - ptr[i]->data ? "DATA" : ""); - } - else - printf ("empty\n"); - } -#endif -} - -static void process_duplicates (export_type **d_export_vec) { int more = 1; @@ -2889,7 +2867,6 @@ process_duplicates (export_type **d_expo /* Remove duplicates. */ qsort (d_export_vec, d_nfuncs, sizeof (export_type *), nfunc); - dtab (d_export_vec); for (i = 0; i < d_nfuncs - 1; i++) { if (strcmp (d_export_vec[i]->name, @@ -2918,9 +2895,7 @@ process_duplicates (export_type **d_expo d_export_vec[i] = 0; } - dtab (d_export_vec); remove_null_names (d_export_vec); - dtab (d_export_vec); } } --------------enig01E0D0ADF52E6D995C1D5452 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 256 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCdcSCMGpskFPkywkRAtARAJ9gcCWtSPD8Qv5HKK6J2/Bmp6jfZACfXtzb qM0Fa/dWy5btTcenXeWCStc= =j9a9 -----END PGP SIGNATURE----- --------------enig01E0D0ADF52E6D995C1D5452--