[Ada] Refactor repeated code for component attributes
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 23 Nov 2020 22:44:06 +0000 (23:44 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 15 Dec 2020 11:41:51 +0000 (06:41 -0500)
commit10853d6e8a0cc92f2dcf2a396db9ae73f75b5abc
treeb584c011bd0c3768e2f94551a2ef82bf4e32efc0
parentcb84595d3f406fb466c68e5ff6661dd8ee4a4e9c
[Ada] Refactor repeated code for component attributes

gcc/ada/

* sem_attr.adb (Analyze_Attribute): Merge identical code for
First_Bit/Last_Bit and Position attributes.
gcc/ada/sem_attr.adb