From owner-freebsd-current@FreeBSD.ORG Tue Sep 17 23:31:07 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5AB7231F; Tue, 17 Sep 2013 23:31:07 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-x22e.google.com (mail-wi0-x22e.google.com [IPv6:2a00:1450:400c:c05::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9F3652D5E; Tue, 17 Sep 2013 23:31:06 +0000 (UTC) Received: by mail-wi0-f174.google.com with SMTP id hj3so5608810wib.7 for ; Tue, 17 Sep 2013 16:31:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=riH2hHL172dCf787wi3hakzpnahbNPllGlxlermncJ4=; b=Q1T4mSJHeRM3F8sEllql9Yc+bCSyzNT12cMqvRVheCSevhMzHG8igdcpigKmr4M2fj h9SRrHRwRiLyJkdlkjL+ALnFQVZD5TOmgW+bm/qX/5sBr3ENVsPJXqm+oS34fcEDoLxZ n46yK66njuaexkSbzKgOZTL4wkcqg9sk8Yf+LWXfoktGUme+IMnjdapvKiXSIrP2yIib tvEKn7+8z3gxObrdL3YlmT3JXo0y4I+D4InfcwwZMPlQyDSe9PVynw6jY5MjMA4oCbgY 4ZCl+qZAS+FAEFGeosd6Hg7wnqmczeUnS8sVhShav1Qv2IRu4kfLyFpgyFcYlbWkEXpO 9Dmg== MIME-Version: 1.0 X-Received: by 10.181.11.229 with SMTP id el5mr4677143wid.0.1379460665014; Tue, 17 Sep 2013 16:31:05 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.73.133 with HTTP; Tue, 17 Sep 2013 16:31:04 -0700 (PDT) In-Reply-To: <1379460140.1197.59.camel@revolution.hippie.lan> References: <1379460140.1197.59.camel@revolution.hippie.lan> Date: Tue, 17 Sep 2013 16:31:04 -0700 X-Google-Sender-Auth: x3p3WgQl2l9keIZNPtq-toulks0 Message-ID: Subject: Re: -ffunction-sections, -fdata-sections and -Wl,--gc-sections From: Adrian Chadd To: Ian Lepore Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: Ed Schouten , FreeBSD Current , Matthew Fleming X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Sep 2013 23:31:07 -0000 On 17 September 2013 16:22, Ian Lepore wrote: > On Tue, 2013-09-17 at 14:56 -0700, Adrian Chadd wrote: > > ... I'd rather see if we can actually separate out things some more so > > these builds can shrink. > > > > Eg, if there's malloc related functions that aren't used, maybe we should > > break malloc down into a directory full of functions. > > > > Why is that better than using this automated solution? > Not everyone is going to run clang on their target development platform? :-) Personally I'd rather structure my work to behave better instead of doing something that relies on a specific tool/suite to be able to optimise. -adrian