This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Question about GNU cpp -P
- From: "W. Michael Petullo" <mike at flyn dot org>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 18 Aug 2015 20:45:23 -0400
- Subject: Re: Question about GNU cpp -P
- Authentication-results: sourceware.org; auth=none
- References: <20150815204256 dot GA1573 at imp dot flyn dot org> <55D376E1 dot 6080004 at gmail dot com>
>> I am using:
>>
>> cpp -C -P -nostdinc -std=c99 -Werror
>>
>> to process something that is not C. Everything works, except that one
>> side effect of "-P" is that consecutive newlines are compressed into one.
>>
>> Is this intentional? Why? Is there a way to avoid collapsing consecutive
>> newlines when using "cpp -P"?
> With -P, when line directives aren't emitted, it seems reasonable to
> expect the preprocessor to preserve the newlines. I suggest to open
> a bug in Bugzilla for this.
I just submitted a Bugzilla report, available at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67266.
--
Mike
:wq