Searched hist:"35 bb5b1e0e84cfa1a8906f7e6a77f391ff315791" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/ |
H A D | Makefile | bef5b54bd7bf8117c75cb943d64549134c6d9a1f Wed Jul 16 07:02:24 CDT 2008 Ralf Baechle <ralf@linux-mips.org> Fix MIPS cross-compile problem
Crosscompiling on a Fedora 9 machine running gcc 4.3.0 as its host compiler and gcc 3.4.6 for the mips-linux target results in the following build error:
$ make malta_defconfig $ make cc1: error: unrecognized command line option "-fno-stack-protector" scripts/kconfig/conf -s arch/mips/Kconfig cc1: error: unrecognized command line option "-fno-stack-protector"
The arch Makefile is included too late so the host compiler is feature tested, not the crosscompiler as intended and thus the Makefile applies adds -fno-stack-protector to crosscompiler's flags which fails for gcc 3.4.6. The bug was introduced by e06b8b98da071f7dd78fb7822991694288047df0 in 2.6.25; 35bb5b1e0e84cfa1a8906f7e6a77f391ff315791 did add more flags testing before the arch Makefile inclusion.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> 35bb5b1e0e84cfa1a8906f7e6a77f391ff315791 Fri Feb 22 08:15:03 CST 2008 Andi Kleen <andi@firstfloor.org> 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>
|
/openbmc/linux/lib/ |
H A D | Kconfig.debug | 35bb5b1e0e84cfa1a8906f7e6a77f391ff315791 Fri Feb 22 08:15:03 CST 2008 Andi Kleen <andi@firstfloor.org> 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>
|