This patch is meant to replace one added by r199676. The goal of that
commit was to remove some specialness from thread safety attributes,
but as Richard had pointed out in IRC, there is a more correct
solution to be had: we need to encode knowledge of which attributes
are known to GCC. We already allow GNU-style attributes on function
definitions as an extension to GCC, which is what we were really
trying to (incompletely) encode with the thread-safety attribute
whitelist.

This patch adds a new meta-spelling called "GCC" -- it widens into
being a GNU spelling, and a CXX11 spelling with the namespace "gnu".
It also sets a bit on the spelling certifying that it is known to GCC.
>From this, we can warn about the extension appropriately. As a
consequence, the FunctionDefinition functionality is completely
removed.

~Aaron

Attachment: KnownToGCC.patch
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to