Revert "disable dynamic sized delete support by default"

This reverts commit 06811b3ae4.
This commit is contained in:
Aliaksey Kandratsenka 2017-01-22 13:15:39 -08:00
parent fac0bb44d5
commit b82d89cb7c

View File

@ -332,10 +332,23 @@ AM_CONDITIONAL(HAVE_W_NO_UNUSED_RESULT,
test "$perftools_cv_w_no_unused_result" = yes)
AC_ARG_ENABLE([dynamic-sized-delete-support],
[AS_HELP_STRING([--enable-dynamic-sized-delete-support],
[try to build run-time switch for sized delete operator])],
[AS_HELP_STRING([--disable-dynamic-sized-delete-support],
[don't try to build run-time switch for sized delete operator])],
[enable_dyn_sized_delete="$enableval"],
[enable_dyn_sized_delete=no])
[enable_dyn_sized_delete=default])
AS_IF([test "x$enable_dyn_sized_delete" = xdefault],
[AC_CACHE_CHECK(
[if the compiler supports ifunc attributes for target],
[perftools_cv_ifunc_result],
[AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([
void *resolve_foo() {return 0;}
void foo() __attribute__((ifunc("resolve_foo")));
],[foo();])],
[perftools_cv_ifunc_result=yes],
[perftools_cv_ifunc_result=no])])]
[enable_dyn_sized_delete=$perftools_cv_ifunc_result])
AS_IF([test "x$enable_dyn_sized_delete" = xyes],
[AC_DEFINE([ENABLE_DYNAMIC_SIZED_DELETE], 1,