Skip to content
Commit 35bb5b1e authored by Andi Kleen's avatar Andi Kleen Committed by Sam Ravnborg
Browse files

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: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent 80ff2624
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment