From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31555 invoked by alias); 22 Jul 2002 14:16:32 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 31548 invoked from network); 22 Jul 2002 14:16:31 -0000 Received: from unknown (HELO cygnus.equallogic.com) (65.170.102.10) by sources.redhat.com with SMTP; 22 Jul 2002 14:16:31 -0000 Received: from cygnus.equallogic.com (localhost.localdomain [127.0.0.1]) by cygnus.equallogic.com (8.11.6/8.11.6) with ESMTP id g6MEGVC19168 for ; Mon, 22 Jul 2002 10:16:31 -0400 Received: from deneb.dev.equallogic.com (deneb.dev.equallogic.com [172.16.1.99]) by cygnus.equallogic.com (8.11.6/8.11.6) with ESMTP id g6MEGUQ19159; Mon, 22 Jul 2002 10:16:30 -0400 Received: from pkoning.dev.equallogic.com.equallogic.com (localhost.localdomain [127.0.0.1]) by deneb.dev.equallogic.com (8.11.6/8.11.6) with SMTP id g6MEGUR30044; Mon, 22 Jul 2002 10:16:30 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15676.5053.700372.875250@pkoning.dev.equallogic.com> Date: Mon, 22 Jul 2002 13:03:00 -0000 From: Paul Koning To: neil@daikokuya.co.uk Cc: gcc@gcc.gnu.org Subject: Re: Unused macros warning? References: <20020722063352.GA22349@daikokuya.co.uk> X-SW-Source: 2002-07/txt/msg01028.txt.bz2 >>>>> "Neil" == Neil Booth writes: Neil> I made a local modification to cpplib so that, if -Wunused, it Neil> reports all macros defined in the main file that are unused, or Neil> unused before being #undef-ed. Neil> Might this be a useful addition to mainline? It shouldn't be Neil> in -Wall, as it involves a slightly expensive hashtable walk at Neil> the end of preprocessing which most users wouldn't want to pay Neil> for, but could be enabled with the front ends' -Wunused, say. I assume you would also add a -Wunused-macros so you can separately enable or disable this. The latter is important if I want the existing unused warnings but not this new one. paul