On 10/28/2011 07:50 AM, Aldy Hernandez wrote:
> * c-family/c-common.c (handle_tm_wrap_attribute): Handle decl
> argument.
> * testsuite/c-c++-common/tm/wrap-2.c: Move...
> * testsuite/gcc.dg/tm/wrap-2.c: ...here.
> * testsuite/g++.dg/tm/wrap-2.C: New.
Ok.
r~
The C++ front-end gives us a DECL for transaction_wrap attribute's
argument. The C front-end OTOH gives us an IDENTIFIER_NODE. I have no
idea why this change after the merge, but I have fixed the attribute
handler to work with both front-ends.
Also, for this case, distilled from testsuite/c-