[Ada] Duplicate Size/Value_Size clause
authorBob Duff <duff@adacore.com>
Wed, 16 Jun 2021 10:47:57 +0000 (06:47 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 12 Jul 2021 12:50:56 +0000 (12:50 +0000)
commit9b89dabfd851f0ee0e9f0c6e141f8e3fba08d1d7
treecc0bb6341b5a75cb860101712c5a0a169b57945a
parent86b228b87b64ffa6991fce0dc188985d7a9a173a
[Ada] Duplicate Size/Value_Size clause

gcc/ada/

* sem_ch13.adb (Duplicate_Clause): Add a helper routine
Check_One_Attr, with a parameter for the attribute_designator we
are looking for, and one for the attribute_designator of the
current node (which are usually the same). For Size and
Value_Size, call it twice, once for each.
* errout.ads: Fix a typo.
gcc/ada/errout.ads
gcc/ada/sem_ch13.adb