Skip to content

Commit 7d4eb0d

Browse files
committed
kbuild: remove cc-option test of -fno-stack-check
The minimal compiler version, GCC 4.9 supports this flag. Nathan Chancellor pointed out: "This flag is technically ignored by clang (see commit 05b0798916f01690b5903302e51f3136274e291f) but that obviously does not matter for the sake of this." Here is the godbolt: https://godbolt.org/z/59cK6o Signed-off-by: Masahiro Yamada <[email protected]> Reviewed-by: Nathan Chancellor <[email protected]>
1 parent 8b42cf2 commit 7d4eb0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ KBUILD_CFLAGS += $(call cc-option,-fno-merge-all-constants)
940940
KBUILD_CFLAGS += $(call cc-option,-fmerge-constants)
941941

942942
# Make sure -fstack-check isn't enabled (like gentoo apparently did)
943-
KBUILD_CFLAGS += $(call cc-option,-fno-stack-check,)
943+
KBUILD_CFLAGS += -fno-stack-check
944944

945945
# conserve stack if available
946946
KBUILD_CFLAGS += $(call cc-option,-fconserve-stack)

0 commit comments

Comments
 (0)