1. 31 May, 2000 1 commit
  2. 29 May, 2000 1 commit
  3. 25 May, 2000 2 commits
    • 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
    • Jan Hubicka <jh@suse.cz> · 742dff15
              * jump.c (invert_exp_1): Remove first argument, use pc_set
              to get the expression.
              (redirect_exp): Make static; redirect only the pc_set expression,
              remove first argument.
              (invert_exp): Remove first argument, make static.
              (jump_optimize): Use any_condjump_p, any_uncondjump_p and
              any_onlyjump at most places where we originaly did condjump_p
              and simplejump_p.
              (jump_back_p, follow_jumps, thread_jumps): Likewise.
              (delete_barrier_succesors): Use pc_set.
              (invert_jump_1, invert_jump, redirect_jump_1, redirect_jump): Update
              calls of invert_exp and redirect_exp.
              * rtl.h (redirect_exp, invert_exp): Remove.
              * unroll.c (copy_loop_body): Use invert_jump and redirect_jump.
      
      From-SVN: r34171
      Jan Hubicka committed
  4. 22 May, 2000 2 commits
  5. 19 May, 2000 1 commit
    • jump.c (redirect_jump): Add delete_unused argument. · 9ba11d5a
              * jump.c (redirect_jump): Add delete_unused argument.  Don't
              remove labels and code following when LABEL_NUSES goes to zero.
              (invert_jump): Likewise.
              (jump_optimize_1): Fix redirect/invert arguments.
              (do_cross_jump, thread_jumps): Likewise.
              * flow.c (split_edge): Likewise.
              * reorg.c (optimize_skip): Likewise.
              (reorg_redirect_jump, relax_delay_slots, dbr_schedule): Likewise.
              * profile.c (instrument_arcs): Likewise.
              * loop.c (find_and_verify_loops): Likewise.  Fix indentation.
              * rtl.h: Update prototypes.
      
      From-SVN: r34033
      Richard Henderson committed
  6. 18 May, 2000 1 commit
  7. 17 May, 2000 2 commits
  8. 16 May, 2000 1 commit
  9. 15 May, 2000 1 commit
  10. 12 May, 2000 1 commit
    • Makefile.in (final.o): Depend on BASIC_BLOCK_H. · be1bb652
      	* Makefile.in (final.o): Depend on BASIC_BLOCK_H.
      	* final.c (final_end_function): Use app_disable.  Rearrange note
      	handling into a switch.  Emit deleted labels.
      	(output_asm_label): Generate label strings for deleted labels.
      	* flow.c (tail_recursion_label_list): New.
      	(find_basic_blocks_1): Set label_value_list directly.  Collect list
      	of tail recursion labels from call_placeholders.  Don't add deleted
      	labels to the label value list.
      	(cleanup_cfg): Use free_EXPR_LIST_list.
      	(flow_delete_insn_chain): Turn non-removable labels into notes.
      	(flow_delete_block): Don't disable deleting the block because of
      	a non-removable label.
      	(tail_recursion_label_p): New.
      	(merge_blocks_move_predecessor_nojumps): Don't disable the merge
      	because of a label.
      	(merge_blocks_move_successor_nojumps): Likewise.  Also move a
      	jump table.
      	(merge_blocks): Disable a merge because of tail recursion labels.
      	* ifcvt.c (merge_if_block): Don't disable a merge because of a label.
      	Use a more accurate measure of not merging the join block.
      	(find_if_block): Don't disable conversion because of a label.
      	(find_if_case_1, find_if_case_2): Likewise.
      	* jump.c (duplicate_loop_exit_test): Preserve the kind of list
      	element when copying.
      	(squeeze_notes): Also leave EH notes.
      	(mark_jump_label): Ignore deleted labels.  Use an INSN_LIST for
      	REG_LABEL notes.
      	(delete_insn): Preserve LABEL_NAME in NOTE_SOURCE_FILE when
      	deleting a label.
      	* print-rtl.c (print_rtx): Print NOTE_SOURCE_FILE for
      	NOTE_INSN_DELETED_LABEL.  Print `[# deleted]' for a label_ref
      	referring to a deleted label.  Convert tail handling to a switch.
      	* rtl.def (CODE_LABEL): Rearrange elements to be compatible with NOTE
      	for NOTE_INSN_DELETED_LABEL.
      	(NOTE): Fix commentary.
      	* rtl.h (REG_LABEL): Update commentary wrt INSN_LIST.
      	(REG_CC_SETTER, REG_CC_USER, REG_LIBCALL): Likewise.
      	(CODE_LABEL_NUMBER, LABEL_NAME): Update index.
      	(LABEL_NUSES, LABEL_REFS): Likewise.
      	* unroll.c (copy_loop_body): Don't copy NOTE_INSN_DELETED_LABEL.
      
      From-SVN: r33876
      Richard Henderson committed
  11. 30 Apr, 2000 1 commit
    • ifcvt.c: New file. · 9ec6d7ab
              * ifcvt.c: New file.
              * Makefile.in (OBJS): Add it.
              (ifcvt.o): New target.
              * jump.c (jump_optimize_1): Remove all code related to if-conversion,
              and conditional arithmetic.
              (find_insert_position): Remove.
              * timevar.def (TV_IFCVT, TV_IFCVT2): New.
              * toplev.c (DFI_ce, DFI_ce2): New.
              (dump_file): Add ce and ce2 dumps.
              (rest_of_compilation): Run if_convert a couple o times.  Set
              cse_not_expected after cse2.  Don't set no_new_pseudos until
              after sched1 or recompute_reg_usage.
      
      From-SVN: r33547
      Richard Henderson committed
  12. 27 Apr, 2000 2 commits
    • jump.c (redirect_exp_1): Rework from old redirect_exp. · 2ea64f10
              * jump.c (redirect_exp_1): Rework from old redirect_exp.  Never
              commit change group changes.
              (invert_exp_1): Similarly.
              (redirect_exp, invert_exp): Use them.
              (redirect_jump_1): New.
              (invert_jump_1): New.
              (jump_optimize_1): Remove code subsumed by condexec.c.
              * rtl.h (invert_jump_1, redirect_jump_1): Declare.
      
      From-SVN: r33474
      Richard Henderson committed
    • jump.c (invert_jump): Always invert REG_BR_PROB. · 604617ba
              * jump.c (invert_jump): Always invert REG_BR_PROB.  Do it correctly.
      
              * bb-reorder.c (reorder_basic_blocks): Don't run estimate_probability.
              * flow.c (calculate_loop_depth): Remove.
              * output.h (calculate_loop_depth): Don't declare.
              * toplev.c (rest_of_compilation): Expand calculate_loop_depth
              inline; run estimate_probability at the same time.
      
      From-SVN: r33464
      Richard Henderson committed
  13. 18 Apr, 2000 1 commit
    • cccp.c, [...]: Removed. · 86702e31
      	* cccp.c, cexp.y, cexp.c, cccp.1: Removed.
      
      	* configure.in: Delete --disable-cpplib option and all
      	references to cpp_main.
      	* configure: Regenerate.
      	* Makefile.in: Remove all references to CCCP, CCCP_OBJS,
      	@cpp_main@, cccp.c, cexp.c, cexp.y, cexp.output, cexp.o,
      	cccp.o, cccp, or cppmain.  Link cppmain.o straight to
      	cpp$(exeext).  Add --no-headers to makeinfo command line when
      	generating INSTALL.  Install and uninstall cpp.1 manpage, not
      	cccp.1.
      	* install.texi: Delete all references to cexp.y/cexp.c.
      	Delete ancient instructions for compiling GCC on 3b1.
      	* INSTALL: Regenerate.
      
      	* cppfiles.c, cpplib.h, jump.c, protoize.c, c-lex.c,
      	ch/decl.c, ch/lex.c, cp/lex.c, f/lex.c, mips/t-ecoff,
      	mips/t-elf, mips/t-r3900: Remove references to cccp.c.
      	* convex.h, fx80.h, m68k.h, pdp11.h, contrib/gcc_update,
      	f/g77install.texi: Remove references to	cexp.c/cexp.y.
      	* xm-linux.h, xm-os2.h, romp.h: Remove definition of BSTRING,
      	which is no longer tested anywhere.
      
      	* po/POTFILES.in: Remove cccp.c and cexp.c.  Comment out
      	alpha/vms-tramp.asm.
      
      From-SVN: r33238
      Zack Weinberg committed
  14. 26 Mar, 2000 2 commits
  15. 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
  16. 20 Mar, 2000 1 commit
  17. 17 Mar, 2000 1 commit
  18. 28 Feb, 2000 1 commit
  19. 26 Feb, 2000 1 commit
  20. 11 Feb, 2000 1 commit
  21. 10 Feb, 2000 1 commit
  22. 06 Feb, 2000 1 commit
    • flow.c (flow_delete_insn, [...]): Export. · 69732dcb
              * flow.c (flow_delete_insn, make_edge, remove_edge): Export.
              * basic-block.h: Declare them.
              * emit-rtl.h (active_insn_p): New.
              (next_active_insn, prev_active_insn): Use it.
              * rtl.h: Declare it.
              * function.c (emit_return_into_block): New.
              (thread_prologue_and_epilogue_insns): Insert return insns instead
              of epilogues when possible.
              * jump.c (jump_optimize_1): Remove code to insert a return insn
              on the fallthru to the exit block.
      
      From-SVN: r31826
      Richard Henderson committed
  23. 04 Feb, 2000 1 commit
  24. 02 Feb, 2000 1 commit
  25. 31 Jan, 2000 1 commit
  26. 28 Jan, 2000 1 commit
  27. 26 Jan, 2000 1 commit
    • tree.def (UNNE_EXPR): Remove. · 7913f3d0
              * tree.def (UNNE_EXPR): Remove.
              * c-typeck.c (build_binary_op): Don't handle it.
              * expr.c (expand_expr, do_jump, do_store_flag): Likewise.
              * cp/typeck.c (build_binary_op_nodefault): Likewise.
      
              * rtl.def (UNNE): Remove.
              (LTGT): Add.
              * jump.c (reverse_condition): Update accordingly.
              (swap_condition): Likewise.
              (comparison_dominates_p): Handle unordered comparisons.
              (reverse_condition_maybe_unordered): New.
              * rtl.h (reverse_condition_maybe_unordered): Declare.
      
              * sparc.c (select_cc_mode): Update for UNNE/LTGT.
              (output_cbranch): Use reverse_condition_maybe_unordered and LTGT.
              * sparc.h (REVERSIBLE_CC_MODE): Always true.  Update docs.
              * sparc.md (bltgt): New.
      
      From-SVN: r31624
      Richard Henderson committed
  28. 24 Jan, 2000 1 commit
    • rtl.def: Add unordered fp comparisions. · 1eb8759b
              * rtl.def: Add unordered fp comparisions.
              * tree.def: Likewise.
      	* tree.h: Add ISO C 9x unordered fp comparision builtins.
      
      	* builtins.c (expand_tree_builtin): New function.
      	* c-typeck.c (build_function_call): Use it.
      	(build_binary_op): Support unordered compares.
      	* c-common.c (c_common_nodes_and_builtins): Add unordered compares.
      
      	* combine.c (known_cond): Handle reverse_condition returning UNKNOWN.
      	(reversible_comparison_p): Allow UNORDERED/ORDERED to be reversed.
      	* cse.c (fold_rtx): Check FLOAT_MODE_P before reversing.
      	(record_jump_equiv): Handle reverse_condition returning UNKNOWN.
      	* jump.c (reverse_condition): Don't abort for UNLE etc, but
      	return UNKNOWN.
      	(swap_condition): Handle unordered compares.
      	(thread_jumps): Check can_reverse before reversing.
      	* loop.c (get_condition): Likewise.  Allow UNORERED/ORDERED to be
      	reversed for FP.
      
      	* optabs.c (can_compare_p): New argument CODE.  Verify branch or
      	setcc is present before acking for cmp_optab.  Update all callers.
      	(prepare_float_lib_cmp, init_optabs): Handle UNORDERED.
      	* expmed.c (do_cmp_and_jump): Update for can_compare_p.
      	* expr.c (expand_expr): Likewise.  Support unordered compares.
      	(do_jump, do_store_flag): Likewise.
      	* expr.h (enum libfunc_index): Add unordered compares.
      
      	* Makefile.in (FPBIT_FUNCS): Add _unord_sf.
      	(DPBIT_FUNCS): Add _unord_df.
      	* config/fp-bit.c (_unord_f2): New.
      	* fp-test.c (main): Try unordered compare builtins.
      
      	* alpha-protos.h (alpha_fp_comparison_operator): Declare.
      	* alpha.c (alpha_comparison_operator): Check mode properly.
      	(alpha_swapped_comparison_operator): Likewise.
      	(signed_comparison_operator): Likewise.
      	(alpha_fp_comparison_operator): New.
      	(alpha_emit_conditional_branch): Handle unordered compares.
      	* alpha.h (PREDICATE_CODES): Update.
      	* alpha.md (fp compares): Use alpha_fp_comparison_operator.
      	(bunordered, bordered): New.
      
      	* cp/call.c (build_over_call): Use expand_tree_builtin.
      	* cp/typeck.c (build_function_call_real): Likewise.
      	(build_binary_op_nodefault): Handle unordered compares.
      
      	* gcc.c-torture/execute/ieee/fp-cmp-4.c: New.
      
      From-SVN: r31591
      Richard Henderson committed
  29. 20 Jan, 2000 1 commit
  30. 19 Jan, 2000 1 commit
    • stupid.c: Die die die. · d29c259b
      	* stupid.c: Die die die.
      	* Makefile.in (OBJS): Remove stupid.o.
      	(stupid.o): Likewise.
      
      	* except.c (emit_eh_context): Don't emit USEs for stupid.
      	* explow.c (probe_stack_range): Likewise.
      	* flags.h (obey_regdecls): Remove.
      	* flow.c (find_basic_blocks): Don't run try_merge_blocks
      	when not optimizing.
      	(life_analysis): Limit data collection when not optimizing.
      	(mark_regs_live_at_end): Always mark the return value registers.
      	(mark_used_regs): Remove dummy RETURN case.
      	(print_rtl_with_bb): Don't consult obey_regdecls.
      	* function.c (use_variable, use_variable_after): Remove.
      	(assign_parms): Consult optimize not obey_regdecls.
      	(expand_function_start): Don't emit USEs for stupid.
      	(expand_function_end): Likewise.
      	* global.c (build_insn_chain): Export.
      	* integrate.c (expand_inline_function): Kill return-value USE
      	handling code.
      	* jump.c (jump_optimize_1): Do simple jump optimizations and
      	dead code elimination.
      	(calculate_can_reach_end): Remove check_deleted argument.
      	(delete_insn): Patch out insns even when not optimizing.
      	* local-alloc.c (block_alloc): Don't do tying when not optimizing.
      	* rtl.h (use_variable, use_variable_after): Remove declarations.
      	(build_insn_chain): Declare.
      	* stmt.c (expand_value_return): Don't emit USEs for stupid.
      	(expand_end_bindings): Likewise.
      	(expand_decl): Likewise.  Consult optimize not obey_regdecls.
      	* toplev.c (obey_regdecls): Remove.
      	(rest_of_compilation): Don't set it.  Kill stupid in favour of
      	flow1, local-alloc, and reload.
      	(main): Don't set obey_regdecls.
      
      	* config/nextstep.c (handle_pragma): Likewise.
      
      	* alpha/alpha.md (allocate_stack): Don't emit USEs for stupid.
      
      	* arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't fix reg 0 for stupid.
      
      From-SVN: r31499
      Richard Henderson committed
  31. 17 Jan, 2000 1 commit
    • 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
  32. 14 Jan, 2000 1 commit
  33. 04 Jan, 2000 1 commit
    • builtins.c (expand_builtin_strlen): Initialize variable `icode'. · a544cfd2
      	* builtins.c (expand_builtin_strlen): Initialize variable `icode'.
      
      	* calls.c (expand_call): Likewise for
      	`old_stack_arg_under_construction'.
      
      	* cpphash.c (macroexpand): Likewise for `args' and `rest_zero'.
      
      	* function.c (pad_to_arg_alignment): Likewise for `save_var' and
      	`save_constant'.
      
      	* gcc.c (execute): Likewise for `ut' and `st'.
      
      	* genattrtab.c (attr_rtx): Likewise for `rt_val'.
      
      	* genopinit.c (gen_insn): Likewise for `m1', `m2' and `op'.
      
      	* jump.c (jump_optimize_1): Likewise for `temp2'.
      
      	* local-alloc.c (block_alloc): Likewise for `r1'.
      
      	* loop.c (recombine_givs): Likewise for `life_start' and `life_end'.
      
      	* reg-stack.c (check_asm_stack_operands): Likewise for `clobber_reg'.
      	(subst_asm_stack_regs): Likewise for `clobber_reg' and `clobber_loc'.
      
      	* regmove.c (fixup_match_1): Likewise for `insn_const', `dst_node'
      	and `set2'.
      
      	* reload.c (find_reloads): Likewise for `goal_alternative_number'
      	and `goal_earlyclobber'.
      
      	* scan-decls.c (scan_decls): Likewise for `prev_id_end'.
      
      	* sdbout.c (sdbout_one_type): Likewise for `member_scl'.
      
      	* stupid.c (stupid_life_analysis): Likewise for `chain'.
      
      	* unroll.c (copy_loop_body): Likewise for `copy'.
      
      	* varasm.c (output_constructor): Likewise for `byte'.
      
      ch:
      	* actions.c (update_else_range_for_int_const): Initialize
      	variables `lowval' and `highval'.
      	(update_else_range_for_range): Likewise for `low_range_val' and
      	`high_range_val'.
      
      cp:
      	* class.c (warn_hidden): Initialize variable `fndecl'.
      
      From-SVN: r31207
      Kaveh R. Ghazi committed
  34. 29 Dec, 1999 1 commit
  35. 27 Dec, 1999 1 commit
    • alias.c (nonlocal_reference_p): Add else for disjoint ifs. · d4757e6a
              * alias.c (nonlocal_reference_p): Add else for disjoint ifs.
              * flow.c (find_use_as_address): Likewise.
              * function.c (fixup_var_refs_1): Likewise.
              (walk_fixup_memory_subreg, fixup_stack_1): Likewise.
              * jump.c (invert_exp, redirect_exp): Likewise.
              * loop.c (replace_call_address): Likewise.
              (count_nonfixed_reads): Likewise.
              * rtlanal.c (modified_between_p): Likewise.
              (modified_in_p, volatile_insn_p, volatile_refs_p): Likewise.
              (side_effects_p, replace_regs, jmp_uses_reg_or_mem): Likewise.
              * unroll.c (remap_split_bivs): Likewise.
      
      From-SVN: r31103
      Christophe Jaillet committed