[Ada] Refactor duplicated code for First and Last attributes
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 23 Nov 2020 13:38:45 +0000 (14:38 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 14 Dec 2020 15:51:55 +0000 (10:51 -0500)
commit7837a887d6672735d24737baf46ece96dc53a02d
tree6b75ec592c2d6625f08059e5b6d13afccad16cc4
parent041f8c70ad0e9cf0b40a3e51c444349bf00d35a3
[Ada] Refactor duplicated code for First and Last attributes

gcc/ada/

* sem_attr.adb (Analyze_Attribute): Merge identical code for
First/Last, First_Bit/Last_Bit and First_Valid/Last_Valid
attributes.
gcc/ada/sem_attr.adb