]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Remove unnecessary qualifiers for First/Next list operations
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 2 Mar 2023 21:43:12 +0000 (22:43 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Tue, 7 Jan 2025 12:33:33 +0000 (13:33 +0100)
commit69dfa02bdb9eaadc24552f280a390a0737386a54
treefe118e5e8e678a1f50a5dbf56dcac6e241211558
parentce13a3a47865387abac8c9ecf0e2bc4d63bada1b
ada: Remove unnecessary qualifiers for First/Next list operations

Code cleanup related to work on expression functions for GNATprove
(which require accessibility checks even when they are not expanded
and thus have no explicit return statements).

gcc/ada/ChangeLog:

* accessibility.adb (First_Selector): Remove redundant and locally
inconsistent parenthesis.
(Check_Return_Construct_Accessibility): Remove qualifier from list
operation.
* sem_util.adb (Is_Prim_Of_Abst_Type_With_Nonstatic_CW_Pre_Post):
Likewise.
gcc/ada/accessibility.adb
gcc/ada/sem_util.adb