2024-12-10 06:44:25 +03:00
|
|
|
From 87b0cab8d8701db7754e5778b93ff83ffc64c7ae Mon Sep 17 00:00:00 2001
|
2024-10-29 05:12:06 +03:00
|
|
|
From: Sultan Alsawaf <sultan@kerneltoast.com>
|
|
|
|
Date: Sun, 8 Mar 2020 00:31:35 -0800
|
|
|
|
Subject: ZEN: Disable stack conservation for GCC
|
|
|
|
|
|
|
|
There's plenty of room on the stack for a few more inlined bytes here
|
|
|
|
and there. The measured stack usage at runtime is still safe without
|
|
|
|
this, and performance is surely improved at a microscopic level, so
|
|
|
|
remove it.
|
|
|
|
|
|
|
|
Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
|
|
|
|
---
|
|
|
|
Makefile | 5 -----
|
|
|
|
1 file changed, 5 deletions(-)
|
|
|
|
|
|
|
|
--- a/Makefile
|
|
|
|
+++ b/Makefile
|
2024-12-10 06:44:25 +03:00
|
|
|
@@ -1018,11 +1018,6 @@ KBUILD_CFLAGS += -fno-strict-overflow
|
2024-10-29 05:12:06 +03:00
|
|
|
# Make sure -fstack-check isn't enabled (like gentoo apparently did)
|
|
|
|
KBUILD_CFLAGS += -fno-stack-check
|
|
|
|
|
|
|
|
-# conserve stack if available
|
|
|
|
-ifdef CONFIG_CC_IS_GCC
|
|
|
|
-KBUILD_CFLAGS += -fconserve-stack
|
|
|
|
-endif
|
|
|
|
-
|
|
|
|
# change __FILE__ to the relative path from the srctree
|
|
|
|
KBUILD_CPPFLAGS += $(call cc-option,-fmacro-prefix-map=$(srctree)/=)
|
|
|
|
|