From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14130 invoked by alias); 15 May 2011 23:44:52 -0000 Received: (qmail 14122 invoked by uid 22791); 15 May 2011 23:44:52 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-px0-f171.google.com (HELO mail-px0-f171.google.com) (209.85.212.171) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 15 May 2011 23:44:37 +0000 Received: by pxi7 with SMTP id 7so2888637pxi.30 for ; Sun, 15 May 2011 16:44:36 -0700 (PDT) Received: by 10.68.68.106 with SMTP id v10mr6190006pbt.115.1305503076682; Sun, 15 May 2011 16:44:36 -0700 (PDT) Received: from bubble.grove.modra.org ([115.187.252.19]) by mx.google.com with ESMTPS id i7sm2901687pbs.7.2011.05.15.16.44.34 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 15 May 2011 16:44:35 -0700 (PDT) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id 86A1A16DE443; Mon, 16 May 2011 09:14:30 +0930 (CST) Date: Sun, 15 May 2011 23:44:00 -0000 From: Alan Modra To: binutils@sourceware.org Subject: remove unused field of struct bfd_link_hash_entry Message-ID: <20110515234430.GB20800@bubble.grove.modra.org> Mail-Followup-To: binutils@sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2011-05/txt/msg00200.txt.bz2 I added this field 2005-02-03 to support ld --as-needed then abandoned that approach later. include/ * bfdlink.h (struct bfd_link_hash_entry): Remove u.undef.weak field. bfd/ * linker.c (_bfd_generic_link_add_one_symbol): Don't init u.undef.weak. Index: include/bfdlink.h =================================================================== RCS file: /cvs/src/src/include/bfdlink.h,v retrieving revision 1.85 diff -u -p -r1.85 bfdlink.h --- include/bfdlink.h 25 Apr 2011 18:28:53 -0000 1.85 +++ include/bfdlink.h 15 May 2011 13:18:23 -0000 @@ -123,7 +123,6 @@ struct bfd_link_hash_entry undefined symbol list. */ struct bfd_link_hash_entry *next; bfd *abfd; /* BFD symbol was found in. */ - bfd *weak; /* BFD weak symbol was found in. */ } undef; /* bfd_link_hash_defined, bfd_link_hash_defweak. */ struct Index: bfd/linker.c =================================================================== RCS file: /cvs/src/src/bfd/linker.c,v retrieving revision 1.81 diff -u -p -r1.81 linker.c --- bfd/linker.c 24 Apr 2011 10:02:13 -0000 1.81 +++ bfd/linker.c 15 May 2011 13:17:58 -0000 @@ -1640,7 +1640,6 @@ _bfd_generic_link_add_one_symbol (struct /* Make a new weak undefined symbol. */ h->type = bfd_link_hash_undefweak; h->u.undef.abfd = abfd; - h->u.undef.weak = abfd; break; case CDEF: -- Alan Modra Australia Development Lab, IBM