From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 952DBC433F5 for ; Mon, 7 Mar 2022 14:33:17 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E9C00811D8; Mon, 7 Mar 2022 15:33:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="CzCgzWkp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 421C58128D; Mon, 7 Mar 2022 15:33:11 +0100 (CET) Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 923F6811A6 for ; Mon, 7 Mar 2022 15:33:06 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x72a.google.com with SMTP id q4so11999075qki.11 for ; Mon, 07 Mar 2022 06:33:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=nbpHHmW0aWeeaVSKmso90QbYP00QychCSAOD5ugy1mk=; b=CzCgzWkpR/26IV99YGNfxrk9oZy0xKyHRnfRKI1OPABi2TbwD5VUqVZfUq1OW8usId pceX8TH/ZhaWQylUZpZGVWNffEBkUzZ+BsIds3CWIEDGMgmV9h6ZtAf5L70XjvS69RdF oTkqM+CbiETO6j4kNioBL/1o251RnUaWQv/qc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=nbpHHmW0aWeeaVSKmso90QbYP00QychCSAOD5ugy1mk=; b=GyqKiwFWR+AaoZrqkxcEnFJrDW5B1aknA/KGRF8ltby0U/Fq0I+QZmPcq5EJvo2XJ1 nfXCCdztdg2h7fPJ3wJXL2ubiIANS582GBpobs4+JQEaKdHL1j/cDzTXCCwLbM6sXZl3 ZsvA/aWpJV9tJDJunv1ktCl5YmBWdy9IvkUfX8KXeiA7frzmzyG/SSJCNCcXM09hU9GS uvw3k7jjQeJ2iff4/bT+YDB/2EeUymF2qRjbl8fpG//XFfIx9dcOQdgL/t06xHGmB0FE UMDTjomdwdPdE7XzOoVK7X7NC6m6sGsVsVNxe+ssIox5rk5qogtw6EwuGwX0KprE+aSF Vdqw== X-Gm-Message-State: AOAM530ItW3xNnEflrbdngR1VROnharc0w8xMip5DYOjQV9cNMYJgQ7n f9gJC/DkxxmKBvDLrDGl4vQ7sw== X-Google-Smtp-Source: ABdhPJxGMuV9Z3mxa4M4LllROFRqJ3SgtyzkPiOUUw86y5PjPY4E8oHH1csty0cn6QsTsGyyusJgCg== X-Received: by 2002:a05:620a:35c:b0:648:e0da:8a64 with SMTP id t28-20020a05620a035c00b00648e0da8a64mr6777800qkm.73.1646663585313; Mon, 07 Mar 2022 06:33:05 -0800 (PST) Received: from bill-the-cat (2603-6081-7b01-cbda-2ef0-5dff-fedb-a8ba.res6.spectrum.com. [2603:6081:7b01:cbda:2ef0:5dff:fedb:a8ba]) by smtp.gmail.com with ESMTPSA id 141-20020a370a93000000b0067b009288bdsm2845526qkk.87.2022.03.07.06.33.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Mar 2022 06:33:04 -0800 (PST) Date: Mon, 7 Mar 2022 09:33:02 -0500 From: Tom Rini To: Simon Glass Cc: U-Boot Mailing List , Marek Vasut , Masahiro Yamada , AKASHI Takahiro , Marek =?iso-8859-1?Q?Beh=FAn?= , Heinrich Schuchardt Subject: Re: [PATCH v2 02/13] Makefile: Allow LTO to be disabled for a build Message-ID: <20220307143302.GA1209254@bill-the-cat> References: <20220304154308.2547711-1-sjg@chromium.org> <20220304154308.2547711-3-sjg@chromium.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mYCpIKhGyMATD0i+" Content-Disposition: inline In-Reply-To: <20220304154308.2547711-3-sjg@chromium.org> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean --mYCpIKhGyMATD0i+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 04, 2022 at 08:42:57AM -0700, Simon Glass wrote: > LTO (Link-Time Optimisation) is an very useful feature which can > significantly reduce the size of U-Boot binaries. So far it has been > made available for selected ARM boards and sandbox. >=20 > However, incremental builds are much slower when LTO is used. For example, > an incremental build of sandbox takes 2.1 seconds on my machine, but 6.7 > seconds with LTO enabled. >=20 > Add a LTO_BUILD=3Dn parameter to the build, so it can be disabled during > development if needed, for faster builds. >=20 > Add some documentation about LTO while we are here. >=20 > Signed-off-by: Simon Glass We don't need this since you can do: make EXTRA_CFLAGS=3D"-fno-lto" EXTRA_LDFLAGS=3D"-fno-lto" to pass -fno-lto to compile/linking and disable lto and per https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D46905 this has been working for some time. Not that you need to respin the series for this. --=20 Tom --mYCpIKhGyMATD0i+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmImF5sACgkQFHw5/5Y0 tyw2HQv+IpYt6FZoOBlBH99waBLhFSyo/pGTQUEhEEGBVXtyOy3Ha4tBIe4TeMMe c/rm8lCvoeKfT3XYAwmmAQvdIZHtU12R+C6cbquToO0o8Ta6VtpF9MN52I3qfJGV lE5vaAJEc+zSqLIflfB2QbtEflaoEQ5I/yYmMDTFU5Ruz+9+GzSSiYB8wtpkwT0I uUNGHzhkywoC145hp90a2FiNFpQZEKHrRml1tUWFINycyxJ38f2CPNuEiOycTgGp joCnZHr+79rUcG1m5Sg9ant9aZBbsNk5nFBGqzbDgPzU0lOKTp15EMIe7GxlmX3B UYR5OCmeQpk5jTKPXRFj1kssHCdS1BJCcHdbLcox1/C1qfR65QdMvPXwp28BfeV1 FiOxMaq1Z7X31+QmuXg+4RJWXuFgl88DQBx5XXqcm/pXPZHiIKS717f03zlwb5Ix 8kfTQA/mxzRRF37ZjJ47c62aOFyxs9kqs+sz/bRBbjKgnoknirPGFFoBXk8HEN8w UPCWpDlH =/ghy -----END PGP SIGNATURE----- --mYCpIKhGyMATD0i+--