From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id T70SMfdm6mnIKTcAWB0awg (envelope-from ) for ; Thu, 23 Apr 2026 14:37:43 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=hWMp8xfI; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id B44E91E093; Thu, 23 Apr 2026 14:37:43 -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.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 BF6CA1E093 for ; Thu, 23 Apr 2026 14:37:41 -0400 (EDT) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 1EFD14BAE7EF for ; Thu, 23 Apr 2026 18:37:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1EFD14BAE7EF Authentication-Results: sourceware.org; dkim=pass (2048-bit key, secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=hWMp8xfI Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) by sourceware.org (Postfix) with ESMTPS id 634184BAE7D1 for ; Thu, 23 Apr 2026 18:37:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 634184BAE7D1 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 634184BAE7D1 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::22c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776969435; cv=none; b=V2nMicyWSszb6xDrn2n4CQA0zbvYTlHD6fwKtyeiQifcdXJGVPfMySddHTdv5V+LUO4gU3mCHj2lG7ZYUorY0Za9MENcgf/0NDHkgfw3UeWw0sImSmWQJu0kiTjJu9D+TpsYEx9rcso3MVCNarhj+qcKiwqMmoG3ZeabyzF/bPs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776969435; c=relaxed/simple; bh=Mdw5nV8c7f0nSQqZZLT3CTQI0eM+ZjDg65FxzjJzAEs=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Y8h+GgEcaAzwYyiKuGF9mszSHROvQt6hdkVu7mERimBA3YMhQLOwAL3+8dIiYdqCxylwKDAzDmMCJuRfLB6/SJvQ4ju1LGzdxXbw+cr32THltZmq1MebNPs6wZyA1TbK1bhZJnw6g8tdpwHmG29uCiq3iRPv6k3umIwWy5wegMs= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 634184BAE7D1 Received: by mail-oi1-x22c.google.com with SMTP id 5614622812f47-479e7e88fb5so2562811b6e.3 for ; Thu, 23 Apr 2026 11:37:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1776969434; x=1777574234; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=TfP/uRWs22szlK5RUUofPToAoRBWyMdrFlVosE0L2ZU=; b=hWMp8xfIxbikp9FMf736PrqSrNjlMfCkZBznOQt4r32NaIO+t0V0fdB/wzjRSy6jVQ OU8vuWAlFj4hnaJ1ODm6UCkoljiGviidDSSTJLx+SOXu7eOqLYsa4WU+gxb+aB7r96x3 c/MvJihiJ2IEtjmtuaNXBHEvgkUZX7HytPjAwMz1ag+PnwIGh/u7h5ysZxC3byAXyPst mE4XpgfF20jGvsCrCl2etkBOtXwyLMxXsvOrLyvNn/2Pp3FsYPHm4gy6S4AvRGA847nw 2DHS/g9DToeeN33VDVwn7oEw04EIpnpOiyx4BKn3tLlsdELDlcuYGKS8HpK4/C7IlfU5 Otqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776969434; x=1777574234; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=TfP/uRWs22szlK5RUUofPToAoRBWyMdrFlVosE0L2ZU=; b=JgSyRW7ZrzEBLQbbR1XlxVVcHWLeKcu4lfcfHdMg0Dt6fBJUNyxOjngcORo7C/2x9q x5nDhx4aKvif8wOFZeCXTOJkirlJt6/I+NaDQxRUA2PTdSXwxXwA8A0o3dzHWAEiIn/4 shN1D4gVA+XG6izatFR2R4mDVeoJOvbYlBcWg7WqHOBtARzrgMUa87w0yd/eKqaJIxbw lryfe6JJ5QxxrdzPjFGLQeqqA1J/xfsAuf/hoDbE3liZ3foBhjKNRw4tf3sWFdLLTOCg /i9xpUOL4AheTBZWZ1HArYxRZ2t7iAqA9VpwwscG1ahmRqElBAQi+sQJVilGeEqV4luQ pZDw== X-Gm-Message-State: AOJu0YwvR7sSWk+/oDU72xhgCUyPokBkqhLpy3tm0out+2ZAoCAsPTgA oH8c0nKe+GoeLb9Z3HX7dLYnIAxhsQeBIE7jDeC2C1zbFr5Ri/pLsnx/pks7Ho9YzbGThJbrzNW KO/k= X-Gm-Gg: AeBDievFoLR8HOMl+5MUn1uVRFMlLSqjf3Ff0Rz4ZP448EVgQdbUf9eo0ruF7Uab203 1aT+nx7I0lyoRzD72/aonnW0DCrXI9SqFCND1RSOZXFxMhPdA7GYZa6ndw/p6iMdj5OyT/lmI3B NRwCgwZWr6FqzcviHaIO39qOj/HKQH4EfeJliC0HY3Ux+7U2RSE411RldVLnxLSnDdvzW1X8Uwg kEc8exA/yFDQS4her3Lb87wR+2xZa4nYlpeQzCWQfO/3YPvO/S7ubq8jds/Xfk1T1ZgYqqeCHvL Lu66dPeU6DKnhJhI58SDWDEK66qe9+m9LUeIMT11BknyKvWll8Zr/pQyFWHgALBtv2MFJ2cHuEK asODcXLNj/0D92xcJLr2gmqDwz19ZYsVGoWaDD+kzbQVsx/TC6AYBLxCn7oX4B+P3iwuBx0ivIq bM24YSPU+W/ilyA3smTEj9WBIdRCZ5BC+h+YG++xAP+FfdYWzDdAorXA== X-Received: by 2002:a05:6808:2444:b0:455:f0e4:4f89 with SMTP id 5614622812f47-4799c916b33mr14898610b6e.3.1776969434588; Thu, 23 Apr 2026 11:37:14 -0700 (PDT) Received: from bapiya (75-166-225-82.hlrn.qwest.net. [75.166.225.82]) by smtp.gmail.com with ESMTPSA id 5614622812f47-479a02097b6sm13926030b6e.14.2026.04.23.11.37.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Apr 2026 11:37:13 -0700 (PDT) From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [pushed] Update gdb.ada/attr_ref_and_charlit for gnat-llvm Date: Thu, 23 Apr 2026 12:37:11 -0600 Message-ID: <20260423183711.2815933-1-tromey@adacore.com> X-Mailer: git-send-email 2.53.0 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 This patch changes the gdb.ada/attr_ref_and_charlit test to come closer to passing with gnat-llvm. This mostly works around some existing problems in gnat-llvm, but since the changes are harmless and help reduce the noise in the test results, I thought it would be better to land this. Because this is Ada-specific, I am checking this in. --- .../gdb.ada/attr_ref_and_charlit/foo.adb | 7 +++++-- .../gdb.ada/attr_ref_and_charlit/pck.adb | 21 +++++++++++++++++++ .../gdb.ada/attr_ref_and_charlit/pck.ads | 18 ++++++++++++++++ 3 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 gdb/testsuite/gdb.ada/attr_ref_and_charlit/pck.adb create mode 100644 gdb/testsuite/gdb.ada/attr_ref_and_charlit/pck.ads diff --git a/gdb/testsuite/gdb.ada/attr_ref_and_charlit/foo.adb b/gdb/testsuite/gdb.ada/attr_ref_and_charlit/foo.adb index fe0cb1b14b2..d2754b83747 100644 --- a/gdb/testsuite/gdb.ada/attr_ref_and_charlit/foo.adb +++ b/gdb/testsuite/gdb.ada/attr_ref_and_charlit/foo.adb @@ -13,10 +13,13 @@ -- You should have received a copy of the GNU General Public License -- along with this program. If not, see . +with Pck; use Pck; + procedure Foo is - procedure P (S : String) is + procedure P (In_Val : String) is + S : String := In_Val; begin - null; -- BREAK + Do_Nothing (S); -- BREAK end P; begin P ((2 => 'a', 3 => 'b')); diff --git a/gdb/testsuite/gdb.ada/attr_ref_and_charlit/pck.adb b/gdb/testsuite/gdb.ada/attr_ref_and_charlit/pck.adb new file mode 100644 index 00000000000..82545b7d989 --- /dev/null +++ b/gdb/testsuite/gdb.ada/attr_ref_and_charlit/pck.adb @@ -0,0 +1,21 @@ +-- Copyright 2026 Free Software Foundation, Inc. +-- +-- This program is free software; you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as published by +-- the Free Software Foundation; either version 3 of the License, or +-- (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program. If not, see . + +package body Pck is + procedure Do_Nothing (S : String) is + begin + null; + end Do_Nothing; +end Pck; diff --git a/gdb/testsuite/gdb.ada/attr_ref_and_charlit/pck.ads b/gdb/testsuite/gdb.ada/attr_ref_and_charlit/pck.ads new file mode 100644 index 00000000000..d682068f6f1 --- /dev/null +++ b/gdb/testsuite/gdb.ada/attr_ref_and_charlit/pck.ads @@ -0,0 +1,18 @@ +-- Copyright 2026 Free Software Foundation, Inc. +-- +-- This program is free software; you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as published by +-- the Free Software Foundation; either version 3 of the License, or +-- (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program. If not, see . + +package Pck is + procedure Do_Nothing (S : String); +end Pck; base-commit: 8dc535c59fdbcf99e28703425e5c1c711e63a1f1 -- 2.53.0