Message ID | 72F24C0C-CB38-4D25-B769-B573CD20ED18@sandoe-acoustics.co.uk |
---|---|
State | New |
Headers | show |
On Tue, 12 Oct 2010, IainS wrote: > Whilst this almost falls within Mike's pre-approval for merges from the FSF > apple-local branch, there is one line that is outside ObjC locality. > > May we have approval for the following change to c-family/c-common.c? This c-family change is OK.
On 12 Oct 2010, at 21:27, Joseph S. Myers wrote: > On Tue, 12 Oct 2010, IainS wrote: > >> Whilst this almost falls within Mike's pre-approval for merges from >> the FSF >> apple-local branch, there is one line that is outside ObjC locality. >> >> May we have approval for the following change to c-family/c-common.c? > > This c-family change is OK. thanks, committed as r165415. Iain
Index: gcc/c-family/c-common.c =================================================================== --- gcc/c-family/c-common.c (revision 165375) +++ gcc/c-family/c-common.c (working copy) @@ -7189,7 +7189,8 @@ handle_deprecated_attribute (tree *node, tree name || TREE_CODE (decl) == PARM_DECL || TREE_CODE (decl) == VAR_DECL || TREE_CODE (decl) == FUNCTION_DECL - || TREE_CODE (decl) == FIELD_DECL) + || TREE_CODE (decl) == FIELD_DECL + || objc_method_decl (TREE_CODE (decl))) TREE_DEPRECATED (decl) = 1; else warn = 1; where the stub implementation of objc_method_decl () is: Index: gcc/c-family/stub-objc.c =================================================================== --- gcc/c-family/stub-objc.c (revision 165375) +++ gcc/c-family/stub-objc.c (working copy) @@ -217,6 +217,12 @@ objc_finish_method_definition (tree ARG_UNUSED (fn { } +bool +objc_method_decl (enum tree_code ARG_UNUSED(opcode)) +{ + return false; +} + tree objc_build_keyword_decl (tree ARG_UNUSED (selector), tree ARG_UNUSED (type),