egcs 1.1.1 build on Irix 6.5

Kurt Carlson kcarlson@arsc.edu
Thu Feb 25 21:14:00 GMT 1999


Hello,

I'm attempting to build egcs 1.1.1 under Irix 6.5 using the SGI
supplied gcc, version 2.8.1.  It is failing with:

kcarlson@indigo41: gcc -DIN_GCC -g -DHAVE_CONFIG_H -I. -I$SRC/gcc \
> -I$SRC/gcc/config -c $SRC/gcc/c-parse.c 2>&1 | head -6
c-parse.y: In function `yyparse':
c-parse.y:279: invalid type argument of `->'
c-parse.y:280: invalid type argument of `->'
c-parse.y:284: invalid type argument of `->'
c-parse.y:285: invalid type argument of `->'
c-parse.y:289: invalid type argument of `->'

Examination of c-parse.y show the failing lines to be referencing
TREE_* defintions which in turn reference TREE_LIST_CHECK and
TREE_VEC_CHECK which are not defined anywhere within the source:

kcarlson@indigo41: find $SRC -print | while read F; do \
> egrep 'TREE_LIST_CHECK|TREE_VEC_CHECK' $F; \
> if [ 0 = $? ]; then echo "$F\n"; fi; done
#define TREE_PURPOSE(NODE) (TREE_LIST_CHECK (NODE)->list.purpose)
#define TREE_VALUE(NODE) (TREE_LIST_CHECK (NODE)->list.value)
#define TREE_VEC_LENGTH(NODE) (TREE_VEC_CHECK (NODE)->vec.length)
#define TREE_VEC_ELT(NODE,I) (TREE_VEC_CHECK (NODE)->vec.a[I])
#define TREE_VEC_END(NODE) ((void) TREE_VEC_CHECK (NODE) &((NODE)->vec.a[(NODE)->vec.length]))
/usr/local/pkg/egcs/egcs-1.1.1/src/gcc/tree.h

Does anybody have any idea what I've done wrong or where exactly
TREE_LIST_CHECK and TREE_VEC_CHECK are supposed to be defined.
Thanks, Kurt

___________________________________________________________________
Kurt Carlson   University of Alaska, ARSC         kcarlson@arsc.edu
(907)474-5763  910 Yukon Drive, Suite 108  Fairbanks, AK 99775-6020




More information about the Gcc-bugs mailing list