From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26729 invoked by alias); 21 Aug 2011 09:49:57 -0000 Received: (qmail 26721 invoked by uid 22791); 21 Aug 2011 09:49:56 -0000 X-SWARE-Spam-Status: No, hits=-7.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 21 Aug 2011 09:49:31 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p7L9n2YZ004458 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 21 Aug 2011 05:49:02 -0400 Received: from tyan-ft48-01.lab.bos.redhat.com (tyan-ft48-01.lab.bos.redhat.com [10.16.42.4]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p7L9n1up017549 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 21 Aug 2011 05:49:01 -0400 Received: from tyan-ft48-01.lab.bos.redhat.com (localhost.localdomain [127.0.0.1]) by tyan-ft48-01.lab.bos.redhat.com (8.14.4/8.14.4) with ESMTP id p7L9n07b003776; Sun, 21 Aug 2011 11:49:00 +0200 Received: (from jakub@localhost) by tyan-ft48-01.lab.bos.redhat.com (8.14.4/8.14.4/Submit) id p7L9mxGZ003774; Sun, 21 Aug 2011 11:48:59 +0200 Date: Sun, 21 Aug 2011 11:40:00 -0000 From: Jakub Jelinek To: Alexandre Oliva Cc: Dodji Seketeli , gcc-patches@gcc.gnu.org, tromey@redhat.com, gdr@integrable-solutions.net, joseph@codesourcery.com, burnus@net-b.de, charlet@act-europe.fr, paolo@gnu.org, jason@redhat.com Subject: Re: [PATCH 4/7] Support -fdebug-cpp option Message-ID: <20110821094858.GK2687@tyan-ft48-01.lab.bos.redhat.com> Reply-To: Jakub Jelinek References: <1291979498-1604-1-git-send-email-dodji@redhat.com> <1902ac92ebf0b213bfafdeb31edaac8812b5399b.1310824121.git.dodji@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes 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 X-SW-Source: 2011-08/txt/msg01691.txt.bz2 On Sun, Aug 21, 2011 at 04:51:54AM -0300, Alexandre Oliva wrote: > On Jul 16, 2011, Dodji Seketeli wrote: > > > This patch adds -fdebug-cpp option. When used with -E this dumps the > > relevant macro map before every single token. This clutters the output > > a lot but has proved to be invaluable in tracking some bugs during the > > development of the virtual location support. > > Any way to read that back in while compiling a preprocessed file, so > that ccache et al can use this flag to get the same location information > that would have been gotten without separate preprocessing? For ccache and friends I think it would be better to have a preprocessing mode that would output all lines as is (i.e. no macro replacement), except for processing #include/#include_next directives. Jakub