From 40a58a9a61d5049ac2e1f6aaba072a060a2e7c69 Mon Sep 17 00:00:00 2001 From: Alexander Gorshenev Date: Fri, 18 May 2018 18:22:04 +0300 Subject: [PATCH] Eliminate stack protection from the runtime. There is some positive performance effect: before: Average Ring score: absolute = 177,5160 us +- 0,5352 us, ratio = 8,68 +- 0,10 after: Average Ring score: absolute = 171,3093 us +- 2,3758 us, ratio = 8,72 +- 0,23 --- .../main/kotlin/org/jetbrains/kotlin/konan/target/ClangArgs.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/src/main/kotlin/org/jetbrains/kotlin/konan/target/ClangArgs.kt b/shared/src/main/kotlin/org/jetbrains/kotlin/konan/target/ClangArgs.kt index fc5299ff3c3..bee2179cbb8 100644 --- a/shared/src/main/kotlin/org/jetbrains/kotlin/konan/target/ClangArgs.kt +++ b/shared/src/main/kotlin/org/jetbrains/kotlin/konan/target/ClangArgs.kt @@ -163,7 +163,7 @@ class ClangArgs(private val configurables: Configurables) : Configurables by con emptyList() } - val commonClangArgs = listOf("-B$binDir") + extraHostClangArgs + val commonClangArgs = listOf("-B$binDir", "-fno-stack-protector") + extraHostClangArgs val clangPaths = listOf("$absoluteLlvmHome/bin", binDir)