This is the mail archive of the gcc-patches@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: [patch 0/5] Dependency removal and header adjustments


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.

-- 
Joseph S. Myers
joseph@codesourcery.com


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