On 4 June 2012 16:49, Steven Bosscher <stevenb....@gmail.com> wrote: > On Mon, Jun 4, 2012 at 4:47 PM, Richard Guenther > <richard.guent...@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.