This is the mail archive of the gcc-patches@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]

Re: Patch to fix cpplib #line handling


Jason Merrill wrote:
> >>>>> Zack Weinberg <zack@bitmover.com> writes:
> 
>  > Jason Merrill wrote:
>  >> cpplib wasn't able to handle the sequence '1 3 4'; it was only able to
>  >> handle either a 3 or a 4.
> 
>  > Where is this sequence coming from?  Flag 4 implies flag 3, so it's
>  > not useful to put them both on the same directive.
> 
> Fair enough.
> 
>  > cpp never emits '3 4'
> 
> Yes, it does.  Take another look at output_line_command.

You're right.  It's been awhile since I was there.

We can put your patch in, or we can change it to only emit a four, and
make sure the C and C++ front ends can handle that.  Which would you
prefer?

zw


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