[U-Boot] [PATCH 1/2] bfin: Disable -fstack-usage

Tom Rini trini at ti.com
Wed Sep 12 19:10:12 CEST 2012


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


More information about the U-Boot mailing list