m4: bump autocruft
This commit is contained in:
parent
9bfdfa3f12
commit
c66ce72c2e
@ -28,6 +28,8 @@ AC_DEFUN([NC_OPTIMISATION],[
|
||||
AX_APPEND_COMPILE_FLAGS([-fno-fat-lto-objects], [], [-Werror])
|
||||
AX_APPEND_COMPILE_FLAGS([-flto-odr-type-merging], [], [-Werror])
|
||||
AX_APPEND_LINK_FLAGS([-fuse-linker-plugin], [], [-Werror])
|
||||
|
||||
AX_APPEND_COMPILE_FLAGS([-fdevirtualize-at-ltrans], [], [-Werror])
|
||||
])
|
||||
|
||||
##-------------------------------------------------------------------------
|
||||
@ -67,6 +69,16 @@ AC_DEFUN([NC_OPTIMISATION],[
|
||||
# gcc >= 4.8 defaults to enabling stack-protector, we care more about
|
||||
# performance than security.
|
||||
AX_APPEND_COMPILE_FLAGS([-fno-stack-protector], [], [-Werror])
|
||||
|
||||
AX_APPEND_COMPILE_FLAGS([-ftree-loop-linear], [], [-Werror])
|
||||
AX_APPEND_COMPILE_FLAGS([-floop-interchange], [], [-Werror])
|
||||
|
||||
AX_APPEND_COMPILE_FLAGS([-ftree-loop-distribution], [], [-Werror])
|
||||
AX_APPEND_COMPILE_FLAGS([-ftree-loop-distribute-patterns], [], [-Werror])
|
||||
AX_APPEND_COMPILE_FLAGS([-ftree-vectorize], [], [-Werror])
|
||||
AX_APPEND_COMPILE_FLAGS([-floop-interchange], [], [-Werror])
|
||||
|
||||
|
||||
])
|
||||
|
||||
##-------------------------------------------------------------------------
|
||||
|
@ -4,13 +4,17 @@ AC_DEFUN([NC_WARNINGS],[
|
||||
|
||||
AX_COMPILER_VENDOR
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Compound warnings
|
||||
AX_APPEND_COMPILE_FLAGS([-Wall], [], [-Werror])
|
||||
AX_APPEND_COMPILE_FLAGS([-Wextra], [], [-Werror])
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# General warnings
|
||||
AX_APPEND_COMPILE_FLAGS([-Wbool-compare], [], [-Werror])
|
||||
AX_APPEND_COMPILE_FLAGS([-Wcast-align], [], [-Werror])
|
||||
AX_APPEND_COMPILE_FLAGS([-Wcast-qual], [], [-Werror])
|
||||
AX_APPEND_COMPILE_FLAGS([-Wdisabled-optimization], [], [-Werror])
|
||||
AX_APPEND_COMPILE_FLAGS([-Wfloat-conversion], [], [-Werror])
|
||||
AX_APPEND_COMPILE_FLAGS([-Wfloat-equal], [], [-Werror])
|
||||
AX_APPEND_COMPILE_FLAGS([-Wno-aggressive-loop-optimizations], [], [-Werror])
|
||||
@ -25,10 +29,12 @@ AC_DEFUN([NC_WARNINGS],[
|
||||
AX_APPEND_COMPILE_FLAGS([-Wstrict-aliasing], [], [-Werror])
|
||||
AX_APPEND_COMPILE_FLAGS([-Wstrict-overflow], [], [-Werror])
|
||||
AX_APPEND_COMPILE_FLAGS([-Wtype-limits], [], [-Werror])
|
||||
AX_APPEND_COMPILE_FLAGS([-Wunsafe-loop-optimizations], [], [-Werror])
|
||||
AX_APPEND_COMPILE_FLAGS([-Wunused-but-set-variable], [], [-Werror])
|
||||
AX_APPEND_COMPILE_FLAGS([-Wunused-parameter], [], [-Werror])
|
||||
AX_APPEND_COMPILE_FLAGS([-Wuseless-cast], [], [-Werror])
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Required extensions
|
||||
#AX_APPEND_COMPILE_FLAGS([-Wgnu-flexible-array-union-member], [], [-Werror])
|
||||
#AX_APPEND_COMPILE_FLAGS([-Wno-c99-extensions], [], [-Werror])
|
||||
@ -46,6 +52,7 @@ AC_DEFUN([NC_WARNINGS],[
|
||||
AX_APPEND_COMPILE_FLAGS([-Wno-zero-length-array], [], [-Werror])
|
||||
])
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Excessive warnings
|
||||
AX_APPEND_COMPILE_FLAGS([-Wno-missing-braces], [], [-Werror])
|
||||
|
||||
@ -54,6 +61,20 @@ AC_DEFUN([NC_WARNINGS],[
|
||||
AX_APPEND_COMPILE_FLAGS([-Wno-unused-const-variable], [], [-Werror])
|
||||
])
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Strict warnings
|
||||
AX_APPEND_COMPILE_FLAGS([-pedantic], [], [-Werror])
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Advisory warnings
|
||||
AC_ARG_ENABLE([advisory], [
|
||||
AS_HELP_STRING([--enable-advisory], [enable advisory warnings])
|
||||
])
|
||||
|
||||
AS_IF([test "x$enable_advisory" = "xyes"], [
|
||||
AX_APPEND_COMPILE_FLAGS([-Winline], [], [-Werror])
|
||||
AX_APPEND_COMPILE_FLAGS([-Wsuggest-final-types], [], [-Werror])
|
||||
AX_APPEND_COMPILE_FLAGS([-Wsuggest-final-methods], [], [-Werror])
|
||||
AX_APPEND_COMPILE_FLAGS([-Wsuggest-override], [], [-Werror])
|
||||
], [])
|
||||
])
|
||||
|
Loading…
Reference in New Issue
Block a user