Waldek Hebisch writes:
--- gpc-20030507.orig/p/declarations.c Sat May 3 17:24:08 2003 +++ gpc-20030507/p/declarations.c Sun May 11 22:45:49 2003 @@ -404,7 +404,9 @@ if (block) TREE_USED (block) = 1;
+#ifndef GCC_3_3 free (level); +#endif
return block; } --- gpc-20030507.orig/p/predef.c Fri May 2 11:40:33 2003 +++ gpc-20030507/p/predef.c Fri May 16 11:13:05 2003 @@ -275,7 +275,7 @@ if (TYPE_NAME (type)) type = build_type_copy ((orig = type)); TYPE_NAME (type) = decl = build_decl (TYPE_DECL, id, type);
DECL_ORIGINAL_TYPE (decl) = orig;
DECL_ORIGINAL_TYPE (decl) = NULL_TREE; } } if (kind == bk_special_syntax || kind == bk_routine)
with this patch and gcc-3.3 I get:
../.././xgpc -B../.././ -I../rts --automake --executable-file-name -W -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -g -O2 --executable-path=. --unit-path=/build/packages/gcc/3.3/gcc-3.3-3.3ds9/src/gcc/p/rts --unit-path=/build/packages/gcc/3.3/gcc-3.3-3.3ds9/src/gcc/p/units `cat needed-options` -I. -I "/build/packages/gcc/3.3/gcc-3.3-3.3ds9/src/gcc/p" "/build/packages/gcc/3.3/gcc-3.3-3.3ds9/src/gcc/p/utils/gpidump.pas" In file included from /build/packages/gcc/3.3/gcc-3.3-3.3ds9/src/gcc/p/utils/gpidump.pas:52: ./tree.inc: In procedure `ProcessFile': ./tree.inc:115: error: undeclared identifier `LANG_HOOKS_IDENTIFIER_SIZE' (first use in this routine) ./tree.inc:115: error: (Each undeclared identifier is reported only once ./tree.inc:115: error: for each routine it appears in.) ./tree.inc:115: error: undeclared identifier `struct' (first use in this routine) ./tree.inc:115: error: syntax error before `tree_common' ./tree.inc:115: error: invalid structured initializer ./tree.inc:115: error: invalid structured initializer ./tree.inc:115: error: invalid structured initializer ./tree.inc:115: error: invalid structured initializer ./tree.inc:115: error: invalid structured initializer ./tree.inc:115: error: invalid structured initializer ./tree.inc:115: error: invalid structured initializer ./tree.inc:115: error: missing separator ./tree.inc:115: error: syntax error before `/' ./tree.inc:115: error: undeclared identifier `tree' (first use in this routine) ./tree.inc:115: error: missing separator ./tree.inc:115: error: syntax error before `)' /build/packages/gcc/3.3/gcc-3.3-3.3ds9/src/gcc/p/utils/gpidump.pas:34: warning: `Verbose' defined but not used /build/packages/gcc/3.3/gcc-3.3-3.3ds9/src/gcc/p/utils/gpidump.pas:34: warning: `Hex' defined but not used make[5]: *** [gpidump] Error 1