This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question about GNU cpp -P


>> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]