diff options
author | Piotr Trojanek <trojanek@adacore.com> | 2024-12-05 14:12:25 +0100 |
---|---|---|
committer | Marc Poulhiès <dkm@gcc.gnu.org> | 2025-01-03 16:39:14 +0100 |
commit | 9c73f9dcca3b7ed29dd80afea0196729630973be (patch) | |
tree | 007ce38938d3c72c64e577e26ab531a6c23576d5 /gcc/tree-data-ref.h | |
parent | bfa8e6f2137ba80dcd1ca7106be2cfe967810426 (diff) | |
download | gcc-9c73f9dcca3b7ed29dd80afea0196729630973be.zip gcc-9c73f9dcca3b7ed29dd80afea0196729630973be.tar.gz gcc-9c73f9dcca3b7ed29dd80afea0196729630973be.tar.bz2 |
ada: Reuse and simplify counting the length of various lists
Use utility routines to compute number of elements in lists of nodes and chains
of formal parameters. Code cleanup; semantics is unaffected.
gcc/ada/ChangeLog:
* exp_aggr.adb (Others_Check): Reuse List_Length; tune whitespace.
* exp_ch3.adb (Constrain_Array): Remove counting of constraints.
* exp_disp.adb (Make_DT): Use Elist utility routines; tune whitespace.
* sem_ch12.adb (Formal_Dimensions): Reuse List_Length.
(Valid_Default_Attribute): Reuse Number_Formals.
* sem_prag.adb (Process_Convention): Likewise.
* sem_util.adb (Normalize_Actuals): Likewise.
(Check_Function_Writable_Actuals): Reuse List_Length.
Diffstat (limited to 'gcc/tree-data-ref.h')
0 files changed, 0 insertions, 0 deletions