Go to the source code of this file.
Data Types | |
| type | _obstack_chunk |
| type | obstack |
Defines | |
| #define | _OBSTACK_H 1 |
| #define | __PTR_TO_INT(P) ((P) - (char *) 0) |
| #define | __INT_TO_PTR(P) ((P) + (char *) 0) |
| #define | PTR_INT_TYPE long |
| #define | _obstack_memcpy(To, From, N) bcopy ((char *)(From), (To), (N)) |
| #define | obstack_base(h) ((h)->object_base) |
| #define | obstack_chunk_size(h) ((h)->chunk_size) |
| #define | obstack_next_free(h) ((h)->next_free) |
| #define | obstack_alignment_mask(h) ((h)->alignment_mask) |
| #define | obstack_init(h) |
| #define | obstack_begin(h, size) |
| #define | obstack_specify_allocation(h, size, alignment, chunkfun, freefun) |
| #define | obstack_specify_allocation_with_arg(h, size, alignment, chunkfun, freefun, arg) |
| #define | obstack_chunkfun(h, newchunkfun) ((h) -> chunkfun = (struct _obstack_chunk *(*)()) (newchunkfun)) |
| #define | obstack_freefun(h, newfreefun) ((h) -> freefun = (void (*)()) (newfreefun)) |
| #define | obstack_1grow_fast(h, achar) (*((h)->next_free)++ = (achar)) |
| #define | obstack_blank_fast(h, n) ((h)->next_free += (n)) |
| #define | obstack_memory_used(h) _obstack_memory_used (h) |
| #define | obstack_object_size(h) (unsigned) ((h)->next_free - (h)->object_base) |
| #define | obstack_room(h) (unsigned) ((h)->chunk_limit - (h)->next_free) |
| #define | obstack_empty_p(h) ((h)->chunk->prev == 0 && (h)->next_free - (h)->chunk->contents == 0) |
| #define | obstack_make_room(h, length) |
| #define | obstack_grow(h, where, length) |
| #define | obstack_grow0(h, where, length) |
| #define | obstack_1grow(h, datum) |
| #define | obstack_ptr_grow(h, datum) |
| #define | obstack_int_grow(h, datum) |
| #define | obstack_ptr_grow_fast(h, aptr) (((const void **) ((h)->next_free += sizeof (void *)))[-1] = (aptr)) |
| #define | obstack_int_grow_fast(h, aint) (((int *) ((h)->next_free += sizeof (int)))[-1] = (aptr)) |
| #define | obstack_blank(h, length) |
| #define | obstack_alloc(h, length) (obstack_blank ((h), (length)), obstack_finish ((h))) |
| #define | obstack_copy(h, where, length) (obstack_grow ((h), (where), (length)), obstack_finish ((h))) |
| #define | obstack_copy0(h, where, length) (obstack_grow0 ((h), (where), (length)), obstack_finish ((h))) |
| #define | obstack_finish(h) |
| #define | obstack_free(h, obj) |
Functions/Subroutines | |
| void | _obstack_newchunk () |
| void | _obstack_free () |
| int | _obstack_begin () |
| int | _obstack_begin_1 () |
| int | _obstack_memory_used () |
Variables | |
| void(* | obstack_alloc_failed_handler )() |
| int | obstack_exit_failure |
| #define _obstack_memcpy | ( | To, | |||
| From, | |||||
| N | ) | bcopy ((char *)(From), (To), (N)) |
Value:
( (((h)->next_free + 1 > (h)->chunk_limit) \ ? (_obstack_newchunk ((h), 1), 0) : 0), \ obstack_1grow_fast (h, datum))
Definition at line 543 of file obstack.h.
Referenced by add_to_obstack(), afgets(), append_unicode_mangled_name(), build_element_name(), build_element_name_1(), build_encode_expr(), build_ivar_list_initializer(), build_java_argument_signature(), build_java_signature(), build_search_list(), do_mangle_classname(), do_spec_1(), do_spec_2(), dump_file(), emit_compression_string(), encode_aggregate(), encode_aggregate_within(), encode_array(), encode_method_def(), encode_method_prototype(), encode_pointer(), encode_type(), encode_type_qualifiers(), extract_string(), finish_mangling(), form_regexp(), GTY(), init_spec(), initiate_automaton_gen(), java_get_line_col(), java_lex(), java_mangle_class_field(), java_mangle_vtable(), java_unicode_2_utf8(), layout_class(), main(), mangle(), mangle_array_type(), mangle_field_decl(), mangle_member_name(), mangle_method_decl(), mangle_pointer_type(), mangle_type(), next_sep_el(), obstack_fgets(), output_add_character(), output_add_newline(), output_add_space(), output_finalize_message(), parse_slow(), pp_base_character(), pp_base_format(), pp_base_formatted_text(), pp_base_newline(), read_braced_string(), read_escape(), read_quoted_string(), read_rtx(), read_rtx_1(), read_string(), recompile_files(), regexp_representation(), set_multilib_dir(), and VEC().
Definition at line 570 of file obstack.h.
Referenced by add_btr_def(), add_constraint(), alloc_aux_for_block(), alloc_aux_for_blocks(), alloc_aux_for_edge(), alloc_aux_for_edges(), alloc_block(), alloc_chunk(), alloc_declarator(), alloc_handler(), alloc_mem(), alloc_node(), arm_add_gc_roots(), attr_hash_add_rtx(), attr_hash_add_string(), attr_string(), bitmap_element_allocate(), c_parser_translation_unit(), calculate_needs_all_insns(), conflict_graph_add(), conversion_obstack_alloc(), copy_reloads(), cp_parser_declaration(), cp_parser_declaration_statement(), create_fix_barrier(), df_link_create(), df_ref_create(), eliminate_partially_redundant_load(), emit_reloc(), file_push(), find_btr_def_group(), gcse_alloc(), gen_jcf_label(), gen_presence_absence_set(), generate_bytecode_insns(), generate_classfile(), hash_allocate(), hash_table_init_n(), init_flow(), init_mangle(), init_reload(), insert_expr_in_table(), localvar_alloc(), lookup_element(), lookup_expr_in_table(), main(), mangle_class_name_for_template(), new_btr_user(), new_insn_chain(), new_tlist(), output_call(), perform_relocations(), push_minipool_barrier(), push_minipool_fix(), ra_alloc(), ra_calloc(), recognized_function(), record_last_mem_set_info(), record_one_set(), regrename_optimize(), reload(), scan_rtx_reg(), set_rtx_ptr_loc(), sort_def_symbol(), start_mangling(), stat_alloc(), string_copy(), symbol_push(), unchecked_make_edge(), verify_sequence_points(), and verify_tree().
Definition at line 283 of file obstack.h.
Referenced by alloc_empty_reserv_sets(), build_java_argument_signature(), build_java_signature(), consume_token(), create_node(), finish_mangling(), get_str_vect(), initiate_automaton_gen(), initiate_excl_sets(), initiate_presence_absence_pattern_sets(), initiate_presence_absence_sets(), java_get_line_col(), mangle_class_name_for_template(), next_sep_el(), nth_token(), output_clear_message_text(), output_last_position(), pp_base_clear_output_area(), pp_base_last_position_in_text(), push_stack_level(), push_token(), regexp_representation(), save_partially_mangled_name(), shift_token(), start_mangling(), store_alt_unit_usage(), and VEC().
Value:
_obstack_begin ((h), (size), 0, \ (void *(*) ()) obstack_chunk_alloc, (void (*) ()) obstack_chunk_free)
Definition at line 330 of file obstack.h.
Referenced by hash_table_init_n(), lang_init(), lang_map(), main(), and tlink_init().
Value:
( (h)->temp = (length), \ (((h)->chunk_limit - (h)->next_free < (h)->temp) \ ? (_obstack_newchunk ((h), (h)->temp), 0) : 0), \ obstack_blank_fast (h, (h)->temp))
Definition at line 564 of file obstack.h.
Referenced by alloc_empty_reserv_sets(), create_node(), get_str_vect(), initiate_excl_sets(), initiate_presence_absence_pattern_sets(), initiate_presence_absence_sets(), push_token(), scan_tokens(), shift_token(), store_alt_unit_usage(), and VEC().
Definition at line 352 of file obstack.h.
Referenced by finish_regexp_representation(), and mangle_class_name_for_template().
| #define obstack_chunkfun | ( | h, | |||
| newchunkfun | ) | ((h) -> chunkfun = (struct _obstack_chunk *(*)()) (newchunkfun)) |
| #define obstack_copy0 | ( | h, | |||
| where, | |||||
| length | ) | (obstack_grow0 ((h), (where), (length)), obstack_finish ((h))) |
Definition at line 576 of file obstack.h.
Referenced by frob_extension(), get_symref(), ht_lookup(), ht_lookup_with_hash(), and recompile_files().
| #define obstack_finish | ( | h | ) |
Value:
( ((h)->next_free == (h)->object_base \ ? (((h)->maybe_empty_object = 1), 0) \ : 0), \ (h)->temp = __PTR_TO_INT ((h)->object_base), \ (h)->next_free \ = __INT_TO_PTR ((__PTR_TO_INT ((h)->next_free)+(h)->alignment_mask) \ & ~ ((h)->alignment_mask)), \ (((h)->next_free - (char *) (h)->chunk \ > (h)->chunk_limit - (char *) (h)->chunk) \ ? ((h)->next_free = (h)->chunk_limit) : 0), \ (h)->object_base = (h)->next_free, \ __INT_TO_PTR ((h)->temp))
Definition at line 579 of file obstack.h.
Referenced by afgets(), alloc_empty_reserv_sets(), apply_macro_to_string(), build_element_name(), build_encode_expr(), build_ivar_list_initializer(), build_search_list(), cp_parser_string_literal(), create_node(), do_mangle_classname(), do_spec_1(), do_spec_2(), dump_file(), encode_method_def(), encode_method_prototype(), extract_string(), finish_mangling(), get_str_vect(), ggc_alloc_string(), GTY(), init_objc(), init_spec(), initiate_automaton_gen(), initiate_excl_sets(), initiate_presence_absence_pattern_sets(), initiate_presence_absence_sets(), java_get_line_col(), java_lex(), layout_class(), main(), mangle(), next_sep_el(), obstack_fgets(), parse_slow(), process_command(), push_stack_level(), read_braced_string(), read_quoted_string(), read_rtx(), read_rtx_1(), recompile_files(), save_partially_mangled_name(), set_collect_gcc_options(), set_multilib_dir(), simplify_cond(), store_alt_unit_usage(), VEC(), and write_predicate_subfunction().
| #define obstack_free | ( | h, | |||
| obj | ) |
Value:
( (h)->temp = (char *) (obj) - (char *) (h)->chunk, \ (((h)->temp > 0 && (h)->temp < (h)->chunk_limit - (char *) (h)->chunk)\ ? (int) ((h)->next_free = (h)->object_base \ = (h)->temp + (char *) (h)->chunk) \ : (_obstack_free ((h), (h)->temp + (char *) (h)->chunk), 0)))
Definition at line 601 of file obstack.h.
Referenced by _cpp_destroy_hashtable(), _cpp_pop_buffer(), arm_reorg(), bitmap_obstack_release(), bitmap_release_memory(), build_conditional_expr(), build_encode_expr(), build_ivar_list_initializer(), build_java_argument_signature(), build_java_signature(), build_new_function_call(), build_new_method_call(), build_new_op(), build_object_call(), bypass_jumps(), c_parser_translation_unit(), calculate_needs_all_insns(), can_convert_arg(), can_convert_arg_bad(), check_regexp_units_distribution(), conflict_graph_delete(), consume_token(), cp_parser_declaration(), cp_parser_declaration_statement(), cp_parser_string_literal(), df_free(), do_endif(), dump_file(), eliminate_partially_redundant_load(), encode_method_def(), encode_method_prototype(), end_input(), file_pop(), finish_mangling(), free_all_mem(), free_aux_for_blocks(), free_aux_for_edges(), free_mem(), free_reg_set_mem(), gcse_main(), gmalloc(), hash_table_free(), ht_destroy(), ht_lookup(), ht_lookup_with_hash(), init_flow(), init_repo(), initialize_reference(), insert_expr_in_table(), instantiate_element(), java_lex(), layout_class(), lookup_expr_in_table(), main(), mangle_class_name_for_template(), migrate_btr_defs(), output_clear_message_text(), perform_direct_initialization_if_possible(), perform_implicit_conversion(), pop_stack_level(), pp_base_clear_output_area(), pp_base_output_formatted_text(), read_repo_file(), read_rtx(), read_rtx_1(), recompile_files(), regrename_optimize(), release_jcf_state(), reload(), reset_opr_set_tables(), save_partially_mangled_name(), scan_linker_output(), start_mangling(), symbol_pop(), tree_sra(), verify_sequence_points(), and write_automata().
Value:
( (h)->temp = (length), \ (((h)->next_free + (h)->temp > (h)->chunk_limit) \ ? (_obstack_newchunk ((h), (h)->temp), 0) : 0), \ _obstack_memcpy ((h)->next_free, (where), (h)->temp), \ (h)->next_free += (h)->temp)
Definition at line 528 of file obstack.h.
Referenced by add_to_obstack(), append_gpp_mangled_name(), append_unicode_mangled_name(), apply_macro_to_string(), build_element_name_1(), build_java_argument_signature(), build_java_signature(), build_search_list(), cp_parser_string_literal(), do_mangle_classname(), do_spec_1(), encode_aggregate_within(), encode_array(), encode_bitfield(), encode_complete_bitfield(), encode_method_def(), encode_method_prototype(), encode_pointer(), form_regexp(), frob_extension(), gen_insn(), init_mangling(), init_spec(), initiate_automaton_gen(), java_get_line_col(), layout_class(), main(), mangle(), mangle_array_type(), mangle_method_decl(), output_append_r(), parse_slow(), pp_append_r(), pp_base_format(), process_command(), push_stack_level(), read_escape(), read_rtx(), read_rtx_1(), recompile_files(), restore_partially_mangled_name(), scan_tokens(), set_collect_gcc_options(), set_multilib_dir(), and write_predicate_subfunction().
Value:
( (h)->temp = (length), \ (((h)->next_free + (h)->temp + 1 > (h)->chunk_limit) \ ? (_obstack_newchunk ((h), (h)->temp + 1), 0) : 0), \ _obstack_memcpy ((h)->next_free, (where), (h)->temp), \ (h)->next_free += (h)->temp, \ *((h)->next_free)++ = 0)
Definition at line 535 of file obstack.h.
Referenced by build_java_signature(), ggc_alloc_string(), init_spec(), java_get_line_col(), main(), and mode_attr_index().
| #define obstack_init | ( | h | ) |
Value:
_obstack_begin ((h), 0, 0, \ (void *(*) ()) obstack_chunk_alloc, (void (*) ()) obstack_chunk_free)
Definition at line 326 of file obstack.h.
Referenced by check_regexp_units_distribution(), conflict_graph_new(), diagnostic_initialize(), init_md_reader(), init_md_reader_args_cb(), init_output_buffer(), initiate_automaton_gen(), main(), pp_construct(), read_rtx(), read_rtx_1(), read_scan_file(), and recompile_files().
Value:
( (((h)->next_free + sizeof (int) > (h)->chunk_limit) \ ? (_obstack_newchunk ((h), sizeof (int)), 0) : 0), \ obstack_int_grow_fast (h, datum))
Definition at line 291 of file obstack.h.
Referenced by cp_parser_translation_unit(), encode_aggregate_within(), mangle_class_name_for_template(), output_last_position(), pp_base_last_position_in_text(), and push_stack_level().
Definition at line 508 of file obstack.h.
Referenced by afgets(), build_encode_expr(), build_ivar_list_initializer(), dump_file(), encode_aggregate_within(), encode_method_def(), encode_method_prototype(), finish_regexp_representation(), num_tokens(), obstack_fgets(), parse_slow(), push_token(), save_partially_mangled_name(), and shift_token().
Value:
( (((h)->next_free + sizeof (char *) > (h)->chunk_limit) \ ? (_obstack_newchunk ((h), sizeof (char *)), 0) : 0), \ obstack_ptr_grow_fast (h, datum))
Definition at line 548 of file obstack.h.
Referenced by join_c_conditions(), read_rtx(), read_rtx_1(), and recompile_files().
Value:
_obstack_begin ((h), (size), (alignment), \ (void *(*) ()) (chunkfun), (void (*) ()) (freefun))
Definition at line 334 of file obstack.h.
Referenced by bitmap_element_allocate(), and bitmap_obstack_initialize().
| int _obstack_begin | ( | ) |
Referenced by _cpp_init_hashtable(), gcc_obstack_init(), and ht_create().
| int _obstack_begin_1 | ( | ) |
| void _obstack_free | ( | ) |
| int _obstack_memory_used | ( | ) |
| void _obstack_newchunk | ( | ) |
1.5.6