public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-538] [Ada] Requires_Cleanup_Actions and N_Protected_Body
@ 2022-05-17 8:28 Pierre-Marie de Rodat
0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2022-05-17 8:28 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:80d1067508d7cdfa765c93df1737015c07c7f11d
commit r13-538-g80d1067508d7cdfa765c93df1737015c07c7f11d
Author: Bob Duff <duff@adacore.com>
Date: Wed Mar 23 14:04:22 2022 -0400
[Ada] Requires_Cleanup_Actions and N_Protected_Body
This patch disallows N_Protected_Body from being passed to
Requires_Cleanup_Actions. Protected bodies never need cleanup, and are
never passed to Requires_Cleanup_Actions, which is a good thing, because
it would blow up on Handled_Statement_Sequence, which doesn't exist for
N_Protected_Body.
gcc/ada/
* exp_util.adb (Requires_Cleanup_Actions): Remove
N_Protected_Body from the case statement, so that case will be
covered by "raise Program_Error".
Diff:
---
gcc/ada/exp_util.adb | 1 -
1 file changed, 1 deletion(-)
diff --git a/gcc/ada/exp_util.adb b/gcc/ada/exp_util.adb
index d3fbc4bc644..32c1ff7b7fd 100644
--- a/gcc/ada/exp_util.adb
+++ b/gcc/ada/exp_util.adb
@@ -12781,7 +12781,6 @@ package body Exp_Util is
| N_Block_Statement
| N_Entry_Body
| N_Package_Body
- | N_Protected_Body
| N_Subprogram_Body
| N_Task_Body
=>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-17 8:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-17 8:28 [gcc r13-538] [Ada] Requires_Cleanup_Actions and N_Protected_Body 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).