From patchwork Fri Sep 6 09:08:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 273127 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "www.sourceware.org", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 1A94B2C00C6 for ; Fri, 6 Sep 2013 19:09:24 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=A+Q1aH6QboHyxiyN 3rJpEZ9tESuX95dIJ0wTz0WTpEZ+iJ/7iFeo+8AW7OO2CJt4NRW/5wcdd7JYLIi3 /LzBdDojKwq75JvXUyrd+8YwwxtdLYfFk0M7ZPqlYykD4CCxmKi+TonOemjYzAZh yNr8wwqvA+cd0Xz+y54cnyb7c6s= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=default; bh=d+8X6rIZ1syBaNfEvBZX6O hLfwU=; b=cpd0+KeYOaqAqiVpUrOLpxib3nUBNq100euIt0UwJVb9uNTsq1+i+m Brb5KQMSB+wJnBUlJ2KFz2w1Sv7zxjXI+xdjOffiRMJRyZyFtrk5OFQEl6+crwMs +1PaDH4dmb50NoZru54YVP6EXgAgg+Zt62l3JSu6CxETqOdue5ZEA= Received: (qmail 22897 invoked by alias); 6 Sep 2013 09:09:16 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 22876 invoked by uid 89); 6 Sep 2013 09:09:15 -0000 Received: from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 06 Sep 2013 09:09:15 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED, AWL, BAYES_00 autolearn=ham version=3.3.2 X-HELO: smtp.eu.adacore.com Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id D04F7268129B; Fri, 6 Sep 2013 11:09:10 +0200 (CEST) Received: from smtp.eu.adacore.com ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MD2kZwvA84Wd; Fri, 6 Sep 2013 11:09:10 +0200 (CEST) Received: from polaris.localnet (bon31-6-88-161-99-133.fbx.proxad.net [88.161.99.133]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.eu.adacore.com (Postfix) with ESMTPSA id 93F2D2681001; Fri, 6 Sep 2013 11:09:10 +0200 (CEST) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Cc: Jan Hubicka Subject: [patch] Fix another fallout of partial inlining change Date: Fri, 06 Sep 2013 11:08:47 +0200 Message-ID: <35349363.tiXNrEcsXg@polaris> User-Agent: KMail/4.7.2 (Linux/3.1.10-1.29-desktop; KDE/4.7.2; x86_64; ; ) MIME-Version: 1.0 Hi, see http://gcc.gnu.org/ml/gcc/2013-09/msg00028.html for the context. The patch sets DECL_NO_INLINE_WARNING_P on the non-inlinable part after splitting (an alternative would be to clear DECL_DECLARED_INLINE_P). Tested on x86_64-suse-linux, OK for the mainline? 2013-09-06 Eric Botcazou * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the non-inlinable part. 2013-09-06 Eric Botcazou * gnat.dg/warn10.ad[sb]: New test. * gnat.dg/warn10_pkg.ads: New helper. Index: ipa-split.c =================================================================== --- ipa-split.c (revision 202287) +++ ipa-split.c (working copy) @@ -1222,6 +1222,9 @@ split_function (struct split_point *spli DECL_BUILT_IN_CLASS (node->symbol.decl) = NOT_BUILT_IN; DECL_FUNCTION_CODE (node->symbol.decl) = (enum built_in_function) 0; } + /* If the original function is declared inline, there is no point in issuing + a warning for the non-inlinable part. */ + DECL_NO_INLINE_WARNING_P (node->symbol.decl) = 1; cgraph_node_remove_callees (cur_node); ipa_remove_all_references (&cur_node->symbol.ref_list); if (!split_part_return_p)