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: Fix class type lookup from OBJ_TYPE_REF


Jan Hubicka <hubicka@ucw.cz> wrote:
>> On Aug 17, 2013, at 8:54 AM, Jan Hubicka <hubicka@ucw.cz> wrote:
>> > Moreover objc apparently never produce any virtual
>functions/methods.
>> 
>> Objective-C++ might.  :-)
>Sure, those ought to be regular C++ methods though.
>> 
>> > Can someone explain me in greater detail how the objc use works?
>> 
>> Objective-C uses it to manage code generation for post-increments of
>method calls that involve a castâ  in greater detail, no, that's just
>from a quick read of the code.
>
>OK, the real question is what objective-C expects middle end to do with
>OBJ_TYPE_REF.
>If it expects it to do some optimization, it is probably wrong, since I
>am not aware
>of any OBJ_TYPE_REF code that will work on types w/o virtual tables.
>If it expects to do nothing, I guess we ought to drop it at
>gimplification time.

The handling is probably dependent no the runtime in use, so I suggest looking into Darwin specific files for example.

Richard.

>Honza



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