Message ID | 20240513083628.165642-1-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=EPHMEr88; 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 4VdCwb1xWLz20d6 for <incoming@patchwork.ozlabs.org>; Mon, 13 May 2024 18:54:39 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1F5CD386F810 for <incoming@patchwork.ozlabs.org>; Mon, 13 May 2024 08:54:37 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by sourceware.org (Postfix) with ESMTPS id 5007A3841888 for <gcc-patches@gcc.gnu.org>; Mon, 13 May 2024 08:36:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5007A3841888 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 5007A3841888 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::331 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715589447; cv=none; b=eMjn8btZhNG8LLQT/RptURIKe7AeeDezhWnUi/bvlUi5U8IB7NdP0DYWkTZWBtLeAbPfJBN0ykpYLF7dHYJCenPrmGNPpQATmbiLUs4t46sYL+LDnCptbICl3u3ojpQGsEoGJxL00FAgXfu0kBHawWkQ1vtpOqPpinS+Iplpzto= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715589447; c=relaxed/simple; bh=/VI/Q1OP3qGDElTH0G3zZVCe5r0GHUgHSXL3/NvynP8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=MGRrDumL/mU6Yl5oTR8/3mADanwQGaKRRYXzht3To8JqlsFtnBPW3XX+W33SuVqRO6NG3gkxG61qcqxqUxQL/a6vz3tDC4X02FmEHbE99VQx54C7aprVFcA5UXYGlX5sJwI2vbRh3JAWIB4qAi2Xm5WW+b95PwzIBvs50zGs5WY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-41fd5dc04f0so24550845e9.0 for <gcc-patches@gcc.gnu.org>; Mon, 13 May 2024 01:36:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1715589390; x=1716194190; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=jEhgAbcQH3olS39VjpXAM/37vECsglKUduqljP4AM10=; b=EPHMEr88pEPTWg4TpIzXhvAV0Ck5jIpra5kSHoqS5HT7fDBLviENTyJ7V8ccj9jK5G EQaM8Sn/s/dqMyJHWuu8ZbGirQeHMzahcyIIIbIAJgaRCal9dmb568N+pc/QafcwtBrM 4HkckDxrwRJvd9GqeCNCY4BfG3O5LZ/l2AZar54gu+12c2dH0lF/r0SKcEPUh1XU41T2 w7ugGPzWQrYr3XwGtbiZN3eeizjFPTRSezLVu0+byAWiTTjeXS/g2Z70FxbfcrVBiCPq l1TwyVUxZGDLpahCYg0AKPLC7SfCb6IdQbbAwerWn52lhezipjaiZBOf3kKgdzBQEUdQ 2gkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715589390; x=1716194190; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jEhgAbcQH3olS39VjpXAM/37vECsglKUduqljP4AM10=; b=ub5GxVvMF8ij3JkYLYSGrJ2p9gjBADZMY6hsenf9VG6gc3O7ssQgWLEFd9vP+hD9pJ qpmWsZ6tsdvIahqj2sIkyzxbLi+eEwTnW7C+UKlh70kp8bGcCCl/JJNKkOiMuy8onDvd C11DcdFzsAe/cHz9ztBElfzaTF964+LVWWdJ53boxavW0PNDDc/0PaFFdxoVfeXmEp9W OfSk8vbyhjRXxiTr6aXeV5x23EJSjWE01p+hKS1xEAFVpuWwi8wA385JfdvyaxbPanjo /qEtl4q/dGlDh39bzCL9ClqnkJGYAlKYHlSwenehkfc4isBYSaEQhW4ReLCniH5I11dz y4yA== X-Gm-Message-State: AOJu0YyChDC2r1uChMgyAoNm/qTOC3wucKENuipHuH8+q6jlv3XM1Vbw ria/zj4AR5QqiX+Fc5V1lit5gvTbYxNvLtDqW4ajP0FC6K9oeStLZy2W77aTtGQst07iaWLj3wA = X-Google-Smtp-Source: AGHT+IHWgQ50/9fum2cXodbbmSoa1qaUJQqEZ1bOrhY4Vl7ArNvFFjpo61aZ6zJyxBENhYhm50cdWA== X-Received: by 2002:a05:600c:45c5:b0:41b:935:2492 with SMTP id 5b1f17b1804b1-41fead6443fmr108753465e9.36.1715589390046; Mon, 13 May 2024 01:36:30 -0700 (PDT) Received: from localhost.localdomain ([2001:861:3382:1a90:cf0f:cd6c:7a6a:cbed]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-41f87d20488sm184456545e9.25.2024.05.13.01.36.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 01:36:29 -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] ada: Refine type of a local variable Date: Mon, 13 May 2024 10:36:28 +0200 Message-ID: <20240513083628.165642-1-poulhies@adacore.com> X-Mailer: git-send-email 2.43.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.9 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 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] ada: Refine type of a local variable
|
expand
|
diff --git a/gcc/ada/sem_util.adb b/gcc/ada/sem_util.adb index e9ab6650dac..03055039a1f 100644 --- a/gcc/ada/sem_util.adb +++ b/gcc/ada/sem_util.adb @@ -4203,7 +4203,7 @@ package body Sem_Util is ------------------- function Has_No_Output (Subp : Entity_Id) return Boolean is - Param : Node_Id; + Param : Entity_Id; begin -- A function has its result as output
From: Piotr Trojanek <trojanek@adacore.com> Code cleanup; semantics is unaffected. gcc/ada/ * sem_util.adb (Has_No_Output): Iteration with First_Formal/Next_Formal involves Entity_Ids. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/sem_util.adb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)