From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18206 invoked by alias); 18 Feb 2015 12:17:03 -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 18194 invoked by uid 89); 18 Feb 2015 12:17:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 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, 18 Feb 2015 12:17:01 +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 t1ICH0Ue001103 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 18 Feb 2015 07:17:00 -0500 Received: from tucnak.zalov.cz (ovpn-116-28.ams2.redhat.com [10.36.116.28]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t1ICGwIG007121 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Wed, 18 Feb 2015 07:16:59 -0500 Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.14.9/8.14.9) with ESMTP id t1ICGuID004529; Wed, 18 Feb 2015 13:16:57 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.14.9/8.14.9/Submit) id t1ICGuG4004528; Wed, 18 Feb 2015 13:16:56 +0100 Date: Wed, 18 Feb 2015 12:17:00 -0000 From: Jakub Jelinek To: Marek Polacek Cc: GCC Patches Subject: Re: [wwwdocs] Porting to again Message-ID: <20150218121655.GK1746@tucnak.redhat.com> Reply-To: Jakub Jelinek References: <20150218120430.GX23138@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150218120430.GX23138@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2015-02/txt/msg01096.txt.bz2 On Wed, Feb 18, 2015 at 01:04:30PM +0100, Marek Polacek wrote: > --- porting_to.html 10 Feb 2015 11:12:20 -0000 1.3 > +++ porting_to.html 18 Feb 2015 12:01:50 -0000 > @@ -24,6 +24,17 @@ > manner. Additions and suggestions for improvement are welcome. >

> > +

Preprocessor issues

> + > +

The preprocessor started to emit line markers to properly distinguish > +whether a macro token comes from a system header, or from a normal header > +(see PR60723). > +These new markers can cause intriguing problems, if the packages aren't ready > +to handle them. To stop the preprocessor from generating the #line > +directives, use the -P option, documented > +here. > +

I think it would be nice to give here some example, like: #include exitfailure EXIT_FAILURE and showing that older gcc -E used to emit # 2 "test.c" 2 exitfailure 1 whereas GCC 5 emits: # 2 "test.c" 2 # 2 "test.c" exitfailure # 2 "test.c" 3 4 1 and thus it can break simple tools that expect the tokens on a single line. Otherwise, LGTM. Jakub