public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-532] [Ada] Don't create calls to Abort_Undefer when not Abort_Allowed
@ 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:6e2d6b8e8ead146f6d7e314c9d6763bbefc7459b
commit r13-532-g6e2d6b8e8ead146f6d7e314c9d6763bbefc7459b
Author: Ghjuvan Lacambre <lacambre@adacore.com>
Date: Tue Mar 15 10:57:45 2022 +0100
[Ada] Don't create calls to Abort_Undefer when not Abort_Allowed
Prevent creation of references to Abort_Undefer when aborts aren't
allowed. Another solution could have been an early return at
Expand_N_Asynchronous_Select's beginning, but this would break backends
that currently expect trees that do not contain any
N_Asynchronous_Selects in their AST (e.g. CodePeer).
gcc/ada/
* exp_ch9.adb (Expand_N_Asynchronous_Select): Don't generate
Abort_Undefers when not Abort_Allowed.
Diff:
---
gcc/ada/exp_ch9.adb | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gcc/ada/exp_ch9.adb b/gcc/ada/exp_ch9.adb
index f7067805979..0e551ab868c 100644
--- a/gcc/ada/exp_ch9.adb
+++ b/gcc/ada/exp_ch9.adb
@@ -7812,7 +7812,9 @@ package body Exp_Ch9 is
Hdle := New_List (Build_Abort_Block_Handler (Loc));
- Prepend_To (Astats, Build_Runtime_Call (Loc, RE_Abort_Undefer));
+ if Abort_Allowed then
+ Prepend_To (Astats, Build_Runtime_Call (Loc, RE_Abort_Undefer));
+ end if;
Abortable_Block :=
Make_Block_Statement (Loc,
^ 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-532] [Ada] Don't create calls to Abort_Undefer when not Abort_Allowed 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).