Re: [U-Boot] [PATCH] config.mk: enable -fstack-usage only when it is desired

2013-10-15 Thread Masahiro Yamada
Hello Jeroen > > I tried to google this a bit, one thing I found was > http://sourceware.org/bugzilla/show_bug.cgi?id=5210, but I fail > to (easily) find a reliable gcc reference. Perhaps we should > file a bug? -Werror doesn't work with /dev/null when > -fstack-usage is not supported... I might

Re: [U-Boot] [PATCH] config.mk: enable -fstack-usage only when it is desired

2013-10-08 Thread Jeroen Hofstee
Hello Masahiro, On 09/30/2013 10:01 AM, Masahiro Yamada wrote: Hello Jeroen, diff --git a/config.mk b/config.mk index 48913f6..177f685 100644 --- a/config.mk +++ b/config.mk @@ -117,7 +117,7 @@ CC_TEST_OFILE := $(OBJTREE)/include/generated/cc_test_file.o -include $(CC_OPTIONS_CACHE_FILE)

Re: [U-Boot] [PATCH] config.mk: enable -fstack-usage only when it is desired

2013-09-30 Thread Masahiro Yamada
Hello Jeroen, > diff --git a/config.mk b/config.mk > index 48913f6..177f685 100644 > --- a/config.mk > +++ b/config.mk > @@ -117,7 +117,7 @@ CC_TEST_OFILE := > $(OBJTREE)/include/generated/cc_test_file.o > -include $(CC_OPTIONS_CACHE_FILE) > > cc-option-sys = $(shell mkdir -p $(dir $(CC_TEST

Re: [U-Boot] [PATCH] config.mk: enable -fstack-usage only when it is desired

2013-09-27 Thread Jeroen Hofstee
Hello Masahiro, On 09/27/2013 04:09 AM, Masahiro Yamada wrote: The problem here is that except for whatever arches don't support - -fstack-usage, we always want to generate this information, to assist in debugging stack usage problems (which can be a real problem within SPL for example). How

Re: [U-Boot] [PATCH] config.mk: enable -fstack-usage only when it is desired

2013-09-27 Thread Michal Simek
Hi, David: Can you please tell to Masahiro where he can download toolchain in any format which will support -fstack-usage. I have microblazeel-xilinx-linux-gnu-gcc (crosstool-NG 1.18.0) 4.6.4 20120924 (prerelease) Thanks, Michal On 09/27/2013 04:23 AM, Masahiro Yamada wrote: > Hello Michal >

Re: [U-Boot] [PATCH] config.mk: enable -fstack-usage only when it is desired

2013-09-26 Thread Masahiro Yamada
Hello Michal > Please remove microblaze from this list. > Our gcc support fstack-usage. I will. Thanks for helpful information! > If your microblaze gcc doesn't support this flag > then upgrade gcc version. I tested microblaze-linux-gcc 4.8.0 I downloaded from ftp://ftp.kernel.org/pub/tools/cr

Re: [U-Boot] [PATCH] config.mk: enable -fstack-usage only when it is desired

2013-09-26 Thread Masahiro Yamada
Hello Tom. > The problem here is that except for whatever arches don't support > - -fstack-usage, we always want to generate this information, to assist in > debugging stack usage problems (which can be a real problem within SPL > for example). How about ifneq($(CONFIG_M68K)$(CONFIG_...),y) ... e

Re: [U-Boot] [PATCH] config.mk: enable -fstack-usage only when it is desired

2013-09-26 Thread Michal Simek
On 09/26/2013 01:52 PM, Tom Rini wrote: > On 09/25/2013 10:17 PM, Masahiro Yamada wrote: >> As far as I know, gcc does not support -fstack-usage >> for some targets such as blackfin, m68k, microblaze, etc. Please remove microblaze from this list. Our gcc support fstack-usage. If your microblaze g

Re: [U-Boot] [PATCH] config.mk: enable -fstack-usage only when it is desired

2013-09-26 Thread Tom Rini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/25/2013 10:17 PM, Masahiro Yamada wrote: > As far as I know, gcc does not support -fstack-usage > for some targets such as blackfin, m68k, microblaze, etc. > > If -fstack-usage option is given for those targets, > gcc displays a warning message

[U-Boot] [PATCH] config.mk: enable -fstack-usage only when it is desired

2013-09-25 Thread Masahiro Yamada
As far as I know, gcc does not support -fstack-usage for some targets such as blackfin, m68k, microblaze, etc. If -fstack-usage option is given for those targets, gcc displays a warning message as follows: warning: -fstack-usage not supported for this target [enabled by default] But it still