From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11358 invoked by alias); 22 Aug 2011 14:34:38 -0000 Received: (qmail 11086 invoked by uid 22791); 22 Aug 2011 14:34:37 -0000 X-SWARE-Spam-Status: No, hits=-6.8 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; Mon, 22 Aug 2011 14:34:24 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p7MEXrqe023256 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 22 Aug 2011 10:33:53 -0400 Received: from tyan-ft48-01.lab.bos.redhat.com (tyan-ft48-01.lab.bos.redhat.com [10.16.42.4]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p7MEXqdv030207 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 22 Aug 2011 10:33:53 -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 p7MEXpLW020363; Mon, 22 Aug 2011 16:33:51 +0200 Received: (from jakub@localhost) by tyan-ft48-01.lab.bos.redhat.com (8.14.4/8.14.4/Submit) id p7MEXoeX020362; Mon, 22 Aug 2011 16:33:50 +0200 Date: Mon, 22 Aug 2011 15:22:00 -0000 From: Jakub Jelinek To: Tom Tromey Cc: Alexandre Oliva , Dodji Seketeli , gcc-patches@gcc.gnu.org, 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: <20110822143350.GZ2687@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> <20110821094858.GK2687@tyan-ft48-01.lab.bos.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/msg01779.txt.bz2 On Mon, Aug 22, 2011 at 08:16:45AM -0600, Tom Tromey wrote: > >>>>> "Jakub" == Jakub Jelinek writes: > > Jakub> For ccache and friends I think it would be better to have a > Jakub> preprocessing mode that would output all lines as is (i.e. no > Jakub> macro replacement), except for processing #include/#include_next > Jakub> directives. > > That exists -- -fdirectives-only. It isn't exactly what would be needed, as e.g. \\\n are removed from from #defines and thus they get different location of the tokens. BTW, I guess we should do something about parsing such an output, we emit e.g. # 1 "" # 1 "" #define __STDC__ 1 #define __STDC_HOSTED__ 1 #define __GNUC__ 4 #define __GNUC_MINOR__ 6 #define __GNUC_PATCHLEVEL__ 0 ... For we really should assume line 0 for all the defines in that "file". Jakub