[RFH] Uses of output.h in the front ends

Manuel López-Ibáñez lopezibanez@gmail.com
Mon Jun 4 14:58:00 GMT 2012


On 4 June 2012 16:49, Steven Bosscher <stevenb.gcc@gmail.com> wrote:
> On Mon, Jun 4, 2012 at 4:47 PM, Richard Guenther
> <richard.guenther@gmail.com> wrote:
>> OTOH, I suppose including target.h from the FEs is against what you
>> want to achieve, too.
>
> Yes, that would be the ideal case. But some target dependencies are
> inevitable, e.g. the target CPP macros. What I'd like to see
> eventually, is that targetm will be split up in front end and
> middle/back end specific parts.

Well, the CPP macros could be translated to builtin calls and
evaluated by the middle-end during or after gimplification. Then the
FE would be really independent of the back-end. Sounds crazy?

Cheers,

Manuel.



More information about the Gcc mailing list