This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch 0/5] Dependency removal and header adjustments
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Andrew MacLeod <amacleod at redhat dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 16 Jun 2015 17:20:49 +0000
- Subject: Re: [patch 0/5] Dependency removal and header adjustments
- Authentication-results: sourceware.org; auth=none
- References: <558059A8 dot 3020602 at redhat dot com>
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