From patchwork Tue Nov 25 19:09:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 414831 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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 725C814014D for ; Wed, 26 Nov 2014 06:09:13 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; q=dns; s=default; b=ciZ0CVpbPKb0C6YR jAklHHO+FzQ3WYlsUK5mr8qN5E6rYVS0hPC6DK6qbK14woi9FSgMXTJMOaXYPgiC sakgKl4O2Ut3Ts3Vp2KsaExcxEciW5AuO79HLe3CSxCF29RELHpAjBiVcjQW2f0X Wlhu0oH6BilSgRj5y/ahqrHGsAU= 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 :mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; s=default; bh=AReW1P3b46vQ7BeaRtQDWw 9rXqQ=; b=mCCrDswOHuIcw4mGBdMwDB7qfDW63A9XblGsOQ+C7KWWvUiFOzVH7X qhB67lgjNoclm4HCol9qpjhMGk0nIo6+BvD+w03gVs3sK94a1R3l6FRjfwPy3IAB fpedc8z6GnD0faMfvTqM43aDpa9wl80g84vDJt+ZF7EYNOp76E0u8= Received: (qmail 23816 invoked by alias); 25 Nov 2014 19:09:06 -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 23804 invoked by uid 89); 25 Nov 2014 19:09:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-lb0-f175.google.com Received: from mail-lb0-f175.google.com (HELO mail-lb0-f175.google.com) (209.85.217.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 25 Nov 2014 19:09:04 +0000 Received: by mail-lb0-f175.google.com with SMTP id u10so1121432lbd.20 for ; Tue, 25 Nov 2014 11:09:01 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.152.234.163 with SMTP id uf3mr29913464lac.45.1416942541232; Tue, 25 Nov 2014 11:09:01 -0800 (PST) Received: by 10.152.127.168 with HTTP; Tue, 25 Nov 2014 11:09:01 -0800 (PST) Date: Tue, 25 Nov 2014 20:09:01 +0100 Message-ID: Subject: =?UTF-8?B?W1BBVENILCBsaWJvYmpjXTogUmVtb3ZlIOKAmC4uLuKAmSBpcyBzdGF0aWMgYnV0IHVzZQ==?= =?UTF-8?B?ZCBpbiBpbmxpbmUgZnVuY3Rpb24g4oCYLi4u4oCZIHdoaWNoIGlzIG5vdCBzdGF0aWM=?= From: Uros Bizjak To: "gcc-patches@gcc.gnu.org" Hello! Recently, gcc bootstrap started to emit following warnings when building libobjc: libobjc/sendmsg.c:338:13: warning: ‘get_implementation’ is static but used in inline function ‘get_imp’ which is not static libobjc/sendmsg.c:335:15: warning: ‘sarray_get_safe’ is static but used in inline function ‘get_imp’ which is not static libobjc/sendmsg.c:143:21: warning: ‘__objc_word_forward’ is static but used in inline function ‘__objc_get_forward_imp’ which is not static libobjc/sendmsg.c:141:21: warning: ‘__objc_double_forward’ is static but used in inline function ‘__objc_get_forward_imp’ which is not static libobjc/sendmsg.c:139:21: warning: ‘__objc_block_forward’ is static but used in inline function ‘__objc_get_forward_imp’ which is not static 2014-11-25 Uros Bizjak * sendmsg.c (get_imp): Declare as static inline. (__objc_get_forward_imp): Ditto. Bootstrapped on x86_64-linux-gnu. OK for mainline? Uros. Index: sendmsg.c =================================================================== --- sendmsg.c (revision 218056) +++ sendmsg.c (working copy) @@ -105,7 +105,7 @@ id nil_method (id, SEL); /* Given a selector, return the proper forwarding implementation. */ -inline +static inline IMP __objc_get_forward_imp (id rcv, SEL sel) { @@ -320,7 +320,7 @@ return res; } -inline +static inline IMP get_imp (Class class, SEL sel) {