Lines Matching refs:base_type

114 		sym = sym->ctype.base_type;  in bitfield_base_size()
116 sym = sym->ctype.base_type; in bitfield_base_size()
165 sym->ctype.base_type->bit_offset = bit_offset; in lay_out_struct()
211 struct symbol *base_type; in examine_base_type() local
214 base_type = examine_symbol_type(sym->ctype.base_type); in examine_base_type()
215 if (!base_type || base_type->type == SYM_PTR) in examine_base_type()
216 return 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()
221 if (base_type->type == SYM_NODE) { 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()
225 return base_type; in examine_base_type()
230 struct symbol *base_type = examine_base_type(sym); in examine_array_type() local
234 if (!base_type) in examine_array_type()
238 bit_size = array_element_offset(base_type->bit_size, in examine_array_type()
246 alignment = base_type->ctype.alignment; in examine_array_type()
255 struct symbol *base_type = examine_base_type(sym); in examine_bitfield_type() local
258 if (!base_type) in examine_bitfield_type()
260 bit_size = base_type->bit_size; in examine_bitfield_type()
264 alignment = base_type->ctype.alignment; in examine_bitfield_type()
267 modifiers = base_type->ctype.modifiers; in examine_bitfield_type()
279 void merge_type(struct symbol *sym, struct symbol *base_type) in merge_type() argument
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()
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()
387 struct symbol *base_type = examine_base_type(sym); in examine_node_type() local
394 if (!base_type) in examine_node_type()
397 bit_size = base_type->bit_size; in examine_node_type()
398 alignment = base_type->ctype.alignment; in examine_node_type()
401 sym->ctype.modifiers |= (MOD_SIGNEDNESS & base_type->ctype.modifiers); in examine_node_type()
407 if (bit_size < 0 && base_type->type == SYM_ARRAY) { in examine_node_type()
410 struct symbol *node_type = base_type->ctype.base_type; in examine_node_type()
424 struct symbol *base_type = examine_base_type(sym); in examine_enum_type() local
426 sym->ctype.modifiers |= (base_type->ctype.modifiers & MOD_SIGNEDNESS); in examine_enum_type()
428 if (base_type->bit_size > sym->bit_size) in examine_enum_type()
429 sym->bit_size = base_type->bit_size; 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()
493 base = base->ctype.base_type; 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()
748 struct symbol *base_type; member
822 sym->ctype.base_type = ctype->base_type; in init_ctype()