summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAliaksey Kandratsenka <alkondratenko@gmail.com>2021-02-14 13:33:10 -0800
committerAliaksey Kandratsenka <alkondratenko@gmail.com>2021-02-14 15:12:19 -0800
commit9bb2937261bca6c0257a8cfd62ff97f69c450acb (patch)
tree1e63df20d275983646e02370da4575ada3ed5ac8
parentd9c4c3b481e641b719d3d790987ed7d094157bf2 (diff)
downloadgperftools-9bb2937261bca6c0257a8cfd62ff97f69c450acb.tar.gz
amputate checking for inline keyword support
It is supported everywhere now.
-rw-r--r--CMakeLists.txt13
-rw-r--r--cmake/config.h.in6
-rw-r--r--configure.ac1
-rw-r--r--src/windows/config.h6
4 files changed, 0 insertions, 26 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b480ceb..8992d02 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -160,19 +160,6 @@ set(CMAKE_CXX_EXTENSIONS ON)
# Check if we have an objcopy installed that supports -W
find_objcopy_with_weaken()
-# AC_C_INLINE
-set(inline)
-foreach(inline_keyword "inline" "__inline" "__inline__")
- check_c_source_compiles("
- static ${inline_keyword} void foo() {}
- int main() { foo(); return 0; }"
- have_${inline_keyword})
- if(have_${inline_keyword})
- set(inline ${inline_keyword})
- break()
- endif()
-endforeach()
-
# AX_C___ATTRIBUTE__
check_c_source_compiles("#include <stdlib.h>
static void foo(void) __attribute__ ((unused));
diff --git a/cmake/config.h.in b/cmake/config.h.in
index 612e6a5..9996b92 100644
--- a/cmake/config.h.in
+++ b/cmake/config.h.in
@@ -325,12 +325,6 @@
# define __STDC_FORMAT_MACROS 1
#endif
-/* Define to `__inline__' or `__inline' if that's what the C compiler
- calls it, or to nothing if 'inline' is not supported under any name. */
-#ifndef __cplusplus
-#define inline @inline@
-#endif
-
// ---------------------------------------------------------------------
// Extra stuff not found in config.h.in
#if defined(WIN32)
diff --git a/configure.ac b/configure.ac
index ef1b14f..eae0780 100644
--- a/configure.ac
+++ b/configure.ac
@@ -173,7 +173,6 @@ AM_CONDITIONAL(HAVE_OBJCOPY_WEAKEN, test $gpt_cv_objcopy_weaken = yes)
AC_PROG_LIBTOOL
-AC_C_INLINE
AX_C___ATTRIBUTE__
AC_MSG_CHECKING(for __attribute__((aligned(N))) on functions)
diff --git a/src/windows/config.h b/src/windows/config.h
index dba8bc0..91b2767 100644
--- a/src/windows/config.h
+++ b/src/windows/config.h
@@ -330,12 +330,6 @@
# define __STDC_FORMAT_MACROS 1
#endif
-/* Define to `__inline__' or `__inline' if that's what the C compiler
- calls it, or to nothing if 'inline' is not supported under any name. */
-#ifndef __cplusplus
-/* #undef inline */
-#endif
-
// ---------------------------------------------------------------------
// Extra stuff not found in config.h.in