public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-5672] [Ada] Do not free task for _parent
@ 2021-12-01 10:26 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-12-01 10:26 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:e3102ec09c9b7e58312f3c18c841679db5778458

commit r12-5672-ge3102ec09c9b7e58312f3c18c841679db5778458
Author: Ghjuvan Lacambre <lacambre@adacore.com>
Date:   Tue Nov 16 12:19:13 2021 +0100

    [Ada] Do not free task for _parent
    
    gcc/ada/
    
            * exp_ch7.adb (Cleanup_Record): Don't process parent.

Diff:
---
 gcc/ada/exp_ch7.adb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gcc/ada/exp_ch7.adb b/gcc/ada/exp_ch7.adb
index cd9ff214e25..68d1da9e5cb 100644
--- a/gcc/ada/exp_ch7.adb
+++ b/gcc/ada/exp_ch7.adb
@@ -4629,8 +4629,9 @@ package body Exp_Ch7 is
 
       Comp := First_Component (U_Typ);
       while Present (Comp) loop
-         if Has_Task (Etype (Comp))
-           or else Has_Simple_Protected_Object (Etype (Comp))
+         if Chars (Comp) /= Name_uParent
+           and then (Has_Task (Etype (Comp))
+             or else Has_Simple_Protected_Object (Etype (Comp)))
          then
             Tsk :=
               Make_Selected_Component (Loc,


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-01 10:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-01 10:26 [gcc r12-5672] [Ada] Do not free task for _parent Pierre-Marie de Rodat

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).