diff options
author | Justin Squirek <squirek@adacore.com> | 2021-06-03 17:15:51 -0400 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2021-07-09 12:35:26 +0000 |
commit | 9b1647a50dda833a0640e66bb0bedb6c477b7561 (patch) | |
tree | 5ee5e2dae6d8d1b662e8b47d63606f47a66a78bb /gcc/gcc.c | |
parent | d80c73318785edec642b04dfe00db2e61503bf20 (diff) | |
download | gcc-9b1647a50dda833a0640e66bb0bedb6c477b7561.zip gcc-9b1647a50dda833a0640e66bb0bedb6c477b7561.tar.gz gcc-9b1647a50dda833a0640e66bb0bedb6c477b7561.tar.bz2 |
[Ada] Incremental patch for restriction No_Dynamic_Accessibility_Checks
gcc/ada/
* sem_util.ads (Type_Access_Level): Add new optional parameter
Assoc_Ent.
* sem_util.adb (Accessibility_Level): Treat access discriminants
the same as components when the restriction
No_Dynamic_Accessibility_Checks is enabled.
(Deepest_Type_Access_Level): Remove exception for
Debug_Flag_Underscore_B when returning the result of
Type_Access_Level in the case where
No_Dynamic_Accessibility_Checks is active.
(Function_Call_Or_Allocator_Level): Correctly calculate the
level of Expr based on its containing subprogram instead of
using Current_Subprogram.
* sem_res.adb (Valid_Conversion): Add actual for new parameter
Assoc_Ent in call to Type_Access_Level, and add test of
No_Dynamic_Accessibility_Checks_Enabled to ensure that static
accessibility checks are performed for all anonymous access type
conversions.
Diffstat (limited to 'gcc/gcc.c')
0 files changed, 0 insertions, 0 deletions