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:
Pedro F. Giffuni 2013-12-30 20:24:05 +00:00
parent f8fb069d47
commit 1b9906c757
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=260099

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;
}