From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id 381EC3857004; Thu, 8 Jun 2023 04:47:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 381EC3857004 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686199645; bh=+og/1/YoXMZp8YMGYtom9j3NOuXNk968KEBo/Jq/HYw=; h=From:To:Subject:Date:From; b=Y2Tetm4L6Lcs5+6N9OOsax8RW3BbNDB1hG/9DvGOzf0uoY9MotNU2MBzj5sex13Bj INIFdgU5ot8i59vrAi8Jzc4ME1Icx1Q1AIJ7oHKzI8JejA3DbTUW31S28V+W2NuLt1 rZx07iEvL0iEJ+DJNhayAVvsn+T6KM4J5tY9Ydz4= 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: 5667c51ab286acf16b9e7bc67232514b614c0c68 X-Git-Newrev: f71bfe68d43a848d3bf2bad5a5e2129aa72512b8 Message-Id: <20230608044725.381EC3857004@sourceware.org> Date: Thu, 8 Jun 2023 04:47:25 +0000 (GMT) List-Id: https://gcc.gnu.org/g:f71bfe68d43a848d3bf2bad5a5e2129aa72512b8 commit f71bfe68d43a848d3bf2bad5a5e2129aa72512b8 Author: Alexandre Oliva Date: Wed Oct 19 20:36:19 2022 -0300 hardcfr: mark throw-expected functions [ada doc] Adjust documentation to reflect the introduction of -fhardcfr-check-noreturn-calls=not-always. for gcc/ada/ChangeLog * doc/gnat_rm/security_hardening_features.rst (Control Flow Redundancy): Add -fhardcfr-check-noreturn-calls=not-always. 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 ad165cd6849..1cbd7fd6705 100644 --- a/gcc/ada/doc/gnat_rm/security_hardening_features.rst +++ b/gcc/ada/doc/gnat_rm/security_hardening_features.rst @@ -487,17 +487,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