From owner-svn-src-head@FreeBSD.ORG Fri May 11 20:37:51 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AA591106564A for ; Fri, 11 May 2012 20:37:51 +0000 (UTC) (envelope-from bounces+73574-9504-svn-src-head=freebsd.org@sendgrid.me) Received: from o3.shared.sendgrid.net (o3.shared.sendgrid.net [208.117.48.85]) by mx1.freebsd.org (Postfix) with SMTP id 3C9AA8FC14 for ; Fri, 11 May 2012 20:37:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.info; h= message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; s=smtpapi; bh=TmySVd5pe/UddOiZl38fL3byYow=; b=XbNxvvaudptOL6ZryNArdmwem+FD W8o8s2K0JLAJJBuJzXeLrinJjljl9CXSfLHH1G72gaNv8tjs/GkmZNRU8qAGx5oT yLstiEJLllpube57mO2XHCLP1kGCDN8Kjfo/skyAw6nfhEIvclrcg3r8ViIhi7ox 7vTToLHImPORPBc= Received: by 10.41.149.114 with SMTP id f04-11.7015.4FAD78974 Fri, 11 May 2012 20:37:43 +0000 (UTC) Received: from mail.tarsnap.com (unknown [10.8.49.124]) by mi4 (SG) with ESMTP id 4fad7897.462b.17290b8 for ; Fri, 11 May 2012 15:37:43 -0500 (CST) Received: (qmail 27270 invoked from network); 11 May 2012 20:31:00 -0000 Received: from unknown (HELO clamshell.daemonology.net) (127.0.0.1) by mail.tarsnap.com with ESMTP; 11 May 2012 20:31:00 -0000 Received: (qmail 2790 invoked from network); 11 May 2012 20:37:06 -0000 Received: from unknown (HELO clamshell.daemonology.net) (127.0.0.1) by clamshell.daemonology.net with SMTP; 11 May 2012 20:37:06 -0000 Message-ID: <4FAD7872.7030503@freebsd.org> Date: Fri, 11 May 2012 13:37:06 -0700 From: Colin Percival User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120509 Thunderbird/12.0.1 MIME-Version: 1.0 To: Warner Losh References: <201205111237.q4BCbGX2083596@svn.freebsd.org> <20120511124820.GN2358@deviant.kiev.zoral.com.ua> <4FAD0DF4.9000609@freebsd.org> <36CFD0BA-5047-42C5-9FE5-5D057CEFBAD9@bsdimp.com> In-Reply-To: <36CFD0BA-5047-42C5-9FE5-5D057CEFBAD9@bsdimp.com> X-Enigmail-Version: 1.5pre Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Sendgrid-EID: EvYvoie/qnEezyq2t4eRKjDm9X7ZKbCMt75WvXA+XNFrEDFqK6JGqTfxq5Sr4RxzWgIQ+H56Lbp0y2KE/j8tAZVZCm94Cq9BEhVO/Q15VZ+LAnz509Utnuewk3N1HuYaoxmmxhAXF5XvybXegRc5cXlk015VH4lxUm2xmWcU9A0= Cc: Konstantin Belousov , svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, Gabor Kovesdan Subject: Re: svn commit: r235267 - in head/usr.bin/sort: . nls X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 May 2012 20:37:51 -0000 On 05/11/12 13:08, Warner Losh wrote: > On May 11, 2012, at 9:02 AM, Colin Percival wrote: >> On 05/11/12 05:48, Konstantin Belousov wrote: >>> On Fri, May 11, 2012 at 12:37:16PM +0000, Gabor Kovesdan wrote: >>>> +bool byte_sort = false; + +static wchar_t **wmonths = NULL; +static >>>> unsigned char **cmonths = NULL; >>> >>> Such initializations are useless. You only increase the size of the binary >>> on the disk as the consequence. >> >> I just tested this hypothesis, and found no change in binary size using >> either clang or gcc46. Presumably they're smart enough to ignore explicit >> (and unnecessary) initializations of statics to zero. > > How did you test this? size(1) or ls(1)? If ls, then you may be running into the page rounding of the .text and .data sections... size(1), ls(1)-before-strip(1), and ls(1)-after-strip(1). -- Colin Percival Security Officer, FreeBSD | freebsd.org | The power to serve Founder / author, Tarsnap | tarsnap.com | Online backups for the truly paranoid