diff options
author | pfg <pfg@FreeBSD.org> | 2013-12-30 20:24:05 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2013-12-30 20:24:05 +0000 |
commit | a54ccfd7d63be0285f5e4adcb2f0d0ee943fd02f (patch) | |
tree | 042f41a5ffc3f5c54c700df3ef9560aa15d7a7c8 /contrib/gcc/c-common.c | |
parent | 16b0bb1da43bd50fbfc9131167e0d1103aa37de9 (diff) | |
download | FreeBSD-src-a54ccfd7d63be0285f5e4adcb2f0d0ee943fd02f.zip FreeBSD-src-a54ccfd7d63be0285f5e4adcb2f0d0ee943fd02f.tar.gz |
gcc: Fix issue with "unavailable" attribute.
While here, point where we dropped the support for objc from r260014.
MFC after: 3 weeks
Diffstat (limited to 'contrib/gcc/c-common.c')
-rw-r--r-- | contrib/gcc/c-common.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/gcc/c-common.c b/contrib/gcc/c-common.c index 4b47ef4..f9b06f4 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; } |