1. 11 Oct, 2001 1 commit
    • calls.c: Fix formatting. · eebedaa5
      	* calls.c: Fix formatting.
      	* c-decl.c: Likewise.
      	* cfgcleanup.c: Likewise.
      	* combine.c: Likewise.
      	* cppfiles.c: Likewise.
      	* cpplib.c: Likewise.
      	* cppmacro.c: Likewise.
      	* crtstuff.c: Likewise.
      	* cse.c: Likewise.
      	* dwarf2out.c: Likewise.
      	* expmed.c: Likewise.
      	* expr.c: Likewise.
      	* fold-const.c: Likewise.
      	* function.c: Likewise.
      	* gcse.c: Likewise.
      	* genattrtab.c: Likewise.
      	* ggc-page.c: Likewise.
      	* integrate.c: Likewise.
      	* libgcc2.c: Likewise.
      	* loop.c: Likewise.
      	* optabs.c: Likewise.
      	* profile.c: Likewise.
      	* protoize.c: Likewise.
      	* real.c: Likewise.
      	* recog.c: Likewise.
      	* reload1.c: Likewise.
      	* reload.c: Likewise.
      	* reorg.c: Likewise.
      	* resource.c: Likewise.
      	* sched-rgn.c: Likewise.
      	* sdbout.c: Likewise.
      	* stmt.c: Likewise.
      	* toplev.c: Likewise.
      	* varasm.c: Likewise.
      
      From-SVN: r46182
      Kazu Hirata committed
  2. 20 Sep, 2001 1 commit
    • fold-const.c (hashtab.h): Include. · 4c160717
      	* fold-const.c (hashtab.h): Include.
      	(int_const_binop): Remove FORSIZE arg and compute from type; all
      	callers changed.
      	Call size_int_type_wide for all single-word constants.
      	(size_htab_hash, size_htab_eq): New functions.
      	(size_int_type_wide): Rework to use hash table.
      	* ggc-common.c (hashtab.h): Include.
      	(struct d_htab_root): New struct.
      	(d_htab_roots): New variable.
      	(ggc_add_deletable_htab, ggc_htab_delete): New functions
      	(ggc_mark_roots): Handle deletable htabs.
      	* ggc-page.c (ggc_marked_p): New function.
      	* ggc-simple.c (ggc_marked_p): Likewise.
      	* ggc.h: Reformatting throughout.
      	(ggc_marked_p, ggc_add_deletable_htab): New declarations.
      	* tree.c (init_obstacks): Make type_hash_table a deletable root.
      	(type_hash_add): Allocate struct type_hash from GC memory.
      	(mark_hash_entry, mark_type_hash): Deleted.
      	(type_hash_marked_p, type_hash_mark): New functions.
      	* Makefile.in (ggc-common.o, fold-const.o): Include hashtab.h.
      
      From-SVN: r45710
      Richard Kenner committed
  3. 22 Aug, 2001 1 commit
    • Makefile.in, [...]: replace "GNU CC" with "GCC". · 1322177d
      	* Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
      	bitmap.h, builtin-types.def, builtins.c, builtins.def,
      	c-aux-info.c, c-common.c, c-common.def, c-common.h,
      	c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
      	c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
      	c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
      	caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
      	conditions.h, config.gcc, configure.frag, configure.in,
      	conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
      	cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
      	dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
      	doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
      	dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
      	emit-rtl.c, errors.c, errors.h, except.c, except.h,
      	exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
      	fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
      	function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
      	gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
      	gencheck.c, gencodes.c, genconfig.c, genemit.c,
      	genextract.c, genflags.c, gengenrtl.c, genmultilib,
      	genopinit.c, genoutput.c, genpeep.c, genrecog.c,
      	gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
      	ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
      	graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
      	gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
      	gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
      	hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
      	integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
      	libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
      	machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
      	mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
      	mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
      	params.h, predict.c, predict.def, predict.h, prefix.c,
      	prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
      	read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
      	regclass.c, regmove.c, regrename.c, regs.h, reload.c,
      	reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
      	rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
      	sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
      	sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
      	ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
      	stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
      	tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
      	tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
      	unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
      	unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
      	xcoffout.h: replace "GNU CC" with "GCC".
      
      From-SVN: r45105
      Lars Brinkhoff committed
  4. 20 May, 2001 1 commit
    • Makefile.in (OBJS, [...]): Update. · 2a967f3d
      	* Makefile.in (OBJS, LIBCPP_OBJS, LIBCPP_DEPS,
      	cpplib.o, cpphash.o, fix-header): Update.
      	(hashtable.o): New target.
      	* c-common.h: Include cpplib.h.  Define C_RID_CODE and
      	struct c_common_identifier here.
      	* c-lang.c (c_init_options): Update.  Call set_identifier_size.
      	* c-lex.c (c_lex): Update.
      	* c-pragma.h: Update.
      	* c-tree.h (struct lang_identifier): Contain c_common_identifier.
      	Delete rid_code.
      	(C_RID_CODE): Delete.
      	* cpphash.c: Rewrite to use hashtable.c.
      	* cpphash.h: Update include guards.
      	(struct cpp_reader): Remove hashtab.
      	hash_ob and buffer_ob are no longer pointers.  Add hash_table
      	and our_hashtable.
      	(HASHSTEP, _cpp_init_hashtable,	_cpp_lookup_with_hash): Delete.
      	(_cpp_cleanup_hashtable): Rename _cpp_destroy_hashtable.
      	(_cpp_cleanup_stacks): Rename _cpp_init_directives.
      	* cppinit.c (cpp_create_reader): Update.
      	* cpplex.c (cpp_ideq, parse_identifier, cpp_output_token): Update.
      	(cpp_interpret_charconst): Eliminate warning.
      	* cpplib.c (do_pragma, do_endif, push_conditional,
      	cpp_push_buffer, cpp_pop_buffer): Update.
      	(_cpp_init_stacks): Rename cpp_init_directives.
      	(_cpp_cleanup_stacks): Remove.
      	* cpplib.h: Update include guards.  Include tree-core.h and c-rid.h.
      	(cpp_hashnode, cpp_token, NODE_LEN, NODE_NAME,
      	 cpp_forall_identifiers, cpp_create_reader): Update.
      	(C_RID_CODE, cpp_make_node): New.
      	(c_common_identifier): New identifier node for C front ends.
      	* cppmain.c (main): Update.
      	* fix-header.c (read_scan_file): Update.
      	* flags.h (id_clash_len): Make unsigned.
      	* ggc.h (ggc_mark_nonnull_tree): New.
      	* hashtable.c: New.
      	* hashtable.h: New.
      	* stringpool.c: Update comments and copyright.  Update to use
      	hashtable.c.
      	* toplev.c (approx_sqrt): Move to hashtable.c.
      	(id_clash_len): Make unsigned.
      	* toplev.h (ident_hash): New.
      	* tree.c (gcc_obstack_init): Move to hashtable.c.
      	* tree.h: Include hashtable.h.
      	(IDENTIFIER_POINTER, IDENTIFIER_LENGTH): Update.
      	(GCC_IDENT_TO_HT_IDENT, HT_IDENT_TO_GCC_IDENT): New.
      	(struct tree_identifier): Update.
      	(make_identifier): New.
      cp:
      	* cp-tree.h (struct lang_identifier, C_RID_YYCODE): Update.
      	(C_RID_CODE): Remove.
      	* lex.c (cxx_init_options): Call set_identifier_size.  Update.
      	(init_parse): Don't do it here.
      objc:
      	* objc-act.c (objc_init_options): Call set_identifier_size. Update.
      
      From-SVN: r42334
      Neil Booth committed
  5. 04 Apr, 2001 1 commit
    • ansidecl.h: All logic from gcc/gansidecl.h moved here. · d02af173
      include:
      	* ansidecl.h: All logic from gcc/gansidecl.h moved here.
      gcc:
      	* gansidecl.h: Delete file.
      	* configure.in: Change all refs to gansidecl.h to use
      	ansidecl.h.  Adjust *_file_list so they know where ansidecl.h
      	lives.
      	* configure: Regenerate.
      
      	* Makefile.in (intl.o): Don't depend on gansidecl.h.
      	* defaults.h: s/gansidecl.h/ansidecl.h/ in comment.
      	* ggc.h, config/fr30/fr30.h, config/mcore/mcore.c:
      	Don't include gansidecl.h.
      	* intl.c, main.c, version.c, fixinc/fixlib.h,
      	fixinc/procopen.c, fixinc/server.c: Include ansidecl.h not
      	gansidecl.h.
      gcc/java:
      	* Make-lang.in (buffer.o, check-init.o, class.o): Don't depend
      	on gansidecl.h.
      	* buffer.c, jvgenmain.c: Don't include gansidecl.h.
      libiberty:
      	* make-temp-file.c (try): Inline.
      
      From-SVN: r41069
      Zack Weinberg committed
  6. 20 Feb, 2001 1 commit
    • sibcall.c (skip_copy_to_return_value): Call identify_call_return_value here, and… · cd5a58e5
      sibcall.c (skip_copy_to_return_value): Call identify_call_return_value here, and return orig_insn if it returns zero.
      
      	* sibcall.c (skip_copy_to_return_value): Call
      	identify_call_return_value here, and return orig_insn if it
      	returns zero.  Hardret and softret arguments now unnecessary.
      	(call_ends_block_p): Don't call identify_call_return_value here.
      
      	* ggc-common.c (ggc_mark_rtx_children): No need to mark 'S' or
      	's' slots in RTXen.
      	* ggc-page.c, ggc-simple.c (ggc_mark_if_gcable): Delete	function.
      	* ggc.h (ggc_mark_if_gcable): Delete prototype.
      
      testsuite:
      	* g77.dg: New directory.
      	* g77.dg/20010216-1.f: New test case.
      	* g77.dg/dg.exp: New driver.
      	* lib/g77-dg.exp: New driver library.
      
      From-SVN: r39916
      Zack Weinberg committed
  7. 17 Nov, 2000 2 commits
    • ggc.h: Delete ggc_add_string_root and ggc_mark_string. · a8a05998
              * ggc.h: Delete ggc_add_string_root and ggc_mark_string.  Add
              digit_vector and digit_string.
              * stringpool.c (digit_vector): New.
              (ggc_alloc_string): Use digit_string.
      
              * stmt.c (digit_strings): Delete.
              (init_stmt): Do not initialize digit_strings.
              (expand_asm_operands): Use ggc.h's digit_string macro.
              * toplev.c (mark_file_stack): Delete.
              (compile_file): Don't call init_tree_codes.
              (main): No need to make the file stack a GC root.
              * tree.c (init_tree_codes): Delete.
              * tree.h (init_tree_codes): Delete.
      
              * c-lex.c: Don't include ggc.h.
              (mark_splay_tree_node, mark_splay_tree): Delete.
              (init_c_lex): No need to ggc_strdup string constant.  Don't add
              file_info_tree to GGC roots.
              (cb_enter_file, cb_rename_file): No need to ggc_strdup
              ip->nominal_fname.
      
              * Makefile.in (c-lex.o): No longer depends on $(GGC_H).
      
              * dbxout.c (dbxout_init),
              dwarf2out.c (dwarf2out_line),
              ggc-common.c (ggc_mark_rtx_children, ggc_mark_trees),
              varasm.c (mark_const_hash_entry, mark_pool_constant, init_varasm_once),
              xcoffout.c (xcoffout_source_file),
              i386.c (load_pic_register):
              Delete call(s) to ggc_add_string_root and/or ggc_mark_string.
      
              * except.c (create_rethrow_ref),
              profile.c (init_edge_profiler),
              toplev.c (compile_file),
              varasm.c (named_section, assemble_static_space,
              assemble_trampoline_template, output_constant_def, force_const_mem),
              i386.c (load_pic_register),
              ia64.c (ia64_encode_section_info),
              rs6000.c (rs6000_emit_load_toc_table, create_TOC_reference,
              rs6000_emit_prologue, rs6000_emit_epilogue),
              rs6000.md (load_toc_aix_si, load_toc_aix_di):
              Change ggc_alloc_string (var, -1) to ggc_strdup (var).
      
              * profile.c (output_func_start_profiler),
              tree.c (make_node),
              i386.c (load_pic_register): No need to ggc_strdup string constant.
      
      cp:
              * lex.c (mark_impl_file_chain): Delete.
              (init_parse): Remove call to ggc_add_string_root.  No need to
              ggc_strdup a string constant.  Do not add impl_file_chain to GC
              roots.
              (handle_pragma_implementation): No need to ggc_strdup main_filename.
      
      f:
              * lex.c (ffelex_hash_): Change ggc_alloc_string (var, -1) to
              ggc_strdup (var).
      
      java:
              * parse.y (goal): Remove call to ggc_add_string_root.
      
      From-SVN: r37522
      Zack Weinberg committed
    • stringpool.c: New file. · 520a57c8
      	* stringpool.c: New file.
      	* ggc-common.c (ggc_mark_string_ptr, ggc_add_string_root): Delete.
      	(ggc_alloc_string): Now in stringpool.o.
      	* ggc-page.c, ggc-simple.c: Do not define or allocate empty_string.
      	* ggc.h: Delete prototype of ggc_add_string_root.  #define
      	ggc_add_string_root and ggc_mark_string to nothing.  Prototype
      	init_stringpool and stringpool_statistics.
      	(ggc_alloc_string): Returns a const char *.
      	* tree.c (hash_table, do_identifier_warnings): Delete.
      	(init_obstacks): Don't initialize the identifier hash table.
      	(get_identifier, maybe_get_identifier, start_identifier_warnings,
      	set_identifier_size): Now in stringpool.c.
      	* tree.h (struct tree_string): Constify pointer field.
      	(approx_sqrt): Prototype.
      
      	* Makefile.in (stringpool.o): Add rule, mention in OBJS.
      
      	* toplev.c (approx_sqrt): New function.
      	(compile_file): Call stringpool_statistics if mem_report is on.
      	(main): Call init_stringpool.
      
      	* builtins.c (c_strlen), c-decl.c (finish_decl), c-lex.c
      	(process_directive), c-typeck.c (constructor_asmspec, struct
      	initializer_stack, start_init), except.c (create_rethrow_ref),
      	stmt.c (digit_strings), toplev.c (decode_f_option), tree.c
      	(built_in_filename), varasm,c (in_named_name,
      	assemble_static_space, struct constant_descriptor, struct
      	deferred_string, struct pool_constant, force_const_mem),
      	i386.c (pic_label_name, global_offset_table_name), rs6000.c
      	(rs6000_emit_prologue, rs6000_emit_epilogue) : Constify a char *.
      
      	* c-common.c (combine_strings): Combine strings in scratch
      	buffer, then pass to build_string.
      	* optabs.c (init_libfuncs), profile.c (init_edge_profiler,
      	output_func_start_profiler), stmt.c (init_stmt), alpha.c
      	(alpha_need_linkage), arm.c (arm_encode_call_attribute),
      	i386.c (load_pic_register), ia64.c (ia64_encode_section_info),
      	rs6000.c (rs6000_encode_section_info): Create string in
      	scratch buffer, then pass to ggc_alloc_string.
      
      	* stmt.c (expand_asm_operands): If we must adjust the
      	constraint strings, do so by creating a new one, not by
      	modifying the old one in place.  Constify some char *s.
      	* config/pa/pa.c (hppa_encode_label): Drop unnecessary second
      	argument.  Create string in scratch buffer, then pass to
      	ggc_alloc_string.
      	* config/pa/pa-protos.h: Update prototype.
      	* config/pa/elf.h, config/pa/pa.h, config/pa/som.h:
      	hppa_encode_label takes only one argument.
      
      	* c-parse.in (if_prefix): Find the filename and line number at
      	$-2 and $-1 respectively.
      	* diagnostic.c (error_recursion): Add missing newline, use
      	fputs, translate string.
      
      cp:
      	* lex.c (struct impl_files, internal_filename): Constify a char *.
      java:
      	* jcf-parse.c (get_constant), parse.y (do_merge_string_cste):
      	Create string in scratch buffer, then pass to build_string.
      
      From-SVN: r37514
      Zack Weinberg committed
  8. 13 Oct, 2000 1 commit
    • Remove obstacks. · 1f8f4a0b
      	* Makefile.in (ggc-callbacks.o): Remove target.
      	(flow.o): Depend on GGC_H.
      	* alias.c (init_alias_analysis):
      	Remove ggc_p conditionals.
      	(end_alias_analysis): Likewise.
      	* basic-block.h (init_flow): New function.
      	(allocate_reg_life_data): Declare.
      	* bb-reorder.c	(function_obstack): Replace with ...
      	(flow_obstack): ... new variable.
      	(fixup_reorder_chain): Use it.
      	* c-decl.c (ggc_p): Remove.
      	(caller-save.c): Don't call oballoc/obfree.
      	* combine.c (struct
      	undobuf): Remove storage.
      	(try_combine): Don't call oballoc.
      	(undo_all): Don't call obfree.
      	* cse.c (insert): Use xmalloc, not
      	oballoc.
      	(cse_main): Adjust accordingly.
      	* dwarf2out.c (save_rtx): Remove
      	obstack code.
      	(dwarf2out_init): Remove ggc_p conditionals.
      	* emit-rtl.c (rtl_obstack): Remove.
      	(gen_rtx_CONST_INT): Remove ggc_p conditionals.
      	(make_insn_raw): Likewise.
      	(emit_insn_before): Likewise.
      	(emit_insn_after): Likewise.
      	(emit_insn): Likewise.
      	(gen_sequence): Likewise.
      	(copy_insn_1): Remove handling of `b' RTL components.
      	(init_emit_once): Remove ggc_p conditionals.
      	* except.c (create_rethrow_ref): Don't fool with obstacks.
      	(add_partial_entry): Likewise.
      	(call_get_eh_context): Likewise.
      	(begin_protect_partials): Likewise.
      	(protect_with_terminate): Likewise.
      	* explow.c
      	(plus_constant_wide): Likewise.
      	* expr.c (init_expr_once):
      	Likewise.
      	(emit_block_move): Likewise.
      	(clear_storage): Likewise.
      	(expand_expr): Likewise.
      	* flow.c (function_obstack): Remove.
      	(flow_obstack): New variable.
      	(flow_firstobj): Likewise.
      	(create_base_block): Use the flow_obstack.
      	(split_block): Likewise.
      	(split_edge): Likewise.
      	(calculate_global_regs_live): Likewise.
      	(allocate_bb_life_data): Make it static.  Likewiwse.
      	(init_flow): New function.
      	(size_int_type_wide): Remove ggc_p conditionals.
      	* function.c
      	(push_function_context_to): Don't call save_tree_status.
      	(pop_function_context_from): Or restore_tree_status.
      	(assign_stack_local_1): Don't call push_obstacks.
      	(find_fixup_replacement): Use xmalloc.
      	(fixup_var_refs_insns): Free the storage.
      	(insns_for_mem_walk): Don't mess with obstacks.
      	(instantiate_decls): Likewise.
      	(trampoline_address): Likewise.
      	(expand_function_end): Likewise.
      	* function.h (sturct function):
      	Remove obstack-related variables.
      	(save_tree_status): Don't declare.
      	(restore_tree_status): Likewise.
      	* gcse.c (compute_can_copy):
      	Don't call oballoc/obfree.
      	* genattrtab.c (operate_exp): Remove
      	ggc_p conditionals.
      	(simplify_cond): Likewise.
      	(simplify_test_exp): Don't mess with obstacks.
      	(optimize_attrs): Likewise.
      	* gengenrtl.c (gendef): Don't include
      	ggc_p conditionals.
      	* ggc-callbacks.c (ggc_p): Remove.
      	* ggc-none.c (ggc_p): Remove.
      	* ggc.h (ggc_p): Don't declare.
      	* integrate.c (save_for_inline): Don't mess with obstacks.
      	(integrate_decl_tree): Likewise.
      	(output_inline_function): Likewise.
      	* lists.c
      	(init_EXPR_INSN_LIST_cache): Likewise.
      	* loop.c (temp_obstack):
      	Remove.
      	(rtl_obstack): Likewise.
      	(init_loop): Don't mess with obstacks.
      	(reg_address_cost): Free BIVs and GIVs.
      	(check_insns_for_bivs): Use xmalloc, not oballoc.
      	(find_mem_givs): Likewise.
      	(record_biv): Likewise.
      	(general_induction_var): Likewise.
      	(product_cheap_p): Likewse.
      	* optabs.c (init_one_libfunc): Remove
      	ggc_p conditional.
      	* print-tree.c (debug_tree): Don't use
      	oballoc/obfree.
      	(print_node): Likewise.
      	* profile.c (output_func_start_profiler):
      	Remove call to temporary_allocation.
      	* reload1.c
      	(eliminate_regs_in_insn): Don't mess with obstacks.
      	* resource.c
      	(mark_target_live_regs): Use xmalloc.
      	(free_resource_info): Free the memory.
      	* rtl.c (rtl_obstack):
      	Remove.
      	(rtvec_alloc): Don't mess with obstacks.
      	(rtx_alloc): Likewise.
      	(rtx_free): Remove.
      	(copy_rtx): Don't handle `b' cases.
      	(read_rtx): Use a local rtl_obstack.
      	* rtl.h (oballoc): Remove.
      	(obfree): Likewise.
      	(pop_obstacks): Likewise.
      	(push_obstacks): Likewise.
      	(allocate_bb_life_data): Likewise.
      	(allocate_reg_life_data): Likewise.
      	(rtx_free): Likewise.
      	* sdbout.c (sdbout_queue_anonymous_type):
      	Use tree_cons, not saveable_tree_cons.
      	* simplify-rtx.c
      	(cselib_init): Don't mess with obstacks.
      	* stmt.c
      	(mark_block_nesting): Mark the label_chain.
      	(epxand_label): Use ggc_alloc, not oballoc.
      	(clear_last_expr): Don't mess with obstacks.
      	(expand_decl_cleanup): Likewise.
      	(expand_dcc_cleanup): Likewise.
      	(expand_dhc_cleanup): Likewise.
      	(expand_anon_union_decl): Likewise.
      	(add_case_node): Use xmalloc, not oballoc.
      	(free_case_nodes): New function.
      	(expand_end_case): Call it.
      	* stor-layout.c (layout_type): Don't
      	mess with obstacks.
      	(layout_type): Likewise.
      	* toplev.c (wrapup_global_declarations):
      	Likewise.
      	(compile_file): Remove ggc_p conditionals.
      	(rest_of_compilation): Call init_flow.  Remove ggc_p conditionals.
      	(decode_f_option): Remove ggc_p conditionals.
      	* tree.c
      	(function_maybepermanent_obstack): Remove.
      	(maybepermanent_obstack): Likewise.
      	(function_obstack): Likewise.
      	(tmeporary_obstack): Likewise.
      	(momentary_obstack): Likewise.
      	(temp_decl_obstack): Likewise.
      	(saveable_obstack): Likewise.
      	(rtl_obstack): Likewise.
      	(current_obstack): Likewise.
      	(expression_obstack): Likewise.
      	(struct obstack_stack): Likewise.
      	(obstack_stack): Likewise.
      	(obstack_stack_obstack): Likewise.
      	(maybepermanent_firstobj): Likewise.
      	(temporary_firstobj): Likewise.
      	(momentary_firstobj): Likewise.
      	(temp_decl_firstobj): Likewise.
      	(momentary_function_firstobj): Likewise.
      	(all_types_permanent): Likewise.
      	(struct momentary_level): Likewise.
      	(momentary_stack): Likewise.
      	(init_obstacks): Remove initialization of removed obstacks.
      	(save_tree_status): Remove.
      	(restore_tree_status): Likewise.
      	(temporary_allocation): Liekwise.
      	(end_temporary_allocation): Liekwise.
      	(resume_temporary_allocation): Likewise.
      	(saveable_allocation): Likewise.
      	(push_obstacks): Likewise.
      	(push_obstacks_nochange): Likewise.
      	(pop_obstacks): Likewise.
      	(allocation_temporary_p): Likewise.
      	(permanent_allocation): Likewise.
      	(preserve_data): Likewise.
      	(preserve_initializer): Likewise.
      	(rtl_in_current_obstack): Likewise.
      	(rtl_in_saveable_obstack): Likewise.
      	(oballoc): Likewise.
      	(obfree): Likewise.
      	(savealloc): Likewise.
      	(expralloc): Likewise.
      	(print_obstack_name): Likewise.
      	(debug_obstack): Likewise.
      	(object_permanent_p): Likewise.
      	(push_momentary): Likewise.
      	(perserve_momentary): Likewise.
      	(clear_momentary): Likewise.
      	(pop_momentary): Likewise.
      	(pop_momentary_nofree): Likewise.
      	(suspend_momentary): Likewise.
      	(resume_momentary): Likewise.
      	(make_node): Don't set TREE_PERMANENT.
      	(copy_node): Remove ggc_p conditionals.  Don't set TYPE_OBSTACK.
      	Don't set TREE_PERMANENT.
      	(get_identifier): Remove ggc_p conditionals.
      	(build_string): Likewise.
      	(make_tree_vec): Likewise.
      	(build_decl_list): Remove.
      	(build_expr_list): Likewise.
      	(tree_cons): Remove ggc_p conditionals.
      	(decl_tree_cons): Remove.
      	(expr_tree_cons): Likewise.
      	(perm_tree_cons): Likewise.
      	(temp_tree_cons): Likewise.
      	(saveable_tree_cons): Likewise.
      	(build1): Remove ggc_p conditionals.
      	(build_parse_node): Likewise.
      	(build_type_attribute_variant): Don't mess with obstacks.
      	(build_type_copy): Likewise.
      	(type_hash_canon): Likewise.
      	(build_pointer_type): Likewise.
      	(build_reference_type): Likewise.
      	(build_index_type): Likewise.
      	(build_range_type): Likewise.
      	(dump_tree_statistics): Don't print obstack information.
      	* tree.h
      	(struct tree_common): Remove permanent_flag.
      	(TREE_PERMANENT): Remove.
      	(TREE_SET_PERMANENT): Likewise.
      	(TYPE_OBSTACK): Likewise.
      	(struct tree_type): Remove obstack.
      	(oballoc): Remove.
      	(savealloc): Likewise.
      	(build_decl_list): Likewise.
      	(build_expr_list): Likewise.
      	(perm_tree_cons): Likewise.
      	(temp_tree_cons): Likewise.
      	(saveable_tree_cons): Likewise.
      	(decl_tree_cons): Likewise.
      	(expr_tree_cons): Likewise.
      	(suspend_momentary): Likewise.
      	(allocation_temporary_p): Likewise.
      	(resume_momentary): Likewise.
      	(push_obstacks_nochange): Likewise.
      	(permanent_allocation): Likewise.
      	(push_momentary): Likewise.
      	(clear_momentary): Likewise.
      	(pop_momentary): Likewise.
      	(end_temporary_allocation): Likewise.
      	(pop_obstacks): Likewise.
      	(push_obstacks): Likewise.
      	(pop_momentary_nofree): LIkewise.
      	(preserve_momentary): Likewise.
      	(saveable_allocation): Likewise.
      	(temporary_allocation): Likewise.
      	(resume_temporary_allocation): Likewise.
      	(perserve_initializer): Likewise.
      	(debug_obstack): Likewise.
      	(rtl_in_current_obstack): Likewise.
      	(rtl_in_saveable_obstack): Likewise.
      	(obfree): Likewise.
      	* varasm.c (current_obstack): Remove.
      	(saveable_obstack): Remove.
      	(rtl_obstack): Remove.
      	(immed_double_const): Don't mess with obstacks.
      	(immed_real_cons): Likewise.
      	(output_constant_def): Likewise.
      	(init_varasm_status): Use xcalloc.
      	(mark_pool_constant): Mark the pool constant itself.
      	(free_varasm_status): Free memory.
      	(decode_rtx_const): Call bzero directly, rather than expanding it
      	inline.
      	(record_rtx_const): Don't mess with obstacks.
      	(force_const_mem): Likewise.
      	* config/arm/arm.c (arm_encode_call_attribute): Remove ggc_p
      	conditionals.
      	(aof_pic_entry): Likewise.
      	* config/ia64/ia64.c (ia64_encode_section_info): Likewise.
      	* config/m32r/m32r.c (m32r_encode_section_info): Likewise.
      	* config/pa/pa.c (saveable_obstack): Remove.
      	(rtl_obstack): Likewise.
      	(current_obstack): Likewise.
      	(output_call): Don't mess with obstacks.
      	(hppa_encode_label): Remove ggc_p conditionals.
      	* config/romp/romp.c (get_symref): Don't mess with obstacks.
      	* config/rs6000/rs6000.c (output_toc): Remove ggc_p conditional.
      	(rs6000_encode_section_info): Likewise.
      	* config/sh/sh.c (get_fpscr_rtx): Likewise.
      
      From-SVN: r36856
      Mark Mitchell committed
  9. 01 Oct, 2000 1 commit
    • c-decl.c (c_expand_body): Don't generate RTL if flag_syntax_only. · f15b9af9
      	* c-decl.c (c_expand_body): Don't generate RTL if flag_syntax_only.
      	(lang_mark_false_label_stack): Remove.
      	* c-lex.c (init_c_lex): Add file_info_tree as GC root.  Allocate
      	<top level> string in GC area.
      	(mark_splay_tree_node): New function.
      	(mark_splay_tree): Likewise.
      	* except.c (mark_eh_status): Only call lang_mark_false_label_stack
      	if it exists.
      	* ggc-callbacks.c (lang_mark_false_label_stack): Remove.
      	* ggc-common.c (lang_mark_false_label_stack): Change type.
      	* ggc.h (ggc_alloc_string): Add comment.
      	(ggc_strdup): New function.
      
      	* decl.c (lang_mark_false_label_stack): Remove.
      	* lex.c (cp_mang_lang_type): Use ggc_alloc_cleared.
      
      	* com.c (lang_mark_false_label_stack): Remove.
      
      	Convert to GC.
      	* Make-lang.in (s-java): Don't depend on ggc-callbacks.o.
      	* Makefile.in (BACKEND): Don't include ggc-callbacks.o.
      	(typeck.o): Depend on ggc.h.
      	* class.c (add_method_1): Use GC functions for allocation.
      	(init_class_processing): Register roots.
      	* decl.c (ggc_p): Set to 1.
      	(pending_local_decls): Make it static.
      	(push_jvm_slot): Use GC functions for allocation.
      	(init_decl_processing): Register roots.
      	(give_name_to_locals): Use GC functions for allocation.
      	(lang_mark_tree): New function.
      	* java-tree.h (MAYBE_CREATE_TYPE_TYPE_LANG_SPECIFIC): Use GC
      	functions for allocation.
      	* jcf-parse.c (jcf_parse_source): Use ggc_strdup.
      	* lex.c (java_lex): Use build_string, rather than replicating it
      	inline.
      	* parse.y (goal): Add more roots.
      	(mark_parser_ctxt): New function.
      	* typeck.c: Include ggc.h.
      
      	* splay-tree.c (splay_tree_insert): Fix formatting.
      
      From-SVN: r36687
      Mark Mitchell committed
  10. 29 Aug, 2000 1 commit
    • flags.h (time_report, mem_report): New global flags. · fba0bfd4
      	* flags.h (time_report, mem_report): New global flags.
      	* toplev.c: Define time_report and mem_report.
      	(f_options): Add -ftime-report and -fmem-report.
      	(compile_file): Turn on time_report if quiet_flag is off.
      	Call ggc_print_statistics at very end if mem_report is on.
      	* timevar.c (TIMEVAR_ENABLE): Examine time_report, not quiet_flag.
      
      	* ggc-common.c (ggc_print_statistics): Rename to
      	ggc_print_common_statistics; all callers changed.  Scale
      	quantities above 10K to kilobytes and above 10M to megabytes.
      	* ggc-page.c (ggc_page_print_statistics): Rename to
      	ggc_print_statistics.  Report memory consumed by internal data
      	structures for each allocation bucket.  Scale quantities above
      	10K to kilobytes and above 10M to megabytes.
      	* ggc-simple.c: Prototype debug_ggc_tree to avoid warning.
      	Cast PTR_KEY(p) to unsigned long in fprintf call to avoid warning.
      	Define tally_leaves always.
      	(ggc_print_statistics): New function.
      	* ggc.h: Adjust for renamed functions.
      
      From-SVN: r36049
      Zack Weinberg committed
  11. 09 Jun, 2000 1 commit
    • ggc-none.c, [...] (ggc_alloc_obj): Rename it ggc_alloc, drop second argument,… · f8a83ee3
      ggc-none.c, [...] (ggc_alloc_obj): Rename it ggc_alloc, drop second argument, never clear returned memory.
      
      toplevel:
      	* ggc-none.c, ggc-simple.c, ggc-page.c (ggc_alloc_obj): Rename
      	it ggc_alloc, drop second argument, never clear returned memory.
      	* ggc-common.c (ggc_alloc_string): Use ggc_alloc.
      	(ggc_alloc_cleared): New.
      	* ggc.h: Prototype ggc_alloc and ggc_alloc_cleared, not
      	ggc_alloc_obj.  Remove ggc_alloc macro.
      	(ggc_alloc_rtx, ggc_alloc_rtvec, ggc_alloc_tree): Use ggc_alloc.
      
      	* rtl.c (rtvec_alloc): Clear the vector always.
      	(rtx_alloc): Clear the first word always.  Remove dirty
      	obstack tricks (this routine is no longer a bottleneck).
      	* tree.c (make_node): Clear the new node always.
      	(make_tree_vec): Likewise.
      	(tree_cons): Clear the common structure always.
      	(build1): Likewise; also, clear TREE_COMPLEXITY.
      	* gengenrtl.c: Use puts wherever possible.  Remove extra
      	newlines.
      	(gendef): Clear the first word of an RTX in the generator
      	function, irrespective of ggc_p.  Initialize '0' slots to
      	NULL.
      	(genlegend): Don't generate obstack_alloc_rtx routine, just a
      	thin wrapper macro around obstack_alloc.
      
      	* stmt.c (expand_fixup): Use ggc_alloc.
      	* c-typeck.c (add_pending_init): Use ggc_alloc.
      	* emit-rtl.c (init_emit_once): Clear CONST_DOUBLE_CHAIN(tem).
      	* varasm.c (immed_double_const): Set CONST_DOUBLE_MEM(r) to
      	const0_rtx when it is created.
      	(immed_real_const_1): Set CONST_DOUBLE_CHAIN(r) to NULL_RTX if
      	we are not in a function.
      
      	* tree.c (tree_class_check_failed): Make second arg an int.
      	* tree.h: Update prototype.
      
      cp:
      	* call.c (add_candidate): Use ggc_alloc_cleared.
      	* decl.c (lookup_label): Likewise.
      	* lex.c (retrofit_lang_decl): Likewise.
      
      From-SVN: r34478
      Zack Weinberg committed
  12. 07 Apr, 2000 1 commit
  13. 06 Apr, 2000 1 commit
    • final.c (final): Use xcalloc to allocate line_note_exists. · bedda2da
      	* final.c (final): Use xcalloc to allocate line_note_exists.
      	* function.c (free_after_compilation): Free the temp_slots.
      	(assign_stack_temp_for_type): Use xmalloc to allocate temp_slots.
      	(combine_temp_slot): Free temp_slots when they get combined.
      	(purge_addressof): Fix typo in comment.
      	* stmt.c (mark_goto_fixup): Mark the fixup itself.
      	(expand_fixup): Allocate the fixup with ggc_alloc_obj.
      
      	* ggc.h: Include varray.h.
      	(ggc_pending_trees): Declare.
      	(ggc_mark_tree_children): Remove declaration.
      	(ggc_mark_tree): Just push unmarked trees on ggc_pending_trees.
      	* ggc-common.c (ggc_pending_trees): New variable.
      	(ggc_mark_roots): Call ggc_mark_trees.
      	(ggc_mark_tree_children): Rename to ggc_mark_trees.  Process all
      	the ggc_pending_trees.
      	* Makefile.in (GGC_H): New variable.  Use it throughout in place
      	of ggc.h.
      
      	* Makefile.in (GGC_H): New variable.  Use it throughout in place
      	of ggc.h.
      
      	* call.c: Don't include obstack.h.  Include ggc.h.
      	(obstack_chunk_alloc): Don't define.
      	(obstack_chunk_free): Likewise.
      	(add_candidate): Allocate the z_candidate with ggc_alloc_obj.
      	* decl.c (push_switch): Use xmalloc to allocate the cp_switch.
      	(pop_switch): Free it.
      
      	* decl2.c (grokclassfn): Set TREE_READONLY for PARM_DECLs.
      
      	* dump.c (dequeue_and_dump): Don't try to print the bit_position
      	if we don't have a DECL_FIELD_OFFSET.
      
      	* Makefile.in (GGC_H): Add varray.h.
      
      From-SVN: r32956
      Mark Mitchell committed
  14. 25 Mar, 2000 1 commit
    • * Rework fields used to describe positions of bitfields and · 770ae6cc
      	modify sizes to be unsigned and use HOST_WIDE_INT.
      	* alias.c (reg_known_value_size): Now unsigned.
      	* c-typeck.c (build_unary_op, case ADDR_EXPR): Use byte_position.
      	(really_start_incremental_init): Use bitsize_zero_node.
      	(push_init_level, pop_init_level, output_init_element): Likewise.
      	Use bitsize_unit_node and bitsize_one_node.
      	(output_pending_init_elements, process_init_element): Likewise.
      	* combine.c (combine_max_regno, reg_sign_bit_copies): Now unsigned.
      	(make_extraction): Position and length HOST_WIDE_INT and unsigned
      	HOST_WIDE_INT, respectively.
      	(get_pos_from_mask): Passed in value is unsigned HOST_WIDE_INT.
      	(num_sign_bit_copies): Returns unsigned.
      	BITWIDTH now unsigned; rework arithmetic.
      	Remove recursive call from arg to MAX.
      	(combine_instructions, init_reg_last_arrays): NREGS now unsigned.
      	(setup_incoming_promotions, can_combine_p, try_combine, simplify_set):
      	REGNO now unsigned.
      	(set_nonzero_bit_and_sign_copies): NUM now unsigned.
      	(find_split_point, expand_compound_operation, make_extraction): LEN
      	now unsigned HOST_WIDE_INT, POS now HOST_WIDE_INT.
      	(make_field_assignment): Likewise.
      	(combine_simplify_rtx): Add cast.
      	(expand_compound_operation): MODEWIDTH now unsigned; rework arithmetic.
      	(force_to_mode): WIDTH now unsigned; add cast.
      	(if_then_else_cond): SIZE now unsigned.
      	(nonzero_bits): MODE_WIDTH, RESULT_WIDTH, and WIDTH now unsigned.
      	(extended_count): Now returns unsigned.
      	(simplify_shift_const): COUNT unsigned; arg is now INPUT_COUNT.
      	Add SIGNED_COUNT variable; MODE_WORDS and FIRST_COUNT now unsigned.
      	(simplify_comparison): MODE_WIDTH now unsigned.
      	(update_table_tick): REGNO and ENDREGNO now unsigned; new var R.
      	(mark_used_regs_combine): Likewise; rework arithmetic.
      	(record_value_for_reg): REGNO, ENDREGNO, and I now unsigned.
      	(record_dead_and_set_regs, reg_dead_at_p, distribute_notes): Likewise.
      	(record_promoted_value): REGNO now unsigned.
      	(get_last_value_validate): REGNO, ENDREGNO, and J now unsigned.
      	(get_last_value): REGNO now unsigned.
      	(use_crosses_set_p): REGNO and ENDREGNO now unsigned.
      	(reg_dead_regno, reg_dead_endregno): Now unsigned.
      	(remove_death): Arg REGNO now unsigned.
      	(move_deaths):  REGNO, DEADREGNO, DEADEND, OUREND, and I now unsigned.
      	(reg_bitfield_target_p): REGNO, REGNO, ENDREGNO, and ENDTREGNO
      	now unsigned.
      	* convert.c (convert_to_integer): INPREC and OUTPREC now unsigned.
      	* cse.c (struct qty_table_elem): FIRST_REG and LAST_REG now unsigned.
      	(struct cse_reg_info): REGNO now unsigned.
      	(cached_regno): Now unsigned.
      	(REGNO_QTY_VALID_P): Add cast.
      	(make_new_qty, make_regs_eqv, delete_reg_eqiv): Regno args unsigned.
      	(remove_invalid_regs): Likewise.
      	(remove_invalid_subreg_refs): Likewise; arg WORD also unsigned
      	as are variables END and I.
      	(get_cse_reg_info, insert): Likewise.
      	(mention_regs, invalidate_for_call): REGNO, ENDREGNO, and I unsigned.
      	(canon_hash): Likewise.
      	(insert_regs, lookup_for_remove): REGNO now unsigned.
      	(invalidate): REGNO, ENDREGNO, TREGNO, and TENDREGNO now unsigned.
      	New variable RN.
      	* dbxout.c (dbxout_parms, dbxout_reg_parms): Don't check for REGNO < 0.
      	* dwarf2out.c (dwarf2ou_frame_debug_expr): Remove cast.
      	* emit-rtl.c (subreg_realpart_p): Add cast.
      	(operand_subword): Arg I is now unsigned as is var PARTWORDS.
      	(operand_subword_force): Arg I is now unsigned.
      	* except.c (eh_regs): Variable I is now unsigned.
      	* explow.c (hard_function_value): BYTES is unsigned HOST_WIDE_INT.
      	* expmed.c (store_fixed_bit_field): Position is HOST_WIDE_INT;
      	length is unsigned HOST_WIDE_INT; likewise for internal variables.
      	(store_split_bit_field, extract_fixed_bit_field): Likewise.
      	(extract_split_bit_field, store_bit_field, extract_bit_field):
      	Likewise.
      	* expr.c (store_constructor_fields, store_constructor, store_field):
      	Positions are HOST_WIDE_INT and lengths are unsigned HOST_WIDE_INT.
      	(expand_assignment, expand_expr, expand_expr_unaligned): Likewise.
      	(do_jump): Likewise.
      	(move_by_pieces, move_by_pieces_ninsns, clear_by_pieces):
      	MAX_SIZE is now unsigned.
      	(emit_group_load): BYTEPOS is HOST_WIDE_INT; BYTELEN is unsigned.
      	(emit_group_store): Likewise.
      	(emit_move_insn): I now unsigned.
      	(store_constructor): Use host_integerp, tree_low_cst, and
      	bitsize_unit_node.
      	(get_inner_reference): Return bitpos and bitsize as HOST_WIDE_INT.
      	Rework all calculations to use trees and new fields.
      	* expr.h (promoted_input_arg): Regno now unsigned.
      	(store_bit_field, extract_bit_field): Adjust types of pos and size.
      	(mark_seen_cases): Arg is HOST_WIDE_INT.
      	* flow.c (verify_wide_reg_1): REGNO now unsigned.
      	* fold-const.c (decode_field_reference): Size and pos HOST_WIDE_INT;
      	precisions and alignments are unsigned.
      	(optimize_bit_field_compare, fold_truthop): Likewise.
      	(int_const_binop): Adjust threshold for size_int_type_wide call.
      	(fold_convert): Likewise.
      	(size_int_type_wide): Make table larger and fix thinko that only
      	had half of table used.
      	(all_ones_mask_p, fold): Precisions are unsigned.
      	* function.c (put_reg_info_stack): REGNO is unsigned.
      	(instantiate_decl): Size is HOST_WIDE_INT.
      	(instantiate_virtual_regs): I is unsigned.
      	(assign_parms): REGNO, REGNOI, and REGNOR are unsigned.
      	(promoted_input_arg): REGNO is unsigned.
      	* function.h (struct function): x_max_parm_reg is now unsigned.
      	* gcse.c (max_gcse_regno): Now unsigned.
      	(struct null_pointer_info): min_reg and max_reg now unsigned.
      	(lookup_set, next_set): REGNO arg now unsigned.
      	(compute_hash_table): REGNO and I now unsigned.
      	(handle_avail_expr): regnum_for_replacing now unsigned.
      	(cprop_insn): REGNO now unsigned.
      	(delete_null_pointer_checks_1): BLOCK_REG now pointer to unsigned.
      	* ggc-common.c (ggc_mark_tree_children, case FIELD_DECL): New case.
      	* global.c (set_preference): SRC_REGNO, DEST_REGNO, and I now unsigned.
      	* hard-reg-set.h (reg_class_size): Now unsigned.
      	* integrate.c (mark_stores): LAST_REG and I now unsigned; new UREGNO.
      	* jump.c (mark_modified_reg): I now unsigned; add cast.
      	(rtx_equal_for_thread_p): Add cast.
      	* loop.c (max_reg_before_loop): Now unsigned.
      	(struct_movable): REGNO now unsigned.
      	(try_copy_prop): REGNO arg unsigned.
      	(regs_match_p): XN and YN now unsigned.
      	(consec_sets_invariant_p, maybe_eliminate_biv): REGNO now unsigned.
      	(strength_reduce): Likewise; NREGS also unsigned.
      	(first_increment_giv, last_increment_giv unsigned): Now unsigned.
      	* loop.h (struct iv_class): REGNO now unsigned.
      	(max_reg_before_loop, first_increment_giv, last_increment_giv):
      	Now unsigned.
      	* machmode.h (mode_size, mode_unit_size): Now unsigned.
      	(mode_for_size, smallest_mode_for_size): Pass size as unsigned.
      	* optabs.c (expand_binop): I and NWORDS now unsigned.
      	(expand_unop): I now unsigned.
      	* print-tree.c (print_node): Don't print DECL_FIELD_BITPOS, but do
      	print DECL_FIELD_OFFSET and DECL_FIELD_BIT_OFFSET.
      	* real.c (significand_size): Now returns unsigned.
      	* real.h (significand_size): Likewise.
      	* regclass.c (reg_class_size): Now unsigned.
      	(choose_hard_reg_mode): Both operands now unsigned.
      	(record_reg_classes): REGNO and NR now unsigned.
      	(reg_scan): NREGS now unsigned.
      	(reg_scan_update): old_max_regno now unsigned.
      	(reg_scan_mark_refs): Arg MIN_REGNO and var REGNO now unsigned.
      	* reload.c (find_valid_class): BEST_SIZE now unsigned.
      	(find_dummy_reload): REGNO, NWORDS, and	I now unsigned.
      	(hard_reg_set_here_p): Args BEG_REGNO and END_REGNO now unsigned.
      	Likewise for variable R.
      	(refers_to_regno_for_reload_p): Args REGNO and END_REGNO now unsigned,
      	as are variables INNER_REGNO and INNER_ENDREGNO; add new variable R.
      	(find_equiv_reg): Add casts.
      	(regno_clobbered_p): Arg REGNO now unsigned.
      	* reload.h (struct reload): NREGS now unsigned.
      	(refers_to_regno_for_reload_p): Regno args are unsigned.
      	(regno_clobbered_p): Likewise.
      	* reload1.c (reg_max_ref_width, spill_stack_slot_width): Now unsigned.
      	(compute_use_by_pseudos): REGNO now unsigned.
      	(find_reg): I and J now unsigned, new variable K, and change loop
      	variables accordingly; THIS_NREGS now unsigned.
      	(alter_reg): INHERENT_SIZE and TOTAL_SIZE now unsigned.
      	(spill_hard_reg): REGNO arg now unsigned; add casts.
      	(forget_old_reloads_1): REGNO, NR, and I now unsigned.
      	(mark_reload_reg_in_use): Arg REGNO and vars NREGS and I now unsigned.
      	(clear_reload_reg_in_use): Arg REGNO and vars NREGS, START_REGNO,
      	END_REGNO, CONFLICT_START, and CONFLICT_END now unsigned.
      	(reload_reg_free_p, reload_reg_reaches_end_p): Arg REGNO now unsigned.
      	(choose_reload_regs): MAX_GROUP_SIZE now unsigned.
      	(emit_reload_insns): REGNO now unsigned.
      	(reload_cse_move2add): Add cast.
      	(move2add_note_store): REGNO and I now unsigned; new variable ENDREGNO
      	and rework loop.
      	* resource.c (mark_referenced_resources, mark_set_resources): New
      	variable R; REGNO and LAST_REGNO now unsigned.
      	(mark_target_live_regs): J and REGNO now unsigned.
      	* rtl.c (mode_size, mode_unit_size): Now unsigned.
      	* rtl.h (union rtunion_def): New field rtuint.
      	(XCUINT): New macro.
      	(ADDRESSOF_REGNO, REGNO, SUBREG_WORD): New XCUINT.
      	(operand_subword, operand_subword_force): Word number is unsigned.
      	(choose_hard_reg_mode): Operands are unsigned.
      	(refers_to-regno_p, dead_or_set_regno_p): Regno arg is unsigned.
      	(find_regno_note, find_regno_fusage, replace_regs): Likewise.
      	(regno_use_in, combine_instructions, remove_death): Likewise.
      	(reg_scan, reg_scan_update): Likewise.
      	(extended_count): Return is unsigned.
      	* rtlanal.c (refers_to_regno_p): Args REGNO and ENDREGNO and vars I,
      	INNER_REGNO, and INNER_ENDREGNO now unsigned; new variable X_REGNO.
      	(reg_overlap_mentioned_p): REGNO and ENDREGNO now unsigned.
      	(reg_set_last_first_regno, reg_set_last_last_regno): Now unsigned.
      	(reg_reg_last_1): FIRS and LAST now unsigned.
      	(dead_or_set_p): REGNO, LAST_REGNO, and I now unsigned.
      	(dead_or_set_regno_p): Arg TEST_REGNO and vars REGNO and ENDREGNO
      	now unsigned.
      	(find_regno_note, regno_use_in): Arg REGNO now unsigned.
      	(find_regno_fusage): Likewise; also var REGNOTE now unsigned.
      	(find_reg_fusage): Variables REGNO, END_REGNO, and I now unsigned.
      	(replace_regs): Arg NREGS now unsigned.
      	* sdbout.c (sdbout_parms, sdbout_reg_parms): Don't check REGNO < 0.
      	* simplify-rtx.c (simplify_unary_operation): WIDTH now unsigned.
      	(simplify_binary_operation): Likewise.
      	(cselib_invalidate_regno): Arg REGNO and variables ENDREGNO, I, and
      	THIS_LAST now unsigned.
      	(cselib_record_set): Add cast.
      	* ssa.c (ssa_max_reg_num): Now unsigned.
      	(rename_block): REGNO now unsigned.
      	* stmt.c (expand_return): Bit positions unsigned HOST_WIDE_INT;
      	sizes now unsigned.
      	(all_cases_count): Just return -1 not -2.
      	COUNT, MINVAL, and LASTVAL now HOST_WIDE_INT.
      	Rework tests to use trees whenever possible.
      	Use host_integerp and tree_low_cst.
      	(mark_seen_cases): COUNT arg now HOST_WIDE_INT;
      	Likewise variable NEXT_NODE_OFFSET; XLO now unsigned.
      	(check_for_full_enumeration_handing): BYTES_NEEDED, I to HOST_WIDE_INT.
      	* stor-layout.c (mode_for_size): SIZE arg now unsigned.
      	(smallest_mode_for_size): Likewise.
      	(layout_decl): Simplify handing of a specified DECL_SIZE_UNIT.
      	KNOWN_ALIGN is now an alignment, so simplify code.
      	Don't turn off DECL_BIT_FIELD if field is BLKmode, but not type.
      	(start_record_layout): Renamed from new_record_layout_info.
      	Update to new fields.
      	(debug_rli, normalize_rli, rli_size_unit_so_far, rli_size_so_far):
      	New functions.
      	(place_union_field): Renamed from layout_union_field.
      	Update to use new fields in rli.
      	(place_field): Renamed from layout_field.
      	Major rewrite to use new fields in rli; pass alignment to layout_decl.
      	(finalize_record_size): Rework to use new fields in rli and handle
      	union.
      	(compute_record_mode): Rework to simplify and to use new DECL fields.
      	(finalize_type_size): Make rounding more consistent.
      	(finish_union_layout): Deleted.
      	(layout_type, case VOID_TYPE): Don't set TYPE_SIZE_UNIT either.
      	(layout_type, case RECORD_TYPE): Call new function names.
      	(initialize_sizetypes): Set TYPE_IS_SIZETYPE.
      	(set_sizetype): Set TYPE_IS_SIZETYPE earlier.
      	(get_best_mode): UNIT is now unsigned; remove casts.
      	* tree.c (bit_position): Compute from new fields.
      	(byte_position, int_byte_position): New functions.
      	(print_type_hash_statistics): Cast to remove warning.
      	(build_range_type): Use host_integerp and tree_low_cst to try to hash.
      	(build_index_type): Likewise; make subtype of sizetype.
      	(build_index_2_type): Pass sizetype to build_range_type.
      	(build_common_tree_nodes): Use size_int and bitsize_int to
      	initialize nodes; add bitsize_{zero,one,unit}_node.
      	* tree.h (DECL_FIELD_CONTEXT): Use FIELD_DECL_CHECK.
      	(DECL_BIT_FIELD_TYPE, DECL_QUALIFIER, DECL_FCONTEXT): Likewise.
      	(DECL_PACKED, DECL_BIT_FIELD): Likewise.
      	(DECL_FIELD_BITPOS): Deleted.
      	(DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET): New fields.
      	(DECL_RESULT, DECL_SAVED_INSNS): Use FUNCTION_DECL_CHECK.
      	(DECL_FRAME_SIZE, DECL_FUNCTION_CODE, DECL_NO_STATIC_CHAIN): Likewise.
      	(DECL_INLINE, DECL_BUILT_IN_NONANSI, DECL_IS_MALLOC): Likewise.
      	(DECL_BUILT_IN_CLASS, DECL_STATIC_CONSTRUCTOR): Likewise.
      	(DECL_STATIC_DESTRUCTOR, DECL_NO_CHECK_MEMORY_USAGE): Likewise.
      	(DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT, DECL_NO_LIMIT_STACK) Likewise.
      	(DECL_ORIGINAL_TYPE, TYPE_DECL_SUPPRESS_DEBUG): Use TYPE_DECL_CHECK.
      	(DECL_ARG_TYPE_AS_WRITEN, DECL_ARG_TYPE): Use PARM_DECL_CHECK.
      	(DECL_INCOMING_RTL, DECL_TRANSPARENT_UNION): Likewise.
      	(DECL_ALIGN): Adjust to new field in union.
      	(DECL_OFFSET_ALIGN): New field.
      	(DECL_ERROR_ISSUED, DECL_TOO_LATE): Use LABEL_DECL_CHECK.
      	(DECL_IN_TEXT_SECTION): Use VAR_DECL_CHECK.
      	(union tree_decl): Add struct for both aligns.
      	(enum tree_index): Add TI_BITSIZE_{ZERO,ONE,UNIT}.
      	(bitsize_zero_node, bitsize_one_node, bitsize_unit_node): Added.
      	(struct record_layout_info): Rework fields to have offset
      	alignment and byte and bit position.
      	(start_record_layout, place_field): Renamed from old names.
      	(rli_size_so_far, rli_size_unit_so_far, normalize_rli): New decls.
      	(byte_position, int_byte_position): Likewise.
      	(get_inner_reference): Change types of position and length.
      	* unroll.c (unroll_loop): New variable R; use for some loops.
      	MAX_LOCAL_REGNUM and MAXREGNUM now unsigned.
      	(calculate_giv_inc): Arg REGNO now unsigned.
      	(copy_loop_body): REGNO and SRC_REGNO now unsigned.
      	* varasm.c (assemble_variable): Clean up handling of size using
      	host_integerp and tree_low_cst.
      	(decode_addr_const): Use byte, not bit, position.
      	(output_constructor): bitpos and offsets are HOST_WIDE_INT;
      	use tree_low_cst and int_bit_position.
      	* objc/objc-act.c (build_ivar_list_initializer): Use byte_position.
      	* ch/actions.c (check_missing_cases): BYTES_NEEDED is HOST_WIDE_INT.
      	* ch/typeck.c (expand_constant_to_buffer): Use int_byte_position.
      	(extract_constant_from_buffer): Likewise.
      	* cp/class.c (build_vbase_pointer_fields): layout_field now
      	place_field.
      	(get_vfield_offset): Use byte_position.
      	(set_rtti_entry): Set OFFSET to ssizetype zero.
      	(get_binfo_offset_as_int): Deleted.
      	(dfs_record_base_offsets): Use tree_low_cst.
      	(dfs_search_base_offsets): Likewise.
      	(layout_nonempty_base_or_field): Reflect changes in RLI format
      	and call byte_position.
      	(layout_empty_base): Convert offset to ssizetype.
      	(build_base_field): use rli_size_unit_so_far.
      	(dfs_propagate_binfo_offsets): Do computation in proper type.
      	(layout_virtual_bases): Pass ssizetype to propagate_binfo_offsets.
      	(layout_class_type): Reflect changes in RLI names and fields.
      	(finish_struct_1): Set DECL_FIELD_OFFSET.
      	* cp/dump.c (dequeue_and_dump): Call bit_position.
      	* cp/expr.c (cplus_expand_constant): Use byte_position.
      	* cp/rtti.c (expand_class_desc): Use bitsize_one_node.
      	* cp/typeck.c (build_component_addr): Use byte_position and don't
      	special case for zero offset.
      	* f/com.c (ffecom_tree_canonize_ptr_): Use bitsize_zero_node.
      	(ffecom_tree_canonize_ref_): Likewise.
      	* java/class.c (make_field_value): Use byte_position.
      	* java/expr.c (JAVA_ARRAY_LENGTH_OFFSET): Use byte_position.
      	(java_array_data_offset): Likewise.
      	* java/java-tree.h (MAYBE_CREATE_TYPE_TYPE_LANG_SPECIFIC): Add case to
      	bzero call.
      
      From-SVN: r32742
      Richard Kenner committed
  15. 07 Mar, 2000 1 commit
    • rtl.h (rtunion_def): Constify member `rtstr'. · 3cce094d
      	* rtl.h (rtunion_def): Constify member `rtstr'.
      	(emit_line_note_after, emit_line_note, emit_line_note_force,
      	emit_note, decode_asm_operands): Constify.
      
      	* cse.c (canon_hash): Likewise.
      
      	* dbxout.c (dbxout_block): Likewise.
      
      	* diagnostic.c (file_and_line_for_asm, v_error_for_asm,
      	v_warning_for_asm): Likewise.
      
      	* dwarfout.c (function_start_label): Likewise.
      
      	* emit-rtl.c (emit_line_note_after, emit_line_note, emit_note,
      	emit_line_note_force): Likewise.
      
      	* final.c (last_filename, asm_insn_count, final_scan_insn,
      	output_source_line): Likewise.
      
      	* function.h (struct emit_status): Likewise.
      
      	* gcse.c (hash_expr_1): Likewise.
      
      	* genattr.c (gen_attr, main): Likewise.
      
      	* genattrtab.c (struct function_unit, current_alternative_string,
      	write_attr_valueq, n_comma_elts, next_comma_elt, attr_eq,
      	attr_numeral, check_attr_test, check_attr_value,
      	convert_set_attr_alternative, convert_set_attr,
      	compute_alternative_mask, simplify_by_exploding, gen_attr,
      	gen_unit): Likewise.
      
      	* genflags.c (gen_insn): Likewise.
      
      	* gengenrtl.c (type_from_format): Likewise.
      
      	* genopinit.c (gen_insn): Likewise.
      
      	* genoutput.c (n_occurrences, process_template, process_template):
      	Likewise.
      
      	* ggc-page.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
      	Likewise.
      
      	* ggc-simple.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
      	Likewise.
      
      	* ggc.h (ggc_mark_string, ggc_mark, ggc_mark_if_gcable,
      	ggc_set_mark, ggc_get_size): Likewise.
      
      	* objc/objc-act.c (build_module_descriptor, finish_objc): Likewise.
      
      	* optabs.c (init_one_libfunc): Likewise.
      
      	* output.h (assemble_start_function): Likewise.
      
      	* recog.c (decode_asm_operands): Likewise.
      
      	* toplev.c (rest_of_compilation): Likewise.
      
      	* tree.h (emit_line_note_after, emit_line_note,
      	emit_line_note_force): Likewise.
      
      	* varasm.c (asm_output_bss, asm_output_aligned_bss,
      	asm_emit_uninitialised, assemble_start_function,
      	assemble_variable, const_hash, compare_constant_1,
      	find_pool_constant, mark_constant_pool, assemble_alias): Likewise.
      
      	* xcoffout.h (DBX_FINISH_SYMBOL): Likewise.
      
      	* alpha/alpha.md (call_vms, call_value_vms): Likewise.
      
      	* arm/aof.h (ASM_OUTPUT_ASCII): Likewise.
      
      	* arm/aout.h (ASM_OUTPUT_ASCII): Likewise.
      
      	* arm/arm-protos.h (output_ascii_pseudo_op, arm_dllexport_name_p,
      	arm_dllimport_name_p): Likewise.
      
      	* arm/arm.c (arm_encode_call_attribute, output_ascii_pseudo_op):
      	Likewise.
      
      	* arm/arm.h (ASM_OUTPUT_MI_THUNK): Likewise.
      
      	* arm/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
      
      	* arm/pe.c (arm_dllexport_name_p, arm_dllimport_name_p,
      	arm_mark_dllexport, arm_mark_dllimport,
      	arm_pe_encode_section_info): Likewise.
      
      	* arm/telf.h (ASM_OUTPUT_DEF_FROM_DECLS,
      	ASM_FINISH_DECLARE_OBJECT): Likewise.
      
      	* arm/thumb.c (thumb_function_prologue): Likewise.
      
      	* arm/thumb.h (ASM_OUTPUT_ASCII): Likewise.
      
      	* avr/avr.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
      
      	* clipper/clix.h (ASM_OUTPUT_ASCII): Likewise.
      
      	* fx80/fx80.h (ASM_OUTPUT_ASCII): Likewise.
      
      	* i386/cygwin.h (ASM_OUTPUT_SECTION_NAME): Likewise.
      
      	* i386/freebsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
      
      	* i386/i386-interix.h (ASM_OUTPUT_LIMITED_STRING,
      	ASM_OUTPUT_ASCII, ASM_OUTPUT_SECTION_NAME): Likewise.
      
      	* i386/i386-protos.h (asm_output_function_prefix): Likewise.
      
      	* i386/i386.c (asm_output_function_prefix): Likewise.
      
      	* i386/i386elf.h (ASM_OUTPUT_ASCII): Likewise.
      
      	* i386/osfrose.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
      
      	* i386/ptx4-i.h (ASM_OUTPUT_ASCII): Likewise.
      
      	* i386/sco5.h (ASM_FINISH_DECLARE_OBJECT,
      	ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII,
      	ASM_OUTPUT_SECTION_NAME): Likewise.
      
      	* i386/sysv4.h (ASM_OUTPUT_ASCII): Likewise.
      
      	* i860/paragon.h (ASM_OUTPUT_ASCII): Likewise.
      
      	* i860/sysv3.h (ASM_OUTPUT_ASCII): Likewise.
      
      	* m32r/m32r.c (m32r_encode_section_info): Likewise.
      
      	* mcore-elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
      
      	* mcore/mcore.c (mcore_encode_section_info): Likewise.
      
      	* mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
      
      	* mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
      
      	* mips/iris6.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
      
      	* mips/mips.h (ASM_OUTPUT_IDENT): Likewise.
      
      	* mips/mips.md (movdi, movsi): Likewise.
      
      	* mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
      
      	* netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
      
      	* openbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
      
      	* ptx4.h (ASM_FINISH_DECLARE_OBJECT, ASM_OUTPUT_LIMITED_STRING,
      	ASM_OUTPUT_ASCII): Likewise.
      
      	* rs6000/rs6000.c (rs6000_allocate_stack_space, output_epilog,
      	output_mi_thunk, output_toc): Likewise.
      
      	* rs6000/rs6000.md (movsi): Likewise.
      
      	* rs6000/sysv4.h (ASM_OUTPUT_INT, ASM_OUTPUT_SECTION_NAME): Likewise.
      
      	* tahoe/harris.h (ASM_OUTPUT_ASCII): Likewise.
      
      	* v850/v850.c (print_operand, print_operand_address,
      	v850_encode_data_area): Likewise.
      
      ch:
      	* grant.c (globalize_decl): Constify a char*.
      
      cp:
      	* decl2.c (finish_objects): Constify a char*.
      
      	* method.c (emit_thunk): Likewise.
      
      From-SVN: r32388
      Kaveh R. Ghazi committed
  16. 06 Feb, 2000 1 commit
    • Makefile.in (c-common.o): Depend on $(EXPR_H). · c6991660
      	* Makefile.in (c-common.o): Depend on $(EXPR_H).
      
      	* c-common.c: Include expr.h.
      
      	* c-pragma.c (mark_align_stack): Add prototype.
      
      	* caller-save.c (add_stored_regs): Likewise.
      
      	* combine.c (record_promoted_value): Likewise.
      
      	* i386.c (ix86_sched_reorder_pentium, ix86_sched_reorder_ppro):
      	Likewise.
      
      	* cppinit.c (new_pending_define): Likewise.
      
      	* cpplib.c (skip_block_comment, skip_line_comment): Likewise.
      
      	* dwarf2out.c (save_rtx, splice_child_die, reverse_die_lists,
      	AT_class, AT_flag, AT_int, AT_unsigned, AT_string, AT_ref, AT_loc,
      	AT_addr, AT_lbl, get_AT_ref, free_AT, free_die, local_scope_p,
      	class_scope_p): Likewise.
      
      	* dwarf2out.h (dwarf2out_set_demangle_name_func,
      	dwarf2out_add_library_unit_info): Likewise.
      
      	* ggc.h (ggc_page_print_statistics): Likewise.
      
      	* haifa-sched.c (propagate_deps): Likewise.
      
      	* reg-stack.c (next_flags_user, record_label_references): Likewise.
      
      	* rtl.h (set_stack_check_libfunc): Likewise.
      
      	* toplev.h (set_fatal_function): Likewise.
      
      	* toplev.c (set_fatal_function): Delete prototype.
      
      	* diagnostic.c: Deconstify functions returning malloc'ed ptrs.
      
      From-SVN: r31810
      Kaveh R. Ghazi committed
  17. 25 Jan, 2000 1 commit
  18. 17 Jan, 2000 2 commits
    • Update copyrights · 9311a396
      From-SVN: r31465
      Kaveh Ghazi committed
    • ggc-common.c: PROTO -> PARAMS. · 3fe41456
              * ggc-common.c: PROTO -> PARAMS.
              * ggc-page.c: Likewise.
              * ggc-simple.c: Likewise.
              * ggc.h: Likewise.
              * global.c: Likewise.
              * graph.c: Likewise.
              * gthr-win32.h: Likewise.
              * haifa-sched.c: Likewise.
              * halfpic.h: Likewise.
              * integrate.c: Likewise.
              * integrate.h: Likewise.
              * jump.c: Likewise.
              * lcm.c: Likewise.
              * local-alloc.c: Likewise.
              * loop.c: Likewise.
              * loop.h: Likewise.
      
      From-SVN: r31458
      Kaveh R. Ghazi committed
  19. 01 Dec, 1999 1 commit
  20. 16 Nov, 1999 1 commit
  21. 29 Oct, 1999 1 commit
    • ggc.h (struct ggc_statistics): New type. · 3277221c
      	* ggc.h (struct ggc_statistics): New type.
      	(ggc_get_size): New function.
      	(ggc_print_statistics): Likewise.
      	* ggc-common.c (ggc_stats): New variable.
      	(ggc_mark_rtx_children): Keep statistics.
      	(ggc_mark_tree_children): Likewise.
      	(ggc_print_statistics): New function.
      	* ggc-page.c (struct globals): Add bytes_mapped field.
      	(alloc_anon): Update it.
      	(release_pages): Likewise.
      	(ggc_get_size): New function.
      	(ggc_page_print_statistics): New function.
      	* ggc-simple.c (ggc_get_size): New function.
      
      From-SVN: r30251
      Mark Mitchell committed
  22. 13 Oct, 1999 1 commit
  23. 11 Oct, 1999 1 commit
    • ggc.h (ggc_push_context): Fix comment. · 74c937ca
      	* ggc.h (ggc_push_context): Fix comment.
      	(ggc_pop_context): Likewise.
      	(mark_string_if_gcable): Likewise.
      	* ggc-common.c (ggc_mark_rtx_children): Use
      	ggc_mark_string_if_gcable.
      	* ggc-page.c (ggc_lookup_page_table): New function.
      	(ggc_allocated_p): Likewise.
      	(mark_obj): Fix formatting.
      	(ggc_mark_string_if_gcable): New function.
      	* ggc-simple.c (ggc_allocated_strings): New variable.
      	(ggc_strings_used): Likewise.
      	(ggc_compare_addresses): New function.
      	(ggc_pop_context): Pop the `any' memory too.
      	(ggc_mark_string_if_gcable): New function.
      	(ggc_collect): Initialize and tear down ggc_allocated_strings.
      
      From-SVN: r29897
      Mark Mitchell committed
  24. 22 Sep, 1999 1 commit
    • Various fixes for problems discovered stress-testing GC. · 21a427cc
      	* config/i386/i386.c (pic_label_name): Change to char pointer.
      	(global_offset_table): New variable.
      	(load_pic_register): Fill global_offset_table if it hasn't
      	already been done.  Allocate pic_label_name dynamically.
      	* ggc.h (empty_string): New variable.
      	* ggc-simple.c (empty_string): Likewise.
      	(init_ggc): Allocate empty_string and add as root.
      	* stmt.c (digit_strings): New variable.
      	(init_stmt): Add last_block_end_note as root.  Allocate and
      	initialize digit_strings.
      	(expand_asm_operands): Use empty_string and digit_string instead
      	of string constants.
      	* profile.c (init_arc_profiler): Allocate with ggc_alloc_string
      	instead of xmalloc.
      	(output_func_start_profiler): Likewise.
      	* c-typeck.c (digest_init): Check if init is error_mark_node.
      
      From-SVN: r29575
      Alex Samuel committed
  25. 16 Sep, 1999 2 commits
    • ggc.h (ggc_root): Move to ggc-common.c. · 96df4529
      Thu Sep 16 11:50:52 1999  Alex Samuel  <samuel@codesourcery.com>
      
              * ggc.h (ggc_root): Move to ggc-common.c.
              (roots): Remove.
              (ggc_mark_rtx, ggc_mark_tree): Change to macro.
              (ggc_mark_rtvec, ggc_mark_tree_varray): Declare extern.
              (ggc_mark_tree_hash_table, ggc_mark_string, ggc_mark): Likewise.
              (ggc_mark_roots, ggc_mark_rtx_children, ggc_mark_tree_children): New.
              * ggc-common.c (ggc_root): Move from ggc.h.
              (roots): Declare, static.
              (ggc_mark_rtx, ggc_mark_tree): Renamed to...
              (ggc_mark_rtx_children, ggc_mark_tree_children): Don't check for
              null or check/set mark bit.
              (ggc_mark_roots): New.
              * ggc-simple.c (ggc_collect): Call ggc_mark_roots.
      
      From-SVN: r29461
      Alex Samuel committed
    • emit-rtl.c (free_emit_status): Don't check DECL_DEFER_OUTPUT. · fa51b01b
              * emit-rtl.c (free_emit_status): Don't check DECL_DEFER_OUTPUT.
              Free the struct.
              (mark_emit_status): Renamed from mark_emit_state.
              * except.c (mark_eh_status): Renamed from mark_eh_state.
              Check not null before marking.
              (free_eh_status): New.
              * expr.c (mark_expr_status, free_expr_status): New.
              * function.c (free_machine_status): New.
              (free_after_parsing): New.
              (free_after_compilation): Move bits to free_after_parsing; call
              free_eh_status, free_expr_status; zero the marked members of the
              function state.
              (prepare_function_start): No can_garbage_collect.
              Call init_eh_for_function.
              (expand_dummy_function_end): Free up current_function state.
              (mark_function_status): Renamed from mark_function_state.
              (mark_function_chain): No can_garbage_collect.  Call mark_expr_status.
              * function.h (struct function): No can_garbage_collect.
              (free_machine_status, free_after_parsing): Declare.
              (free_eh_status, free_expr_status): Declare.
              * ggc.h (mark_expr_status): Declare.
              * stmt.c (free_stmt_status): Free the struct.
              (mark_stmt_status): Renamed from mark_stmt_state.
              (init_stmt): Don't call init_eh.
              (init_stmt_for_function): Don't call init_eh_for_function.
              * toplev.c (compile_file): Call init_eh.
              (rest_of_compilation): Free basic block info before ggc_collect.
              Call free_after_parsing; conditionally call free_after_compilation.
              * varasm.c (mark_varasm_status): Renamed from mark_varasm_state.
              Check not null before marking.
      
      From-SVN: r29448
      Richard Henderson committed
  26. 11 Sep, 1999 2 commits
    • Update copyright. · a611912f
      From-SVN: r29282
      Richard Henderson committed
    • Alex Samuel <samuel@codesourcery.com> · b49a6a90
              * ggc.h (rtvec_def): Forward declare.
              (tree_node): Likewise.
              (ggc_root): Define.
              (roots): Declare.
              (ggc_set_mark_rtx): Add prototype.
              (ggc_set_mark_rtvec): Likewise.
              (ggc_set_mark_tree): Likewise.
              * ggc-simple.c (ggc_root): Don't define.
              (roots): Don't declare.
              (ggc_mark_rtx): Remove.
              (ggc_mark_rtvec): Likewise.
              (ggc_mark_tree): Likewise.
              (ggc_mark_varray): Likewise.
              (ggc_mark_tree_hash_table_entry): Likewise.
              (ggc_mark_tree_hash_table): Likewise.
              (ggc_set_mart_rtx): New function.
              (ggc_set_mark_rtvec): Likewise.
              (ggc_set_mark_tree): Likewise.
              (ggc_add_root): Remove.
              (ggc_add_rtx_root): Likewise.
              (ggc_remove_tree_root): Likewise.
              (ggc_add_string_root): Likewise.
              (ggc_add_tree_varray_root): Likewise.
              (ggc_add_tree_hash_table_root): Likewise.
              (ggc_del_root): Likewise.
              (ggc_mark_rtx_ptr): Likewise.
              (ggc_mark_tree_ptr): Likewise.
              (ggc_mark_string_ptr): Likewise.
              (ggc_mark_tree_varray_ptr): Likewise.
              (ggc_mark_tree_hash_table_ptr): Likewise.
              * ggc-common.c: New file.
              * Makefile.in (OBJS): Add ggc-common.o.
              (ggc-common.o): List dependencies.
      
      From-SVN: r29281
      Alex Samuel committed
  27. 09 Sep, 1999 3 commits
    • ggc.h (lang_cleanup_tree): Remove. · 96603b4c
      	* ggc.h (lang_cleanup_tree): Remove.
      	* gcc-simple.c (ggc_free_tree): Don't call lang_cleanup_tree.
      	* ggc-callbacks.c (lang_cleanup_tree): Remove.
      
      	* c-decl.c (finish_struct): Use ggc_alloc to allocate
      	TYPE_LANG_SPECIFIC when garbage collecting.
      	(lang_cleanup_tree): Remove.
      
      From-SVN: r29242
      Mark Mitchell committed
    • combine.c (SUBST): Break out to a real function do_SUBST. · 76095e2f
              * combine.c (SUBST): Break out to a real function do_SUBST.
              (SUBST_INT): Likewise.
              * gcse.c (free_pre_mem): Free `temp_bitmap'.
              (pre_insert): Free `inserted'.
              * loop.c (basic_induction_var): Always set `location'.
      
              * function.c (expand_function_end): Add initial_trampoline as a root.
              * rtl.h (init_varasm_once): Declare.
              * toplev.c (compile_file): Call it.
              * ggc-simple.c (ggc_mark_string_ptr): New.
              (ggc_add_string_root): New.
              (ggc_collect): Disable collection avoidance temporarily.
              * ggc.h (ggc_add_string_root): Declare.
              * except.c (create_rethrow_ref): Use ggc_alloc_string.
              * optabs.c (init_libfuncs): Likewise.
              * varasm.c (named_section): Use ggc_alloc_string.
              (make_function_rtl): Likewise.
              (make_decl_rtl): Likewise.
              (assemble_static_space): Likewise.
              (assemble_trampoline_template): Likewise.
              (output_constant_def): Likewise.
              (force_const_mem): Likewise.
              (mark_const_hash_entry): New.
              (mark_pool_sym_hash_table): New.
              (mark_varasm_state): Use it.
              (init_varasm_once): New.
      
              * expr.h (init_one_libfunc): Declare.
              * optabs.c (init_one_libfunc): New.
              (init_optabs): Use it.
              * config/gofast.h: Likewise.
              * config/sparc/sol2.h (INIT_SUBTARGET_OPTABS): Likewise.
              * config/sparc/sparc.h (INIT_TARGET_OPTABS): Likewise.
      
      From-SVN: r29226
      Richard Henderson committed
    • ggc.h (ggc_alloc): New function. · 37b31aef
      	* ggc.h (ggc_alloc): New function.
      	(ggc_mark): Likewise.
      	* ggc-simple.c (ggc_any): New structure.
      	(ggc_status): Add anys.
      	(n_anys_collected): New variable.
      	(ggc_alloc): Define.
      	(ggc_mark): Likewise.
      	(ggc_collect): Collect the anys.
      
      From-SVN: r29222
      Mark Mitchell committed
  28. 07 Sep, 1999 1 commit
    • emit-rtl.c (free_emit_status): Take decl as a parameter. · 21cd906e
      	* emit-rtl.c (free_emit_status): Take decl as a parameter.
      	(init_emit_once): Add more GC roots.
      	* except.c (mark_func_eh_entry): New function.
      	(mark_eh_node): Mark false_label and rethrow_label.
      	(init_eh): Add more GC roots.
      	* function.c (free_after_compilation): Take decl as a paramter.
      	Call free_stmt_status.
      	(mark_function_state): Don't assume x_parm_reg_stack_loc is
      	non-NULL.
      	* function.h (free_after_compilation): Change prototype.
      	(free_varasm_status): Likewise.
      	(free_emit_status): Likewise.
      	(free_stmt_status): New function.
      	* ggc-simple.c (rtx, vecs, trees, strings, bytes_alloced_since_gc):
      	Remove, replacing with ...
      	(ggc_status): New structure.
      	(ggc_chain): New variable.
      	(init_gcc): Define.
      	(ggc_push_context): New function.
      	(ggc_pop_context): Likewise.
      	(ggc_alloc_rtx): Adjust for use of ggc_chain.
      	(ggc_alloc_rtvec): Likewise.
      	(ggc_alloc_tree): Likewise.
      	(ggc_alloc_string): Likewise.
      	(ggc_mark_rtx): Mark NOTE_SOURCE_FILE and NOTE_RANGE_INFO.
      	(ggc_mark_tree): Give language-dependent code a chance to mark
      	`x' nodes.
      	(ggc_mark_tree_varray): Handle empty arrays.
      	(ggc_collect): Adjust for use of ggc_chain.  Clear
      	bytes_alloced_since_last_gc.
      	* ggc.h (ggc_pop_context): New function.
      	(ggc_push_context): Likewise.
      	* print-tree.c (print_node): Don't print obstacks when GC'ing.
      	* stmt.c (free_stmt_status): New function.
      	(init_stmt_for_function): Clear last_expr_value.
      	* toplev.c (rest_of_compilation): Always call free_after_compilation.
      	Conditionalize call to ggc_collect.
      	(main): Call init_ggc.
      	* tree.c (push_obstacks): Do the push, even when GC'ing.
      	(push_obstacks_nochange): Likewise.
      	(pop_obstacks): Liekwise.
      	* varasm.c (free_varasm_status): Take decl as a parameter.
      
      From-SVN: r29170
      Mark Mitchell committed
  29. 06 Sep, 1999 1 commit
    • Makefile.in (ggc-simple.o): Depend on hash.h. · 565e3f3e
      	* Makefile.in (ggc-simple.o): Depend on hash.h.
      	* ggc.h (ggc_add_tree_hash_table_root): Declare.
      	(ggc_mark_tree_varray): Likewise.
      	(ggc_mark_tree_hash_table): Likewise.
      	* ggc-simple.c: Include hash.h.
      	(ggc_mark_tree_hash_table_ptr): New function.
      	(ggc_mark_tree_hash_table_entry): Likewise.
      	(ggc_mark_tree_hash_table): Likewise.
      	(ggc_add_tree_hash_table_root): Likewise.
      	* varray.h (const_equiv_data): Use struct rtx_def *, rather than
      
      	* profile.c (output_func_start_profiler): Remove apparently
      	nonsensical call to start_sequence.
      
      From-SVN: r29134
      Mark Mitchell committed
  30. 05 Sep, 1999 2 commits
    • Makefile.in (ggc-simple.o): Depend on varray.h. · a3770a81
      	* Makefile.in (ggc-simple.o): Depend on varray.h.
      	(rtl.o): Depend on ggc.h.
      	(genattrtab.o): Depend on ggc.h.
      	(print-tree.o): Likewise.
      	(fold-const.o): Likewise.
      	* emit-rtl.c (sequence_element_free_list): Remove, and all references.
      	(make_insn_raw): Don't cache insns when GC'ing.
      	(emit_insn_before): Likewise.
      	(emit_insn_after): Likewise.
      	(emit_insn): Likewise.
      	(start_sequence): Use xmalloc to allocate the sequence_stack.
      	(end_sequence): Add free to free it.
      	(gen_sequence): Don't cache insns when GC'ing.
      	(clear_emit_caches): Don't use sequence_element_free_list.
      	(init_emit): Use xcalloc, not xmalloc+bzero.
      	* fold-const.c (size_int_wide): Kill the cache, when GC'ing.
      	* function.c (pop_function_context_from): Use free to free the
      	fixup_var_refs_queue.
      	(put_reg_into_stack): Allocate it with xmalloc.
      	* genattrtab.c: Include ggc.h.
      	(operate_exp): Don't use obstack_free when GC'ing.
      	(simplify_cond): Likewise.
      	(simplify_text_exp): Likewise.
      	(optimize_attrs): Likewise.
      	* gengentrtl.c (gendef): Use ggc_alloc_rtx to allocate RTL, when
      	GC'ing.
      	(gencode): Generate a #include for ggc.h.
      	* ggc-callbacks.c (ggc_p): Define it to zero.
      	* ggc-none.c (ggc_p): Likewise.
      	* ggc-simple.c: Include varray.h.
      	(ggc_mark_tree_varray): New function.
      	(ggc_add_tree_varray_root): Likewise.
      	(ggc_mark_tree_varray_ptr): Likewise.
      	* ggc.h (ggc_p): Declare.
      	(varray_head_tag): Likewise.
      	(ggc_add_tree_varray_root): Declare.
      	* print-tree.c (print_node): Don't check for TREE_PERMANENT
      	inconsistencies when GC'ing.
      	* rtl.c: Include ggc.h.
      	(rtvec_alloc): Use ggc_alloc_rtvec when GC'ing.
      	(rtx_alloc): Use ggc_alloc_rtx when GC'ing.
      	(rtx_free): Don't call obstack_free when GC'ing.
      	* toplev.c (rest_of_compilation): Call ggc_collect after every
      	pass, if GC'ing.
      	* tree.c (push_obstacks): Do nothing, if GC'ing.
      	(pop_obstacks_nochange): Likewise.
      	(pop_obstacks): Likewise.
      	(make_node): Use ggc_alloc_tree when GC'ing.
      	(copy_node): Likewise.
      	(get_identifier): Use ggc_alloc_string when GC'ing.
      	(build_string): Likewise.
      	(make_tree_vec): Use ggc_alloc_tree when GC'ing.
      	(tree_cons): Likewise.
      	(build1): Likewise.
      	(type_hash_canon): Don't call obstack_free when GC'ing.
      
      Co-Authored-By: Bernd Schmidt <bernds@cygnus.co.uk>
      Co-Authored-By: Mark Mitchell <mark@codesourcery.com>
      
      From-SVN: r29125
      Richard Henderson committed
    • Makefile.in (tree.o): Depend on ggc.h. · 87ff9c8e
      	* Makefile.in (tree.o): Depend on ggc.h.
      	(varasm.o): Likewise.
      	(function.o): Likewise.
      	(stmt.o): Likewise.
      	(except.o): Likewise.
      	(optabs.o): Likewise.
      	(emit-rtl.o): Likewise.
      	* emit-rtl.c: Include ggc.h.
      	(sequence_element_free_list): Remove, and all references.
      	(mark_sequence): New functions.
      	(mark_emit_state): New function.
      	* except.c: Include ggc.h.
      	(mark_eh_node, mark_eh_stack, mark_eh_queue): New functions.
      	(mark_tree_label_node): New functions.
      	(mark_eh_state): New function.
      	* function.c: Include ggc.h.
      	(mark_temp_slot, mark_function_chain): New functions.
      	(mark_function_state): New function.
      	(init_function_once): New function.
      	* function.h (init_function_once): New function.
      	* ggc-callbacks.c (lang_mark_false_label_stack): New function.
      	* ggc.h (label_node): Declare.
      	(eh_status, emit_status, stmt_status, varasm_status): Likewise.
      	(lang_mark_false_label_stack): New function.
      	(mark_temp_slot): Remove declaration.
      	(mark_function_chain): Likewise.
      	(mark_eh_state): Adjust prototype.
      	(mark_stmt_state, mark_emit_state, mark_varasm_state, mark_optab):
      	Likewise.
      	* optabs.c: Include ggc.h.
      	(mark_optab): New function.
      	(init_optabs): Add gc roots.
      	* stmt.c: Include ggc.h.
      	(mark_cond_nesting, mark_loop_nesting): New functions.
      	(mark_block_nesting, mark_case_nesting, mark_goto_fixup): Likewise.
      	(mark_stmt_state): New function.
      	* toplev.c (compile_file): Call init_function_once.
      	* tree.c: Include ggc.h.
      	(type_hash): Move declaration earlier in file.
      	(TYPE_HASH_SIZE, type_hash_table): Likewise.
      	(init_obstacks): Add gc roots.
      	(mark_type_hash): New function.
      	* varasm.c: Include ggc.h.
      	(mark_pool_constant): New function.
      	(mark_varasm_state): New function.
      
      Co-Authored-By: Bernd Schmidt <bernds@cygnus.co.uk>
      Co-Authored-By: Mark Mitchell <mark@codesourcery.com>
      
      From-SVN: r29119
      Richard Henderson committed
  31. 04 Sep, 1999 1 commit
    • Makefile.in (GGC, GGC_LIB): New. · 0a25f1f5
      	* Makefile.in (GGC, GGC_LIB): New.
      	(HOST_RTL): Include ggc-none.o.
      	(ggc-simple.o): New target.
      	(ggc-none.o): Likewise.
      	* tree.h (tree_common): Add gc_mark.
      	* rtl.h (struct rtx_def): Steal a bit from code to make gc_mark.
      	(struct rtvec_def): Add gc_mark.
      	* emit-rtl.c (global_rtl): Update static initializers to contain
      	enough initializers.
      	* ggc.h, ggc-none.c, ggc-simple.c: New files.
      	* toplev.c (gc_time): New variable.
      	(all_time): New variable.
      	(compile_file): Print gc time.
      	(print_time): Calculate percentage of the whole.
      
      From-SVN: r29106
      Richard Henderson committed