This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Unit at a time 2/3 - backward inlining, local functions
- From: Richard Henderson <rth at redhat dot com>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 12 Feb 2003 16:21:05 -0800
- Subject: Re: Unit at a time 2/3 - backward inlining, local functions
- References: <20030212231342.GK14454@kam.mff.cuni.cz>
On Thu, Feb 13, 2003 at 12:13:42AM +0100, Jan Hubicka wrote:
> There are two bits I am nervous about - first is fixup_calls thing. Is that
> safe? It appears to work everywhere :)
I havn't figured out why you need it. Oh for the attribute
frobbing? I think it's a bad idea.
> Other is the scheme of target hook for local function - it is most
> generic and target hook may use some analysis to decide what changes
> to do on the function.
I don't think I like this.
> On the other hand, it perhaps may be easier to add simple local flag
> to generic trees
I think it's sufficient to have
!TREE_PUBLIC && !TREE_ADDRESSABLE
mean what you want. This can then be checked from the backends
when placing arguments, and when generating prologues, etc.
r~