delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2005/04/18/13:15:35

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
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
Subject: Re: [libcpp] [PATCH] Handle DOS EOF character for DJGPP
Date: Mon, 18 Apr 2005 20:15:17 +0300
User-Agent: KMail/1.8
References: <200504181846 DOT 38506 DOT pavenis AT latnet DOT lv> <8764yk3vql DOT fsf AT codesourcery DOT com>
In-Reply-To: <8764yk3vql.fsf@codesourcery.com>
MIME-Version: 1.0
Message-Id: <200504182015.18486.pavenis@latnet.lv>
X-Virus-Scanned: amavisd-new at fgi.fi
Reply-To: djgpp-workers AT delorie DOT com

On Monday 18 April 2005 19:17, you wrote:
> Andris Pavenis <pavenis AT latnet DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019