Home
last modified time | relevance | path

Searched refs:obstack_alloc (Results 1 – 20 of 20) sorted by relevance

/toolchain/binutils/binutils-2.25/include/
Dlibiberty.h369 #define XOBNEW(O, T) ((T *) obstack_alloc ((O), sizeof (T)))
370 #define XOBNEWVEC(O, T, N) ((T *) obstack_alloc ((O), sizeof (T) * (N)))
371 #define XOBNEWVAR(O, T, S) ((T *) obstack_alloc ((O), (S)))
Dobstack.h205 void * obstack_alloc (struct obstack *obstack, int size);
401 # define obstack_alloc(OBSTACK,length) \ macro
509 # define obstack_alloc(h,length) \ macro
/toolchain/binutils/binutils-2.25/gas/
Dhash.c93 ret->table = (struct hash_entry **) obstack_alloc (&ret->memory, alloc); in hash_new_sized()
220 p = (struct hash_entry *) obstack_alloc (&table->memory, sizeof (*p)); in hash_insert()
257 p = (struct hash_entry *) obstack_alloc (&table->memory, sizeof (*p)); in hash_jam()
Dfrags.c81 (void) obstack_alloc (ob, 0); in frag_alloc()
84 ptr = (fragS *) obstack_alloc (ob, SIZEOF_STRUCT_FRAG); in frag_alloc()
Dsubsegs.c104 newP = (frchainS *) obstack_alloc (&frchains, sizeof (frchainS)); in subseg_set_rest()
Dsymbols.c140 symbolP = (symbolS *) obstack_alloc (&notes, sizeof (symbolS)); in symbol_create()
200 ret = (struct local_symbol *) obstack_alloc (&notes, sizeof *ret); in local_symbol_make()
570 newsymP = (symbolS *) obstack_alloc (&notes, sizeof (*newsymP)); in symbol_clone()
1917 symbol_decode = (char *) obstack_alloc (&notes, strlen (message_format) + 30); in decode_local_label_name()
Dwrite.c158 fixP = (fixS *) obstack_alloc (&notes, sizeof (fixS)); in fix_new_internal()
/toolchain/binutils/binutils-2.25/libiberty/
Dobstack.c493 POINTER (obstack_alloc) (struct obstack *obstack, int length)
495 return obstack_alloc (obstack, length);
Dobstacks.texi167 @code{obstack_alloc}, which is invoked almost like @code{malloc}.
171 @deftypefun {void *} obstack_alloc (struct obstack *@var{obstack-ptr}, int @var{size})
194 char *s = (char *) obstack_alloc (&string_obstack, len);
286 obstack_alloc (get_obstack (), 4);
305 x = (char *) obstack_alloc (obptr, size);
307 x = (char *) (obstack_alloc) (obptr, size);
309 funcp = obstack_alloc;
405 @code{obstack_alloc} (@pxref{Allocation in an Obstack}).
692 @item void *obstack_alloc (struct obstack *@var{obstack-ptr}, int @var{size})
/toolchain/binutils/binutils-2.25/binutils/
Dwindres.c153 return obstack_alloc (&res_obstack, (size_t) bytes); in res_alloc()
174 return obstack_alloc (&reswr_obstack, (size_t) bytes); in reswr_alloc()
Dwindmc.c172 return obstack_alloc (&res_obstack, (size_t) bytes); in res_alloc()
/toolchain/binutils/binutils-2.25/gas/config/
Dtc-bfin.c940 INSTR_T cell = obstack_alloc (&mempool, sizeof (struct bfin_insn)); in gencode()
953 return obstack_alloc (&mempool, n); in allocate()
Dtc-score7.c5097 obstack_alloc (&insn_obstack, sizeof (struct s7_asm_opcode)); in s7_build_score_ops_hsh()
5098 template_name = (char *) obstack_alloc (&insn_obstack, len + 1); in s7_build_score_ops_hsh()
5126 obstack_alloc (&dependency_obstack, in s7_build_dependency_insn_hsh()
5128 new_i2d->insn_name = (char *) obstack_alloc (&dependency_obstack, in s7_build_dependency_insn_hsh()
Dtc-ns32k.c881 bit_fixP = obstack_alloc (&notes, sizeof (bit_fixS)); in bit_fix_new()
Dtc-score.c6322 obstack_alloc (&insn_obstack, sizeof (struct s3_asm_opcode)); in s3_build_score_ops_hsh()
6323 template_name = (char *) obstack_alloc (& insn_obstack, len + 1); in s3_build_score_ops_hsh()
6351 obstack_alloc (&dependency_obstack, in s3_build_dependency_insn_hsh()
6353 new_i2n->insn_name = (char *) obstack_alloc (&dependency_obstack, in s3_build_dependency_insn_hsh()
Dtc-hppa.c1227 struct hppa_fix_struct *hppa_fix = obstack_alloc (&notes, sizeof (struct hppa_fix_struct)); in fix_new_hppa()
8624 struct hppa_fix_struct * hppa_fix = obstack_alloc (&notes, sizeof (struct hppa_fix_struct)); in pa_vtable_entry()
8645 struct hppa_fix_struct * hppa_fix = obstack_alloc (&notes, sizeof (struct hppa_fix_struct)); in pa_vtable_inherit()
Dtc-m68k.c4618 hack = slak = obstack_alloc (&robyn, sizeof (struct m68k_incant)); in md_begin()
4648 slak->m_next = obstack_alloc (&robyn, sizeof (struct m68k_incant)); in md_begin()
4765 hack = obstack_alloc (&robyn, sizeof (struct m68k_incant)); in md_begin()
Dtc-ia64.c4700 *drpp = obstack_alloc (&notes, sizeof (*dr)); in dot_rot()
4704 name = obstack_alloc (&notes, len + 1); in dot_rot()
7812 fix = obstack_alloc (&notes, sizeof (*fix)); in ia64_frob_label()
7824 fix = obstack_alloc (&notes, sizeof (*fix)); in ia64_frob_label()
/toolchain/binutils/binutils-2.25/ld/
Dldlang.c137 return obstack_alloc (&stat_obstack, size); in stat_alloc()
2172 def = (struct map_symbol_def *) obstack_alloc (&map_obstack, sizeof *def); in sort_def_symbol()
4173 obstack_alloc (&map_obstack, ud->map_symbol_def_count * sizeof (*entries)); in print_all_symbols()
/toolchain/binutils/binutils-2.25/bfd/
DChangeLog-9495242 obstack_alloc fails.
6341 obstack_alloc returns NULL unless the size is non-zero.
6345 rather than obstack_alloc, for clarity.
6535 * hash.c (bfd_hash_allocate): If obstack_alloc fails, set
8589 * linker.c: Replace alloca with obstack_alloc.
9186 (bfd_hash_lookup): Check obstack_alloc for NULL return.
9191 bfd_ecoff_debug_accumulate_other): Check obstack_alloc.
9192 (add_file_shuffle add_memory_shuffle): Check obstack_alloc for