[Ada] Support 'Reduce under -gnatX
authorArnaud Charlet <charlet@adacore.com>
Mon, 3 Feb 2020 10:22:57 +0000 (05:22 -0500)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 5 Jun 2020 12:17:55 +0000 (08:17 -0400)
commit4ccf713e545cc77ba13218c12ec47d21b01bab4e
tree4dfd70840e312ec3ef5b0f4398924e19e1fc3366
parent3af132b801a6e58c530a6571117df51bca6f6572
[Ada] Support 'Reduce under -gnatX

2020-06-05  Arnaud Charlet  <charlet@adacore.com>

gcc/ada/

* scng.adb (Scan): Fix typo to take into account all future
versions of Ada.
* sem_attr.ads (Attribute_Impl_Def): Add Attribute_Reduce for
now.
* sem_attr.adb (Analyze_Attribute): Only allow 'Reduce under
-gnatX.
* snames.ads-tmpl (Name_Reduce): Update comment.
gcc/ada/scng.adb
gcc/ada/sem_attr.adb
gcc/ada/sem_attr.ads
gcc/ada/snames.ads-tmpl