Steven Bosscher wrote:

> The first thing I'd like to do now, is banish RTL from the front end.

Certainly a desirable goal!

(I did a bit of this in the C++ front-end a while back, though nothing
as formal or complete as what you are suggesting.  There used to be
various places where the front end would peek at the RTL generated for
global variables and such.)

> 1) Group front end objects in Makefile.in under e.g. ALL_HOST_FRONTEND_OBJS
> 2) Add a new build rule that adds an extra define -DIN_GCC_FRONTEND
> 3) Conditionally poison symbols in system.h

This seems like a reasonable plan to me.  It will, of course, take some
work to achieve, but in concept I completely agree that the front ends
should have no knowledge whatsoever of RTL.

-- 
Mark Mitchell
CodeSourcery
m...@codesourcery.com
(650) 331-3385 x713

Reply via email to