From 9cd8c56cdc8e380fda3fdcc9c3554e4f11232162 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 18 Jan 2018 11:51:38 +1100 Subject: [PATCH] optimisation: re-enable fipa-pta under GCC It appears codegen works again? Perhaps we were running into a seperate issue and fipa-pta always worked. --- nc_optimisation.cmake | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/nc_optimisation.cmake b/nc_optimisation.cmake index 2cacafa..b58c122 100644 --- a/nc_optimisation.cmake +++ b/nc_optimisation.cmake @@ -104,12 +104,7 @@ else() append_compile_flag(-fpredictive-commoning) append_compile_flag(-funswitch-loops) - # options that require substantial time/memory - # GCC: ipa-pta can produce broken code when using LTO - #AS_IF([test "x$ax_cv_cxx_compiler_vendor" != "xgnu" || - # test "x$enable_lto" != "xyes"], [ - # AX_APPEND_COMPILE_FLAGS([-fipa-pta]) - #]) + append_compile_flag (-fipa-pta) # safety removal for performance append_compile_flag(-fno-stack-protector)