Adriaan van Os (Microbizz) wrote:
As I am new on this discussion list, I have included some information about myself at the bottom of this message to introduce myself.
My field of interest is GPC for Darwin (Darwin is Apple^@s open-source kernel of MacOS X, based of FreeBSD 4.4 UNIX).
I gathered the following relevant information:
- the first version of GCC that fully supports Darwin is GCC 3.1
- GPC 2.1 is based on GCC 2.95
- GPC-20020910 alpha/beta has patches (diffs) for GCC 3.0
The diffs are unfinished, do not try them.
Consequently, my questions are:
- has anyone on this list tried to build GPC for Darwin ?
- has anyone on this list tried to build GPC for GCC 3.1 ?
I have build working gpc with gcc-3.1.1 (on i386 Linux). Known problems are: -- debugging, gcc-3.1.1 defaults (at least on Linux) to DWARF and gpc previously did not work with DWARF (currentely for simple programs one gets DWARF debugging info, but full support require much more work). Due to strict internal consistency checking it is also not possible to get stabs debugging info for objects. -- at O3 some programs are mis-optimized (at O2 I did not found any case of incorrect code) -- on incorrect programs gpc may abort or crash, gcc-3.1.1 backend is much more strict on what it accepts then gcc-2.95.3
If you wish to try the patches I have put them at: http://www.math.uni.wroc.pl/~hebisch/gpc/
Beware, that to build gpc you have to manually intervene in the build process (few times). The patches also work with gcc-3.2.
You may prefer to wait few weeks until Frank release a much cleaner version.