From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 95664 invoked by alias); 29 Jan 2016 12:31:00 -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 95653 invoked by uid 89); 29 Jan 2016 12:30:59 -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=cancelled 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; Fri, 29 Jan 2016 12:30:59 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id C369372; Fri, 29 Jan 2016 12:30:57 +0000 (UTC) Received: from tucnak.zalov.cz ([10.3.113.11]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u0TCUuPd021028 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 29 Jan 2016 07:30:57 -0500 Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id u0TCUrHV000789; Fri, 29 Jan 2016 13:30:53 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id u0TCUpot000788; Fri, 29 Jan 2016 13:30:51 +0100 Date: Fri, 29 Jan 2016 12:31:00 -0000 From: Jakub Jelinek To: Jason Merrill Cc: Richard Biener , "Joseph S. Myers" , Marek Polacek , Jan Hubicka , GCC Patches Subject: Re: [C++ PATCH] Fix -Wunused-function (PR debug/66869) Message-ID: <20160129123051.GN22971@tucnak.redhat.com> Reply-To: Jakub Jelinek References: <20160125203829.GP3017@tucnak.redhat.com> <20160126161813.GB3017@tucnak.redhat.com> <20160127185159.GT3017@tucnak.redhat.com> <56A91A7A.3060700@redhat.com> <20160128201506.GG3017@tucnak.redhat.com> <56AAD3B6.2060804@redhat.com> <20160129103507.GM3017@tucnak.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160129103507.GM3017@tucnak.redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2016-01/txt/msg02300.txt.bz2 On Fri, Jan 29, 2016 at 11:35:07AM +0100, Jakub Jelinek wrote: > I can try to stick there an assert whether for FUNCTION_DECL > (DECL_INITIAL (decl) == 0) == DECL_EXTERNAL (decl). Tried that, but cancelled that quickly, I see lots of cases where DECL_INITIAL is non-NULL, but DECL_EXTERNAL is set, and some where DECL_INITIAL is NULL, and DECL_EXTERNAL is not set, at least in the other two spots (check_global_declaration in cgraphunit.c and c-decl.c). Haven't waited long enough to find out if the C++ FE is some exception. Jakub