diff options
author | Aliaksey Kandratsenka <alkondratenko@gmail.com> | 2021-02-14 14:25:49 -0800 |
---|---|---|
committer | Aliaksey Kandratsenka <alkondratenko@gmail.com> | 2021-02-14 15:44:14 -0800 |
commit | ac68c97187e3729668ff5048c9bd27aae14e974d (patch) | |
tree | 0dbd1b3044b538ac23470026f9f4cfa491d9e5bf | |
parent | 7271bb72be08db491d3f0c60c1b0d5593cc1b5b5 (diff) | |
download | gperftools-ac68c97187e3729668ff5048c9bd27aae14e974d.tar.gz |
don't check for useless __builtin_stack_pointer
It doesn't seem to be supported anyways, and we're not using it too.
-rw-r--r-- | CMakeLists.txt | 3 | ||||
-rw-r--r-- | cmake/config.h.in | 3 | ||||
-rw-r--r-- | configure.ac | 8 | ||||
-rw-r--r-- | src/windows/config.h | 3 |
4 files changed, 0 insertions, 17 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 29791b4..c12e1b6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -356,9 +356,6 @@ option(gperftools_emergency_malloc ${default_emergency_malloc}) check_c_source_compiles( - "int main() { void* sp = __builtin_stack_pointer(); return 0; }" - HAVE_BUILTIN_STACK_POINTER) -check_c_source_compiles( "int main() { return __builtin_expect(main != 0, 1); }" HAVE_BUILTIN_EXPECT) diff --git a/cmake/config.h.in b/cmake/config.h.in index ef3926f..7e676ff 100644 --- a/cmake/config.h.in +++ b/cmake/config.h.in @@ -30,9 +30,6 @@ /* Define to 1 if you have the <asm/ptrace.h> header file. */ #cmakedefine HAVE_ASM_PTRACE_H -/* Define to 1 if compiler supports __builtin_stack_pointer */ -#cmakedefine HAVE_BUILTIN_STACK_POINTER - /* Define to 1 if you have the <cygwin/signal.h> header file. */ #cmakedefine HAVE_CYGWIN_SIGNAL_H diff --git a/configure.ac b/configure.ac index cfabdbf..53801ac 100644 --- a/configure.ac +++ b/configure.ac @@ -459,14 +459,6 @@ AH_VERBATIM([__STDC_FORMAT_MACROS], # define __STDC_FORMAT_MACROS 1 #endif]) -# Check if __builtin_stack_pointer() is available (for elfcore.h) -AC_MSG_CHECKING([for __builtin_stack_pointer()]) -AC_LINK_IFELSE([AC_LANG_PROGRAM(, [void *sp = __builtin_stack_pointer()])], - [AC_DEFINE(HAVE_BUILTIN_STACK_POINTER, 1, - Define to 1 if compiler supports __builtin_stack_pointer) - AC_MSG_RESULT([yes])], - [AC_MSG_RESULT([no])]) - # Check if __environ is available (for GetenvBeforeMain) AC_MSG_CHECKING([for __environ]) AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <unistd.h>], diff --git a/src/windows/config.h b/src/windows/config.h index a6bdaa3..dac1e04 100644 --- a/src/windows/config.h +++ b/src/windows/config.h @@ -36,9 +36,6 @@ /* Define to 1 if you have the <asm/ptrace.h> header file. */ /* #undef HAVE_ASM_PTRACE_H */ -/* Define to 1 if compiler supports __builtin_stack_pointer */ -/* #undef HAVE_BUILTIN_STACK_POINTER */ - /* Define to 1 if you have the <cygwin/signal.h> header file. */ /* #undef HAVE_CYGWIN_SIGNAL_H */ |