Return-Path: Received: from hetzner.pbcl.net (mail.pbcl.net [88.198.119.4]) by mail.openembedded.org (Postfix) with ESMTP id 5772A60B60 for ; Thu, 21 Nov 2013 15:57:33 +0000 (UTC) Received: from cpc6-cmbg17-2-0-cust487.5-4.cable.virginm.net ([86.30.57.232] helo=[172.30.1.45]) by hetzner.pbcl.net with esmtpsa (TLS1.0:DHE_RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1VjWcq-000277-Ai; Thu, 21 Nov 2013 16:57:31 +0100 Message-ID: <1385049423.23724.173.camel@phil-desktop.brightsign> From: Phil Blundell To: Mark Hatle Date: Thu, 21 Nov 2013 15:57:03 +0000 In-Reply-To: <528E1CEF.8070502@windriver.com> References: <1385019198-24458-1-git-send-email-mark.hatle@windriver.com> <1385019198-24458-2-git-send-email-mark.hatle@windriver.com> <1385043945.23724.158.camel@phil-desktop.brightsign> <528E1CEF.8070502@windriver.com> X-Mailer: Evolution 3.4.4-4+b1 Mime-Version: 1.0 X-Spam_score: -1.0 X-Spam_score_int: -9 X-Spam_bar: - X-Spam_report: Spam detection software, running on the system "hetzner.pbcl.net", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: On Thu, 2013-11-21 at 08:47 -0600, Mark Hatle wrote: > We have users who desire to build their system at different levels of > optimizations for debug, size, profiling, etc. So they do change the default > optimization levels from -O2 to -O0, etc. The python fragement is used to only > adjust -O0, as -O1 (or -Os) work correctly. [...] Content analysis details: (-1.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP Cc: openembedded-core@lists.openembedded.org Subject: Re: [master][dora][PATCH 1/2] perf: disallow debug optimization. X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Nov 2013 15:57:34 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Thu, 2013-11-21 at 08:47 -0600, Mark Hatle wrote: > We have users who desire to build their system at different levels of > optimizations for debug, size, profiling, etc. So they do change the default > optimization levels from -O2 to -O0, etc. The python fragement is used to only > adjust -O0, as -O1 (or -Os) work correctly. Sure, I understand what the python is doing. The things I'm not quite so clear about are: a) If the user asks to build with -O0, is it appropriate for the metadata to second-guess this and quietly switch to using -O2 instead when it thinks it knows best? Personally I am inclined to say that attempting to use -O0 with packages that don't support it should just produce an error and the user should fix their configuration to not do that. And, if we're going to enable optimisation that the user hasn't asked for, shouldn't it be the minimum level consistent with getting the package to build rather than the full -O2 set? b) If the answer to (a) is that the metadata should indeed be doing this, can it be made to do so in a way that doesn't involve running extra python fragments for all users every time the recipe is parsed? c) If the answer to (b) is no, is the feature really so important that it's worth adding extra overhead to the parse for all users in order to benefit the (presumably tiny) minority who might actually be trying to build perf at -O0? p.