fyi: gengtype patches checked in

Steve Ellcey
Wed Mar 28 17:26:00 GMT 2007

>   if (!o->buf)
>     {
>       o->buf = XNEWVEC (char, 1024);
>       o->buflength = 1024;
>     }

I added this to gengtype.c and I don't get a seg fault anymore
but the bootstrap still fails and I don't understand why.

After running gengtype the build tries to compile rtl.c and I get:

/proj/opensrc/be/ia64-hp-hpux11.23/bin/gcc -c   -DUSE_LIBUNWIND_EXCEPTIONS -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I/evrst7/sje/svn.reg/src/trunk/gcc -I/evrst7/sje/svn.reg/src/trunk/gcc/build -I/evrst7/sje/svn.reg/src/trunk/gcc/../include -I/evrst7/sje/svn.reg/src/trunk/gcc/../libcpp/include -I/proj/opensrc/be/ia64-hp-hpux11.23/include -I/proj/opensrc/be/ia64-hp-hpux11.23/include -I/evrst7/sje/svn.reg/src/trunk/gcc/../libdecnumber -I/evrst7/sje/svn.reg/src/trunk/gcc/../libdecnumber/dpd -I../libdecnumber    -o build/rtl.o /evrst7/sje/svn.reg/src/trunk/gcc/rtl.c
In file included from /evrst7/sje/svn.reg/src/trunk/gcc/ggc.h:40,
                 from /evrst7/sje/svn.reg/src/trunk/gcc/rtl.c:35:
./gtype-desc.h:28:46: warning: no newline at end of file
In file included from /evrst7/sje/svn.reg/src/trunk/gcc/rtl.c:35:
/evrst7/sje/svn.reg/src/trunk/gcc/ggc.h:45: error: expected ',' or '}' before 'typedef'
make[3]: *** [build/rtl.o] Error 1

I look at ggc.h and it seems OK:

	#include "gtype-desc.h"

	/* One of these applies its third parameter (with cookie in the fourth
   	parameter) to each pointer in the object pointed to by the first
   	parameter, using the second parameter.  */
	typedef void (*gt_note_pointers) (void *, void *, gt_pointer_operator,

But when I look at gtype-desc.h I see:

	<comments at top>

	/* This file is machine generated.  Do not edit.  */
	/* Enumeration of types known.  */
	enum gt_types_enum {

The file ends at the "gt_ggc_e_17string_descri19139la1SP9t44ht4hta" line.
gengtype is not giving any errors when it runs.

Steve Ellcey

More information about the Gcc-patches mailing list