public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-1475] [Ada] Properly test for Protected_Body_Subprogram
@ 2020-06-18  9:12 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2020-06-18  9:12 UTC (permalink / raw)
  To: gcc-cvs

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

commit r11-1475-ge49f6ee11d9de33706a410f3f1cb328a4b6e6616
Author: Richard Kenner <kenner@adacore.com>
Date:   Mon Apr 20 17:11:20 2020 -0400

    [Ada] Properly test for Protected_Body_Subprogram
    
    2020-06-18  Richard Kenner  <kenner@adacore.com>
    
    gcc/ada/
    
            * sem_util.adb (Enclosing_Subprogram): No longer need
            Convention_Protected.

Diff:
---
 gcc/ada/sem_util.adb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/gcc/ada/sem_util.adb b/gcc/ada/sem_util.adb
index 52a3f947dbe..756162e4a2f 100644
--- a/gcc/ada/sem_util.adb
+++ b/gcc/ada/sem_util.adb
@@ -7410,8 +7410,7 @@ package body Sem_Util is
 
       --  No body is generated if the protected operation is eliminated
 
-      elsif Convention (Dyn_Scop) = Convention_Protected
-        and then not Is_Eliminated (Dyn_Scop)
+      elsif not Is_Eliminated (Dyn_Scop)
         and then Present (Protected_Body_Subprogram (Dyn_Scop))
       then
          return Protected_Body_Subprogram (Dyn_Scop);


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

only message in thread, other threads:[~2020-06-18  9:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-18  9:12 [gcc r11-1475] [Ada] Properly test for Protected_Body_Subprogram 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).