Skip to content

Commit a83e4ca

Browse files
committed
kbuild: remove cc-option switch from -Wframe-larger-than=
This CONFIG option was added by commit 35bb5b1 ("Add option to enable -Wframe-larger-than= on gcc 4.4"). At that time, the cc-option check was needed. According to Documentation/process/changes.rst, the current minimal supported version of GCC is 4.6, so you can assume GCC supports it. Clang supports it as well. Remove the cc-option switch and redundant comments. Signed-off-by: Masahiro Yamada <[email protected]> Reviewed-by: Nathan Chancellor <[email protected]> Reviewed-by: Nick Desaulniers <[email protected]>
1 parent f84fdf8 commit a83e4ca

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ KBUILD_CFLAGS += $(call cc-option,-fno-reorder-blocks,) \
729729
endif
730730

731731
ifneq ($(CONFIG_FRAME_WARN),0)
732-
KBUILD_CFLAGS += $(call cc-option,-Wframe-larger-than=${CONFIG_FRAME_WARN})
732+
KBUILD_CFLAGS += -Wframe-larger-than=$(CONFIG_FRAME_WARN)
733733
endif
734734

735735
stackp-flags-$(CONFIG_CC_HAS_STACKPROTECTOR_NONE) := -fno-stack-protector

lib/Kconfig.debug

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ config ENABLE_MUST_CHECK
266266
attribute warn_unused_result" messages.
267267

268268
config FRAME_WARN
269-
int "Warn for stack frames larger than (needs gcc 4.4)"
269+
int "Warn for stack frames larger than"
270270
range 0 8192
271271
default 2048 if GCC_PLUGIN_LATENT_ENTROPY
272272
default 1280 if (!64BIT && PARISC)
@@ -276,7 +276,6 @@ config FRAME_WARN
276276
Tell gcc to warn at build time for stack frames larger than this.
277277
Setting this too low will cause a lot of warnings.
278278
Setting it to 0 disables the warning.
279-
Requires gcc 4.4
280279

281280
config STRIP_ASM_SYMS
282281
bool "Strip assembler-generated symbols during link"

0 commit comments

Comments
 (0)