This is the mail archive of the gcc@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]

Re: GCC 3.0 for i686-pc-cygwin target, bootstrap fails


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 == '[')

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