It would be a nice feature to have support for the D language in gcc -- including a useflag to enable it (like "D" or "dgcc"). There are some libraries, interfaces/wrappers and programs in/for D available (e.g. mysql-binding, SDL, OpenGL, games, ...). There is a gcc-patch at http://dgcc.sourceforge.net/ which supports most OSes gentoo supports and it can be used as crosscompiler too. It seems to be pretty easy to apply the patch to the gcc-sources, but I don't know how to change the gcc-ebuild to do this. More information about the D language can be found here: http://www.digitalmars.com/d/index.html http://en.wikipedia.org/wiki/D_%28programming_language%29
it doesnt support gcc-4.1.x though (going by their homepage) if i'm mistaken, i'll take another look
*** Bug 162108 has been marked as a duplicate of this bug. ***
new version supports 4.1
ive added support for the language to toolchain.eclass, but gcc-4.1.2 ICEs when building with DGCC-0.22 added on, so i'm not going to add the final piece to the ebuild if you want to test locally, just add this line to your gcc ebuild (3.4.6 or 4.1.1 or 4.1.2 or whatever): D_VER="0.22" then emerge gcc with USE=d and you're set
FYI: http://dgcc.sourceforge.net/ March 5, 2007 Version 0.23 has been released. GDC now supports 64-bit targets. === This should be re-opening since it's still not possible to build D without manually hacking ebuilds.
(In reply to comment #4) > ive added support for the language to toolchain.eclass, but gcc-4.1.2 ICEs when > building with DGCC-0.22 added on, so i'm not going to add the final piece to > the ebuild > > if you want to test locally, just add this line to your gcc ebuild (3.4.6 or > 4.1.1 or 4.1.2 or whatever): > D_VER="0.22" > > then emerge gcc with USE=d and you're set > Setting D_VER="0.23" in the ebuild and emerging gcc-4.1.1-r3 works on my AMD64 system. ---- import std.stdio; void main() { char[] gd = "Thanks Gentoo Developers!"; foreach(char c; gd) writef(c); writefln(); } ---- (~) gdc temp.d -o temp && ./temp Thanks Gentoo Developers!
should be in gcc-4.1.2 and gcc-3.4.6 now, cheers