From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id UdzsE4xQzmqloAIAWB0awg (envelope-from ) for ; Tue, 13 Oct 2026 11:38:52 -0400 Received: by simark.ca (Postfix, from userid 112) id 4DEF31E051; Tue, 13 Oct 2026 11:38:52 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 303DA1E04E for ; Tue, 13 Oct 2026 11:38:51 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CC1F64BA23FD for ; Tue, 13 Oct 2026 15:38:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CC1F64BA23FD Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id B18D34BA23EB for ; Tue, 13 Oct 2026 15:37:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B18D34BA23EB Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=efficios.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=efficios.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B18D34BA23EB Authentication-Results: sourceware.org; arc=none smtp.remote-ip=158.69.221.121 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1791905830; cv=none; b=Td9/UemGYLjct8CJZ5I9/JWUMUz8kMn2xINiVM2pjtK+HihK2oEd/sXHmrFSr9Mu68x7XYFOBoTb0Jg/m5QaAaJSmRAR+UBhQFqLJVWNE55nO5U/j6FiFrZKJ1ShHry72ghixX0jWYSI59y1M5IeJ2Bz2KYOmSNMBa+HwLuxkoU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1791905830; c=relaxed/simple; bh=3kW+nvx2KfB8Q1/uVlh7hp1j8SI8k9ejvfi0SckDJSA=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=W8bbOO4DlLJI2GylAhfOrBt6mGVElxOhQJmcnqnFg60HpdWzn7tGMF6XfvIP3XIMc4vnFRTaVHKJ7HcC8pGrWonDzySMPe0zsw7nAcFx0UnNdrr+1WFpaiWm3Os7E0Q2v2VsC4gHH77JTdkloeCJCc0RUUdKiFu+9V9I2TFMGBo= ARC-Authentication-Results: i=1; sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B18D34BA23EB Received: by simark.ca (Postfix) id D72781E09E; Tue, 13 Oct 2026 11:37:08 -0400 (EDT) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH 06/16] gdb: don't check for long double support Date: Tue, 13 Oct 2026 11:35:52 -0400 Message-ID: <20261013153657.1610298-7-simon.marchi@efficios.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261013153657.1610298-1-simon.marchi@efficios.com> References: <20261013153657.1610298-1-simon.marchi@efficios.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org Nothing uses HAVE_LONG_DOUBLE, PRINTF_HAS_LONG_DOUBLE or SCANF_HAS_LONG_DOUBLE. Remove the checks from configure.ac. Regenerate config.in and configure. Change-Id: Ie2ea3ee02bf930cfba13f98498c7fbe24cc14ad3 --- gdb/config.in | 9 ---- gdb/configure | 113 ----------------------------------------------- gdb/configure.ac | 49 -------------------- 3 files changed, 171 deletions(-) diff --git a/gdb/config.in b/gdb/config.in index 636daea082d3..0f0afa6f26b0 100644 --- a/gdb/config.in +++ b/gdb/config.in @@ -306,9 +306,6 @@ /* Define to 1 if you have the header file. */ #undef HAVE_LOCALE_H -/* Define to 1 if the compiler supports long double. */ -#undef HAVE_LONG_DOUBLE - /* Define to 1 if the system has the type `long long'. */ #undef HAVE_LONG_LONG @@ -650,9 +647,6 @@ /* Define to 1 if the "%H, %D and %DD" formats work to print decfloats. */ #undef PRINTF_HAS_DECFLOAT -/* Define to 1 if the "%Lg" format works to print long doubles. */ -#undef PRINTF_HAS_LONG_DOUBLE - /* Define to 1 if the "%ll" format works to print long longs. */ #undef PRINTF_HAS_LONG_LONG @@ -691,9 +685,6 @@ /* Bug reporting address */ #undef REPORT_BUGS_TO -/* Define to 1 if the "%Lg" format works to scan long doubles. */ -#undef SCANF_HAS_LONG_DOUBLE - /* Define to 1 if the `setpgrp' function takes no argument. */ #undef SETPGRP_VOID diff --git a/gdb/configure b/gdb/configure index 4c08ab956555..1f35d4e42f52 100755 --- a/gdb/configure +++ b/gdb/configure @@ -30529,119 +30529,6 @@ $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h fi -# Check if the compiler supports the `long double' type. We can't use -# AC_C_LONG_DOUBLE because that one does additional checks on the -# constants defined in that fail on some systems, -# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6. - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5 -$as_echo_n "checking for long double support in compiler... " >&6; } -if ${gdb_cv_c_long_double+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -long double foo; -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - gdb_cv_c_long_double=yes -else - gdb_cv_c_long_double=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5 -$as_echo "$gdb_cv_c_long_double" >&6; } -if test "$gdb_cv_c_long_double" = yes; then - -$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h - -fi - -# Check if the compiler and runtime support printing long doubles. - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5 -$as_echo_n "checking for long double support in printf... " >&6; } -if ${gdb_cv_printf_has_long_double+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : - gdb_cv_printf_has_long_double=no -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -char buf[16]; - long double f = 3.141592653; - sprintf (buf, "%Lg", f); - return (strncmp ("3.14159", buf, 7)); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - gdb_cv_printf_has_long_double=yes -else - gdb_cv_printf_has_long_double=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5 -$as_echo "$gdb_cv_printf_has_long_double" >&6; } -if test "$gdb_cv_printf_has_long_double" = yes; then - -$as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h - -fi - -# Check if the compiler and runtime support scanning long doubles. - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5 -$as_echo_n "checking for long double support in scanf... " >&6; } -if ${gdb_cv_scanf_has_long_double+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : - gdb_cv_scanf_has_long_double=no -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -char *buf = "3.141592653"; - long double f = 0; - sscanf (buf, "%Lg", &f); - return !(f > 3.14159 && f < 3.14160); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - gdb_cv_scanf_has_long_double=yes -else - gdb_cv_scanf_has_long_double=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5 -$as_echo "$gdb_cv_scanf_has_long_double" >&6; } -if test "$gdb_cv_scanf_has_long_double" = yes; then - -$as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h - -fi - case ${host_os} in aix*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5 diff --git a/gdb/configure.ac b/gdb/configure.ac index b234a77c0581..6545320b7b96 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -1721,55 +1721,6 @@ if test "$gdb_cv_printf_has_decfloat" = yes; then [Define to 1 if the "%H, %D and %DD" formats work to print decfloats.]) fi -# Check if the compiler supports the `long double' type. We can't use -# AC_C_LONG_DOUBLE because that one does additional checks on the -# constants defined in that fail on some systems, -# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6. - -AC_CACHE_CHECK([for long double support in compiler], gdb_cv_c_long_double, - [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[long double foo;]])], - gdb_cv_c_long_double=yes, - gdb_cv_c_long_double=no)]) -if test "$gdb_cv_c_long_double" = yes; then - AC_DEFINE(HAVE_LONG_DOUBLE, 1, - [Define to 1 if the compiler supports long double.]) -fi - -# Check if the compiler and runtime support printing long doubles. - -AC_CACHE_CHECK([for long double support in printf], - gdb_cv_printf_has_long_double, - [AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT], -[[char buf[16]; - long double f = 3.141592653; - sprintf (buf, "%Lg", f); - return (strncmp ("3.14159", buf, 7));]])], - gdb_cv_printf_has_long_double=yes, - gdb_cv_printf_has_long_double=no, - gdb_cv_printf_has_long_double=no)]) -if test "$gdb_cv_printf_has_long_double" = yes; then - AC_DEFINE(PRINTF_HAS_LONG_DOUBLE, 1, - [Define to 1 if the "%Lg" format works to print long doubles.]) -fi - -# Check if the compiler and runtime support scanning long doubles. - -AC_CACHE_CHECK([for long double support in scanf], - gdb_cv_scanf_has_long_double, - [AC_RUN_IFELSE([AC_LANG_PROGRAM( -[[#include ]], -[[char *buf = "3.141592653"; - long double f = 0; - sscanf (buf, "%Lg", &f); - return !(f > 3.14159 && f < 3.14160);]])], - gdb_cv_scanf_has_long_double=yes, - gdb_cv_scanf_has_long_double=no, - gdb_cv_scanf_has_long_double=no)]) -if test "$gdb_cv_scanf_has_long_double" = yes; then - AC_DEFINE(SCANF_HAS_LONG_DOUBLE, 1, - [Define to 1 if the "%Lg" format works to scan long doubles.]) -fi - case ${host_os} in aix*) AC_CACHE_CHECK( -- 2.56.0