| /netbsd/src/usr.bin/error/ |
| D | error.h | 230 #define DECL_STR(sym, num, str) static char sym##_##num[] = str argument 232 #define DECL_S1(sym, s, ...) __VA_ARGS__ DECL_STR(sym, 0, s) argument 233 #define DECL_S2(sym, s, ...) DECL_STR(sym, 1, s); DECL_S1(sym, __VA_ARGS__) argument 234 #define DECL_S3(sym, s, ...) DECL_STR(sym, 2, s); DECL_S2(sym, __VA_ARGS__) argument 235 #define DECL_S4(sym, s, ...) DECL_STR(sym, 3, s); DECL_S3(sym, __VA_ARGS__) argument 236 #define DECL_S5(sym, s, ...) DECL_STR(sym, 4, s); DECL_S4(sym, __VA_ARGS__) argument 237 #define DECL_S6(sym, s, ...) DECL_STR(sym, 5, s); DECL_S5(sym, __VA_ARGS__) argument 239 #define USE_S1(sym) sym##_0 argument 240 #define USE_S2(sym) sym##_1, USE_S1(sym) argument 241 #define USE_S3(sym) sym##_2, USE_S2(sym) argument [all …]
|
| /netbsd/src/external/gpl3/binutils/dist/gprof/ |
| D | sym_ids.c | 37 Sym sym; member 118 parse_spec (char *spec, Sym *sym) in parse_spec() argument 122 sym_init (sym); in parse_spec() 131 sym->file = source_file_lookup_name (spec); in parse_spec() 133 if (!sym->file) in parse_spec() 134 sym->file = &non_existent_file; in parse_spec() 142 sym->line_num = atoi (spec); in parse_spec() 144 sym->name = spec; in parse_spec() 152 sym->file = source_file_lookup_name (spec); in parse_spec() 154 if (!sym->file) in parse_spec() [all …]
|
| D | basic_blocks.c | 124 Sym *sym; in bb_read_rec() local 166 sym = sym_lookup (&symtab, addr); in bb_read_rec() 168 if (sym) in bb_read_rec() 174 (unsigned long) addr, (unsigned long) sym->addr, in bb_read_rec() 175 sym->name, sym->line_num, (unsigned long) ncalls)); in bb_read_rec() 179 if (! sym->bb_addr[i] || sym->bb_addr[i] == addr) in bb_read_rec() 181 sym->bb_addr[i] = addr; in bb_read_rec() 182 sym->bb_calls[i] += ncalls; in bb_read_rec() 211 Sym *sym; in bb_write_blocks() local 215 for (sym = symtab.base; sym < symtab.limit; ++sym) in bb_write_blocks() [all …]
|
| D | symtab.c | 37 sym_init (Sym *sym) in sym_init() argument 39 memset (sym, 0, sizeof (*sym)); in sym_init() 43 sym->hist.time = 0.0; in sym_init() 44 sym->cg.child_time = 0.0; in sym_init() 45 sym->cg.prop.fract = 0.0; in sym_init() 46 sym->cg.prop.self = 0.0; in sym_init() 47 sym->cg.prop.child = 0.0; in sym_init() 181 Sym *sym; in dbg_sym_lookup() local 186 sym = sym_tab->base; in dbg_sym_lookup() 194 (unsigned long) sym[mid].addr, in dbg_sym_lookup() [all …]
|
| /netbsd/src/sys/sys/ |
| D | cdefs_aout.h | 21 #define __indr_reference(sym,alias) /* nada, since we do weak refs */ argument 25 #define __strong_alias(alias,sym) \ argument 27 _C_LABEL_STRING(#alias) " = " _C_LABEL_STRING(#sym)); 28 #define __weak_alias(alias,sym) \ argument 30 _C_LABEL_STRING(#alias) " = " _C_LABEL_STRING(#sym)); 33 #define __weak_extern(sym) \ argument 34 __asm(".weak " _C_LABEL_STRING(#sym)); 37 #define __weak_reference(sym) __attribute__((__weakref__)) argument 39 #define __weak_reference(sym) ; __asm(".weak " _C_LABEL_STRING(#sym)) argument 42 #define __warn_references(sym,msg) \ argument [all …]
|
| D | cdefs_elf.h | 52 #define __indr_reference(sym,alias) /* nada, since we do weak refs */ argument 55 #define __strong_alias(alias,sym) \ argument 57 _C_LABEL_STRING(#alias) " = " _C_LABEL_STRING(#sym)); 59 #define __weak_alias(alias,sym) \ argument 61 _C_LABEL_STRING(#alias) " = " _C_LABEL_STRING(#sym)); 64 #define __weak_extern(sym) \ argument 65 __asm(".weak " _C_LABEL_STRING(#sym)); 74 #define __weak_reference(sym) __attribute__((__weakref__(#sym))) argument 76 #define __weak_reference(sym) ; __asm(".weak " _C_LABEL_STRING(#sym)) argument 85 #define __warn_references(sym,msg) \ argument [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/gdb/ |
| D | d-namespace.c | 82 struct block_symbol sym; in d_lookup_symbol() local 84 sym = lookup_symbol_in_static_block (name, block, domain); in d_lookup_symbol() 85 if (sym.symbol != NULL) in d_lookup_symbol() 86 return sym; in d_lookup_symbol() 98 sym.symbol in d_lookup_symbol() 100 sym.block = NULL; in d_lookup_symbol() 101 if (sym.symbol != NULL) in d_lookup_symbol() 102 return sym; in d_lookup_symbol() 105 sym = lookup_global_symbol (name, block, domain); in d_lookup_symbol() 107 if (sym.symbol != NULL) in d_lookup_symbol() [all …]
|
| D | cp-namespace.c | 134 struct block_symbol sym; in cp_basic_lookup_symbol() local 136 sym = lookup_symbol_in_static_block (name, block, domain); in cp_basic_lookup_symbol() 137 if (sym.symbol != NULL) in cp_basic_lookup_symbol() 138 return sym; in cp_basic_lookup_symbol() 150 sym.symbol = lookup_symbol_in_block (name, in cp_basic_lookup_symbol() 153 sym.block = global_block; in cp_basic_lookup_symbol() 157 sym = lookup_global_symbol (name, block, domain); in cp_basic_lookup_symbol() 159 return sym; in cp_basic_lookup_symbol() 177 struct block_symbol sym; in cp_lookup_bare_symbol() local 185 sym = lookup_symbol_in_static_block (name, block, domain); in cp_lookup_bare_symbol() [all …]
|
| D | stabsread.c | 175 reg_value_complaint (int regnum, int num_regs, const char *sym) in reg_value_complaint() argument 178 regnum, num_regs - 1, sym); in reg_value_complaint() 391 struct symbol *sym; in patch_block_stabs() local 408 sym = find_symbol_in_list (symbols, name, pp - name); in patch_block_stabs() 409 if (!sym) in patch_block_stabs() 422 sym = new (&objfile->objfile_obstack) symbol; in patch_block_stabs() 423 sym->set_domain (VAR_DOMAIN); in patch_block_stabs() 424 sym->set_aclass_index (LOC_OPTIMIZED_OUT); in patch_block_stabs() 425 sym->set_linkage_name in patch_block_stabs() 433 sym->set_type in patch_block_stabs() [all …]
|
| D | machoread.c | 89 struct objfile *objfile, const asymbol *sym) in macho_symtab_add_minsym() argument 91 if (sym->name == NULL || *sym->name == '\0') in macho_symtab_add_minsym() 98 if (sym->flags & (BSF_GLOBAL | BSF_LOCAL | BSF_WEAK)) in macho_symtab_add_minsym() 104 symaddr = unrelocated_addr (sym->value + sym->section->vma); in macho_symtab_add_minsym() 106 if (sym->section == bfd_abs_section_ptr) in macho_symtab_add_minsym() 108 else if (sym->section->flags & SEC_CODE) in macho_symtab_add_minsym() 110 if (sym->flags & (BSF_GLOBAL | BSF_WEAK)) in macho_symtab_add_minsym() 115 else if (sym->section->flags & SEC_ALLOC) in macho_symtab_add_minsym() 117 if (sym->flags & (BSF_GLOBAL | BSF_WEAK)) in macho_symtab_add_minsym() 119 if (sym->section->flags & SEC_LOAD) in macho_symtab_add_minsym() [all …]
|
| D | dictionary.c | 113 void (*add_symbol) (struct dictionary *dict, struct symbol *sym); 229 struct symbol *sym); 257 struct symbol *sym); 283 struct symbol *sym); 341 struct symbol *sym); 368 for (const auto &sym : symbol_list) in dict_create_hashed() local 369 insert_symbol_hashed (retval, sym); in dict_create_hashed() 410 for (const auto &sym : symbol_list) in dict_create_linear() local 411 syms[idx--] = sym; in dict_create_linear() 447 dict_add_symbol (struct dictionary *dict, struct symbol *sym) in dict_add_symbol() argument [all …]
|
| D | coffread.c | 1018 struct symbol *sym; in coff_symtab_read() local 1020 sym = process_coff_symbol in coff_symtab_read() 1022 sym->set_value_longest (tmpaddr + offset); in coff_symtab_read() 1023 sym->set_section_index (sec); in coff_symtab_read() 1184 struct internal_syment *sym, in read_one_sym() argument 1194 bfd_coff_swap_sym_in (symfile_bfd, temp_sym, (char *) sym); in read_one_sym() 1195 cs->c_naux = sym->n_numaux & 0xff; in read_one_sym() 1202 sym->n_type, sym->n_sclass, in read_one_sym() 1214 cs->c_name = getsymname (sym); in read_one_sym() 1215 cs->c_value = sym->n_value; in read_one_sym() [all …]
|
| /netbsd/src/external/gpl3/binutils/dist/gas/config/ |
| D | obj-aout.c | 28 obj_aout_frob_symbol (symbolS *sym, int *punt ATTRIBUTE_UNUSED) in obj_aout_frob_symbol() argument 34 flags = symbol_get_bfdsym (sym)->flags; in obj_aout_frob_symbol() 35 type = aout_symbol (symbol_get_bfdsym (sym))->type; in obj_aout_frob_symbol() 36 sec = S_GET_SEGMENT (sym); in obj_aout_frob_symbol() 45 S_SET_SEGMENT (sym, sec); in obj_aout_frob_symbol() 68 symbol_get_bfdsym (sym)->flags |= BSF_DEBUGGING; in obj_aout_frob_symbol() 80 if (S_IS_COMMON (sym)) in obj_aout_frob_symbol() 82 S_GET_NAME (sym)); in obj_aout_frob_symbol() 84 else if (! S_IS_DEFINED (sym)) in obj_aout_frob_symbol() 86 S_GET_NAME (sym)); in obj_aout_frob_symbol() [all …]
|
| D | tc-hppa.h | 96 #define tc_frob_label(sym) pa_define_label (sym) argument 138 #define tc_frob_symbol(sym,punt) \ argument 139 if ((S_GET_SEGMENT (sym) == bfd_und_section_ptr && ! symbol_used_p (sym)) \ 140 || (S_GET_SEGMENT (sym) == bfd_abs_section_ptr \ 141 && ! S_IS_EXTERNAL (sym))) \ 170 #define md_elf_symbol_type(name, sym, elf) \ argument 180 #define md_elf_symbol_type_change(sym, elf, type) \ argument 186 #define tc_frob_symbol(sym,punt) \ argument 188 if ((S_GET_SEGMENT (sym) == bfd_und_section_ptr \ 189 && ! symbol_used_p (sym) \ [all …]
|
| D | tc-ppc.c | 900 symbolS *sym = symbol_find_or_make (name); in ppc_parse_name() local 906 && !S_FORCE_RELOC (sym, 0)) in ppc_parse_name() 908 segT segment = S_GET_SEGMENT (sym); in ppc_parse_name() 911 resolve_symbol_value (sym); in ppc_parse_name() 912 *exp = *symbol_get_value_expression (sym); in ppc_parse_name() 919 exp->X_add_symbol = sym; in ppc_parse_name() 2488 symbolS *sym; in ppc_elf_localentry() local 2513 sym = symbol_find_or_make (name); in ppc_elf_localentry() 2530 "is not a valid power of 2"), S_GET_NAME (sym)); in ppc_elf_localentry() 2536 bfdsym = symbol_get_bfdsym (sym); in ppc_elf_localentry() [all …]
|
| /netbsd/src/usr.bin/xlint/lint1/ |
| D | decl.c | 408 set_first_typedef(type_t *tp, sym_t *sym) in set_first_typedef() argument 413 tp->u.sou->sou_first_typedef = sym; in set_first_typedef() 415 tp->u.enumer->en_first_typedef = sym; in set_first_typedef() 874 check_type(sym_t *sym) in check_type() argument 877 type_t **tpp = &sym->s_type; in check_type() 887 !(to == NO_TSPEC && sym->s_osdef)) { in check_type() 930 if (sym->s_scl != ABSTRACT) { in check_type() 931 lint_assert(sym->s_name != unnamed); in check_type() 933 error(61, sym->s_name); in check_type() 938 } else if (sym->s_scl != TYPEDEF) { in check_type() [all …]
|
| D | lex.c | 234 symtab_add(sym_t *sym) in symtab_add() argument 236 unsigned int h = hash(sym->s_name); in symtab_add() 237 if ((sym->s_symtab_next = symtab[h]) != NULL) in symtab_add() 238 symtab[h]->s_symtab_ref = &sym->s_symtab_next; in symtab_add() 239 sym->s_symtab_ref = &symtab[h]; in symtab_add() 240 symtab[h] = sym; in symtab_add() 248 for (sym_t *sym = symtab[h]; sym != NULL; sym = sym->s_symtab_next) { in symtab_search() local 249 if (strcmp(sym->s_name, name) != 0) in symtab_search() 251 if (sym->s_keyword != NULL || in symtab_search() 252 sym->s_kind == sym_kind || in symtab_search() [all …]
|
| D | debug.c | 209 tn->u.sym->s_name, in debug_node() 210 scl_name(tn->u.sym->s_scl)); in debug_node() 402 debug_sym(const char *prefix, const sym_t *sym, const char *suffix) in debug_sym() argument 405 debug_printf("%s%s", prefix, sym->s_name); in debug_sym() 406 if (sym->s_type != NULL) in debug_sym() 407 debug_printf(" type='%s'", type_name(sym->s_type)); in debug_sym() 408 if (sym->s_rename != NULL) in debug_sym() 409 debug_printf(" rename=%s", sym->s_rename); in debug_sym() 410 debug_printf(" %s", symbol_kind_name(sym->s_kind)); in debug_sym() 411 debug_word(sym->s_keyword != NULL, "keyword"); in debug_sym() [all …]
|
| /netbsd/src/usr.sbin/tprof/ |
| D | ksyms.c | 46 static struct sym **syms = NULL; 52 const struct sym *s1 = *(const struct sym * const *)p1; in compare_value() 53 const struct sym *s2 = *(const struct sym * const *)p2; in compare_value() 72 struct sym ** 115 struct sym *sym; in ksymload() local 124 sym = emalloc(sizeof(*sym)); in ksymload() 125 sym->name = estrdup(elf_strptr(e, sh->sh_link, st->st_name)); in ksymload() 126 sym->value = (uint64_t)st->st_value; in ksymload() 127 sym->size = st->st_size; in ksymload() 130 syms[nsyms - 1] = sym; in ksymload() [all …]
|
| /netbsd/src/external/gpl3/binutils/dist/gold/ |
| D | symtab.cc | 118 const elfcpp::Sym<size, big_endian>& sym, in init_base_object() argument 121 this->init_fields(name, version, sym.get_st_type(), sym.get_st_bind(), in init_base_object() 122 sym.get_st_visibility(), sym.get_st_nonvis()); in init_base_object() 220 const elfcpp::Sym<size, big_endian>& sym, in init_object() argument 223 this->init_base_object(name, version, object, sym, st_shndx, is_ordinary); in init_object() 224 this->value_ = sym.get_st_value(); in init_object() 225 this->symsize_ = sym.get_st_size(); in init_object() 610 Symbol* sym = this->lookup(name); in gc_mark_undef_symbols() local 611 gold_assert(sym != NULL); in gc_mark_undef_symbols() 612 if (sym->source() == Symbol::FROM_OBJECT in gc_mark_undef_symbols() [all …]
|
| D | copy-relocs.cc | 41 Sized_symbol<size>* sym, in copy_reloc() argument 50 if (this->need_copy_reloc(sym, object, shndx)) in copy_reloc() 51 this->make_copy_reloc(symtab, layout, sym, object, reloc_section); in copy_reloc() 56 this->save(sym, object, shndx, output_section, in copy_reloc() 67 Sized_symbol<size>* sym, in need_copy_reloc() argument 74 if (sym->symsize() == 0) in need_copy_reloc() 93 Sized_symbol<size>* sym, in emit_copy_reloc() argument 99 symtab->define_with_copy_reloc(sym, posd, offset); in emit_copy_reloc() 102 reloc_section->add_global_generic(sym, this->copy_reloc_type_, posd, in emit_copy_reloc() 113 Sized_symbol<size>* sym, in make_copy_reloc() argument [all …]
|
| /netbsd/src/usr.bin/xlint/lint2/ |
| D | emit2.c | 112 outdef(hte_t *hte, sym_t *sym) in outdef() argument 122 if (sym->s_check_only_first_args) { in outdef() 124 outint(sym->s_check_num_args); in outdef() 126 if (sym->s_scanflike) { in outdef() 128 outint(sym->s_scanflike_arg); in outdef() 130 if (sym->s_printflike) { in outdef() 132 outint(sym->s_printflike_arg); in outdef() 135 outchar(sym->s_def == DEF ? 'd' : 't'); in outdef() 136 if (TP(sym->s_type)->t_tspec == FUNC) { in outdef() 137 if (sym->s_function_has_return_value) in outdef() [all …]
|
| D | read.c | 393 parse_function_attribute(const char **pp, sym_t *sym, bool *used) in parse_function_attribute() argument 398 if (sym->s_def != NODECL) in parse_function_attribute() 400 sym->s_def = DEF; in parse_function_attribute() 403 if (sym->s_def != NODECL) in parse_function_attribute() 405 sym->s_def = DECL; in parse_function_attribute() 408 if (sym->s_inline) in parse_function_attribute() 410 sym->s_inline = true; in parse_function_attribute() 413 if (sym->s_old_style_function) in parse_function_attribute() 415 sym->s_old_style_function = true; in parse_function_attribute() 418 if (sym->s_function_has_return_value) in parse_function_attribute() [all …]
|
| /netbsd/src/external/bsd/openldap/dist/libraries/liblunicode/ure/ |
| D | ure.c | 169 _ure_sym_t sym; member 546 _ure_symtab_t *sym, 560 _ure_ccl_setup(_ure_symtab_t *sym, unsigned long mask, _ure_buffer_t *b) in _ure_ccl_setup() argument 562 sym->props |= mask; in _ure_ccl_setup() 566 _ure_space_setup(_ure_symtab_t *sym, unsigned long mask, _ure_buffer_t *b) in _ure_space_setup() argument 570 sym->props |= mask; in _ure_space_setup() 576 _ure_add_range(&sym->sym.ccl, &range, b); in _ure_space_setup() 578 _ure_add_range(&sym->sym.ccl, &range, b); in _ure_space_setup() 580 _ure_add_range(&sym->sym.ccl, &range, b); in _ure_space_setup() 582 _ure_add_range(&sym->sym.ccl, &range, b); in _ure_space_setup() [all …]
|
| /netbsd/src/common/dist/zlib/ |
| D | inftrees.c | 38 unsigned sym; /* index of code symbols */ in inflate_table() local 106 for (sym = 0; sym < codes; sym++) in inflate_table() 107 count[lens[sym]]++; in inflate_table() 143 for (sym = 0; sym < codes; sym++) in inflate_table() 144 if (lens[sym] != 0) work[offs[lens[sym]]++] = (unsigned short)sym; in inflate_table() 196 sym = 0; /* starting code symbol */ in inflate_table() 214 if (work[sym] + 1U < match) { in inflate_table() 216 here.val = work[sym]; in inflate_table() 218 else if (work[sym] >= match) { in inflate_table() 219 here.op = (unsigned char)(extra[work[sym] - match]); in inflate_table() [all …]
|