From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id nC21BDLfgGmwiCQAWB0awg (envelope-from ) for ; Mon, 02 Feb 2026 12:30:26 -0500 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=YeNWEn/q; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 022541E0BA; Mon, 02 Feb 2026 12:30:25 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,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 57AB21E08D for ; Mon, 02 Feb 2026 12:30:25 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id B46A84BB58E8 for ; Mon, 2 Feb 2026 17:30:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B46A84BB58E8 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=YeNWEn/q Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id 6610A4BB58B1 for ; Mon, 2 Feb 2026 17:29:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6610A4BB58B1 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6610A4BB58B1 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1770053398; cv=none; b=RtPP0ae+419eKXrWlW63iDUFbzBg725SqZTk/D0BqFGzhFb31TmqMLf9QKfWwMcZ9E03v2eoJ3gE/9VO3BtfJ+evIQUSq9fyDHIONdI81aAcq1dcWon3DJfwt8WWX60wAYGp94S45xcduiaPF88yn+frHY7kCWIdzAEIsyCOxDk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1770053398; c=relaxed/simple; bh=gtrFVJAsPMUwEp50pud4IkL38K28HHXGuqeHFHBgeTo=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=i86O4fj5t4KD1skM2fAz1MIRU9sQn29fmkKMuxr8ZhGlb1ERKYX2ncTCTnfWP1FU494VkG9Bf/e0+DetQbrNV32pLgjeOVLJNa7oKLlrwEfDepg/BmOUBmrs/YEXW6c6n+Z0Rem+wu+p8KwKYY2V8gwA6y5czOo5hIrN82N0Iyo= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6610A4BB58B1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1770053398; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=olMwg9SBH7EGDoTqKq3qx6FOsNywlrWEQzOT7y9DV9c=; b=YeNWEn/qM+4FN2uOfecrFiHqQzRDVc6Pei4XQiBp/FLHDdftWnh4gqvaoOHYvdiHSppKdn pkTkzziRGrWD/0igRh8LKld4qPl561lPEgziwSA2W3JDktvB7bg6iSozp68vD0SzKItevQ ohXECKqo7Bd0aUlNO6tXzSX/EiT4/X4= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-681-0FS3v6i2OECMliAR2LGEQg-1; Mon, 02 Feb 2026 12:29:55 -0500 X-MC-Unique: 0FS3v6i2OECMliAR2LGEQg-1 X-Mimecast-MFC-AGG-ID: 0FS3v6i2OECMliAR2LGEQg_1770053394 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 0E25F195606D; Mon, 2 Feb 2026 17:29:52 +0000 (UTC) Received: from f42-mesa-1 (unknown [10.22.64.64]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 0EC3D180099E; Mon, 2 Feb 2026 17:29:50 +0000 (UTC) Date: Mon, 2 Feb 2026 10:29:48 -0700 From: Kevin Buettner To: Tom de Vries Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] [gdb/testsuite] Fix pi approximation Message-ID: <20260202102948.29e284b6@f42-mesa-1> In-Reply-To: <20260126124112.1400069-1-tdevries@suse.de> References: <20260126124112.1400069-1-tdevries@suse.de> Organization: Red Hat MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: 1Zku7T-1EMhqGcijT7gHCaUmBZlAhr5scapPCQU_epA_1770053394 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Mon, 26 Jan 2026 13:41:12 +0100 Tom de Vries wrote: > From: Tom de Vries > To: gdb-patches@sourceware.org > Subject: [PATCH] [gdb/testsuite] Fix pi approximation > Date: Mon, 26 Jan 2026 13:41:12 +0100 > > In gdb.dap/ada-non-ascii/prog.adb, I came across the following: > ... > __ : Integer := 3; -- The Indiana Approximation. > ... > > This article [1] explains the background behind the comment: the Indiana > pi bill. > > Given that the common interpretation seems to be that the bill implies > that __ == 3.2 [2]: > ... > The bill ... has been claimed to imply a number of different values for > __, although the closest it comes to explicitly asserting one is the > wording "the ratio of the diameter and circumference is as five-fourths > to four", which would make __ = 16___5 = 3.2, ... . > ... > change the type to float, and set it to 3.2. > > Luckily, in this particular case, changing the approximation of __ has no > effect, so the test-case still passes :) . > > Tested on x86_64-linux. > > [1] https://en.wikipedia.org/wiki/Indiana_pi_bill > [2] https://en.wikipedia.org/wiki/Approximations_of_pi#Indiana_bill I had, of course, heard of this, but I did not realize that the approximation was 3.2 instead of 3. But since we strive for historical accuracy in all of our testing ;) ... Approved-by: Kevin Buettner