From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id g24QCgdhd2nKBRYAWB0awg (envelope-from ) for ; Mon, 26 Jan 2026 07:41:43 -0500 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=vLZat2D1; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=mRbpa2zb; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=vLZat2D1; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=mRbpa2zb; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 15AE61E0AD; Mon, 26 Jan 2026 07:41:43 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, 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 2C1CC1E08D for ; Mon, 26 Jan 2026 07:41:42 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 7A8B34BC8959 for ; Mon, 26 Jan 2026 12:41:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7A8B34BC8959 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=vLZat2D1; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=mRbpa2zb; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=vLZat2D1; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=mRbpa2zb Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) by sourceware.org (Postfix) with ESMTPS id 8A4F94BA2E37 for ; Mon, 26 Jan 2026 12:41:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8A4F94BA2E37 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8A4F94BA2E37 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=195.135.223.131 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1769431274; cv=none; b=U3VM//oqYrNhXPhYl8pWpyZUfbMJ3QfLqtLUvEeWffQ902qZEpxDMHAxE9Q2UctGcolk3p3tILKbceiFU2gIrDWq88BqUX5Ke2swXj0gssL6ac7V7nyfcVb9Na614FTF8QtNxISCJeIJYPNQ3PiM98SSMXqQlxQrNbQRDBIoCXk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1769431274; c=relaxed/simple; bh=e36Gnw58QZUrGMguXYmISavMtW996GNu7DdOBu4uIOM=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:From: To:Subject:Date:Message-ID:MIME-Version; b=osyWhjJX3f6fpciq68MxNZ1gpiSojRnR1tLXtd9nUbqcdefJlNcheVSr2yIueZ5P8e651Gb/xROFrlKlZVcXkTMmt8ns03RttVNpJAUxPmCyLvuDjtTxlgaG174+wEb+PztpnAcT7Eo9WpNUCZIOIyLqi9OaSECh/4T51ot+G1Q= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8A4F94BA2E37 Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 816695BCD8 for ; Mon, 26 Jan 2026 12:41:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1769431273; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NU4oF2+thHh1vsDQpTMJA0L983b8gjic9r/GRWTiYmM=; b=vLZat2D15QbZtX4EHz2/SU9tUsUpvYjbcnJe9+/lj737IlEA40zIOCNeG9447IfZ0pEbMn XTHvodYUAh4sjQbuNsVk1sc25rYGYq/zXSRRQ6LoOjCmDSJF2VumMF+rk7obPVVufhwchr BCuSNq8X+zZjx2reB6l52UmrBsXyK80= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1769431273; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NU4oF2+thHh1vsDQpTMJA0L983b8gjic9r/GRWTiYmM=; b=mRbpa2zbeGUg6XmLRqi3WjMxp2YJhFSoeh+N2/FPLrmIRirBn1Llurkvmg7wdAFCtP9JIc ySgoXlUyDfnazqBA== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1769431273; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NU4oF2+thHh1vsDQpTMJA0L983b8gjic9r/GRWTiYmM=; b=vLZat2D15QbZtX4EHz2/SU9tUsUpvYjbcnJe9+/lj737IlEA40zIOCNeG9447IfZ0pEbMn XTHvodYUAh4sjQbuNsVk1sc25rYGYq/zXSRRQ6LoOjCmDSJF2VumMF+rk7obPVVufhwchr BCuSNq8X+zZjx2reB6l52UmrBsXyK80= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1769431273; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NU4oF2+thHh1vsDQpTMJA0L983b8gjic9r/GRWTiYmM=; b=mRbpa2zbeGUg6XmLRqi3WjMxp2YJhFSoeh+N2/FPLrmIRirBn1Llurkvmg7wdAFCtP9JIc ySgoXlUyDfnazqBA== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id CE6D2139F0 for ; Mon, 26 Jan 2026 12:41:12 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id LVUJMehgd2ntHwAAD6G6ig (envelope-from ) for ; Mon, 26 Jan 2026 12:41:12 +0000 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 Message-ID: <20260126124112.1400069-1-tdevries@suse.de> X-Mailer: git-send-email 2.51.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-3.30 / 50.00]; BAYES_HAM(-3.00)[99.99%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; FUZZY_RATELIMITED(0.00)[rspamd.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; RCVD_TLS_ALL(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[gdb-patches@sourceware.org]; FROM_EQ_ENVFROM(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+] 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 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 --- gdb/testsuite/gdb.dap/ada-non-ascii/prog.adb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.dap/ada-non-ascii/prog.adb b/gdb/testsuite/gdb.dap/ada-non-ascii/prog.adb index 7853be5eff8..b2885b3759e 100644 --- a/gdb/testsuite/gdb.dap/ada-non-ascii/prog.adb +++ b/gdb/testsuite/gdb.dap/ada-non-ascii/prog.adb @@ -16,7 +16,7 @@ with Pack; use Pack; procedure Prog is - π : Integer := 3; -- The Indiana Approximation. + π : Float := 3.2; -- The Indiana Approximation. φ : constant := 7; -- Not even close. begin Do_Nothing (π'Address); -- BREAK base-commit: 449035c35f2169e0c690d83f28306275ab7f7463 -- 2.51.0