From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 115557 invoked by alias); 27 Jan 2016 19:29:02 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 115540 invoked by uid 89); 27 Jan 2016 19:29:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 27 Jan 2016 19:29:00 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id A9371264B; Wed, 27 Jan 2016 19:28:59 +0000 (UTC) Received: from slagheap.utah.redhat.com (ovpn-113-73.phx2.redhat.com [10.3.113.73]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u0RJSwfg025123; Wed, 27 Jan 2016 14:28:58 -0500 Subject: Re: [C PATCH] Fix -Wunused-function (PR debug/66869) To: Jakub Jelinek , Richard Biener References: <20160125203829.GP3017@tucnak.redhat.com> <20160126161813.GB3017@tucnak.redhat.com> <20160127185159.GT3017@tucnak.redhat.com> Cc: "Joseph S. Myers" , Marek Polacek , Jason Merrill , Jan Hubicka , GCC Patches From: Jeff Law Message-ID: <56A91A7A.3060700@redhat.com> Date: Wed, 27 Jan 2016 19:29:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <20160127185159.GT3017@tucnak.redhat.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-01/txt/msg02156.txt.bz2 On 01/27/2016 11:51 AM, Jakub Jelinek wrote: > Hi! > > On Wed, Jan 27, 2016 at 11:17:18AM +0100, Richard Biener wrote: >> No, simply warn and set TREE_NO_WARNING so cgraph doesn't warn again. > > This seems to work too, bootstrapped/regtested on x86_64-linux and > i686-linux, ok for trunk? > > 2016-01-25 Jakub Jelinek > > PR debug/66869 > * c-decl.c (c_write_global_declarations_1): Warn with > warn_unused_function if static prototype without definition > is not C_DECL_USED. > > * gcc.dg/pr66869.c: New test. OK. jeff