public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-1746] ada: Remove explicit decoration of wrapper created in freezing
@ 2023-06-13 7:32 Marc Poulhi?s
0 siblings, 0 replies; only message in thread
From: Marc Poulhi?s @ 2023-06-13 7:32 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:230fef15abbbd37ae2ee339839f7b478d1ce2ab3
commit r14-1746-g230fef15abbbd37ae2ee339839f7b478d1ce2ab3
Author: Piotr Trojanek <trojanek@adacore.com>
Date: Mon Apr 17 12:14:28 2023 +0200
ada: Remove explicit decoration of wrapper created in freezing
We create wrapper functions associated with inherited functions with
controlling results which are not overridden during freezing. We partly
decorated them explicitly, even though they would be fully decorated
later anyway.
This early decoration didn't work as expected, because flag
In_Private_Part that is read by Override_Dispatching_Operation it not
set reliably while freezing (as explained in the comment of
Is_Private_Declaration). In effect, we were getting a circularity
between Alias and Overridden_Operation, which was causing GNATprove to
loop infinitely.
Apparently the cleanest fix is to not decorate the wrapper with an early
call to Override_Dispatching_Operation.
gcc/ada/
* exp_ch3.adb (Make_Controlling_Function_Wrappers): Remove early
decoration.
Diff:
---
gcc/ada/exp_ch3.adb | 2 --
1 file changed, 2 deletions(-)
diff --git a/gcc/ada/exp_ch3.adb b/gcc/ada/exp_ch3.adb
index f8c99470dd7..91dcfa0f643 100644
--- a/gcc/ada/exp_ch3.adb
+++ b/gcc/ada/exp_ch3.adb
@@ -11140,8 +11140,6 @@ package body Exp_Ch3 is
-- is a wrapper's body in order to get check suppression right.
Set_Corresponding_Spec (Func_Body, Func_Id);
-
- Override_Dispatching_Operation (Tag_Typ, Subp, New_Op => Func_Id);
end if;
<<Next_Prim>>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-06-13 7:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-13 7:32 [gcc r14-1746] ada: Remove explicit decoration of wrapper created in freezing Marc Poulhi?s
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).