From 2e6358ca2dee2f849419fea28f9b9e9d6ae77035 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Tue, 5 Jul 2016 22:12:26 +0200 Subject: [PATCH] Stop checking for __builtin_clz (#985) Since commit 19137a55 we no longer use this builtin, so we don't have to check for it anymore either. Signed-off-by: Uli Schlachter --- awesomeConfig.cmake | 10 ---------- build-tests/__builtin_clz.c | 14 -------------- config.h | 1 - 3 files changed, 25 deletions(-) delete mode 100644 build-tests/__builtin_clz.c diff --git a/awesomeConfig.cmake b/awesomeConfig.cmake index 0bf2ad469..659d019ab 100644 --- a/awesomeConfig.cmake +++ b/awesomeConfig.cmake @@ -199,16 +199,6 @@ else() message(STATUS "checking for execinfo -- not found") endif() -# __builtin_clz is available since gcc 3.4 -try_compile(HAS___BUILTIN_CLZ - ${CMAKE_BINARY_DIR} - ${CMAKE_SOURCE_DIR}/build-tests/__builtin_clz.c) -if(HAS___BUILTIN_CLZ) - message(STATUS "checking for __builtin_clz -- yes") -else() - message(STATUS "checking for __builtin_clz -- no") -endif() - set(AWESOME_REQUIRED_LDFLAGS ${AWESOME_COMMON_REQUIRED_LDFLAGS} ${AWESOME_REQUIRED_LDFLAGS} diff --git a/build-tests/__builtin_clz.c b/build-tests/__builtin_clz.c deleted file mode 100644 index b4ab53785..000000000 --- a/build-tests/__builtin_clz.c +++ /dev/null @@ -1,14 +0,0 @@ -/* - * build-tests/__builtin_clz.c - * - * test if the compiler has __builtin_clz(). - */ - -int -main(void) -{ - - return (__builtin_clz(42)); -} - -// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/config.h b/config.h index 94c64070a..b599a90ed 100644 --- a/config.h +++ b/config.h @@ -7,7 +7,6 @@ #cmakedefine WITH_DBUS #cmakedefine HAS_EXECINFO -#cmakedefine HAS___BUILTIN_CLZ #endif //_CONFIG_H_