From: Tom Rini Date: Fri, 21 Feb 2014 10:13:46 -0500 Subject: [U-Boot] [U-Boot, v5] Makefile: add a new script to check -fstack-usage support In-Reply-To: <1386760294-8591-1-git-send-email-yamada.m@jp.panasonic.com> References: <1386760294-8591-1-git-send-email-yamada.m@jp.panasonic.com> Message-ID: <20140221151346.GA23127@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Dec 11, 2013 at 08:11:34PM +0900, Masahiro Yamada wrote: > If -fstack-usage option is given to crosstools > that do not support it, gcc displays a warning message > but still exits with status 0. > > This means we can not rely on $(call cc-option,...) > to detect if -fstack-usage option is supported or not. > > Signed-off-by: Masahiro Yamada > > --- > Some crosstools currently do not support -fstack-usage option. > For example, bfin-uclinux-gcc, which is available at > https://www.kernel.org/pub/tools/crosstool/ > > If -fstack-usage option is given to such crosstools, > gcc displays a warning message as follows: > > warning: -fstack-usage not supported for this target [enabled by default] > > But it still exits with status 0. > > So, $(call cc-option,-fstack-usage) does not work as we expect > because cc-option checks exit status > to judge whether the given option is supported or not. > > > Changes in v5: > - Rebased on Kbuild series > > Changes in v4: > - Drop executable permission of scripts/gcc-stack-usage.sh > - Fix commit log > - Add the rationale below --- We still want this, and it's still applicable right? -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: