Waldek Hebisch wrote:
Matthias Klose wrote:
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
This error should be ignorable -- I succesfuly run test suite after the build stopped. The compiler should install correctly -- I have not tried but I will try on anather machine. Since gpidump is non-essential the short term workaround may be just to disable building it. However proper fix seem very tricky -- we want to propagate information from C header to Pascal program. I leave it to Frank -- I would probably make a small C file which would export everything needed in Pascal, but he may have different idea.
If you write this program manually, this will be a lot of maintenance in the future (keeping the tree codes up to date etc.). So it would be better to generate (parts of) it automatically, and this again would probably not be much different from generating tree.inc as is done now.
I don't have gcc-3.3 here (and don't plan to get it until it's released), so I can't tell anything now.
I suppose it should not be too hard to fix (you basically just have to get the tree code definitions from the respective backend files and perhaps adjust the macro usage in gpidump.pas if it has changed), but if you can't do it now, you'll have to work-around it I guess ...
Frank