public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/autopar_devel] [Ada] Debug info not available on subp having a class-wide precondition
@ 2020-08-22 21:54 Giuliano Belinassi
0 siblings, 0 replies; only message in thread
From: Giuliano Belinassi @ 2020-08-22 21:54 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:b18015a7b700cbc5a15fc3b04f5a81d7205c4ed9
commit b18015a7b700cbc5a15fc3b04f5a81d7205c4ed9
Author: Gary Dismukes <dismukes@adacore.com>
Date: Tue Jan 7 17:28:16 2020 -0500
[Ada] Debug info not available on subp having a class-wide precondition
2020-06-03 Gary Dismukes <dismukes@adacore.com>
gcc/ada/
* sem_util.adb (Build_Class_Wide_Clone_Decl): Call
Set_Debug_Info_Needed to set the Needs_Debug_Info flag on
Clone_Id if the flag is set on Spec_Id.
Diff:
---
gcc/ada/sem_util.adb | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/gcc/ada/sem_util.adb b/gcc/ada/sem_util.adb
index b73c1f6e623..6c197b517d5 100644
--- a/gcc/ada/sem_util.adb
+++ b/gcc/ada/sem_util.adb
@@ -1618,6 +1618,13 @@ package body Sem_Util is
-- wrapper call to inherited operation.
Set_Class_Wide_Clone (Spec_Id, Clone_Id);
+
+ -- Inherit debug info flag from Spec_Id to Clone_Id to allow debugging
+ -- of the class-wide clone subprogram.
+
+ if Needs_Debug_Info (Spec_Id) then
+ Set_Debug_Info_Needed (Clone_Id);
+ end if;
end Build_Class_Wide_Clone_Decl;
-----------------------------
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-22 21:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-22 21:54 [gcc/devel/autopar_devel] [Ada] Debug info not available on subp having a class-wide precondition Giuliano Belinassi
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).