diff options
author | pfg <pfg@FreeBSD.org> | 2014-01-17 21:21:28 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2014-01-17 21:21:28 +0000 |
commit | 82a7c1437d7fdb1955c512f3c342e3ccd7eb209d (patch) | |
tree | c8ce380ffb1a30d953e50a2e732653b822b8f429 /contrib/gcc | |
parent | 7cf333c5cb7ec87f433c6c3b4d33cfadcc7b94a0 (diff) | |
download | FreeBSD-src-82a7c1437d7fdb1955c512f3c342e3ccd7eb209d.zip FreeBSD-src-82a7c1437d7fdb1955c512f3c342e3ccd7eb209d.tar.gz |
gcc: Drop useless objc change from r260311.
Among some of the objc changes from Apple that crept into r260311,
Radar 5355344 is incomplete and is not used since we don't carry
ObjC in the base system.
The dead code seems to have caused issues in some Tinderboxes so
get rid of it altogether.
Reported by: luigi
MFC after: 9 days
Diffstat (limited to 'contrib/gcc')
-rw-r--r-- | contrib/gcc/cp/ChangeLog.apple | 9 | ||||
-rw-r--r-- | contrib/gcc/cp/parser.c | 30 |
2 files changed, 0 insertions, 39 deletions
diff --git a/contrib/gcc/cp/ChangeLog.apple b/contrib/gcc/cp/ChangeLog.apple index bd928a2..a2cecaa 100644 --- a/contrib/gcc/cp/ChangeLog.apple +++ b/contrib/gcc/cp/ChangeLog.apple @@ -302,15 +302,6 @@ (cp_parser_objc_declaration): Parses attribute list and passes it down to cp_parser_objc_class_interface/cp_parser_objc_protocol_declaration. -2007-07-24 Fariborz Jahanian <fjahanian@apple.com> - - Radar 5355344 - * cp-tree.h (cp_objc_protocol_id_list): New declaration - * cp-lang.c (cp_objc_protocol_id_list): New stub - * parser.c (cp_parser_type_name): Added code to disambiguate - conditional from a protocol type. - (cp_parser_objc_tentative_protocol_refs_opt): New - 2007-07-13 Fariborz Jahanian <fjahanian@apple.com> Radar 5277239 diff --git a/contrib/gcc/cp/parser.c b/contrib/gcc/cp/parser.c index 9bb66fa..25cc225 100644 --- a/contrib/gcc/cp/parser.c +++ b/contrib/gcc/cp/parser.c @@ -1827,10 +1827,6 @@ static tree cp_parser_objc_identifier_list /* APPLE LOCAL end radar 3803157 - objc attribute */ static tree cp_parser_objc_protocol_refs_opt (cp_parser *); -/* APPLE LOCAL begin radar 5355344 */ -static bool cp_parser_objc_tentative_protocol_refs_opt - (cp_parser *, tree *); -/* APPLE LOCAL end radar 5355344 */ static void cp_parser_objc_declaration (cp_parser *); static tree cp_parser_objc_statement @@ -17873,32 +17869,6 @@ cp_parser_objc_protocol_refs_opt (cp_parser* parser) return protorefs; } -/* APPLE LOCAL begin radar 5355344 */ -/* This routine also parses a list of Objective-C protocol references; except that - if list is not valid, it returns FALSE and back-tracks parsing. */ - -static bool -cp_parser_objc_tentative_protocol_refs_opt (cp_parser* parser, tree *protorefs) -{ - *protorefs = NULL_TREE; - if(cp_lexer_next_token_is (parser->lexer, CPP_LESS)) - { - cp_parser_parse_tentatively (parser); - cp_lexer_consume_token (parser->lexer); /* Eat '<'. */ - *protorefs = cp_parser_objc_identifier_list (parser); - if (!cp_objc_protocol_id_list (*protorefs)) - { - cp_parser_abort_tentative_parse (parser); - return false; - } - if (cp_parser_parse_definitely (parser)) - cp_parser_require (parser, CPP_GREATER, "`>'"); - } - - return true; -} -/* APPLE LOCAL end radar 5355344 */ - /* Parse a Objective-C visibility specification. */ static void |