]> git.baikalelectronics.ru Git - kernel.git/commit
Add option to enable -Wframe-larger-than= on gcc 4.4
authorAndi Kleen <andi@firstfloor.org>
Fri, 22 Feb 2008 14:15:03 +0000 (15:15 +0100)
committerSam Ravnborg <sam@uranus.ravnborg.org>
Fri, 25 Apr 2008 18:23:47 +0000 (20:23 +0200)
commit65a85b2fd1434294df0ab5ce0f95785e4cf8e527
treefd3fa4e426bd11df3496141d8a251a783bce5f8d
parent994411812cc3098d78a5b5d22acf4043da27c353
Add option to enable -Wframe-larger-than= on gcc 4.4

Add option to enable -Wframe-larger-than= on gcc 4.4

gcc mainline (upcoming 4.4) added a new -Wframe-larger-than=...
option to warn at build time about too large stack frames. Add a config
option to enable this warning, since this very useful for the kernel.

I choose (somewhat arbitarily) 2048 as default warning threshold for 64bit
and 1024 as default for 32bit architectures.  With some research and
fixing all the code for smaller values these defaults should be probably
lowered.

With the default allyesconfigs have some new warnings, but I think
that is all code that should be just fixed.

At some point (when gcc 4.4 is released and widely used) this should
obsolete make checkstack

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Makefile
lib/Kconfig.debug