From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id 936AB3858280; Fri, 23 Jun 2023 20:12:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 936AB3858280 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687551161; bh=CPDrzBVWv53lBSGidwzE1VN9PJdOLUppksp3aMYG/2k=; h=From:To:Subject:Date:From; b=thTIN9ya/JjFTjC2U2yVWT7uFQs5hpOfsywHcGIXA0cMYI8eUpFMkdEjQlJS7fxME wTOnPOmWyque3KU+sHqKYvpvDbUwbeIYBcQULgfzSFyH4vg1zXJ77/8k5IYIRIWC3v LlTVl5M5e+dj4Rzbe5kxBdlxvZAm47dCRRXm+Ncc= 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/gcc-interface] X-Act-Checkin: gcc X-Git-Author: Alexandre Oliva X-Git-Refname: refs/users/aoliva/heads/testme X-Git-Oldrev: 9f7f95e8139b13e71ddfd4f13f732c19dbd692c4 X-Git-Newrev: 36904147e6088f1de2634198e6e3ecbcc96a797f Message-Id: <20230623201241.936AB3858280@sourceware.org> Date: Fri, 23 Jun 2023 20:12:41 +0000 (GMT) List-Id: https://gcc.gnu.org/g:36904147e6088f1de2634198e6e3ecbcc96a797f commit 36904147e6088f1de2634198e6e3ecbcc96a797f Author: Alexandre Oliva Date: Fri Jun 23 17:09:57 2023 -0300 hardcfr: mark throw-expected functions [ada/gcc-interface] Mark exception-(re)raising builtin declarations with ECF_XTHROW. for gcc/ada/gcc-interface/ChangeLog * trans.cc (gigi): Mark __gnat_reraise_zcx with ECF_XTHROW. (build_raise_check): Likewise for all rcheck subprograms. Diff: --- gcc/ada/gcc-interface/trans.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/ada/gcc-interface/trans.cc b/gcc/ada/gcc-interface/trans.cc index ddc7b6dde1e..7b98cb7bd83 100644 --- a/gcc/ada/gcc-interface/trans.cc +++ b/gcc/ada/gcc-interface/trans.cc @@ -519,6 +519,7 @@ gigi (Node_Id gnat_root, ftype, NULL_TREE, is_default, true, true, true, false, false, NULL, Empty); + set_call_expr_flags (reraise_zcx_decl, ECF_NORETURN | ECF_XTHROW); /* Dummy objects to materialize "others" and "all others" in the exception tables. These are exported by a-exexpr-gcc.adb, so see this unit for @@ -721,6 +722,7 @@ build_raise_check (int check, enum exception_info_kind kind) = create_subprog_decl (get_identifier (Name_Buffer), NULL_TREE, ftype, NULL_TREE, is_default, true, true, true, false, false, NULL, Empty); + set_call_expr_flags (result, ECF_NORETURN | ECF_XTHROW); return result; }