[trans-mem,c++] PR51928

Patrick Marlier patrick.marlier@gmail.com
Tue Jan 24 13:58:00 GMT 2012


On 01/24/2012 08:32 AM, Aldy Hernandez wrote:
> On 01/23/12 18:34, Patrick Marlier wrote:
>> Hi,
>>
>> In this PR51928, it tries to look_for_tm_attr_overrides on a thunk but
>> there is no DECL_NAME for thunk. So it fails in
>> lookup_fnfields_idx_nolazy because name is NULL.
>>
>> #0 0x0000000000764b5a in lookup_fnfields_idx_nolazy
>> (type=0x7ffff69f77e0, name=0x0) at ../../trunk/gcc/cp/search.c:1384
>> #1 0x000000000076551a in lookup_fnfields_1 (type=0x7ffff69f77e0,
>> name=0x0) at ../../trunk/gcc/cp/search.c:1470
>> #2 0x000000000076886e in look_for_overrides_here (type=0x7ffff69f77e0,
>> fndecl=0x7ffff69f8800) at ../../trunk/gcc/cp/search.c:2026
>> #3 0x0000000000635a94 in look_for_tm_attr_overrides
>> (type=0x7ffff6a091f8, fndecl=0x7ffff69f8800) at
>> ../../trunk/gcc/cp/class.c:4337
>>
>> I hope the good way to solve this is to use the THUNK_TARGET instead of
>> the thunk itself. (or just ignore when it is a thunk?)
>>
>> Tested on x86_64-unknown-linux-gnu.
>> Thanks.
>> --
>> Patrick Marlier.
>
> I can commit for you, but the testcase is missing, though the changelog
> entry for it is there.

Sorry for the missing testcase. Here the full patch.
Thanks for taking care of the commit.
--
Patrick.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr51928.patch
Type: text/x-patch
Size: 1114 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120124/9772a5bf/attachment.bin>


More information about the Gcc-patches mailing list