From: Tom Rini Date: Wed, 12 Sep 2012 10:10:12 -0700 Subject: [U-Boot] [PATCH 1/2] bfin: Disable -fstack-usage In-Reply-To: <201209120959.30864.marex@denx.de> References: <1347390507-27299-1-git-send-email-marex@denx.de> <201209120959.30864.marex@denx.de> Message-ID: <20120912171012.GF22207@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, Sep 12, 2012 at 09:59:30AM +0200, Marek Vasut wrote: > Dear Mike Frysinger, > > > On Tue, Sep 11, 2012 at 3:08 PM, Marek Vasut wrote: > > > The GCC does not support this on blackfin, disable it. > > > > err, no, you're probably using gcc-4.5.x which didn't support > > -fstack-usage. that is not specific to Blackfin as gcc didn't add it > > until 4.6.x. > > I actually used gentoo here, so it's really possible there is some crap going > on. > > $ bfin-unknown-elf-gcc --version > bfin-unknown-elf-gcc (crosstool-NG hg+default-ff167977b163) 4.6.3 > Copyright (C) 2011 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > > why doesn't the cc-option check work ? > > I dunno man, probably because it's supported but broken, see (there's lot more > to this, I cut it down): I believe it's a gcc "feature" not a bug. -fstack-usage emits a warning on targets where it's not supported and cc-option doesn't catch that. How about if you make cc-option call -Werror ? -- Tom