This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Minor fix to tail recursion code
- From: Diego Novillo <dnovillo at redhat dot com>
- To: Jeff Law <law at redhat dot com>
- Cc: Richard Henderson <rth at redhat dot com>, Dale Johannesen <dalej at apple dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 17 Mar 2004 17:43:20 -0500
- Subject: Re: [tree-ssa] Minor fix to tail recursion code
- Organization: Red Hat Canada
- References: <200403172234.i2HMYu47011371@speedy.slc.redhat.com>
On Wed, 2004-03-17 at 17:34, law@redhat.com wrote:
> In message <20040317221936.GC10517@redhat.com>, Richard Henderson writes:
> >On Wed, Mar 17, 2004 at 01:23:15PM -0800, Dale Johannesen wrote:
> >> On Mar 17, 2004, at 1:19 PM, law@redhat.com wrote:
> >> >! || (TYPE_MAIN_VARIANT (TREE_TYPE (param))
> >> >! != TYPE_MAIN_VARIANT (TREE_TYPE (TREE_VALUE (args))))))
> >>
> >> I think it would be better to use the new langhook for this.
> >
> >Indeed.
> I'm planning to break out a new function to check for type compatibility
> and changing the various SSA bits to use that. It would be fairly simple
> for someone to then extend that to call a langhook for those cases which
> can not be handled simply by looking at the main variant.
>
But there already is a langhook for that: types_compatible_p.
Diego.