From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id 066783971C38; Wed, 4 Aug 2021 09:04:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 066783971C38 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/strub)] strub type checking X-Act-Checkin: gcc X-Git-Author: Alexandre Oliva X-Git-Refname: refs/users/aoliva/heads/strub X-Git-Oldrev: 5e4f646737086ddf6bdae3810b3595c2e8f95a42 X-Git-Newrev: 396d2d0536e89b78ace8ce2f806031e8dfcdcb35 Message-Id: <20210804090434.066783971C38@sourceware.org> Date: Wed, 4 Aug 2021 09:04:34 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2021 09:04:34 -0000 https://gcc.gnu.org/g:396d2d0536e89b78ace8ce2f806031e8dfcdcb35 commit 396d2d0536e89b78ace8ce2f806031e8dfcdcb35 Author: Alexandre Oliva Date: Wed Aug 4 05:52:43 2021 -0300 strub type checking Diff: --- gcc/ipa-strub.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gcc/ipa-strub.c b/gcc/ipa-strub.c index e302f0ec1c5..81d961ac44e 100644 --- a/gcc/ipa-strub.c +++ b/gcc/ipa-strub.c @@ -429,12 +429,12 @@ can_strub_internally_p (cgraph_node *node, bool report = false) node->decl); } - if (result) - /* Since we're not changing the function identity proper, just - moving its full implementation, we *could* disable - fun->cannot_be_copied_reason and/or temporarily drop a noclone - attribute. */ - gcc_checking_assert (tree_versionable_function_p (node->decl)); + /* Since we're not changing the function identity proper, just + moving its full implementation, we *could* disable + fun->cannot_be_copied_reason and/or temporarily drop a noclone + attribute. */ + gcc_checking_assert (!result || !node->has_gimple_body_p () + || tree_versionable_function_p (node->decl)); return result; }