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: [tree-ssa] Minor fix to tail recursion code


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.


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