This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: ../../gcc/cppfiles.c:823: size of array `intermed' has non-integer type
- To: John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>
- Subject: Re: ../../gcc/cppfiles.c:823: size of array `intermed' has non-integer type
- From: Dave Brolley <brolley at cygnus dot com>
- Date: Wed, 17 Mar 1999 11:28:32 -0500
- CC: egcs-bugs at cygnus dot com
- Organization: Cygnus Solutions Canada Ltd
- References: <199903162314.SAA00803@hiauly1.hia.nrc.ca>
It looks like PIPE_BUF is not defined on all platforms. I have checked in the attached temporary patch until Zack can take a closer look.
Dave
John David Anglin wrote:
> In the current cvs source, the following error occurs:
>
> gcc -c -DIN_GCC -DHAIFA -g -W -Wall -DHAVE_CONFIG_H -I. -I../../gcc -I../../gcc/config -I../../gcc/../include ../../gcc/cppfiles.c
> ../../gcc/cppfiles.c: In function `read_and_prescan':
> ../../gcc/cppfiles.c:823: `PIPE_BUF' undeclared (first use in this function)
> ../../gcc/cppfiles.c:823: (Each undeclared identifier is reported only once
> ../../gcc/cppfiles.c:823: for each function it appears in.)
> ../../gcc/cppfiles.c:823: size of array `intermed' has non-integer type
> make[2]: *** [cppfiles.o] Error 1
> make[2]: Leaving directory `/xxx/gnu/egcs-2.93.12/objdir/gcc'
> make[1]: *** [bootstrap] Error 2
> make[1]: Leaving directory `/xxx/gnu/egcs-2.93.12/objdir/gcc'
> make: *** [bootstrap] Error 2
>
> --
> J. David Anglin dave.anglin@nrc.ca
> National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
Index: cppfiles.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cppfiles.c,v
retrieving revision 1.18
diff -c -p -c -r1.18 cppfiles.c
*** cppfiles.c 1999/03/16 13:10:09 1.18
--- cppfiles.c 1999/03/17 16:17:43
*************** find_position (start, limit, linep, colp
*** 803,808 ****
--- 803,812 ----
If your file has more than one kind of end-of-line marker, you
will get messed-up line numbering. */
+ #ifndef PIPE_BUF
+ #define PIPE_BUF 4096
+ #endif
+
static long
read_and_prescan (pfile, fp, desc, len)
cpp_reader *pfile;