aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index b718387..8653d8f 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -566,25 +566,7 @@ objc_mark_locals_volatile (void *enclosing_blk)
scope = scope->outer)
{
for (b = scope->bindings; b; b = b->prev)
- {
- tree decl = b->decl;
-
- /* Do not mess with variables that are 'static' or (already)
- 'volatile'. */
- if (!TREE_THIS_VOLATILE (decl) && !TREE_STATIC (decl)
- && (TREE_CODE (decl) == VAR_DECL
- || TREE_CODE (decl) == PARM_DECL))
- {
- TREE_TYPE (decl)
- = build_qualified_type (TREE_TYPE (decl),
- (TYPE_QUALS (TREE_TYPE (decl))
- | TYPE_QUAL_VOLATILE));
- TREE_THIS_VOLATILE (decl) = 1;
- TREE_SIDE_EFFECTS (decl) = 1;
- DECL_REGISTER (decl) = 0;
- C_DECL_REGISTER (decl) = 0;
- }
- }
+ objc_volatilize_decl (b->decl);
/* Do not climb up past the current function. */
if (scope->function_body)