From 209d1aede1d28f2cdbcd3d3fe1f00a7d8cac2a39 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Mon, 12 May 2025 15:12:37 -0600 Subject: [PATCH] Configure: make sure pointers fit in IVs See #18995 This commit just adds a simple test that IV is large enough to hold a pointer; something we claim is true, but didn't actually guarantee. --- Configure | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Configure b/Configure index 7868560295fb..44c12ced4014 100755 --- a/Configure +++ b/Configure @@ -16755,6 +16755,11 @@ define:define:?*) ;; esac +if test $ivsize -lt $ptrsize; then + echo "Re-run Configure adding -Duse64bitint so as to make integers as large as pointer values" >&4 + exit 1 +fi + case "$uselongdouble:$d_longdbl" in define:define) nvtype="long double"