On Tue, Nov 1, 2011 at 12:26 PM, Martin Jambor <mjam...@suse.cz> wrote:
> Hi,
>
> sorry that I'm not using the fancy web tool but I do not want to use
> my google account and gmail address in particular for work-related
> stuff.
>
> On Tue, Nov 01, 2011 at 06:05:46PM +0000, davi...@google.com wrote:
>>
>
> ...
>
>>
>> http://codereview.appspot.com/5303083/diff/1/gcc/tree-tsan.c#newcode638
>> gcc/tree-tsan.c:638: "_vptr.", sizeof ("_vptr.") - 1) == 0)
>> This is a very hacky way of recognizing vptr field. C++ FE provides
>> TYPE_VFIELD macro to get the vptr field, but you will need to add a new
>> langhook for it -- which is not liked in upstream -- so the hacky way
>> may be ok (as it is for error checking purpose).
>>
>
> If you have a FIELD_DECL and want to check whether it is a VPTR, you
> can simply use DECL_VIRTUAL_P.

ah yes, that will do.

thanks,

David

>
> Martin
>
>

Reply via email to