gcc: Fix issue with "unavailable" attribute.

While here, point where we dropped the support for objc from r260014.

MFC after:	3 weeks
This commit is contained in:
pfg 2013-12-30 20:24:05 +00:00
parent 16b0bb1da4
commit a54ccfd7d6

View File

@ -5380,7 +5380,9 @@ handle_unavailable_attribute (tree *node, tree name,
if (TREE_CODE (decl) == TYPE_DECL
|| TREE_CODE (decl) == PARM_DECL
|| TREE_CODE (decl) == VAR_DECL
|| TREE_CODE (decl) == FUNCTION_DECL)
|| TREE_CODE (decl) == FUNCTION_DECL
|| TREE_CODE (decl) == FIELD_DECL)
/* Removed radar 3803157 - objc attribute */
{
TREE_UNAVAILABLE (decl) = 1;
}