From 1b9906c7571ca5d001acf9d07100444c4d8f84da Mon Sep 17 00:00:00 2001 From: "Pedro F. Giffuni" Date: Mon, 30 Dec 2013 20:24:05 +0000 Subject: [PATCH] gcc: Fix issue with "unavailable" attribute. While here, point where we dropped the support for objc from r260014. MFC after: 3 weeks --- contrib/gcc/c-common.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/gcc/c-common.c b/contrib/gcc/c-common.c index 4b47ef422b9b..f9b06f4ff837 100644 --- a/contrib/gcc/c-common.c +++ b/contrib/gcc/c-common.c @@ -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; }