This is the mail archive of the
egcs-patches@egcs.cygnus.com
mailing list for the EGCS project.
Re: cpplib startup patch
>>>>> Dave Brolley <brolley@cygnus.com> writes:
> I've looked into this a bit more and now I'm confused. It appears as
> though the C and C++ front ends use already check_newline to recognize
> an initial #line directive (actually any initial directive) and it is
> done in lang_init whether cpplib is used or not. Is the problem that
> this is too late to check this? If so, then it's not a cpplib specific
> problem. If not, then I need help understanding the need for this patch.
The problem is that without the patch, cpplib unconditionally inserts a
#line directive at the beginning of the file (# 1 "wa.ii"), so the frontend
sees that one instead, and thinks wa.ii is the main filename.
Jason