On Sun, May 17, 2009 at 09:26, Toon Moene <t...@moene.org> wrote:

> Does this mean:
>
> You do not support these languages *yet*.

This one.

Supporting new languages is, in principle, very simple.  In theory,
there is nothing special to be done.  Every FE already generates
gimple and that's what we are writing to the bytecode files.  However,
FEs may leave some language data in some expression/type/symbol nodes.
 These need to be cleared out by pass_ipa_free_lang_data.

FEs that need to remove language data, need to implement a special
langhook.  I expect that FEs that use their own parsing data
structures, will need to do little.  OTOH, FEs that use 'tree' and are
tied to C/C++ may need some work.

I have not tested Fortran at all, that's why I'm not even trying to
enable LTO with it.  In theory, there should be little, if anything to
do there.  If I have some time before I finish merging LTO into
mainline, I may try to enable Fortran.  Of course, I welcome any and
all help in this area.


Diego.

Reply via email to