From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id 53AB6384A076; Thu, 6 Oct 2022 10:31:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 53AB6384A076 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665052272; bh=7j6msWd9haNWp47RJxSnf00xZ0sRGpD/gehrjJ2mc/s=; h=From:To:Subject:Date:From; b=HvQ6rw6mrqq+CYd60fU0LmGuryXXnvIZ7fX3/IR/D2J3BVF7I6MqfuAktifV2gkXc u0rNfkwdcKPhIzS263oejkiut9cbuZIR0vb41e+4lwnaHwaxzCD18n+XjhTYAxutGe vIJL7sCsiFlqnHJRprRspdRa2oyKOnHLgYTIDblY= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Alexandre Oliva To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/aoliva/heads/testme)] hardcfr: mark throw-expected functions [ada doc] X-Act-Checkin: gcc X-Git-Author: Alexandre Oliva X-Git-Refname: refs/users/aoliva/heads/testme X-Git-Oldrev: 2e42fb0eaf037fafdf5793fea7014ed995f30192 X-Git-Newrev: 52c64648bce5e4a4d71bf143889a922abe0d6678 Message-Id: <20221006103112.53AB6384A076@sourceware.org> Date: Thu, 6 Oct 2022 10:31:12 +0000 (GMT) List-Id: https://gcc.gnu.org/g:52c64648bce5e4a4d71bf143889a922abe0d6678 commit 52c64648bce5e4a4d71bf143889a922abe0d6678 Author: Alexandre Oliva Date: Thu Oct 6 04:43:24 2022 -0300 hardcfr: mark throw-expected functions [ada doc] Diff: --- gcc/ada/doc/gnat_rm/security_hardening_features.rst | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/gcc/ada/doc/gnat_rm/security_hardening_features.rst b/gcc/ada/doc/gnat_rm/security_hardening_features.rst index 4dfda486795..225dedd3541 100644 --- a/gcc/ada/doc/gnat_rm/security_hardening_features.rst +++ b/gcc/ada/doc/gnat_rm/security_hardening_features.rst @@ -367,17 +367,18 @@ gets modified as follows: end; -Verification may also be performed before No_Return calls, whether -only nothrow ones, with -:switch:`-fhardcfr-check-noreturn-calls=nothrow`, or all of them, with -:switch:`-fhardcfr-check-noreturn-calls=always`. The default is -:switch:`-fhardcfr-check-noreturn-calls=never` for this feature, that -disables checking before No_Return calls. +Verification may also be performed before No_Return calls, whether all +of them, with :switch:`-fhardcfr-check-noreturn-calls=always`; all but +internal subprograms involved in exception-raising or -reraising, with +:switch:`-fhardcfr-check-noreturn-calls=not-always` (default); only +nothrow ones, with :switch:`-fhardcfr-check-noreturn-calls=nothrow`; +or none, with :switch:`-fhardcfr-check-noreturn-calls=never`. When a No_Return call returns control to its caller through an exception, verification may have already been performed before the -call, if :switch:`-fhardcfr-check-noreturn-calls=always` is in effect. -The compiler arranges for already-checked No_Return calls without a +call, if :switch:`-fhardcfr-check-noreturn-calls=always` or +:switch:`-fhardcfr-check-noreturn-calls=not-always` is in effect. The +compiler arranges for already-checked No_Return calls without a preexisting handler to bypass the implicitly-added cleanup handler and thus the redundant check, but a local exception or cleanup handler, if present, will modify the set of visited blocks, and checking will take