On 06/16/2015 01:20 PM, Joseph Myers wrote:
On Tue, 16 Jun 2015, Andrew MacLeod wrote:
component... as indicated by an analysis of what is usually needed. Does
that seem like a reasonable breakdown? what was the *real* intention of
target.h?
target.h is what needs to be included to use target hooks.
In particular, it would be desirable to eliminate the tm.h include from
target.h (required by hard-reg-set.h, at least, at present), so that once
a file has been freed of uses of target macros (all converted to hooks)
they can't accidentally creep back in. I don't know offhand the best way
of eliminating tm.h dependence in the types of hook arguments, but at
least it would be best to *avoid* any designs that make it harder to
remove that tm.h include.
Ah, ok. I'll have a look at that shortly, and look for a different place
to organize rtl's includes
Andrew