From bb6256c5a2983557e956c0244d844bbd5dbb3e0c Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 12 Oct 2015 19:20:29 +1100 Subject: [PATCH] m4: bump for autocruft --- m4/nc_optimisation.m4 | 12 ++++++++++++ m4/nc_warnings.m4 | 1 + 2 files changed, 13 insertions(+) diff --git a/m4/nc_optimisation.m4 b/m4/nc_optimisation.m4 index 194c5272..4d266634 100644 --- a/m4/nc_optimisation.m4 +++ b/m4/nc_optimisation.m4 @@ -32,6 +32,18 @@ AC_DEFUN([NC_OPTIMISATION],[ AX_APPEND_COMPILE_FLAGS([-fdevirtualize-at-ltrans], [], [-Werror]) ]) + ##------------------------------------------------------------------------- + ## Enable frame pointer + + AC_ARG_ENABLE([frame-pointer], [ + AS_HELP_STRING([--enable-frame-pointer], [retain the frame pointer even if optimising]) + ]) + + AS_IF([test "x$enable_frame_pointer" = "xyes"], [ + AX_APPEND_COMPILE_FLAGS([-fno-omit-frame-pointer], [], [-Werror]) + ]) + + ##------------------------------------------------------------------------- ## Choose the most performant processor architecture and features diff --git a/m4/nc_warnings.m4 b/m4/nc_warnings.m4 index 9f16183d..4a141e85 100644 --- a/m4/nc_warnings.m4 +++ b/m4/nc_warnings.m4 @@ -33,6 +33,7 @@ AC_DEFUN([NC_WARNINGS],[ AX_APPEND_COMPILE_FLAGS([-Wunused-but-set-variable], [], [-Werror]) AX_APPEND_COMPILE_FLAGS([-Wunused-parameter], [], [-Werror]) AX_APPEND_COMPILE_FLAGS([-Wuseless-cast], [], [-Werror]) + AX_APPEND_COMPILE_FLAGS([-Wpessimizing-move], [], [-Werror]) # ------------------------------------------------------------------------- # Required extensions