This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [libcpp] [PATCH] Handle DOS EOF character for DJGPP
- From: Andris Pavenis <pavenis at latnet dot lv>
- To: Zack Weinberg <zack at codesourcery dot com>, djgpp-workers at delorie dot com,gcc-patches at gcc dot gnu dot org
- Date: Mon, 18 Apr 2005 20:15:17 +0300
- Subject: Re: [libcpp] [PATCH] Handle DOS EOF character for DJGPP
- References: <200504181846.38506.pavenis@latnet.lv> <8764yk3vql.fsf@codesourcery.com>
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