From: Tobias Stoeckmann Date: Wed, 16 Oct 2024 09:14:40 +0000 (+0200) Subject: build: add builtin overflow checks to configure.ac X-Git-Tag: v34~237 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=afb69615ceffa30ffb71f541411a99f03f357e71;p=thirdparty%2Fkmod.git 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 --- 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 ])