This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Help needed: banishing RTL from the front ends
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Steven Bosscher <stevenb dot gcc at gmail dot com>
- Cc: Paolo Bonzini <bonzini at gnu dot org>, GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Tue, 25 May 2010 07:26:22 -0700
- Subject: Re: Help needed: banishing RTL from the front ends
- References: <AANLkTikKVLXP0eKoe0I7ta3DBv_YXHUMluGN8TqyY7X0@mail.gmail.com>
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