This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Help needed: banishing RTL from the front ends


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
mark@codesourcery.com
(650) 331-3385 x713


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]