]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Introduce hardbool Machine_Attribute for Ada
authorAlexandre Oliva <oliva@adacore.com>
Fri, 4 Feb 2022 02:00:09 +0000 (23:00 -0300)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 12 May 2022 12:38:35 +0000 (12:38 +0000)
commitd4fc83c642213b4362533ef548c8fffe208ea59a
tree5e088ee898189fd9f50fcea7a9245296b26efe46
parentbb1c939d9b800ef9aadf8a82cbafdfae5c88210c
[Ada] Introduce hardbool Machine_Attribute for Ada

Implement and document hardened booleans, from nonstandard boolean types
with representation clauses to the extra validity checking performed on
boolean types annotated with the "hardbool" Machine_Attribute pragma.

gcc/ada/

* doc/gnat_rm/security_hardening_features.rst (Hardened
Booleans): New.
* exp_util.adb (Adjust_Condition): Perform validity checking on
hardbool-annotated types even with -gnatVT.
* gnat_rm.texi: Regenerate.
* gcc-interface/utils.cc (gnat_internal_attribute_table): Ignore
hardbool.
gcc/ada/doc/gnat_rm/security_hardening_features.rst
gcc/ada/exp_util.adb
gcc/ada/gcc-interface/utils.cc
gcc/ada/gnat_rm.texi