[Ada] Remove repeated analysis of attribute prefixes
commit9a9d06f7115d18d57fa603d6b80a53912607a703
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 10 Jan 2022 20:08:04 +0000 (10 21:08 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 9 May 2022 09:27:29 +0000 (9 09:27 +0000)
treeff56f21f6c126960dd479a3219811c37f36d703e
parenta72fd98bf5f1e57fa2ebbacff832bd4f753fd874
[Ada] Remove repeated analysis of attribute prefixes

At the beginning of Analyze_Attribute routine we analyze the attribute
prefix. There is no need to repeat this analysis in branches for
individual attributes.

Code cleanup related to various Analyze/Resolve routines.

gcc/ada/

* sem_attr.adb (Analyze_Attribute): Remove calls to Analyze for
attributes Identity, Priority, Ref, Restriction_Set, To_Address
and for tasking-related attributes Callable, Terminated and
Storage_Size.
gcc/ada/sem_attr.adb