From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id 4983B385700D; Thu, 8 Jun 2023 04:47:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4983B385700D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686199650; bh=+/SWmOyIncJtKKA9hETf1BNZLv6JaBGzMnQ8Xi9SZgE=; h=From:To:Subject:Date:From; b=jutUOaAOnXrVOlWkABCOvT1EDQRU6HjUQsZK2DIOJikUe4x2xZImjXiJm4gJa1tpP UD40xqV30dvXVIJN9A6AuiIzOCeF8kWyfr5R3nuhEM57Qv2Hp18A3YNhkAiKzOghTf gtvwkI1H+ywiXAgz0l3EKV2MKqXz5bm/NX2/LlOg= 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: f71bfe68d43a848d3bf2bad5a5e2129aa72512b8 X-Git-Newrev: 38ed60475a50a712b7aab311dc9964fdd9e91aa0 Message-Id: <20230608044730.4983B385700D@sourceware.org> Date: Thu, 8 Jun 2023 04:47:30 +0000 (GMT) List-Id: https://gcc.gnu.org/g:38ed60475a50a712b7aab311dc9964fdd9e91aa0 commit 38ed60475a50a712b7aab311dc9964fdd9e91aa0 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 ddc7b6dde1e..965565ad2da 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_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 @@ -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_THROW); return result; }