]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Spurious dynamic accessibility check on allocator
authorJustin Squirek <squirek@adacore.com>
Fri, 9 Jul 2021 00:33:05 +0000 (20:33 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 21 Sep 2021 15:25:03 +0000 (15:25 +0000)
commit7d9735bbb88b6e61e5405d7c99e6cc97112e7a41
treee7521b7ac2ee2ec6c56337137bf1e403ebd8b4f7
parentf6ccb788f29ce79af3a5dad0bd96f0db98a5c028
[Ada] Spurious dynamic accessibility check on allocator

gcc/ada/

* sem_util.adb (Accessibility_Level): Remove spurious special
case for protected type components.
* exp_ch4.adb (Generate_Accessibility_Check): Use general
Accessibility_Level instead of the low-level function
Type_Access_Level.
gcc/ada/exp_ch4.adb
gcc/ada/sem_util.adb