public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jeff Law <law@redhat.com>
To: Andrew MacLeod <amacleod@redhat.com>,
	       gcc-patches <gcc-patches@gcc.gnu.org>
Subject: Re: [patch 2/4] Remove tm.h and options.h as dependencies for function.h
Date: Thu, 25 Jun 2015 16:18:00 -0000	[thread overview]
Message-ID: <558C2955.6000302@redhat.com> (raw)
In-Reply-To: <558C004E.2070809@redhat.com>

On 06/25/2015 07:21 AM, Andrew MacLeod wrote:
> This patch finally removes tm.h as a compile dependency for function.h
>
> struct incoming_args was declared in function.h, and had an instance of
> CUMULATIVE_ARGS from tm.h   The only consumer of incoming_args is
> rtl-data which is now located in emit-rtl.h, so I moved the decl to there.
>
> The remaining dependencies were pointers to CUMULATIVE_ARGS being used
> as parameters to 2 functions pass_by_reference and
> reference_callee_copied.   I moved these 2 functions to calls.[ch]. The
> vast majority of consumers are in the backend, and already include/need
> calls.h, so it seemed a sensible location.
>
> This allows tm.h and hard-reg-set.h to be removed from cfgloop.h. On my
> flattened branch, compiler back-end files requiring hard-reg-set.h
> dropped from 270ish to 98, and it ought to have a decent impact on the
> front end files when I get to them.
>
> Bootstraps on x86_64-unknown-linux-gnu with no new regressions. Also
> builds stage 1 on all the targets in config-list.mk.
>
> OK for trunk?
>
> Andrew
>
>
> 2-func-tm.patch
>
>
> 	* function.h (struct incoming_args): Move struct.
> 	(pass_by_reference, reference_callee_copied): Remove prototypes.
> 	* emit-rtl.h (struct incoming_args): Relocate struct here.
> 	* calls.h (pass_by_reference, reference_callee_copied): Relocate
> 	prototypes here.
> 	* function.c (pass_by_reference, reference_callee_copied): Move.
> 	* calls.c (pass_by_reference, reference_callee_copied): Relocate here.
> 	* cfgloop.h: Don't include tm.h or hard-reg-set.h.
> 	* ipa-chkp.c: Include calls.h.
> 	* ada/gcc-interface/misc.c: Include calls.h not function.h.
> 	* c-family/cilk.c: Move calls.h after tm.h in the include chain.
OK.
jeff

      reply	other threads:[~2015-06-25 16:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-25 13:22 Andrew MacLeod
2015-06-25 16:18 ` Jeff Law [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=558C2955.6000302@redhat.com \
    --to=law@redhat.com \
    --cc=amacleod@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).