This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [Tuples] gimple_build_call_from_tree vs NeXT runtime Objective-C
- From: "Andrew Pinski" <pinskia at gmail dot com>
- To: "GCC List" <gcc at gcc dot gnu dot org>
- Date: Sat, 13 Sep 2008 18:32:03 -0700
- Subject: Re: [Tuples] gimple_build_call_from_tree vs NeXT runtime Objective-C
- References: <de8d50360806191308g631a4a1bx1819a2d14d005d8c@mail.gmail.com>
On Thu, Jun 19, 2008 at 1:08 PM, Andrew Pinski <pinskia@gmail.com> wrote:
> Hi,
> When looking into stret-1.m failure, I noticed that
> gimple_build_call_from_tree calls get_callee_fndecl to get the "real"
> function decl. Well for OBJ_TYPE_REF in Objective-C, it will return
> objc_msgSendSuper_stret/objc_msgSendSuper which is correct but after
> on we crash as that function decl really does not match the function
> type so we crash while expanding. I don't know what the correct way
> to fix this but I think it might be to ignore get_callee_fndecl if we
> have an OBJ_TYPE_REF. Does that seem reasonable?
With the more type checking this shows up even more than the two or
three testcases that were before.
-- Pinski