Patchwork =?UTF-8?Q?ObjC=20-=20remove=20reference=20to=20no=20longer=20used=20objc?= =?UTF-8?Q?=5Fvolatilized=20attribute?=

login
register
mail settings
Submitter Nicola Pero
Date Dec. 6, 2010, 10:13 p.m.
Message ID <1291673615.35328580@192.168.4.58>
Download mbox | patch
Permalink /patch/74468/
State New
Headers show

Comments

Nicola Pero - Dec. 6, 2010, 10:13 p.m.
This patch removes a reference to the objc_volatilized attribute, which is no longer used.  I must have missed this reference when preparing the previous patches.  I tested this patch on Apple, all is good.

Ok to commit ?

Thanks
Mike Stump - Dec. 7, 2010, 12:02 a.m.
On Dec 6, 2010, at 2:13 PM, Nicola Pero wrote:
> This patch removes a reference to the objc_volatilized attribute, which is no longer used.  I must have missed this reference when preparing the previous patches.  I tested this patch on Apple, all is good.
> 
> Ok to commit ?

Ok.

Patch

Index: ChangeLog
===================================================================
--- ChangeLog   (revision 167518)
+++ ChangeLog   (working copy)
@@ -1,5 +1,10 @@ 
 2010-12-06  Nicola Pero  <nicola.pero@meta-innovation.com>
 
+       * c-parser.c (c_parser_typeof_specifier): Removed special
+       treatment of objc_volatilized attribute for Objective-C.
+
+2010-12-06  Nicola Pero  <nicola.pero@meta-innovation.com>
+
        * c-parser.c (c_parser_for_statement): Use c_fully_fold() instead
        of c_process_expr_stmt() for the iterating and collection
        expressions of an Objective-C fast enumeration loop.
Index: c-parser.c
===================================================================
--- c-parser.c  (revision 167518)
+++ c-parser.c  (working copy)
@@ -2667,11 +2667,6 @@  c_parser_typeof_specifier (c_parser *par
        error_at (here, "%<typeof%> applied to a bit-field");
       mark_exp_read (expr.value);
       ret.spec = TREE_TYPE (expr.value);
-      if (c_dialect_objc() 
-         && ret.spec != error_mark_node
-         && lookup_attribute ("objc_volatilized", TYPE_ATTRIBUTES (ret.spec)))
-       ret.spec = build_qualified_type
-         (ret.spec, (TYPE_QUALS (ret.spec) & ~TYPE_QUAL_VOLATILE));
       was_vm = variably_modified_type_p (ret.spec, NULL_TREE);
       /* This is returned with the type so that when the type is
         evaluated, this can be evaluated.  */