This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 3.0 for i686-pc-cygwin target, bootstrap fails
- To: Di-an Jan <dianj at OCF dot Berkeley dot EDU>
- Subject: Re: GCC 3.0 for i686-pc-cygwin target, bootstrap fails
- From: Richard Henderson <rth at redhat dot com>
- Date: Tue, 31 Jul 2001 16:55:29 -0700
- Cc: gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- References: <200107310456.VAA29878@famine.OCF.Berkeley.EDU>
On Mon, Jul 30, 2001 at 09:56:41PM -0700, Di-an Jan wrote:
> I ran into the same. The problem is that '\r' is not recognized as white
> space in various parts of "rtl.c". Specifically, "read_name" thinks '\r'
> is a part of the name.
>
> A better fix is probably to put the sources under a directory mounted
> textmode...
Best to just fix the rtl reader.
Would you try the following?
r~
Index: read-rtl.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/read-rtl.c,v
retrieving revision 1.2
diff -c -p -d -r1.2 read-rtl.c
*** read-rtl.c 2001/06/30 17:23:52 1.2
--- read-rtl.c 2001/07/31 23:53:12
*************** read_name (str, infile)
*** 174,180 ****
p = str;
while (1)
{
! if (c == ' ' || c == '\n' || c == '\t' || c == '\f')
break;
if (c == ':' || c == ')' || c == ']' || c == '"' || c == '/'
|| c == '(' || c == '[')
--- 174,180 ----
p = str;
while (1)
{
! if (c == ' ' || c == '\n' || c == '\t' || c == '\f' || c == '\r')
break;
if (c == ':' || c == ')' || c == ']' || c == '"' || c == '/'
|| c == '(' || c == '[')
Index: rtl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/rtl.c,v
retrieving revision 1.86.4.2
diff -c -p -d -r1.86.4.2 rtl.c
*** rtl.c 2001/02/24 03:56:31 1.86.4.2
--- rtl.c 2001/07/31 23:53:42
*************** read_name (str, infile)
*** 821,827 ****
p = str;
while (1)
{
! if (c == ' ' || c == '\n' || c == '\t' || c == '\f')
break;
if (c == ':' || c == ')' || c == ']' || c == '"' || c == '/'
|| c == '(' || c == '[')
--- 821,827 ----
p = str;
while (1)
{
! if (c == ' ' || c == '\n' || c == '\t' || c == '\f' || c == '\r')
break;
if (c == ':' || c == ')' || c == ']' || c == '"' || c == '/'
|| c == '(' || c == '[')