Message ID | 20240610090747.1557638-5-poulhies@adacore.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=EiD1wjO5; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VyQxq6MCcz20V0 for <incoming@patchwork.ozlabs.org>; Mon, 10 Jun 2024 19:10:23 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 197693857011 for <incoming@patchwork.ozlabs.org>; Mon, 10 Jun 2024 09:10:22 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by sourceware.org (Postfix) with ESMTPS id B737D3858C33 for <gcc-patches@gcc.gnu.org>; Mon, 10 Jun 2024 09:08:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B737D3858C33 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 B737D3858C33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::42f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718010488; cv=none; b=pwy67lP+ySALIjz5yydyTbLHEa4X7fqq2GPTpUfYS7oQSWe3+wQsPWrHumgu5xFalxvGtIOPufphr8CwD+G52agEnu+59B0oHs6KNrBox/5VMan+gu25E7z+N1tu1reE7SrH5bYNfgJuFDaWnM9zwPcDIRFtKKrkRogyQ/Fp3Dg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718010488; c=relaxed/simple; bh=ZlZRlMsjQi3NS+vMPU0vXAnHdpIh/zaZ23LHvgftJRE=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=WS6qRpiQ9hW3VOleZooIRcH7GqzRTYb5dzQAf4Jd0GN1DDE02HotzfYax+tss4Uhv0xhDkCbcppSTk2IPkbSdAW78IUTgQhcBVwxbnu07Gu1ABrJukCnwYWWyQN84Jm7O9KdT3t2cuEuiskDKugmLz8l0KWuo7t4VaMzC1mHz1s= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-35f1dc4ab9aso1048177f8f.3 for <gcc-patches@gcc.gnu.org>; Mon, 10 Jun 2024 02:08:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1718010485; x=1718615285; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7vaazoDUN7BX3tcua0sJc6ZotNWXzH2hpMMf5S1+OJk=; b=EiD1wjO5BA4QbMX5lXPwpD4MNLO2Jx8DCO8HMRI9f8aePtYG+jv+J5ZGhCbbtCw7hY +nV20fb7KzOysMpBGjQhD+1M2WrYDKOFJ470hqY/dv5isWiDU7PzzE4bHIx7mXNvwNyY IrC6e7jnEOq5Gn4//cFtdokF6yFd7onJmSwFJ+WBdMw7VBnNvmbYjvn0VUgeaqnrMJWk DqdL3Ob+s+Yi0vX8pMtAja2IN9tFgaTZnbcuhF5Sge1vpF2WmYQ0mvRaTw+A7g/oaX7K LBINSrLJIuftVQ4LXPOPup9dq2srwWkqNospXqSSxZbItMG6SVdrBNaMeZtj1mGnC++Z pnag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718010485; x=1718615285; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7vaazoDUN7BX3tcua0sJc6ZotNWXzH2hpMMf5S1+OJk=; b=l4B530RPUQ+YRhxuhACO2v6TDPjy6Vhlj51zdnAEOIn6y8PccjhZShalR5Eh0rufQI T8EE7JOUcw7xJMA1AMcBK60/Z0Zx6rDtIKdZ93RPwBYL/0wiqthpu1doIB+oemLbEA9v Yg0suC6rvXTbPzOrMpj7uy7cguq/yPdX4awP8zEiDOswe4EeMS4axnGJ6CbvFDywXWcH +EK5hUiUPqOtHbIE3E8jN4JUZsCQJZifWdCgjvniGXLGZm5Ij/ys1pLbxxRvcu+MQJaN +ooc8JEL10LXnt+gC1LMhLTAYPQZ3NVCTHH6UGB48xwIABcoOQTAl60S9IOBN3o+irWL HCMQ== X-Gm-Message-State: AOJu0YwkqXoCeIFKRqlhtl/sPQSqpYv9I5Q/OrL103LZtOH/C3h03M+0 8H+78HTWOD9+J+yL3sYXXiNUHg6fWaRY/mi/dJupDrtyzDZixXABi1qz5XCknlHvaz7VglDE02o = X-Google-Smtp-Source: AGHT+IHDuilFxC0gsLePmDXIwTqLpyNEfZnSwSoOwWFZW4BrnQ4TIC1YH7ujvH+vem+wYtjDk1dsJQ== X-Received: by 2002:a05:6000:2ad:b0:35f:1f04:e3aa with SMTP id ffacd0b85a97d-35f1f04e89amr2947220f8f.18.1718010485522; Mon, 10 Jun 2024 02:08:05 -0700 (PDT) Received: from poulhies-Precision-5550.telnowedge.local (lmontsouris-659-1-24-67.w81-250.abo.wanadoo.fr. [81.250.175.67]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35f0f551c20sm6454970f8f.69.2024.06.10.02.08.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 02:08:05 -0700 (PDT) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= <poulhies@adacore.com> To: gcc-patches@gcc.gnu.org Cc: Piotr Trojanek <trojanek@adacore.com> Subject: [COMMITTED 05/30] ada: Cleanup building of error messages for class-wide contracts Date: Mon, 10 Jun 2024 11:07:21 +0200 Message-ID: <20240610090747.1557638-5-poulhies@adacore.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240610090747.1557638-1-poulhies@adacore.com> References: <20240610090747.1557638-1-poulhies@adacore.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
[COMMITTED,01/30] ada: Refactor checks for Refined_Global in generic instances
|
expand
|
diff --git a/gcc/ada/exp_ch6.adb b/gcc/ada/exp_ch6.adb index a8a70a5759d..e43389132ae 100644 --- a/gcc/ada/exp_ch6.adb +++ b/gcc/ada/exp_ch6.adb @@ -7635,7 +7635,6 @@ package body Exp_Ch6 is Dynamic_Call_Helper (CW_Subp); Actuals : constant List_Id := New_List; A : Node_Id := First_Actual (Call_Node); - F : Entity_Id := First_Formal (Helper_Id); begin while Present (A) loop @@ -7646,7 +7645,7 @@ package body Exp_Ch6 is Remove_Side_Effects (A); Append_To (Actuals, New_Copy_Tree (A)); - Next_Formal (F); + Next_Actual (A); end loop;
From: Piotr Trojanek <trojanek@adacore.com> Code cleanup; semantics is unaffected. gcc/ada/ * exp_ch6.adb (Build_Dynamic_Check_Helper_Call): Remove unused iteration over formal parameters. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/exp_ch6.adb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)