Jan Hubicka <hubi...@ucw.cz> wrote: >> On Aug 17, 2013, at 8:54 AM, Jan Hubicka <hubi...@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