X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=Makefile;h=e59491ff5e96876531bad93ab859f549bc3d35c4;hb=0f8c67a5d0eb59d57a7c9fd9c158e2f1758545c9;hp=4c06cbe89ece2ede34d5cae4b618faab3722f78a;hpb=90c7e9b400c751dbd73885f494f421f90ca69721;p=platform%2Fkernel%2Flinux-rpi.git diff --git a/Makefile b/Makefile index 4c06cbe..e59491f 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 15 -SUBLEVEL = 71 +SUBLEVEL = 79 EXTRAVERSION = NAME = Trick or Treat @@ -844,12 +844,12 @@ endif # Initialize all stack variables with a zero value. ifdef CONFIG_INIT_STACK_ALL_ZERO -# Future support for zero initialization is still being debated, see -# https://bugs.llvm.org/show_bug.cgi?id=45497. These flags are subject to being -# renamed or dropped. KBUILD_CFLAGS += -ftrivial-auto-var-init=zero +ifdef CONFIG_CC_HAS_AUTO_VAR_INIT_ZERO_ENABLER +# https://github.com/llvm/llvm-project/issues/44842 KBUILD_CFLAGS += -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang endif +endif # While VLAs have been removed, GCC produces unreachable stack probes # for the randomize_kstack_offset feature. Disable it for all compilers. @@ -870,7 +870,9 @@ else DEBUG_CFLAGS += -g endif -ifndef CONFIG_AS_IS_LLVM +ifdef CONFIG_AS_IS_LLVM +KBUILD_AFLAGS += -g +else KBUILD_AFLAGS += -Wa,-gdwarf-2 endif