Andreas Jaeger wrote:
I'd like to have an integrated compiler.
the C (or other languages) compiler. Other than that, I can only
wish you good luck.
Doesn't work unfortunatly. Ok, I'll wait some time and retry again.
There are three known problem with gcc-3.3+gpc-20030507:
-- spurious `free'. The first patch (hunk) below fixes it
-- problem with generating Dwarf-2 debug info. It not clear what the
good solution is but the second patch is a workaround. Alternatively
you may pass `PFLAGS=-gstubs+' to make build the runtime with stubs
debug info (may be a good idea anyway, as gdb has serious troubles
with Dwarf-2 debug info, in fact without patches gdb abort on Dwarf-2
info from Pascal).
-- problem building `gpidump' utility. The third patch fixes it
If there are another problems let us know
--
Waldek Hebisch
hebisch@math.uni.wroc.pl or hebisch@hera.math.uni.wroc.pl
--- 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)
--- gpc-20030507.orig/p/utils/mk-t-inc Sat May 17 14:27:28 2003
+++ gpc-20030507/p/utils/mk-t-inc Sat May 17 14:28:27 2003
@@ -82,6 +82,6 @@
cat "$GCCDIR/tree.def"
echo 'DEFTREECODE (LAST_AND_UNUSED_C_TREE_CODE, "unused", "x", 0)'
sed -e '/#else/,/#endif/d' "$GCCDIR/p/p-tree.def"
-} | sed -ne '/^DEFTREECODE/{s,/*.**/,,;p;}'
+} | sed -ne '/^DEFTREECODE/{s,/*.**/,,;s/["'"'"']x["'"'"'].*/"x", 0)/;p;}'
} > "$2" || { rm -f "$2"; false; }