From 3edbbe29f58727378303f17e7685e07b8c5afb62 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 12 Dec 2018 00:19:41 -0800 Subject: Turn off stack protector gcc option. * configure (opt_flags): Add -fno-stack-protector to disable this feature that is on by default in some toolchains/distros. As a result, I'm seeing an over 5% VM speedup on a loop benchmark. --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index 0e5b23be..8194bfa7 100755 --- a/configure +++ b/configure @@ -106,7 +106,7 @@ yaccname='' # test tries $(YACC) first yacc='$(cross)$(tool_prefix)$(yaccname)' yacc_given= nm='$(cross)$(tool_prefix)nm' -opt_flags=-O2 +opt_flags='-O2 -fno-stack-protector' lang_flags='-ansi -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200112 -D_GNU_SOURCE' diag_flags='-Wall -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=strict-prototypes' debug_flags=-g -- cgit v1.2.3