From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id 5CBE03857C41; Tue, 25 Oct 2022 02:51:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5CBE03857C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666666310; bh=eG04i445MyXe/AfOwlkF5sI+RnjOT539ORIqyNhFjfk=; h=From:To:Subject:Date:From; b=fXAetv8mjdHgURZ3FtDA/AbYVjMgEdgGWK41WEneMrdNDhuU02NxpZo2TsX/Bw9iX yLcHYkqH444HRMDCyzjfny6IhbLWxWT/oTC5apWI/4/hERq0jlYgmKK+HNFUJ0VG6L IlZ7BgBW87JUYOXy5sQiS46ZUsF8CPMhI3pAkFrY= 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: 88e125dba0d20cae1a8b2d59d0c467c56cfb11c2 X-Git-Newrev: aca8940c3424cec4b2050c53df54df81fcf36fcf Message-Id: <20221025025150.5CBE03857C41@sourceware.org> Date: Tue, 25 Oct 2022 02:51:50 +0000 (GMT) List-Id: https://gcc.gnu.org/g:aca8940c3424cec4b2050c53df54df81fcf36fcf commit aca8940c3424cec4b2050c53df54df81fcf36fcf Author: Alexandre Oliva Date: Wed Oct 19 20:36:20 2022 -0300 hardcfr: mark throw-expected functions [ada/gcc-interface] Mark exception-(re)raising builtin declarations with ECF_THROW. for gcc/ada/gcc-interface/ChangeLog * trans.cc (gigi): Mark __gnat_reraise_zcx with ECF_THROW. (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 d0ff741585e..6cd602b2ef6 100644 --- a/gcc/ada/gcc-interface/trans.cc +++ b/gcc/ada/gcc-interface/trans.cc @@ -513,6 +513,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_THROW); /* 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 @@ -715,6 +716,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_THROW); return result; }