From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 8Rr5KLdQzmoCoQIAWB0awg (envelope-from ) for ; Tue, 13 Oct 2026 11:39:35 -0400 Received: by simark.ca (Postfix, from userid 112) id A36CB1E051; Tue, 13 Oct 2026 11:39:35 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.3 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::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 293AC1E04E for ; Tue, 13 Oct 2026 11:39:35 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2EC174BA798D for ; Tue, 13 Oct 2026 15:39:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2EC174BA798D Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id E544C4BA23F9 for ; Tue, 13 Oct 2026 15:39:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E544C4BA23F9 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 E544C4BA23F9 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=1791905952; cv=none; b=P/AetZRpuo7oodmZunVrPovnUits8bOz5lwYpKkvTstsPqv0vdat/sujZ1Jeq/SrqVVRafOxYv30u2tc4FcEDXw3MMBJdqn385RIidjyYc0JAoTQut1j15atc2B83CK5sv88i2g9wFM+AcSNK/rvjPa7PSEYI4PdBUYHi7CGC28= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1791905952; c=relaxed/simple; bh=Q63jPTn0pfxkMGL1fTbRvCDdsC4/x26my4tussEqNnM=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=pVelDDa+3VT/531wEGTGVAqX9ukIg0zmBjEECanLlaV9a8VVqXU8gWYAM+rNVrf6fTJOfj1kw4Eo2sIPIdoKrHzdRiDQqnYG1lUefQSejgAzOFoAPuYa+VaULS7spdc4xRJtWaCdNgEWz6YiXjj8lONcTDbycnGQelrkryzt3Ps= ARC-Authentication-Results: i=1; sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E544C4BA23F9 Received: by simark.ca (Postfix) id 58A061E090; Tue, 13 Oct 2026 11:39:11 -0400 (EDT) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH 12/16] gdb: don't check for long long support in the compiler Date: Tue, 13 Oct 2026 11:35:58 -0400 Message-ID: <20261013153657.1610298-13-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 C++11 guarantees that long long is available, so the configure check can't fail. Remove it from configure.ac. Regenerate configure. Change-Id: I81a7b6d43c06df62f5a9fc4b50d0100f2697818c --- gdb/configure | 32 -------------------------------- gdb/configure.ac | 13 ------------- 2 files changed, 45 deletions(-) diff --git a/gdb/configure b/gdb/configure index 292065371510..19ecb5d73187 100755 --- a/gdb/configure +++ b/gdb/configure @@ -30401,38 +30401,6 @@ _ACEOF fi -# Check if the compiler supports the `long long' type. - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5 -$as_echo_n "checking for long long support in compiler... " >&6; } -if ${gdb_cv_c_long_long+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -extern long long foo; -int -main () -{ -switch (foo & 2) { case 0: return 1; } - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - gdb_cv_c_long_long=yes -else - gdb_cv_c_long_long=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_long" >&5 -$as_echo "$gdb_cv_c_long_long" >&6; } -if test "$gdb_cv_c_long_long" != yes; then - # libdecnumber requires long long. - as_fn_error $? "Compiler must support long long for GDB." "$LINENO" 5 -fi - # Check if the compiler and runtime support printing decfloats. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5 diff --git a/gdb/configure.ac b/gdb/configure.ac index 192b1cbcbc31..fc21623961d0 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -1682,19 +1682,6 @@ AC_CHECK_MEMBERS([struct ptrace_lwpinfo.pl_tdname], [], [], AC_CHECK_MEMBERS([struct ptrace_lwpinfo.pl_syscall_code], [], [], [#include ]) -# Check if the compiler supports the `long long' type. - -AC_CACHE_CHECK([for long long support in compiler], gdb_cv_c_long_long, - [AC_COMPILE_IFELSE([AC_LANG_PROGRAM( -[[extern long long foo;]], -[[switch (foo & 2) { case 0: return 1; }]])], - gdb_cv_c_long_long=yes, - gdb_cv_c_long_long=no)]) -if test "$gdb_cv_c_long_long" != yes; then - # libdecnumber requires long long. - AC_MSG_ERROR([Compiler must support long long for GDB.]) -fi - # Check if the compiler and runtime support printing decfloats. AC_CACHE_CHECK([for decfloat support in printf], -- 2.56.0