From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1914) id CFE16396E021; Wed, 7 Jul 2021 16:26:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CFE16396E021 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Pierre-Marie de Rodat To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-2120] [Ada] Fix location of errors about volatile compatibility X-Act-Checkin: gcc X-Git-Author: Piotr Trojanek X-Git-Refname: refs/heads/master X-Git-Oldrev: 768f69696a054a0709b114d3ad3d73265daf115d X-Git-Newrev: e5be1e443cef81f458545f5dae1a91860ca1ae71 Message-Id: <20210707162605.CFE16396E021@sourceware.org> Date: Wed, 7 Jul 2021 16:26:05 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jul 2021 16:26:05 -0000 https://gcc.gnu.org/g:e5be1e443cef81f458545f5dae1a91860ca1ae71 commit r12-2120-ge5be1e443cef81f458545f5dae1a91860ca1ae71 Author: Piotr Trojanek Date: Wed May 19 15:18:54 2021 +0200 [Ada] Fix location of errors about volatile compatibility gcc/ada/ * sem_ch12.adb (Check_Shared_Variable_Control_Aspects): Errors emitted via Check_Volatility_Compatibility are now emitted at Actual, just like other errors emitted by Check_Shared_Variable_Control_Aspects. Diff: --- gcc/ada/sem_ch12.adb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/ada/sem_ch12.adb b/gcc/ada/sem_ch12.adb index 339bb425ae5..1c8f64e215e 100644 --- a/gcc/ada/sem_ch12.adb +++ b/gcc/ada/sem_ch12.adb @@ -12825,7 +12825,7 @@ package body Sem_Ch12 is Check_Volatility_Compatibility (Act_T, A_Gen_T, "actual type", "its corresponding formal type", - Srcpos_Bearer => Act_T); + Srcpos_Bearer => Actual); end if; end Check_Shared_Variable_Control_Aspects;