From a6272b85b5f624c5633af243bdf191b8089c892e Mon Sep 17 00:00:00 2001 From: Yannick Moy Date: Tue, 7 Jul 2020 11:19:47 +0200 Subject: [Ada] Clarify protection offered by preconditions on Ada.Text_IO units gcc/ada/ * libgnat/a-textio.ads: Update top-level comment. --- gcc/ada/libgnat/a-textio.ads | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gcc/ada/libgnat') diff --git a/gcc/ada/libgnat/a-textio.ads b/gcc/ada/libgnat/a-textio.ads index 6e5e392..36a4b65 100644 --- a/gcc/ada/libgnat/a-textio.ads +++ b/gcc/ada/libgnat/a-textio.ads @@ -36,8 +36,9 @@ -- Preconditions in this unit are meant for analysis only, not for run-time -- checking, so that the expected exceptions are raised. This is enforced by -- setting the corresponding assertion policy to Ignore. These preconditions --- are partial and protect against Status_Error, Mode_Error, and Layout_Error, --- but not against other types of errors. +-- are partial. They protect fully against Status_Error and Mode_Error, +-- partially against Layout_Error (see SPARK User's Guide for details), and +-- not against other types of errors. pragma Assertion_Policy (Pre => Ignore); -- cgit v1.1