void init_reswords (void) { unsigned int i; tree id; int mask = 0; if (cxx_dialect != cxx0x) mask |= D_CXX0X; if (flag_no_asm) mask |= D_ASM | D_EXT; if (flag_no_gnu_keywords) mask |= D_EXT; /* The Objective-C keywords are all context-dependent. */ mask |= D_OBJC; ridpointers = ggc_alloc_cleared_vec_tree ((int) RID_MAX); for (i = 0; i < num_c_common_reswords; i++) { if (c_common_reswords[i].disable & D_CONLY) continue; id = get_identifier (c_common_reswords[i].word); C_SET_RID_CODE (id, c_common_reswords[i].rid); ridpointers [(int) c_common_reswords[i].rid] = id; if (! (c_common_reswords[i].disable & mask)) C_IS_RESERVED_WORD (id) = 1; } }
void init_reswords (void) { unsigned int i; tree id; int mask = 0; if (cxx_dialect < cxx11) mask |= D_CXX11; if (!flag_concepts) mask |= D_CXX_CONCEPTS; if (!flag_tm) mask |= D_TRANSMEM; if (flag_no_asm) mask |= D_ASM | D_EXT; if (flag_no_gnu_keywords) mask |= D_EXT; /* The Objective-C keywords are all context-dependent. */ mask |= D_OBJC; ridpointers = ggc_cleared_vec_alloc<tree> ((int) RID_MAX); for (i = 0; i < num_c_common_reswords; i++) { if (c_common_reswords[i].disable & D_CONLY) continue; id = get_identifier (c_common_reswords[i].word); C_SET_RID_CODE (id, c_common_reswords[i].rid); ridpointers [(int) c_common_reswords[i].rid] = id; if (! (c_common_reswords[i].disable & mask)) C_IS_RESERVED_WORD (id) = 1; } for (i = 0; i < NUM_INT_N_ENTS; i++) { char name[50]; sprintf (name, "__int%d", int_n_data[i].bitsize); id = get_identifier (name); C_SET_RID_CODE (id, RID_FIRST_INT_N + i); C_IS_RESERVED_WORD (id) = 1; } }
void init_reswords (void) { unsigned int i; tree id; int mask = ((flag_no_asm ? D_ASM : 0) | D_OBJC | (flag_no_gnu_keywords ? D_EXT : 0)); ridpointers = GGC_CNEWVEC (tree, (int) RID_MAX); for (i = 0; i < ARRAY_SIZE (reswords); i++) { id = get_identifier (reswords[i].word); C_RID_CODE (id) = reswords[i].rid; ridpointers [(int) reswords[i].rid] = id; if (! (reswords[i].disable & mask)) C_IS_RESERVED_WORD (id) = 1; } }
void init_reswords (void) { unsigned int i; tree id; int mask = ((flag_no_asm ? D_ASM : 0) | D_OBJC | (flag_no_gnu_keywords ? D_EXT : 0)); ridpointers = GGC_CNEWVEC (tree, (int) RID_MAX); for (i = 0; i < ARRAY_SIZE (reswords); i++) { id = get_identifier (reswords[i].word); C_RID_CODE (id) = reswords[i].rid; ridpointers [(int) reswords[i].rid] = id; if (! (reswords[i].disable & mask)) C_IS_RESERVED_WORD (id) = 1; } /* APPLE LOCAL begin private extern Radar 2872481 --ilr */ /* For C++ there is always a -D__private_extern__=extern on the command line. However, if -fpreprocessed was specified then macros are not expanded so the -D is meaningless. But this replacement is required for C++. There for we have to "pretend" that '__private_extern__' is 'extern' and we can do this simply by making the rid code for '__private_extern__' be the same as for extern. Note, we probably could always do this here since '__private_extern__' is always to be treated like 'extern' for c++. But we'll be conservative and only do it when -fpreprocessed is specified and depend on the macro substitution in all other cases. */ if (flag_preprocessed) { id = get_identifier ("__private_extern__"); C_RID_CODE (id) = RID_EXTERN; } /* APPLE LOCAL end private extern Radar 2872481 --ilr */ }