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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 452DCC433F5 for ; Tue, 9 Nov 2021 19:37:46 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id B81D661152 for ; Tue, 9 Nov 2021 19:37:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B81D661152 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 04E238398D; Tue, 9 Nov 2021 20:37:44 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (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="uraxCAeP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6377683982; Tue, 9 Nov 2021 20:37:41 +0100 (CET) Received: from mail-qv1-xf2e.google.com (mail-qv1-xf2e.google.com [IPv6:2607:f8b0:4864:20::f2e]) (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 D0C87836A6 for ; Tue, 9 Nov 2021 20:37:37 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf2e.google.com with SMTP id i13so269890qvm.1 for ; Tue, 09 Nov 2021 11:37:37 -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=1/yHQVmimFqvEYAw7tIi3n6ulv1wfjy8VSRPU1X/78U=; b=uraxCAePzBm9n+eeFj0gQNdsFaSzK2JnUXwbe/0TzZcP8nlvwd+PSt1jgZsLnlsOeJ h4Wher08ePSI5pAvab2oWnub/t46/AgvomXTzzNM9KOvkGZJ5a4UExd5jkejr6U/YL1T RSh3Fh5GSdmpq/5t2RKhjVcMNEWxlfAkk1ppY= 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=1/yHQVmimFqvEYAw7tIi3n6ulv1wfjy8VSRPU1X/78U=; b=VSLffiemRw0VCPiNhBjuWhYUXQiXbgBqNWMZLNUOFVx0XZCzE1VEu4Y43fM/rLl0AH NvtyODMVd2uEsW4apFKV+AVkVLR4nEZPBjgQCOPPle3AHH0F19vdLHh3wHBh9aI1IXaW S5aneOTrBxVC3bIWrg7bpNECkoFFAcecEGOdtWQE2dGLZ6vY7WvNKPf4oHDR1sdfRUR/ fv/QSsDxrB+0l4dss5xTaub8ipRysxvXKA1yJqXA4URg98nfijy9IetGUiR9/EUDLINm Z1ujDrlvlUBK9l4taqwPoWNMxX7L3cJBMpq6g8modbLKcF4LVQRIBGsTXQC8VyCZ8zi3 271A== X-Gm-Message-State: AOAM532akWOkD+iuTVOOaDY+ELcUEt4VAxzR/UfZdu5XP/IwPIAdEBgk DlBPVeYhtwOiegrrSnH9Diqa4A== X-Google-Smtp-Source: ABdhPJy3PaFCYGjBLYgMOA4HkwAZ19r6kpGvDS0CX80kDOAPYHujXw/t5qxeEJZKNXnsDv7zFj+5Fw== X-Received: by 2002:a05:6214:5286:: with SMTP id kj6mr29754089qvb.50.1636486656535; Tue, 09 Nov 2021 11:37:36 -0800 (PST) Received: from bill-the-cat (2603-6081-7b01-cbda-74ad-b320-81ce-4688.res6.spectrum.com. [2603:6081:7b01:cbda:74ad:b320:81ce:4688]) by smtp.gmail.com with ESMTPSA id s13sm12354522qki.23.2021.11.09.11.37.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Nov 2021 11:37:35 -0800 (PST) Date: Tue, 9 Nov 2021 14:37:33 -0500 From: Tom Rini To: Sean Anderson Cc: Oleh Kravchenko , u-boot@lists.denx.de, Simon Glass , Ilias Apalodimas , Alexandru Gagniuc Subject: Re: U-boot is broken with -O0? Message-ID: <20211109193733.GA24579@bill-the-cat> References: <20211109185233.GY24579@bill-the-cat> <2741FC48-19DF-40B0-9613-9FDC7B7A6715@kaa.org.ua> <8ddbb7a3-6273-b53f-8603-bbf6825cfa60@seco.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="aBeuU+MSqwKaVp2q" Content-Disposition: inline In-Reply-To: <8ddbb7a3-6273-b53f-8603-bbf6825cfa60@seco.com> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean --aBeuU+MSqwKaVp2q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 09, 2021 at 02:34:41PM -0500, Sean Anderson wrote: > Hi Oleh, >=20 > On 11/9/21 2:31 PM, Oleh Kravchenko wrote: > > Hello Tom, > > for what reason it's not supported? > >=20 > > I'm finding that very useful for debugging. >=20 > Perhaps try -Og Yes. There are several places where we rely on the code being optimized at run time, if memory serves me correctly. And unless you're debugging a compiler problem, disabling optimization is the wrong way to go, modern debuggers (with debug symbols available of course) will see what's going on and tell you so just fine. If you have some specific area of code / file, you might be able to get away with disabling optimization there alone. But no, in these times "disable optimization, fire up the debugger" just isn't the right path. --=20 Tom --aBeuU+MSqwKaVp2q Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmGKzf0ACgkQFHw5/5Y0 tyzjXgwAqkR9iAGubPjOqlH0Kf7Kh5QwhjfF45HcqjI4GiOw9mUovJN8fI4S6NJt iTJdO2NfKxeI/u3Xt45t86r2yspnnx5ldsWJoxyCPOBYVn/1Qte5uIHa+rPQFKwO uKYAg9o01X2fJkf7rqaaXd9w/DkU6DNpShKYAkELcruhAUwB9nIC6asFDXPzYizy m/WsvpYdFU8vUJ/ly8Jc8gWfNypLuzDlv3DZIlDLdJ/P5nnutvXsHzkj5wCRCcUR a4XwACLmyvAzu2EGcogJAl+pAhz7t27n0HH9eNkYe9HO4O32UQLLxvf+aB2seiwi VQsMbBYxqe4fsDdRNjmsw+PovdaT4BlUDgieimPAkxxDHC3WYomvjKcpqXbXQ00F 1zqYHnkuu7jMDJf+p8CH+e5/VuJVKUynRKdPvJNT6IgykPQyCeH9pFA2Kdtfoi+n nFSrwb6+ZVDJIwlaFsinKx1fuTvwllygeeHbW1WXuUZ/F7jSDtOPyffqum1GlaSt wCORrO6X =6pSv -----END PGP SIGNATURE----- --aBeuU+MSqwKaVp2q--