From afb69615ceffa30ffb71f541411a99f03f357e71 Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Wed, 16 Oct 2024 11:14:40 +0200 Subject: [PATCH] build: add builtin overflow checks to configure.ac Without these, the build becomes quite noisy and doesn't add builtin functions even though they exist. Signed-off-by: Tobias Stoeckmann Link: https://github.com/kmod-project/kmod/pull/183 Signed-off-by: Lucas De Marchi --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index c204570d..a8d1a8a6 100644 --- a/configure.ac +++ b/configure.ac @@ -44,8 +44,12 @@ AC_CHECK_FUNCS_ONCE([secure_getenv]) CC_CHECK_FUNC_BUILTIN([__builtin_clz]) CC_CHECK_FUNC_BUILTIN([__builtin_types_compatible_p]) +CC_CHECK_FUNC_BUILTIN([__builtin_uadd_overflow], [ ], [ ]) CC_CHECK_FUNC_BUILTIN([__builtin_uaddl_overflow], [ ], [ ]) CC_CHECK_FUNC_BUILTIN([__builtin_uaddll_overflow], [ ], [ ]) +CC_CHECK_FUNC_BUILTIN([__builtin_umul_overflow], [ ], [ ]) +CC_CHECK_FUNC_BUILTIN([__builtin_umull_overflow], [ ], [ ]) +CC_CHECK_FUNC_BUILTIN([__builtin_umulll_overflow], [ ], [ ]) # dietlibc doesn't have st.st_mtim struct member AC_CHECK_MEMBERS([struct stat.st_mtim], [], [], [#include ]) -- 2.47.3