projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e395e3
)
[Ada] Properly test for Protected_Body_Subprogram
author
Richard Kenner
<kenner@adacore.com>
Mon, 20 Apr 2020 21:11:20 +0000
(17:11 -0400)
committer
Pierre-Marie de Rodat
<derodat@adacore.com>
Thu, 18 Jun 2020 09:08:15 +0000
(
05:08
-0400)
2020-06-18 Richard Kenner <kenner@adacore.com>
gcc/ada/
* sem_util.adb (Enclosing_Subprogram): No longer need
Convention_Protected.
gcc/ada/sem_util.adb
patch
|
blob
|
history
diff --git
a/gcc/ada/sem_util.adb
b/gcc/ada/sem_util.adb
index 52a3f947dbe338df6dcece6ad9bdf46e411a93bb..756162e4a2faefbbe15c90edac8774c827009950 100644
(file)
--- 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);