From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30076 invoked by alias); 19 Dec 2002 23:51:40 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 29991 invoked from network); 19 Dec 2002 23:51:38 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by 209.249.29.67 with SMTP; 19 Dec 2002 23:51:38 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18PCKM-0002K4-00; Thu, 19 Dec 2002 19:51:50 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18PASu-0004SN-00; Thu, 19 Dec 2002 18:52:32 -0500 Date: Thu, 19 Dec 2002 15:59:00 -0000 From: Daniel Jacobowitz To: Elena Zannoni Cc: gdb-patches@sources.redhat.com Subject: Re: PATCH: Remove unnecessary zero-initializations Message-ID: <20021219235232.GA17116@nevyn.them.org> Mail-Followup-To: Elena Zannoni , gdb-patches@sources.redhat.com References: <20021111001910.GA17944@nevyn.them.org> <3DCF2D6E.2030407@redhat.com> <20021111042326.GA7554@nevyn.them.org> <15874.23103.576384.830376@localhost.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15874.23103.576384.830376@localhost.redhat.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-12/txt/msg00563.txt.bz2 Yep. On Thu, Dec 19, 2002 at 06:46:07PM -0500, Elena Zannoni wrote: > > [holiday mailbox cleaning...] Did you commit this? > > Elena > > > > Daniel Jacobowitz writes: > > On Sun, Nov 10, 2002 at 11:09:18PM -0500, Andrew Cagney wrote: > > > >Currently, thirteen files which provide a target_ops explicitly initialize > > > >members they don't support to NULL. I plan to delete a number of these > > > >methods, and rather than making sure I got all the necessary target files > > > >each time I just wanted to delete the unnecessary lines up-front. All of > > > >these are called-once functions initializing a statically or globally > > > >declared object; C will guarantee zero-initialization for us. And several > > > >of the functions explicitly called memset anyway. > > > > > > > >Besides, this way grepping for .to_require_attach\ = will only find targets > > > >which define it to something useful. > > > > > > > >I'll commit this tomorrow unless someone sees a problem with it. > > > > > > > >Note1: remote-st.c hasn't been compilable in a while; m68*-tandem-* is > > > >probably a good candidate for the hitlist. From a glance it looks like it > > > >has been broken since the HP merge added the NULL assignments I'm removing, > > > >which is about three years now I think. > > > > > > > >Note2: The DONT_USE member of struct target_ops can go now. > > > > > > The fact that 13 files were doing it should suggest that it was > > > intentional. Might want to wait a bit longer while someone dregs up the > > > history. > > > > Well, to me the fact that those thirteen files were doing it implies > > it's a leftover. Look at them; the two win* one are cut-pasted from > > inftarg.c; the others (except for sol-thread.c) are cut-pasted from > > remote.c. And neither of those has the zeros. > > > > But it doesn't cost me anything to wait, except for slowing down the > > progress on the fork patches :) I'll give it a few days. > > > > -- > > Daniel Jacobowitz > > MontaVista Software Debian GNU/Linux Developer > -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer