Re: PL/1 frontend

2010-11-11 Thread Ian Lance Taylor
Diego Novillo writes: > I believe that Ian Taylor had some tutorial notes on writing front > ends. Ian, am I dreaming again? The ntoes are in my summit paper which can be found at http://gcc.gnu.org/wiki/summit2010 . The paper is "The Go frontend for GCC." Ian

Re: PL/1 frontend

2010-11-11 Thread Andi Hellmund
Nice. Thanks for doing this. If it's not already there, could you add a link to this in http://gcc.gnu.org/wiki/GettingStarted ? Sure, Phil (Herron) and I could post it there. Ideally, we should also have a more-or-less thorough documentation in the gcc internals document about howto im

Re: PL/1 frontend

2010-11-11 Thread Diego Novillo
On Thu, Nov 11, 2010 at 10:26, Andi Hellmund wrote: > Hey Tom, > >> You need to define a lang_tree_node type, even if its empty.  See >> the lto frontend example. > > You could also look at this site > (http://code.redbrain.co.uk/cgit.cgi/gcc-dev/tree/gcc/gcalc?h=documentation). Nice. Thanks for

Re: PL/1 frontend

2010-11-11 Thread Andi Hellmund
Hey Tom, You need to define a lang_tree_node type, even if its empty. See the lto frontend example. You could also look at this site (http://code.redbrain.co.uk/cgit.cgi/gcc-dev/tree/gcc/gcalc?h=documentation). It contains the front-end code for a very simple front-end showing the general/ex

Re: PL/1 frontend

2010-11-11 Thread Diego Novillo
On Thu, Nov 11, 2010 at 09:47, Merrick, Thomas wrote: > libbackend.a(coverage.o):(.rodata+0x20): undefined reference to > `gt_ggc_mx_lang_tree_node' > libbackend.a(coverage.o):(.rodata+0x24): undefined reference to > `gt_pch_nx_lang_tree_node' > libbackend.a(dbxout.o):(.rodata+0x180): undefined

Re: PL/1 frontend

2010-11-11 Thread Richard Guenther
On Thu, Nov 11, 2010 at 3:47 PM, Merrick, Thomas wrote: > I would like to resurrect the PL/1 frontend which appears to have stopped > development about 3 years ago.  I plan to start with the preprocessor, which > is a PL/1 subset interpreter. > > First of all, is this the corr

PL/1 frontend

2010-11-11 Thread Merrick, Thomas
I would like to resurrect the PL/1 frontend which appears to have stopped development about 3 years ago. I plan to start with the preprocessor, which is a PL/1 subset interpreter. First of all, is this the correct list to ask questions about writing a frontend? I plan on using GCC 4.5.1 and