https://gcc.gnu.org/g:b4f9b1be35141c107914eed19099769025de731e
commit r17-5285-gb4f9b1be35141c107914eed19099769025de731e Author: Sam James <[email protected]> Date: Sun Oct 11 20:04:23 2026 +0100 libsanitizer: drop alloca.h check It was added in r0-127541-gb5f58ba3318e02 but it doesn't seem to have been needed or used even then. libsanitizer/ChangeLog: PR bootstrap/112422 * config.h.in: Regenerate. * configure: Regenerate. * configure.ac: Don't search for alloca.h. Diff: --- libsanitizer/config.h.in | 3 --- libsanitizer/configure | 9 ++++----- libsanitizer/configure.ac | 2 +- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/libsanitizer/config.h.in b/libsanitizer/config.h.in index a64b6a16a177..b44c16680be2 100644 --- a/libsanitizer/config.h.in +++ b/libsanitizer/config.h.in @@ -3,9 +3,6 @@ /* ELF size: 32 or 64 */ #undef BACKTRACE_ELF_SIZE -/* Define to 1 if you have the <alloca.h> header file. */ -#undef HAVE_ALLOCA_H - /* Define to 1 if you have the __atomic functions */ #undef HAVE_ATOMIC_FUNCTIONS diff --git a/libsanitizer/configure b/libsanitizer/configure index 404c033364df..206e8ede1626 100755 --- a/libsanitizer/configure +++ b/libsanitizer/configure @@ -17221,13 +17221,12 @@ ac_config_commands="$ac_config_commands gstdint.h" -for ac_header in sys/mman.h alloca.h +for ac_header in sys/mman.h do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_mman_h" = xyes; then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +#define HAVE_SYS_MMAN_H 1 _ACEOF fi diff --git a/libsanitizer/configure.ac b/libsanitizer/configure.ac index 6bcee19363a2..adf45199553c 100644 --- a/libsanitizer/configure.ac +++ b/libsanitizer/configure.ac @@ -266,7 +266,7 @@ AC_SUBST(BACKTRACE_SUPPORTED) GCC_HEADER_STDINT(gstdint.h) -AC_CHECK_HEADERS(sys/mman.h alloca.h) +AC_CHECK_HEADERS(sys/mman.h) if test "$ac_cv_header_sys_mman_h" = "no"; then have_mmap=no else
