On Wed, 2003-01-22 at 09:06, Frank Heckenbach wrote:
Richard D. Jackson wrote:
<snip>
The gcc-3 based GPC does not yet work with "dwarf2" debug info (which is the default on many platforms). Therefore you'll have to add `-g0' (no debug info at all) or `-gstabs' (which works on many systems). When testing, add it in EXTRA_TEST_PFLAGS on the make command line.
That did the trick. Now all tests pass with the exception of the 5 that are skiped.
<snip>
The same was reported with a GCC for Mac OS X patched by Apple.
I think it should work directly if we change our diff to:
*** gcc/system.h.orig Fri Oct 25 15:11:09 2002 --- gcc/system.h Mon Nov 25 15:30:37 2002
*** 30,31 **** --- 30,36 ----
- #ifdef GPC
- #undef GCCBUGURL
- #define GCCBUGURL "URL:http://www.gnu-pascal.de/todo.html"
- #endif
- /* We must include stdarg.h/varargs.h before stdio.h. */
That did the trick and is much cleaner that what I did.
<snip>
We're aware of this problem (when using post-3.2.1 GCC's). It will be fixed in the next GPC alpha. If you want to try it now, just remove the following two lines:
gpc.h: extern tree size_type_node;
gpc-decl.c: tree size_type_node;
Ok commented out the above two lines. Now I'm getting a whole bunch of undefined reference errors. So for now I'm going to stick with the vanilla gcc sources ( which works ). For your referance though below I've listed some of the undefined reference errors you will note that the errors are in both gpc and gcc.
gcc/p/gpc-common.c:774: undefined reference to `tree_code_type' gcc/p/gpc-common.c:785: undefined reference to `tree_code_type' gcc/p/gpc-common.c:790: undefined reference to `tree_code_type' gcc/p/gpc-common.c:808: undefined reference to `tree_code_type' gcc/p/gpc-common.c:818: undefined reference to `tree_code_type' gcc/p/gpc-common.c:845: more undefined references to `tree_code_type' gcc/p/gpc-typeck.c:2852: undefined reference to `tree_code_length' gcc/p/gpc-typeck.c:2947: undefined reference to `tree_code_type' gcc/p/gpc-typeck.c:2955: undefined reference to `tree_code_length' gcc/p/gpc-typeck.c:4329: undefined reference to `tree_code_type' gcc/p/gpc-typeck.c:4976: undefined reference to `tree_code_type' gcc/p/gpc-typeck.c:7447: undefined reference to `tree_code_type' gcc/p/gpc-typeck.c:7448: undefined reference to `tree_code_type' gcc/fold-const.c:3475: undefined reference to `tree_code_length' gcc/fold-const.c:4083: undefined reference to `tree_code_type' gcc/fold-const.c:4392: undefined reference to `tree_code_type' gcc/fold-const.c:4529: undefined reference to `tree_code_type' gcc/fold-const.c:4549: undefined reference to `tree_code_type' gcc/fold-const.c:4809: undefined reference to `tree_code_type' gcc/fold-const.c:5017: more undefined references to `tree_code_type' gcc/tree.c:273: undefined reference to `tree_code_length' gcc/tree.c:259: undefined reference to `tree_code_length' gcc/tree.c:279: undefined reference to `tree_code_length' gcc/tree.c:302: undefined reference to `tree_code_type' gcc/tree.c:471: undefined reference to `tree_code_type' gcc/tree.c:1711: undefined reference to `tree_code_type' gcc/tree.c:1827: undefined reference to `tree_code_type' gcc/tree.c:1876: undefined reference to `tree_code_type' gcc/tree.c:1931: undefined reference to `tree_code_length'