Lines Matching refs:ctype

51 	if (sym->ctype.modifiers & MOD_INLINE) {  in access_symbol()
101 if (sym->ctype.alignment > info->max_align) in lay_out_union()
102 info->max_align = sym->ctype.alignment; in lay_out_union()
114 sym = sym->ctype.base_type; in bitfield_base_size()
116 sym = sym->ctype.base_type; in bitfield_base_size()
132 if (sym->ctype.alignment > info->max_align) in lay_out_struct()
133 info->max_align = sym->ctype.alignment; in lay_out_struct()
148 align_bit_mask = bytes_to_bits(sym->ctype.alignment) - 1; in lay_out_struct()
165 sym->ctype.base_type->bit_offset = bit_offset; in lay_out_struct()
198 if (!sym->ctype.alignment) in examine_struct_union_type()
199 sym->ctype.alignment = info.max_align; in examine_struct_union_type()
202 bit_align = bytes_to_bits(sym->ctype.alignment)-1; in examine_struct_union_type()
214 base_type = examine_symbol_type(sym->ctype.base_type); in examine_base_type()
217 combine_address_space(sym->pos, &sym->ctype.as, base_type->ctype.as); in examine_base_type()
218 sym->ctype.modifiers |= base_type->ctype.modifiers & MOD_PTRINHERIT; in examine_base_type()
219 concat_ptr_list((struct ptr_list *)base_type->ctype.contexts, in examine_base_type()
220 (struct ptr_list **)&sym->ctype.contexts); in examine_base_type()
222 base_type = base_type->ctype.base_type; in examine_base_type()
223 sym->ctype.base_type = base_type; in examine_base_type()
246 alignment = base_type->ctype.alignment; in examine_array_type()
247 if (!sym->ctype.alignment) in examine_array_type()
248 sym->ctype.alignment = alignment; in examine_array_type()
264 alignment = base_type->ctype.alignment; in examine_bitfield_type()
265 if (!sym->ctype.alignment) in examine_bitfield_type()
266 sym->ctype.alignment = alignment; in examine_bitfield_type()
267 modifiers = base_type->ctype.modifiers; in examine_bitfield_type()
272 sym->ctype.modifiers |= modifiers & MOD_SIGNEDNESS; in examine_bitfield_type()
281 combine_address_space(sym->pos, &sym->ctype.as, base_type->ctype.as); in merge_type()
282 sym->ctype.modifiers |= (base_type->ctype.modifiers & ~MOD_STORAGE); in merge_type()
283 concat_ptr_list((struct ptr_list *)base_type->ctype.contexts, in merge_type()
284 (struct ptr_list **)&sym->ctype.contexts); in merge_type()
285 sym->ctype.base_type = base_type->ctype.base_type; in merge_type()
286 if (sym->ctype.base_type->type == SYM_NODE) in merge_type()
287 merge_type(sym, sym->ctype.base_type); in merge_type()
302 if (t->ctype.base_type == &int_type && t->ctype.modifiers & MOD_CHAR) in count_array_initializer()
370 struct symbol *arr_ori = node->ctype.base_type; in implicit_array_size()
372 struct symbol *elem_type = arr_ori->ctype.base_type; in implicit_array_size()
380 node->ctype.base_type = arr_new; in implicit_array_size()
398 alignment = base_type->ctype.alignment; in examine_node_type()
401 sym->ctype.modifiers |= (MOD_SIGNEDNESS & base_type->ctype.modifiers); in examine_node_type()
403 if (!sym->ctype.alignment) in examine_node_type()
404 sym->ctype.alignment = alignment; in examine_node_type()
410 struct symbol *node_type = base_type->ctype.base_type; in examine_node_type()
426 sym->ctype.modifiers |= (base_type->ctype.modifiers & MOD_SIGNEDNESS); in examine_enum_type()
430 sym->ctype.alignment = enum_alignment; in examine_enum_type()
431 if (base_type->ctype.alignment > sym->ctype.alignment) in examine_enum_type()
432 sym->ctype.alignment = base_type->ctype.alignment; in examine_enum_type()
446 if (!sym->ctype.alignment) in examine_pointer_type()
447 sym->ctype.alignment = pointer_alignment; in examine_pointer_type()
492 mod |= base->ctype.modifiers & MOD_TYPEOF; in examine_symbol_type()
493 base = base->ctype.base_type; in examine_symbol_type()
496 sym->ctype.modifiers = mod; in examine_symbol_type()
497 sym->ctype.base_type = base; in examine_symbol_type()
501 sym->ctype.base_type = &bad_ctype; in examine_symbol_type()
566 new->ctype.base_type = type; in create_fouled()
576 type = type->ctype.base_type; in befoul()
605 if (sym->ctype.modifiers & MOD_EXTERN) { in check_declaration()
606 if ((next->ctype.modifiers & (MOD_TOPLEVEL|MOD_STATIC)) == MOD_TOPLEVEL) { in check_declaration()
646 if (sym->ctype.modifiers & MOD_STATIC || in bind_symbol()
651 sym->ctype.modifiers |= mod; in bind_symbol()
809 const struct ctype_declare *ctype; in init_ctype() local
811 for (ctype = ctype_declaration ; ctype->ptr; ctype++) { in init_ctype()
812 struct symbol *sym = ctype->ptr; in init_ctype()
813 unsigned long bit_size = ctype->bit_size ? *ctype->bit_size : -1; in init_ctype()
814 unsigned long maxalign = ctype->maxalign ? *ctype->maxalign : 0; in init_ctype()
819 sym->type = ctype->type; in init_ctype()
821 sym->ctype.alignment = alignment; in init_ctype()
822 sym->ctype.base_type = ctype->base_type; in init_ctype()
823 sym->ctype.modifiers = ctype->modifiers; in init_ctype()
828 char_ctype.ctype.modifiers |= MOD_UNSIGNED; in init_ctype()
829 char_ctype.ctype.modifiers &= ~MOD_SIGNED; in init_ctype()