Plugify Objective-C++ parser bits

Submitted by Tobias Burnus on Feb. 13, 2011, 8:55 a.m.

Details

Message ID 4D579C8E.3070501@net-b.de
State New
Headers show

Commit Message

Tobias Burnus Feb. 13, 2011, 8:55 a.m.
Mike Stump wrote:
> cp:
> 	* Make-lang.in (build/slashify): Plugify Objective-C++.
> 	(cp/parser.o): Likewise.

Compilation fails as the variable "attributes" is no longer used.

Fix attached patch committed as obvious as Rev. 170103

Tobias

Comments

Mike Stump Feb. 13, 2011, 10:35 a.m.
On Feb 13, 2011, at 12:55 AM, Tobias Burnus wrote:
> Mike Stump wrote:
>> cp:
>> 	* Make-lang.in (build/slashify): Plugify Objective-C++.
>> 	(cp/parser.o): Likewise.
> 
> Compilation fails as the variable "attributes" is no longer used.
> 
> Fix attached patch committed as obvious as Rev. 170103

Ah, unfortunately, the patch is ever so slightly wrong....  I've cleanup up the real problem and checked it in... Thanks for the alert.

Patch hide | download patch | download mbox

Index: ChangeLog
===================================================================
--- ChangeLog	(Revision 170102)
+++ ChangeLog	(Arbeitskopie)
@@ -1,3 +1,7 @@ 
+2011-02-13  Tobias Burnus  <burnus@net-b.de>
+
+	* parser.c (cp_parser_declaration): Remove unused variable.
+
 2011-02-13  Mike Stump  <mikestump@comcast.net>
 
 	* Make-lang.in (cp/parser.o): Move c-family/c-objc.h dependancy
Index: parser.c
===================================================================
--- parser.c	(Revision 170102)
+++ parser.c	(Arbeitskopie)
@@ -9325,7 +9325,6 @@  cp_parser_declaration (cp_parser* parser)
   cp_token token2;
   int saved_pedantic;
   void *p;
-  tree attributes = NULL_TREE;
 
   /* Check for the `__extension__' keyword.  */
   if (cp_parser_extension_opt (parser, &saved_pedantic))