Lines Matching refs:current_scope
204 #define B_IN_CURRENT_SCOPE(b) ((b)->depth == current_scope->depth)
487 static GTY(()) struct c_scope *current_scope; variable
893 p->scope = current_scope; in set_spot_bindings()
894 p->bindings_in_scope = current_scope->bindings; in set_spot_bindings()
932 return current_scope; in objc_get_current_scope()
944 for (scope = current_scope; in objc_mark_locals_volatile()
962 return current_scope == file_scope; in global_bindings_p()
973 return (current_scope->parm_flag && !DECL_SAVED_TREE (current_function_decl)); in old_style_parameter_scope()
987 current_scope->float_const_decimal64 = true; in set_float_const_decimal64()
995 current_scope->float_const_decimal64 = false; in clear_float_const_decimal64()
1003 return current_scope->float_const_decimal64; in float_const_decimal64_p()
1011 current_scope->parm_flag = true; in declare_parm_level()
1029 current_scope->parm_flag = false; in push_scope()
1030 current_scope->function_body = true; in push_scope()
1031 current_scope->keep = true; in push_scope()
1032 current_scope->outer_function = current_function_scope; in push_scope()
1033 current_function_scope = current_scope; in push_scope()
1039 if (current_scope->outer) in push_scope()
1040 current_scope->float_const_decimal64 in push_scope()
1041 = current_scope->outer->float_const_decimal64; in push_scope()
1043 current_scope->float_const_decimal64 = false; in push_scope()
1057 if (current_scope) in push_scope()
1058 scope->float_const_decimal64 = current_scope->float_const_decimal64; in push_scope()
1063 scope->outer = current_scope; in push_scope()
1064 scope->depth = current_scope ? (current_scope->depth + 1) : 0; in push_scope()
1068 if (current_scope && scope->depth == 0) in push_scope()
1074 current_scope = scope; in push_scope()
1163 struct c_scope *scope = current_scope; in pop_scope()
1401 current_scope = scope->outer; in pop_scope()
1421 file_scope = current_scope; in push_file_scope()
1435 while (current_scope != file_scope) in pop_file_scope()
1469 for (scope = current_scope; scope != NULL; scope = scope->outer) in c_bindings_start_stmt_expr()
1502 for (scope = current_scope; scope != NULL; scope = scope->outer) in c_bindings_end_stmt_expr()
1557 bind (name, type, current_scope, /*invisible=*/false, /*nested=*/false, loc); in pushtag()
1581 || (current_scope == file_scope && B_IN_EXTERNAL_SCOPE (b))) in pushtag()
2514 for (here = ¤t_scope->bindings; *here; here = &(*here)->prev) in merge_decls()
2522 b->prev = current_scope->bindings; in merge_decls()
2523 current_scope->bindings = b; in merge_decls()
3074 struct c_scope *scope = current_scope; in pushdecl()
3662 bind (functionid, decl, current_scope, in implicitly_declare()
3722 scope = current_scope; in undeclared_variable()
3750 scope = current_function_scope ? current_function_scope : current_scope; in undeclared_variable()
3919 bind_label (name, label, current_scope, label_vars); in declare_label()
4079 for (scope = current_scope; in c_check_switch_jump_warnings()
4149 || (current_scope == file_scope && B_IN_EXTERNAL_SCOPE (b))) in lookup_tag()
4274 for (c_scope *scope = current_scope; scope; scope = scope->outer) in lookup_name_fuzzy()
4408 external_scope = current_scope; in c_init_decl_processing()
4717 if (current_scope == file_scope && declspecs->storage_class == csc_auto) in shadow_tag_warned()
4723 if (current_scope == file_scope && declspecs->storage_class == csc_register) in shadow_tag_warned()
4868 if (!current_scope->parm_flag) in build_array_declarator()
4876 current_scope->had_vla_unspec = true; in build_array_declarator()
5083 if (current_scope == file_scope) in start_decl()
5126 if (declspecs->storage_class == csc_auto && current_scope != file_scope) in start_decl()
5163 && current_scope != file_scope in start_decl()
5271 && !(TREE_PUBLIC (decl) && current_scope != file_scope)) in finish_decl()
5629 if (pedantic && !current_scope->warned_forward_parm_decls) in mark_forward_parm_decls()
5633 current_scope->warned_forward_parm_decls = true; in mark_forward_parm_decls()
5636 for (b = current_scope->bindings; b; b = b->prev) in mark_forward_parm_decls()
5667 TREE_STATIC (decl) = (current_scope == file_scope); in build_compound_literal()
5720 else if (current_function_decl && !current_scope->parm_flag) in build_compound_literal()
6063 if (decl_context == NORMAL && !funcdef_flag && current_scope->parm_flag) in grokdeclarator()
6070 && current_scope == file_scope in grokdeclarator()
6177 (current_scope == file_scope) ? 0 : OPT_Wpedantic, in grokdeclarator()
6227 if (current_scope == file_scope) in grokdeclarator()
6238 else if (current_scope == file_scope) in grokdeclarator()
6468 && current_scope == file_scope) in grokdeclarator()
6478 && current_scope == file_scope) in grokdeclarator()
7062 || (current_scope == file_scope && B_IN_EXTERNAL_SCOPE (b))) in grokdeclarator()
7120 || (current_scope == file_scope in grokdeclarator()
7272 else if (current_scope != file_scope) in grokdeclarator()
7311 if (storage_class == csc_auto && current_scope != file_scope) in grokdeclarator()
7377 if (extern_ref && current_scope != file_scope) in grokdeclarator()
7409 if (current_scope == file_scope) in grokdeclarator()
7659 struct c_binding *b = current_scope->bindings; in get_parm_info()
7669 arg_info->had_vla_unspec = current_scope->had_vla_unspec; in get_parm_info()
7673 current_scope->bindings = 0; in get_parm_info()
8394 bool toplevel = file_scope == current_scope; in finish_struct()
8825 bool toplevel = (file_scope == current_scope); in finish_enum()
9196 old_decl = lookup_name_in_scope (DECL_NAME (decl1), current_scope); in start_function()
9309 if (current_scope == file_scope) in start_function()
9360 if (current_scope->bindings) in store_parm_decls_newstyle()
9387 bind (DECL_NAME (decl), decl, current_scope, in store_parm_decls_newstyle()
9405 bind (DECL_NAME (decl), decl, current_scope, in store_parm_decls_newstyle()
9414 bind (tag->id, tag->type, current_scope, in store_parm_decls_newstyle()
9440 if (current_scope->had_vla_unspec) in store_parm_decls_oldstyle()
9527 for (b = current_scope->bindings; b; b = b->prev) in store_parm_decls_oldstyle()
9829 bind (DECL_NAME (p), p, current_scope, in temp_store_parm_decls()
9842 struct c_binding *b = current_scope->bindings; in temp_pop_parm_decls()
9843 current_scope->bindings = NULL; in temp_pop_parm_decls()
10072 for (b = current_scope->bindings; b; b = b->prev) in check_for_loop_decls()
11905 gcc_assert (!current_scope); in c_parse_final_cleanups()
12003 bind (reduction_id, decl, current_scope, true, false, BUILTINS_LOCATION); in c_omp_reduction_decl()