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]
Other format: [Raw text]

Re: [libcpp] [PATCH] Handle DOS EOF character for DJGPP


On Monday 18 April 2005 19:17, you wrote:
> Andris Pavenis <pavenis@latnet.lv> writes:
> > Here is patch for HEAD branch of GCC for handling DOS EOF character
> > (0x1A, ^Z) in libcpp.
> >
> > At least I have met situations when DOS EOF character is written at
> >end of file by some editors which causes compiler to generate error.
>
> This was discussed and rejected some time ago.  ^Z can legitimately
> appear in the middle of a file.

The patch adds handling ^Z for DJGPP only. As far as I remeber even GCC 
bootstrapping for DJGPP failed due to such ^Z in the end of the generated 
file. 

> The "meat" of this patch does not appear to depend on io.h.  Why did
> you add it?

As I remeber, I had compiler errors while bootstrapping GCC for DJGPP earlier, 
but perhaps I must recheck it.

Andris


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