mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-12-24 15:09:34 -05:00
e2c499dd24
Signed-off-by: Tad <tad@spotco.us>
23 lines
655 B
Diff
23 lines
655 B
Diff
From 919a61dedb0458ebd52291cb6d4948446fad4b44 Mon Sep 17 00:00:00 2001
|
|
From: Daniel Micay <danielmicay@gmail.com>
|
|
Date: Wed, 8 Apr 2020 11:10:43 -0400
|
|
Subject: [PATCH] enable -ftrivial-auto-var-init=zero
|
|
|
|
---
|
|
Makefile | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/Makefile b/Makefile
|
|
index 79e2a78a7e92..abc66c11c84a 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -770,6 +770,8 @@ KBUILD_CFLAGS += -fomit-frame-pointer
|
|
endif
|
|
endif
|
|
|
|
+KBUILD_CFLAGS += -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang
|
|
+
|
|
KBUILD_CFLAGS += $(call cc-option, -fno-var-tracking-assignments)
|
|
|
|
ifdef CONFIG_DEBUG_INFO
|