1. 19 Mar, 2001 1 commit
  2. 07 Mar, 2001 1 commit
  3. 02 Mar, 2001 1 commit
    • xm-lynx.h, [...]: Do not define TRUE or FALSE. · d6edb99e
      	* config/xm-lynx.h, config/xm-std32.h, config/a29k/xm-a29k.h,
      	config/a29k/xm-unix.h, config/alpha/xm-alpha.h,
      	config/arc/xm-arc.h, config/arm/xm-arm.h, config/c4x/xm-c4x.h,
      	config/clipper/xm-clix.h, config/convex/xm-convex.h,
      	config/d30v/xm-d30v.h, config/dsp16xx/xm-dsp16xx.h,
      	config/elxsi/xm-elxsi.h, config/fr30/xm-fr30.h,
      	config/h8300/xm-h8300.h, config/i370/xm-i370.h,
      	config/i370/xm-linux.h, config/i370/xm-mvs.h,
      	config/i370/xm-oe.h, config/i386/xm-aix.h,
      	config/i386/xm-i386.h, config/i386/xm-osf.h,
      	config/i860/xm-i860.h, config/i960/xm-i960.h,
      	config/ia64/xm-ia64.h, config/m32r/xm-m32r.h,
      	config/m68k/xm-m68k.h, config/m88k/xm-m88k.h,
      	config/mcore/xm-mcore.h, config/mips/xm-mips.h,
      	config/mn10200/xm-mn10200.h, config/mn10300/xm-mn10300.h,
      	config/ns32k/xm-ns32k.h, config/pa/xm-linux.h,
      	config/pa/xm-pa.h, config/pa/xm-pa64hpux.h,
      	config/pa/xm-pahpux.h, config/pa/xm-papro.h,
      	config/pj/xm-pj.h, config/romp/xm-romp.h,
      	config/rs6000/xm-beos.h, config/rs6000/xm-rs6000.h,
      	config/rs6000/xm-sysv4.h, config/sh/xm-sh.h,
      	config/sparc/xm-sparc.h, config/sparc/xm-sysv4.h,
      	config/v850/xm-v850.h, config/vax/xm-vax.h,
      	config/vax/xm-vms.h, config/we32k/xm-we32k.h:
      	Do not define TRUE or FALSE.
      
      	* config/i386/xm-aix.h, config/i386/xm-osf.h: Delete; made
      	empty by above change.
      	* config.gcc: Remove references to these files.
      
      	* configure.in: Detect stdbool.h.
      	* configure, config.in: Regenerate.
      	* system.h: Include stddef.h here if available.  Set
      	HAVE__BOOL based on GCC_VERSION and __STDC_VERSION__.  Then
      	set up a sensible boolean type at the very end.
      
      	* combine.c, cse.c, expr.c, fold-const.c, gensupport.c,
      	f/com.c, config/mcore/mcore.c:
      	Rename variables named 'true' and/or 'false'.
      
      	* hash.h: Delete 'boolean' typedef and related #undefs.
      	* f/proj.h: Delete 'bool' type.  Don't include stddef.h here.
      
      	* function.c, ggc-common.c, hash.h, hash.c, tlink.c, cp/decl.c,
      	java/class.c, java/decl.c, java/java-tree.h:
      	Replace all uses of 'boolean' with 'bool'.
      
      From-SVN: r40176
      Zack Weinberg committed
  4. 16 Feb, 2001 1 commit
    • cse.c (new_label_ref): New variable. · f85cc4cb
      	* cse.c (new_label_ref): New variable.
      	(insert): Set it instead of recorded_label_ref.
      	(cse_basic_block): Set recorded_label_ref if new_label_ref use, has
      	CODE_LABEL for this function, and not already in REG_LABEL note.
      
      From-SVN: r39768
      Richard Kenner committed
  5. 13 Feb, 2001 1 commit
    • cse.c (cse_main): Converts ifdefs on PIC_OFFSET_TABLE_REGNUM to conditionals. · 848e0190
      	* cse.c (cse_main): Converts ifdefs on PIC_OFFSET_TABLE_REGNUM to
      	conditionals.
      	* defaults.h (PIC_OFFSET_TABLE_REGNUM): Default to INVALID_REGNUM.
      	* emit-rtl.c (init_emit_once): Convert ifdefs to conditionals.
      	* flow.c (mark_regs_live_at_end): Likewise.
      	(calculate_global_regs_live): Likewise.
      	* gcse.c (compute_hash_table): Likewise.
      	(compute_kill_rd): Likewise.
      	* resource.c (mark_target_live_regs): Likewise.
      	* rtl.h (INVALID_REGNUM): New macro.
      
      From-SVN: r39643
      Jan Hubicka committed
  6. 06 Feb, 2001 1 commit
  7. 12 Jan, 2001 1 commit
    • calls.c (emit_library_call_value_1): Add USEs and CLOBBERs to function usage for… · f474c6f8
      calls.c (emit_library_call_value_1): Add USEs and CLOBBERs to function usage for arguments passed by reference.
      
      * calls.c (emit_library_call_value_1): Add USEs and CLOBBERs
      to function usage for arguments passed by reference.  Optimize
      callee-copied arguments.
      * regmove.c (find_related_toplev): Find uses in function usage.
      (replace_in_call_usage): New function.
      (fixup_match_1): Call it.
      * cse.c (cse_insn): Canonicalize registers in function usage.
      * reload1.c (replace_pseudos_in_call_usage): New function.
      (reload): Call it.
      
      From-SVN: r38964
      Alexandre Oliva committed
  8. 08 Jan, 2001 1 commit
  9. 07 Jan, 2001 1 commit
  10. 05 Jan, 2001 1 commit
  11. 03 Jan, 2001 2 commits
  12. 01 Jan, 2001 1 commit
  13. 24 Nov, 2000 1 commit
  14. 23 Nov, 2000 1 commit
  15. 07 Nov, 2000 1 commit
    • alias.c [...] (init_alias_analysis, [...]): Use memset () instead of bzero (). · 961192e1
      	* alias.c (init_alias_analysis), calls.c (expand_call,
      	emit_library_call_value_1), combine.c (init_reg_last_arrays),
      	cse.c (new_basic_block), dbxout.c (dbxout_type), diagnostic.c
      	(init_output_buffer, set_diagnostic_context), dwarf2out.c
      	(equate_decl_number_to_die, build_abbrev_table), emit-rtl.c
      	(init_emit_once), fold-const.c (mul_double, div_and_round_double),
      	function.c (assign_parms), gcse.c (compute_can_copy,
      	alloc_gcse_mem, alloc_reg_set_mem, record_one_set,
      	compute_hash_table, compute_set_hash_table,
      	compute_expr_hash_table), genattrtab.c (optimize_attrs), global.c
      	(global_alloc, global_conflicts), haifa-sched.c (compute_trg_info,
      	clear_units, schedule_block), integrate.c (initialize_for_inline,
      	expand_inline_function), jump.c (thread_jumps), local-alloc.c
      	(local_alloc), loop.c (combine_movables, count_loop_regs_set,
      	load_mems_and_recount_loop_regs_set), print-tree.c (debug_tree),
      	regclass.c (init_reg_sets, init_reg_sets_1, regclass,
      	record_reg_classes, allocate_reg_info), reload.c
      	(get_secondary_mem, remove_address_replacements, find_reloads),
      	reload1.c (reload, set_initial_label_offsets, finish_spills,
      	reload_as_needed, choose_reload_regs_init,
      	reload_cse_simplify_operands), reorg.c (dbr_schedule), sbitmap.c
      	(sbitmap_zero), simplify-rtx.c (simplify_plus_minus), ssa.c
      	(rename_registers), stmt.c (expand_end_case), unroll.c
      	(unroll_loop), varray.c (varray_grow), objc/objc-act.c: Use memset
      	() instead of bzero ().
      
      ch:
      	* actions.c (check_missing_cases), typeck.c (build_chill_slice,
      	build_chill_cast): Use memset () instead of bzero ().
      
      cp:
      	* class.c (duplicate_tag_error, build_vtbl_initializer), decl.c
      	(push_binding_level), error.c (cp_tree_printer), pt.c
      	(process_partial_specialization, tsubst_template_arg_vector),
      	search.c (lookup_member): Use memset () instead of bzero ().
      
      java:
      	* expr.c (note_instructions), jcf-io.c (find_class), jcf-parse.c
      	(init_outgoing_cpool), lex.c (java_init_lex): Use memset ()
      	instead of bzero ().
      
      From-SVN: r37303
      Joseph Myers committed
  16. 26 Oct, 2000 1 commit
  17. 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
  18. 29 Sep, 2000 1 commit
  19. 15 Sep, 2000 1 commit
  20. 13 Sep, 2000 1 commit
  21. 12 Sep, 2000 1 commit
  22. 11 Sep, 2000 1 commit
  23. 06 Sep, 2000 1 commit
  24. 05 Sep, 2000 1 commit
  25. 02 Sep, 2000 1 commit
    • rtl.h (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): New macro. · 6462bb43
      * rtl.h (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): New macro.
      * gcse.c (hash_string_1): New function.
      (hash_expr_1) <ASM_OPERANDS>: Disregard filename and line number.
      (expr_equiv_p) <ASM_OPERANDS>: Likewise.
      * cse.c (rtx_cost): Don't increase the cost of ASM_OPERANDS.
      (canon_hash_string): New function.
      (canon_hash) <ASM_OPERANDS>: Disregard filename and line number.
      (exp_equiv_p) <ASM_OPERANDS>: Likewise.
      (fold_rtx): Use ASM_OPERANDS accessor macros.
      * emit-rtl.c (copy_insn_1): Likewise.
      * integrate.c (copy_rtx_and_substitute): Likewise.
      * stmt.c (expand_asm_operands): Likewise.  Give an
      ASM_OPERANDS rtx the mode of the output reg being set from it.
      
      From-SVN: r36110
      Alexandre Oliva committed
  26. 25 Aug, 2000 1 commit
  27. 23 Aug, 2000 1 commit
  28. 17 Aug, 2000 1 commit
  29. 14 Aug, 2000 3 commits
  30. 04 Aug, 2000 2 commits
    • alias.c (mark_constant_function): Use INSN_P. · 2c3c49de
      	* alias.c (mark_constant_function): Use INSN_P.
      	(init_alias_analysis): Likewise.
      	* combine.c (combine_instructions): Use INSN_P.
      	(can_combine_p): Likewise.
      	(try_combine): Likewise.
      	(distribute_notes): Likewise.
      	(distribute_links): Likewise.
      	* cse.c (cse_around_loop): Use INSN_P.
      	(invalidate_skipped_block): Likewise.
      	(cse_set_around_loop): Likewise.
      	(cse_end_of_basic_block): Likewise.
      	(delete_trivially_dead_insns): Likewise.
      	* emit-rtl.c (unshare_all_rtl_again): Use INSN_P.
      	(unshare_all_rtl_1): Likewise.
      	(next_cc0_user): Likewise.
      	(try_split make_insn_raw): Likewise.
      	(remove_unnecessary_notes): Likewise.
      	* final.c (shorten_branches): Use INSN_P.
      	(leaf_renumber_regs): Likewise.
      	(leaf_renumber_regs_insn): Likewise.
      	* flow.c (find_label_refs): Use INSN_P.
      	(verify_wide_reg): Likewise.
      	(notice_stack_pointer_modification): Likewise.
      	(count_or_remove_death_notes): Likewise.
      	(verify_flow_info): Likewise.
      	(clear_log_links): Likewise.
      	* function.c (fixup_var_refs_insns): Use INSN_P.
      	(compute_insns_for_mem): Likewise.
      	* gcse.c (alloc_gcse_mem): Use INSN_P.
      	(compute_sets): Likewise.
      	(compute_hash_table): Likewise.
      	(classic_gcse): Likewise.
      	(cprop): Likewise.
      	(insert_insn_end_bb): Likewise.
      	(delete_null_pointer_checks_1): Likewise.
      	* global.c (expand_preferences): Use INSN_P.
      	(build_insn_chain): Likewise.
      	* graph.c (node_data): Use INSN_P.
      	* haifa-sched.c (priority): Use INSN_P.
      	(rm_line_notes): Likewise.
      	(rm_other_notes): Likewise.
      	(find_insn_reg_weight): Likewise.
      	(init_target_units): Likewise.
      	(schedule_block): Likewise.
      	(compute_block_forward_dependences): Likewise.
      	(debug_dependencies): Likewise.
      	(set_priorities): Likewise.
      	* integrate.c (function_cannot_inline_p): Use INSN_P.
      	(save_parm_insns): Likewise.
      	(copy_insn_list): Likewise.
      	* jump.c (mark_all_labels): Use INSN_P.
      	(never_reached_warning): Likewise.
      	* lcm.c (optimize_mode_switching): Use INSN_P.
      	* local-alloc.c (validate_equiv_mem): Use INSN_P.
      	(memref_used_between_p): Likewise.
      	(update_equiv_regs): Likewise.
      	(block_alloc): Likewise.
      	(no_conflict_p): Likewise.
      	* loop.c (scan_loop): Use INSN_P.
      	(find_and_verify_loops): Likewise.
      	(count_loop_regs_set): Likewise.
      	(loop_reg_used_before_p): Likewise.
      	(strength_reduce): Likewise.
      	(recombine_givs): Likewise.
      	(check_dbra_loop): Likewise.
      	(load_mems): Likewise.
      	(try_copy_prop): Likewise.
      	* print-rtl.c (print_rtx): Use INSN_P.
      	* recog.c (find_single_use): Use INSN_P.
      	* reg-stack.c (stack_regs_mentioned): Use INSN_P.
      	(next_flags_user): Likewise.
      	(swap_rtx_condition): Likewise.
      	* regmove.c (mark_flags_life_zones): Use INSN_P.
      	(optimize_reg_copy_1): Likewise.
      	(optimize_reg_copy_2): Likewise.
      	(optimize_reg_copy_3): Likewise.
      	(reg_is_remote_constant_p): Likewise.
      	(fixup_match_2): Likewise.
      	(regmove_optimize): Likewise.
      	(fixup_match_1): Likewise.
      	* regrename.c (build_def_use): Use INSN_P.
      	(replace_reg_in_block): Likewise.
      	(consider_use): Likewise.
      	* reload.c (find_equiv_reg): Use INSN_P.
      	* reload1.c (reload): Use INSN_P.
      	(maybe_fix_stack_asms): Likewise.
      	(calculate_needs_all_insns): Likewise.
      	(reload_as_needed): Likewise.
      	(emit_output_reload_insns): Likewise.
      	(delete_address_reloads_1): Likewise.
      	(reload_cse_regs_1): Likewise.
      	(reload_combine): Likewise.
      	(reload_cse_move2add): Likewise.
      	* reorg.c (redundant_insn): Use INSN_P.
      	(dbr_schedule): Likewise.
      	* resource.c (find_dead_or_set_registers): Use INSN_P.
      	(mark_target_live_regs): Likewise.
      	* rtlanal.c (reg_used_between_p): Use INSN_P.
      	(reg_referenced_between_p): Likewise.
      	(reg_set_between_p): Likewise.
      	(reg_set_p): Likewise.
      	(single_set): Likewise.
      	(multiple_sets): Likewise.
      	(find_last_value): Likewise.
      	(reg_set_last): Likewise.
      	(find_reg_note): Likewise.
      	(find_regno_note): Likewise.
      	* sibcall.c (sequence_uses_addressof): Use INSN_P.
      	* simplify-rtx.c (cselib_process_insn): Use INSN_P.
      	* ssa.c (find_evaluations): Use INSN_P.
      	(rename_block): Likewise.
      	(rename_equivalent_regs): Likewise.
      	* unroll.c (loop_find_equiv_value): Use INSN_P.
      	(set_dominates_use): Likewise.
      	* varasm.c (mark_constant_pool): Use INSN_P.
      	(mark_constants): Likewise.
      	* config/alpha/alpha.c (alpha_does_function_need_gp): Use INSN_P.
      	(alphaev4_next_group): Likewise.
      	(alphaev5_next_group): Likewise.
      	* config/c4x/c4x.c (c4x_process_after_reload): Use INSN_P.
      	(c4x_rptb_rpts_p): Likewise.
      	* config/mips/mips.c (mips16_optimize_gp): Use INSN_P.
      	* config/rs6000/rs6000.c (uses_TOC): Use INSN_P.
      	(rs6000_adjust_priority): Likewise.
      	* config/sh/sh.c (sh_loop_align): Use INSN_P.
      	(machine_dependent_reorg): Likewise.
      	(split_branches): Likewise.
      	* config/tahoe/tahoe.c (tahoe_cmp_check): Use INSN_P.
      
      From-SVN: r35494
      Rodney Brown committed
    • * cse.c: Fix a comment typo. Fix formatting. · 278a83b2
      From-SVN: r35472
      Kazu Hirata committed
  31. 28 Jul, 2000 1 commit
    • cse.c (canon_hash): Handle PRE_MODIFY/POST_MODIFY. · 4b983fdc
      	* cse.c (canon_hash): Handle PRE_MODIFY/POST_MODIFY.
      	(cse_insn): Likewise.
      	(addr_affects_sp_p): Likewise.
      	* expr.c (move_by_pieces): Likewise.
      	(clear_by_pieces): Likewise.
      	* gcse.c (oprs_unchanged_p): Likewise.
      	* haifa-sched.c (sched_analyze_2): Likewise.
      	* recog.c (offsettable_address_p): Likewise.
      	* regclass.c (record_address_regs): Likewise.
      	* reload.c (find_reusable_reload): Likewise.
      	(push_reload): Likewise.
      	(operands_match_p): Likewise.
      	(decompose): Likewise.
      	(find_reloads_address_1): Likewise.
      	(find_inc_amount): Likewise.
      	* reload1.c (elimination_effects): Likewise.
      	* resource.c (mark_set_resources): Likewise.
      	* flow.c (attempt_auto_inc): New function; mostly broken out
      	of find_auto_inc.
      	(find_auto_inc): Split into two functions and enhanced to
      	generate POST_MODIFY.
      	* rtl.def (PRE_MODIFY, POST_MODIFY): Adjust comment.
      	* rtl.h (count_all_occurrences):  Declare.
      	(HAVE_{PRE,POST}_MODIFY_{DISP,REG}): Provide default of 0 if not
      	defined.
      	* rtlanal.c (count_all_occurrences): New function.
      	* tm.texi (HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_DISP,
      	HAVE_POST_MODIFY_REG, HAVE_PRE_MODIFY_REG): Document.
      
      	* config/ia64/ia64-protos.h (destination_operand): Declare.
      	* config/ia64/ia64.c (destination_operand): New function.
      	(ia64_print_operand): Handle POST_MODIFY.
      	(rtx_needs_barrier): Likewise.
      	* config/ia64/ia64.h (HAVE_POST_MODIFY_DISP): Define to 1.
      	(HAVE_POST_MODIFY_REG): Define to 1.
      	(MAX_REGS_PER_ADDRESS): Change to 2.
      	(GO_IF_LEGITIMATE_ADDRESS): Accept POST_MODIFY too.
      	(LEGITIMATE_ADDRESS_REG): New helper macro.
      	(LEGITIMATE_ADDRESS_DISP): Likewise.
      	(PREDICATE_CODES): Add entry for destination_operand.
      	* config/ia64/ia64.md (all mov patterns): Use destination_operand
      	predicate for operand 0.
      
      From-SVN: r35321
      Richard Henderson committed
  32. 25 May, 2000 1 commit
    • combine.c (try_combine): Use any_condjump_p... · 7f1c097d
              * combine.c (try_combine): Use any_condjump_p, any_uncondjump_p
              and pc_set at the place of simplejump_p and condjump_p.
              * cse.c (record_jump_equiv): Likewise.
              * emit-rtl.c (emit): Likewise.
              * explow.c (find_next_ref): Likewise.
              * flow.c (tidy_fallthru_edge): Likewise.
              (init_propagate_block_info): Likewise.
              * gcse.c (delete_null_pointer_checks): Likewise.
              * ifcvt.c (cond_exec_get_condition, noce_get_condition,
              dead_or_predicable): Likewise.
              * integrate.c (copy_insn_list): Likewise.
              * loop.c (scan_loop, verify_dominator, find_and_verify_loops,
              for_each_insn_in_loop, check_dbra_loop, get_condition,
              insert_bct, load_mems): Likewise.
              * resource.c (find_dead_or_set_registers): Likewise.
              * sibcalls.c (simplejump_p): Likewise.
              * unroll.c (copy_loop_body, reg_dead_after_loop): Likewise.
      
      From-SVN: r34175
      Jan Hubicka committed
  33. 19 May, 2000 1 commit
    • cse.c (cse_basic_block): Only call find_reg_note if REG_NOTES not 0. · efc9bd41
      	* cse.c (cse_basic_block): Only call find_reg_note if REG_NOTES not 0.
      	* reload.c (find_equiv_reg): Likewise.
      	* alias.c (init_alias_analysis): Likewise.
      	Only call prologue_epilogue_contains on insns.
      	* basic-block.h (REG_SET_TO_HARD_REG_SET): Call new function.
      	* bb-reorder.c (hard-reg-set.h): Include earlier.
      	* haifa-sched.c (hard-reg-set.h): Likewise.
      	* ifcvt.c (hard-reg-set.h): Likewise.
      	* local-alloc.c (hard-reg-set.h): Likewise.
      	* loop.c (hard-reg-set.h): Likewise.
      	* predict.c (hard-reg-set.h): Likewise.
      	* regrename.c (hard-reg-set.h): Likewise.
      	* flow.c (hard-reg-set.h): Likewise.
      	(reg_set_to_hard_reg_set): New function.
      	* bitmap.c (regs.h, basic-block.h): No longer include.
      	(bitmap.h): Now include.
      	* conflict.c (hard-reg-set.h): Include.
      	* profile.c (hard-reg-set.h): Likewise.
      	* print-rtl.c (hard-reg-set.h): Likewise.
      	* sbitmap.c (hard-reg-set.h): Likewise.
      	* toplev.c (hard-reg-set.h): Likewise.
      	* unroll.c (hard-reg-set.h, basic-block.h): Likewise.
      	* hard-reg-set.h (reg_names): Now constant.
      	* regs.h (reg_names): Likewise.
      	* regclass.c (reg_names): Likewise.
      	* loop.h (basic-block.h): No longer include.
      	(bitmap.h): Now include.
      	* reload1.c (order_regs_for_reload): Avoid loop over reg sets.
      	* Makefile.in (LOOP_H, sbitmap.o, profile.o): Reflect above changes.
      	(toplev.o, print-rtl.o, conflict.o, unroll.o, bitmap.o): Likewise.
      
      From-SVN: r34039
      Richard Kenner committed
  34. 04 May, 2000 1 commit
    • rtl.h (MEM_COPY_ATTRIBUTES): Also copy RTX_UNCHANGING_P and MEM_ALIAS_SET. · bf49b139
      	* rtl.h (MEM_COPY_ATTRIBUTES): Also copy RTX_UNCHANGING_P and
      	MEM_ALIAS_SET.
      	* alias.c (canon_rtx): Don't copy RTX_UNCHANGING_P or MEM_ALIAS_SET
      	when calling MEM_COPY_ATTRIBUTES.
      	* emit-rtl.c (operand_subword, change_address): Likewise.
      	* explow.c (stabilize): Likewise.
      	* expr.c (protect_from_queue, emit_move_insn_1): Likewise.
      	* integrate.c (copy_rtx_and_substitute): Likewise.
      	* combine.c (combine_simplify_rtx): Don't copy RTX_UNCHANGING_P
      	when calling MEM_COPY_ATTRIBUTES.
      	(make_extraction, simplify_shift_const, gen_lowpart_for_combine):
      	Likewise.
      	* cse.c (gen_lowpart_if_possible): Likewise.
      	* function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
      	* optabs.c (gen_move_insn): Likewise.
      	* recog.c (validate_replace_rtx_1): Likewise.
      	* simplify-rtx.c (add_mem_for_addr): Likewise.
      	* stmt.c (expand_anon_union_decl): Likewise.
      	* config/arm/arm.md: Likewise.
      	* config/h8300/h7300.c (fix_bit_operand): Likewise.
      	* config/m88k/m88k.c (legitimize_address, block_move_loop): Likewise.
      	(block_move_no_loop, block_move_sequence): Likewise.
      	* config/rs6000/rs6000.c (expand_block_move_mem): Likewise.
      	* config/alpha/alpha.c (get_aligned_mem): Likewise.
      	Clear MEM_ALIAS_SET.
      	* final.c (alter_subreg): Don't copy MEM_ALIAS_SET when calling
      	MEM_COPY_ATTRIBUTES.
      
      From-SVN: r33665
      Richard Kenner committed
  35. 27 Apr, 2000 1 commit
    • cse.c (CSE_ADDRESS_COST): Remove. · 01329426
      	* cse.c (CSE_ADDRESS_COST): Remove.
      	(find_best_addr): Add new parameter "MODE", use address_cost instead
      	of CSE_ADDRESS_COST
      	(address_cost): New.
      	(fold_rtx): Update call of find_best_addr.
      	* rtl.h (address_cost): Declare.
      	* loop.c (general_induction_var): Add new parameter "MODE", use
      	address_cost instead of ADDRESS_COST
      	(init_loop): Use address_cost instead of ADDRESS_COST.
      	(check_insn_for_givs): Update call of general_induction_var.
      	(find_mem_givs): Likewise.
      	(consec_sets_giv): Likewise.
      	* config/i386/i386.h (ADDRESS_COST): Call ix86_address_cost.
      	* i386.c (ix86_address_cost): New.
      	* i386-protos.h (ix86_address_cost): Declare.
      
      From-SVN: r33486
      Jan Hubicka committed
  36. 26 Apr, 2000 1 commit