Skip to content

Commit

Permalink
don't check for useless __builtin_stack_pointer
Browse files Browse the repository at this point in the history
It doesn't seem to be supported anyways, and we're not using it too.
  • Loading branch information
alk committed Feb 14, 2021
1 parent 7271bb7 commit ac68c97
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 17 deletions.
3 changes: 0 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,6 @@ option(gperftools_emergency_malloc
"Build 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)
Expand Down
3 changes: 0 additions & 3 deletions cmake/config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 0 additions & 8 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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>],
Expand Down
3 changes: 0 additions & 3 deletions src/windows/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down

0 comments on commit ac68c97

Please sign in to comment.