mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-05 13:30:58 +08:00
[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.
This commit is contained in:
parent
98208e364c
commit
6e2d6b8e8e
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user