[U-Boot] [PATCH 1/2] bfin: Disable -fstack-usage
Marek Vasut
marex at denx.de
Wed Sep 12 09:59:30 CEST 2012
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):
$ ARCH=blackfin CROSS_COMPILE=bfin-unknown-elf- ./MAKEALL -a blackfin
Configuring for bct-brettl2 board...
text data bss dec hex filename
168228 4070 61768 234066 39252 ./u-boot
lib/asm-offsets.c: In function 'main':
lib/asm-offsets.c:32:1: warning: -fstack-usage not supported for this target
[enabled by default]
initcode.c: In function 'initcode':
initcode.c:691:1: warning: -fstack-usage not supported for this target [enabled
by default]
bootrom-asm-offsets.c: In function 'main':
bootrom-asm-offsets.c:62:1: warning: -fstack-usage not supported for this target
[enabled by default]
cpu.c: In function 'cpu_init_f':
cpu.c:76:1: warning: -fstack-usage not supported for this target [enabled by
default]
part.c: In function 'get_dev':
part.c:103:1: warning: -fstack-usage not supported for this target [enabled by
default]
gpio.c: In function 'port_setup':
gpio.c:220:1: warning: -fstack-usage not supported for this target [enabled by
default]
In file included from /home/marex/U-Boot/u-boot-
marex/include/asm/blackfin.h:13:0,
from /home/marex/U-Boot/u-boot-marex/include/common.h:109,
from interrupts.c:21:
/home/marex/U-Boot/u-boot-marex/include/asm/blackfin_local.h: In function
'CSYNC':
/home/marex/U-Boot/u-boot-marex/include/asm/blackfin_local.h:200:1: warning: -
fstack-usage not supported for this target [enabled by default]
jtag-console.c: In function 'jtag_getc':
jtag-console.c:177:1: warning: -fstack-usage not supported for this target
[enabled by default]
os_log.c: In function 'bfin_os_log_check':
os_log.c:21:1: warning: -fstack-usage not supported for this target [enabled by
default]
> -mike
Best regards,
Marek Vasut
More information about the U-Boot
mailing list