From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id 267E33857006; Thu, 8 Jun 2023 09:17:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 267E33857006 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686215826; bh=9dATkl9EPxlEwbIH+7xYHlHZF7LtzpkSxRD9dvdq3NQ=; h=From:To:Subject:Date:From; b=yjPeC5zL+sbrH+5TPgYbmVdZWGJNnBSjQbx4gx8CnscAktv1R/yWVjtm02ucfc2Nv b8IavVJxI+NXdUxBkrspE3P3aexmAI0KQCX5258OSoQXWXIF7DWswi+ulUb0yKh65b YoPAeFasFPEvapHrbhgIwdY0lzRJwBbGtk6IiHO8= 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: e7055686666c89e899fc3a239d5614fd1a5af754 X-Git-Newrev: 2cbdae3a00b1c4065949ccf2a88efddcde22c7ea Message-Id: <20230608091706.267E33857006@sourceware.org> Date: Thu, 8 Jun 2023 09:17:06 +0000 (GMT) List-Id: https://gcc.gnu.org/g:2cbdae3a00b1c4065949ccf2a88efddcde22c7ea commit 2cbdae3a00b1c4065949ccf2a88efddcde22c7ea 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; }