1. 02 Nov, 1999 1 commit
  2. 01 Nov, 1999 2 commits
    • [multiple changes] · 14a774a9
      Fri Oct 29 15:25:07 1999  Arnaud Charlet  <charlet@ACT-Europe.FR>
      
      	* gcov.c (DIR_SEPARATOR): Provide default.
      	(output_data): Add test for MS-DOS format absolute filename.
      	(fancy_abort): Correct program name.
      	(open_files): Open all files in binary mode.
      	* libgcc2.c (__bb_exit_func): Likewise.
      
      	* profile.c (init_branch_prob): Specify binary when opening files.
      
      	* flags.h (flag_unwind_tables): New decl.
      	* toplev.c (flag_unwind_table): New definition.
      	(f_options): Add -funwind-tables.
      	(decode_g_option): Clarify warning when unknown -g option is given.
      	(rest_of_compilation): If inside an inlined external function,
      	pretend we are just being declared.
      
      	* dwarf2out.c (dwarf2out_do_frame): Check -funwind_tables.
      	(dwarf2out_frame_finish): Likewise.
      
      Fri Oct 29 06:32:44 1999  Geoffrey Keating  <geoffk@cygnus.com>
      
      	* flow.c (propagate_block): When the last reference to a label
       	before an ADDR_VEC is deleted because the reference is a dead
       	store, delete the ADDR_VEC.
      
      Fri Oct 29 07:44:26 1999  Vasco Pedro  <vp@di.fct.unl.pt>
      
      	* fold-const.c (merge_ranges): In not in0, but in1, handle
      	upper bounds equal like subset case.
      
      Thu Oct 28 19:22:24 1999  Douglas Rupp <rupp@gnat.com>
      
      	* dbxout.c (dbxout_parms): Generate a second stabs line for parameters
      	passed in a register but moved to the stack.
      
      Thu Oct 28 19:12:57 1999  Sam Tardieu  <tardieu@act-europe.fr>
      
      	* gcc.c (pass_exit_codes, greatest_status): New variables.
      	(struct option_map): Add entry for "--pass-exit-codes".
      	(execute): Update greatest_status if error.
      	(display_help): Add documentation for -pass-exit-codes.
      	(process_command): Handle -pass-exit-codes.
      	(main): Look at pass_exit_codes and greatest_status on call to exit.
      
      Thu Oct 28 18:06:50 1999  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
      
      	* reload.c (find_reloads): Refine test for no input reload
      	case to not includes reloads emitted after insn.
      
      	* function.c (find_temp_slots_from_address): Handle sum involving
      	a register that points to a temp slot.
      	(update_temp_slot_address): Make recursive call if both old and
      	new are PLUS with a common operand.
      	* calls.c (expand_call): Mark temp slot for result as having
      	address taken.
      
      	* rtlanal.c (reg_referenced_p, case IF_THEN_ELSE): New case.
      
      	* gcc.c (process_command): Add standard_exec_prefix with "GCC"
      	component as well as "BINUTILS".
      
      	* integrate.h (copy_rtx_and_substitute): New arg, FOR_LHS.
      	* integrate.c (copy_rtx_and_substitute): Likewise.
      	(expand_inline_function, integrate_parm_decls, integrate_decl_tree):
      	All callers changed.
      	* unroll.c (inital_reg_note_copy, copy_loop_body): Likewise.
      
      	* dbxout.c (dbxout_type, case INTEGER_TYPE_NODE): If can use
      	gdb extensions, write size of type; also be more consistent
      	in using references when this is a subtype.
      
      	* pa.md (extv, extzv, insv): Use define_expand to reject constant
      	that is out of range.
      
      	* loop.c (unknown_constant_address_altered): New variable.
      	(prescan_loop): Initialize it.
      	(note_addr_stored): Set it for RTX_UNCHANGING_P MEM.
      	(invariant_p, case MEM): Remove handling for volatile and readony;
      	check new variable if readonly.
      	(check_dbra_loop): Chdeck unknown_constant_address_altered.
      
      	* cse.c (canon_hash, case MEM): Do not record if BLKmode.
      	(addr_affects_sp_p): Removed from note_mem_written and only
      	define #ifdef AUTO_INC_DEC.
      
      	* alpha.c (input_operand, case ADDRESSOF): Treat as REG.
      
      	* regclass.c (record_reg_classes): Properly handle register move
      	directions.
      
      	* varasm.c (initializer_constant_valid_p, case MINUS_EXPR):
      	Don't think valid if both operands are invalid.
      	(struct constant_descriptor): New field RTL.
      	(mark_const_hash_entry): Mark it.
      	(record_constant{,_rtx}): Initialize it.
      	(output_constant_def): Allocate RTL in permanent obstack and
      	save in table.
      	({record,compare}_constant_1): Modes must match for
      	CONSTRUCTOR of ARRAY_TYPE.
      
      	* c-common.h (initializer_constant_valid_p): Delete decl from here.
      	* output.h (initializer_constant_valid_p): Move decl to here.
      	* c-common.c (initializer_constant_valid_p): Delete function from here.
      	* varasm.c (initializer_constant_valid_p): Move function to here.
      
      	* tree.h (STRIP_SIGN_NOPS): New macro.
      	* fold-const.c (optimize_minmax_comparison): New function.
      	(invert_truthvalue, case WITH_RECORD_EXPR): New case.
      	(fold): Use STRIP_SIGN_NOPS instead of STRIP_TYPE_NOPS.
      	(fold, case EQ_EXPR): Call optimize_minmax_comparison and add
      	cases with ABS_EXPR, NEGATE_EXPR, PLUS_EXPR, MINUS_EXPR, and
      	widening conversions.
      	(fold, case LE_EXPR): Rework changing unsigned to signed comparisons
      	to look at size of mode, not precision of type; also add missing cases.
      	(optimize_bit_field_compare, decode_field_reference): Don't try to
      	optimize COMPONENT_REF of a PLACEHOLDER_EXPR.
      
      	* dwarf2out.c (ctype.h): Include.
      	(dwarf2out_set_demangle_name_func): New function.
      	(size_of_line_info): Deleted.
      	(output_line_info): Compute size of line info table from difference
      	of labels.
      	(base_type_die, add_name_attribute): Call demangle function, if any.
      	(field_byte_offset): Use bits per word for variable length fields.
      	(gen_array_type_die): Add array name.
      	(gen_subprogram_die): Ignore DECL_INLINE if -fno-inline.
      	(dwarf2out_add_library_unit_info): New function.
      
      	* explow.c (set_stack_check_libfunc): New function.
      	(stack_check_libfunc): New static variable.
      	(probe_stack_range): Allow front-end to set up a libfunc to call.
      
      	* combine.c (simplify_comparison): When making comparison in wider
      	mode, check for having commuted an AND and a SUBREG.
      	(contains_muldiv): New function.
      	(try_combine): Call it when dividing a PARALLEL.
      	(simplify_rtx, case TRUNCATE): Don't remove for umulsi3_highpart.
      	(simplify_comparison, case ASHIFTRT): Recognize sign-extension of
      	a PLUS.
      	(record_value_for_reg): If TEM is a binary operation with two CLOBBERs,
      	use one of the CLOBBERs instead.
      	(if_then_else_cond): If comparing against zero, just return thing
      	being compared.
      
      	* optabs.c (expand_abs): If machine has MAX, ABS (x) is MAX (x, -x).
      	Don't generate shifts and subtract if have conditional arithmetic.
      
      	* rtl.h (delete_barrier): New declaration.
      	* jump.c (jump_optimize): Set up to handle conditional call.
      	In conditional arithmetic case, handle CALL_INSN followed by a BARRIER.
      	(delete_barrier): New function.
      
      	* rtl.c (read_rtx): Call fatal if bad RTL code; check for bad mode.
      
      	* recog.c (nonmemory_operand): Accept ADDRESSOF.
      
      	* tree.c (build_type_attribute_variant): Push to obstack of
      	ttype around type_hash_canon call.
      
      	* expr.c (placeholder_list): Move decl to file scope.
      	(expand_expr): Don't force access to volatile just because its
      	address is taken.
      	If ignoring reference operations, just expand the operands.
      	(expand_expr, case COMPONENT_REF): Propagate
      	EXPAND_CONST_ADDRESS to recursive call when expanding inner.
      	Refine test for using bitfield operations vs pointer punning.
      	(expand_expr, case CONVERT_EXPR): If converting to
      	BLKmode UNION_TYPE from BLKmode, just return inner object.
      	Use proper mode in store_field call.
      	Properly set sizes of object to store and total size in store_field
      	call for convert to union.
      	(expand_expr, case ARRAY_REF): If OP0 is in a register, put it in
      	memory (like for ADDR_EXPR).  Also, don't put constant in register if
      	we'll want it in memory.
      	(readonly_fields_p): New function.
      	(expand_expr, case INDIRECT_REF): Call it if LHS.
      	(expand_assignment): Handle a RESULT_DECL where
      	DECL_RTL is a PARALLEL.
      	(do_jump, case WITH_RECORD_EXPR): New case.
      	(get_inner_reference): Always go inside a CONVERT_EXPR
      	and NOP_EXPR if both modes are the same.
      	(store_field): Use bitfield operations if size of bitsize is not same
      	as size of RHS's type.
      	Check for bitpos not a multiple of alignment in BLKmode case.
      	Do block move in largest possible alignment.
      	(store_constructor): Set BITSIZE to -1 for variable size and properly
       	in case of array of BLKmode.
      	(expand_expr_unaligned): New function.
      	(do_compare_and_jump): Call it.
      
      	* mips/iris5.h (SWITCHES_NEED_SPACES): New macro.
      	* collect2.c (main): Only allow -ofoo if SWITCHES_NEED_SPACES
      	does not include 'o'.
      
      	* function.c (instantiate_virtual_regs_1, case SET): Handle case where
      	both SET_DEST and SET_SRC reference a virtual register.
      	(gen_mem_addressof): Copy RTX_UNCHANGING_P from new REG to old REG.
      
      	* integrate.c (expand_inline_function): Handle case of setting
      	virtual stack vars register (from built in setjmp); when parameter
      	lives in memory, expand virtual_{stack_vars,incoming_args}_rtx early.
      	(subst_constant): Add new parm, MEMONLY.
      	(expand_inline_function, integrate_parm_decls): Pass new parm.
      	(integrate_decl_tree): Likewise.
      	(copy_rtx_and_substitute, case MEM): Do copy RTX_UNCHANGING_P.
      	(try_constants): Call subst_constants twice, with MEMONLY 0 and 1.
      	(copy_rtx_and_substitute, case SET): Add explicit calls to
      	copy_rtx_and_substitute for both sides.
      
      	* stmt.c (expand_asm_operands): Don't use TREE_STRING_LENGTH for
      	constraints.
      	(pushcase{,_range}): Convert to NOMINAL_TYPE after checking for
      	within INDEX_TYPE, instead of before.
      	(fixup_gotos): Use f->target_rtl, not the next insn,
      	since latter may be from a later fixup.
      	(expand_value_return): Correctly convert VAL when promoting function
      	return; support RETURN_REG being a PARALLEL.
      	(expand_return): When checking for result in regs and having
      	cleanup, consider PARALLEL in DECL_RTL as being in regs.
      
      From-SVN: r30299
      Richard Kenner committed
    • simplify-rtx.c: New file. · 0cedb36c
              * simplify-rtx.c: New file.
              * Makefile.in (OBJS): Add simplify-rtx.o
              (simplify-rtx.o): Add dependencies.
              * rtl.h (simplify_gen_binary, simplify_rtx): Add prototypes.
              * cse.c: Use simplify_gen_binary intead of cse_gen_binary.
              (cse_gen_binary, simplify_unary_operation): Delete.
              (simplify_binary_operation, simplify_plus_minus): Likewise.
              (check_fold_consts, simplify_relation_operation): Likewise.
              (simplify_ternary_operation): Likewise.
              (delete_trivially_dead_insns): Simplify the contents of the
              REG_EQUAL note before trying to substitute it into the source
              of the reg-reg copy at the end of a libcall sequence.
      
      From-SVN: r30295
      Jeffrey A Law committed
  3. 27 Oct, 1999 2 commits
    • rtl.h (note_stores): Add additional paramter. · 84832317
      	* rtl.h (note_stores): Add additional paramter.
      	* rtlanal.c (reg_set_p_1): Take additional paramter.
      	(reg_set_last_1): Likewise.
      	(reg_set_p): Adjust call to note_stores.
      	(reg_set_last): Likewise.
      	(note_stores): Pass data parameter to worker function.
      	* alias.c (record_set): Take additional parameter.
      	(init_alias_analysis): Pass it.
      	* caller-save.c (mark_set_regs): Take additional parameter.
      	(save_call_clobbered_regs): Pass NULL to note_stores.
      	* combine.c (set_nonzero_bits_and_sign_copies): Take additional
      	parameter.
      	(record_dead_and_set_regs_1): Likewise.
      	(reg_dead_at_p_1): Likewise.
      	(combine_instructions): Adjust calls to note_stores.
      	(try_combine): Likewise.
      	(record_dead_insn): Remove.
      	(record_dead_and_set_regs): Adjust calls to note_stores.
      	(reg_dead_at_p): Likewise.
      	* cse.c (invalidate_skipped_set): Take additional parameter.
      	(cse_check_loop_start): Likewise.
      	(cse_check_loop_start_value): Remove.
      	(cse_set_around_loop): Adjust calls to note_stores.
      	* flow.c (notice_stack_pointer_modification): Take additional
      	parameter.  Remove duplicate declaration.
      	(record_volatile_insns): Adjust calls to note_stores.
      	* gcse.c (record_set_info): Take additional parameter.
      	(record_last_set_info): Likewise.
      	(invalidate_nonnull_info): Likewise.
      	(record_set_insn): Remove.
      	(compute_sets): Adjust calls to note_stores.
      	(last_set_insn): Remove.
      	(compute_hash_table): Adjust calls to note_stores.
      	(insert_insn_end_bb): Likewise.
      	(delete_null_pointer_checks): Likewise.
      	* global.c (mark_reg_store): Take additional parameter.
      	(mark_reg_clobber): Likewise.
      	(reg_becomes_live): Likewise.
      	(global_conflicts): Adjust calls to note_stores.
      	(build_insn_chain): Likewise.
      	* integrate.c (note_modified_parmregs): Take additional parameter.
      	(mark_stores): Likewise.  Make it static.
      	(save_for_inline_nocopy): Adjust calls to note_stores.
      	(try_constants): Likewise.
      	* integrate.h (mark_stores): Remove declaration.
      	* jump.c (mark_modified_reg): Take additional parameter.
      	(thread_jumps): Adjust calls to note_stores.
      	* local-alloc.c (validate_equiv_mem_from_store): Take additional
      	parameter.
      	(no_equiv): Likewise.
      	(reg_is_set): Likewise.
      	(validate_equiv_mem): Adjust calls to note_stores.
      	(update_equiv_regs): Likewise.
      	(block_alloc): Likewise.
      	* loop.c (note_set_pseudo_multiple_uses_retval): Remove.
      	(note_addr_stored): Take additional parameter.
      	(note_set_pseudo_multiple_uses): Likewise.
      	(record_initial): Likewise.
      	(prescan_loop): Adjust calls to note_stores.
      	(strength_reduce): Likewise.
      	(check_dbra_loop): Likewise.
      	* regmove.c (flags_set_1): Take additional paramter.
      	(mark_flags_life_zones): Adjust calls to note_stores.
      	* reload1.c (mark_not_eliminable): Take additional parameter.
      	(forget_old_reloads_1): Likewise.
      	(reload_cse_invalidate_rtx): Likewise.
      	(reload_cse_check_clobber): Likewise.
      	(reload_combine_note_store): Likewise.
      	(move2add_note_store): Likewise.
      	(reload): Adjust calls to note_stores.
      	(reload_as_needed): Likewise.
      	(emit_reload_insns): Likewise.
      	(reload_cse_regs_1): Likewise.
      	(reload_cse_record_set): Adjust calls to reload_cse_invalidate_rtx.
      	(reload_combine): Adjust calls to note_stores.
      	* resource.c (update_live_status): Take additional paramter.
      	(mark_target_live_regs): Adjust calls to note_stores.
      	* stupid.c (find_clobbered_regs): Take additional parameter.
      	(stupid_life_analysis): Adjust calls to note_stores.
      
      From-SVN: r30221
      Mark Mitchell committed
    • Reorg reg-stack to use the standard CFG. · a05924f9
      Co-Authored-By: Richard Henderson <rth@cygnus.com>
      
      From-SVN: r30201
      Jan Hubicka committed
  4. 26 Oct, 1999 1 commit
    • c-parse.in (cast_expr): Constify. · ec0ce6e2
              * c-parse.in (cast_expr): Constify.
      
              * cccp.c (special_symbol): Likewise.
      
              * cse.c (hash_cse_reg_info, cse_reg_info_equal_p): Likewise.
      
              * dwarf2out.c (base_type_die): Likewise.
      
              * global.c (allocno_compare): Likewise.
      
              * local-alloc.c (qty_compare_1, qty_sugg_compare_1): Likewise.
      
              * regclass.c (fix_register): Likewise.
      
              * rtl.h (fix_register): Likewise.
      
              * stupid.c (stupid_reg_compare): Likewise.
      
              * toplev.c (decode_f_option): Likewise.
      
              * tree.c (build_complex_type): Likewise.
      
      From-SVN: r30196
      Kaveh R. Ghazi committed
  5. 14 Oct, 1999 1 commit
    • rtl.c (dump_and_abort): Remove. · bcdaba58
              * rtl.c (dump_and_abort): Remove.
              (fatal_with_file_and_line): New.
              (fatal_expected_char): New.
              (read_rtx_lineno, read_rtx_filename): New.
              (read_skip_spaces): Track line number.
              (read_name): Use fatal_with_file_and_line.
              (read_rtx): Use fatal_expected_char.  Track line number.
              * rtl.h (read_rtx_filename, read_rtx_lineno): Declare.
      
              * print-rtl.c (print_rtx): Don't special case LABEL_REF argument
              if it isn't a CODE_LABEL.
      
              * genattr.c (main): Set read_rtx_filename.
              * genattrtab.c (main): Likewise.
              * gencodes.c (main): Likewise.
              * genconfig.c (main): Likewise.
              * genemit.c (main): Likewise.
              * genextract.c (main): Likewise.
              * genflags.c (main): Likewise.
              * genopinit.c (main): Likewise.
              * genoutput.c (main): Likewise.
              * genpeep.c (main): Likewise.
      
              * genrecog.c (decision_test.u.insn): Add `lineno'.
              (pattern_lineno, error_count): New variables.
              (message_with_line): New.
              (add_to_sequence): Break out checking code to ...
              (validate_pattern): ... here.  Detect SET_DEST matching CONST_INT.
              (merge_insn): Use message_with_line.
              (make_insn_sequence): Use validate_pattern.  Record insn lineno.
              (main): Set read_rtx_filename, pattern_lineno.  Exit early on error.
      
      From-SVN: r29957
      Richard Henderson committed
  6. 13 Oct, 1999 1 commit
  7. 10 Oct, 1999 2 commits
    • haifa-sched.c (sched_reg_n_calls_crossed): Delete. · c46a37c4
              * haifa-sched.c (sched_reg_n_calls_crossed): Delete.
              (sched_reg_live_length, sched_reg_basic_block): Delete.
              (current_block_num, bb_live_regs, old_live_regs): Delete.
              (dead_notes, struct sometimes): Delete.
              (sched_note_set, birthing_insn_p): Delete.
              (adjust_priority): Gut useless reg lifetime code.
              (create_reg_dead_note, attach_deaths): Delete.
              (attach_deaths_insn, new_sometimes_live): Delete.
              (finish_sometimes_live): Delete.
              (find_pre_sched_live, find_post_sched_live): Delete.
              (update_reg_usage): Delete.
              (find_insn_reg_weight): New, from corpse of find_pre_sched_live.
              (schedule_insns): Delete reg lifetime code.
              (sched_analyze): Use REG_SAVE_NOTE to stuff NOTE_INSN notes away.
              (unlink_other_notes): Adjust REG_NOTE commentary.
              (reemit_notes): Use REG_SAVE_NOTE.
              (schedule_block): Likewise.
              (schedule_region): Allocate bitmap of blocks in region.  Use
              count_or_remove_death_notes.  Use update_life_info.
      
              * rtl.h (REG_SAVE_NOTE): New.
              * rtl.c (reg_note_name): Update.
      
      From-SVN: r29894
      Richard Henderson committed
    • ansidecl.h (HAVE_GCC_VERSION): New macro. · b30bce6b
      include:
      	* ansidecl.h (HAVE_GCC_VERSION): New macro.  Use instead of
      	explicitly testing __GNUC__ and __GNUC_MINOR__.
      
      	(ATTRIBUTE_PRINTF): Use `__format__', not `format'.
      
      gcc:
      	* cppinit.c: Use HAVE_GCC_VERSION instead of explicitly testing
      	__GNUC__ and __GNUC_MINOR__.
      
      	* gansidecl.h: Likewise.
      
      	* rtl.c: Likewise.
      
      	* rtl.h: Likewise.
      
      	* toplev.h: Likewise.
      
      	* tree.c: Likewise.
      
      	* tree.h: Likewise.
      
      	* varray.c: Likewise.
      
      	* varray.h: Likewise.
      
      cp:
      	* cp-tree.h: Use HAVE_GCC_VERSION instead of explicitly testing
      	__GNUC__ and __GNUC_MINOR__.
      
      f:
      	* proj.h: Use HAVE_GCC_VERSION instead of explicitly testing
      	__GNUC__ and __GNUC_MINOR__.  Don't define BUILT_WITH_270.
      	Define macro UNUSED in terms of ATTRIBUTE_UNUSED.
      
      From-SVN: r29890
      Kaveh R. Ghazi committed
  8. 09 Oct, 1999 1 commit
    • Makefile.in (flow.o): Depend on TREE_H. · d3a923ee
      	* Makefile.in (flow.o): Depend on TREE_H.
      	* basic-block.h (REG_SET_EQUAL_P): New.
      	(XOR_REG_SET): New.
      	(n_edges): Declare.
      	(free_regset_vector): Remove declaration.
      	(flow_delete_insn_chain): Declare.
      	(enum update_life_extent): New.
      	(update_life_info, count_or_remove_death_notes): Declare.
      	* combine.c (distribute_notes) [REG_DEAD]: Stop search at bb->head.
      	Verify register live at bb->global_live_at_start before adding USE.
      	* flow.c (HAVE_epilogue, HAVE_prologue): Provide default.
      	(CLEAN_ALLOCA): New.
      	(n_edges): New.
      	(PROP_*): New flags.
      	(find_basic_blocks_1): Use alloc_EXPR_LIST.
      	(clear_edges): Zero n_edges.
      	(make_edge): Increment n_edges.
      	(split_edge): Don't allocate bb->local_set.  Increment n_edges.
      	(flow_delete_insn_chain): Export.
      	(delete_block): Decrement n_edges.
      	(merge_blocks_nomove): Likewise.
      	(life_analysis): Give life_analysis_1 PROP flags.
      	(verify_wide_reg_1, verify_wide_reg): New.
      	(verify_local_live_at_start): New.
      	(update_life_info): Rewrite to call into propogate_block.
      	(mark_reg): New.
      	(mark_regs_live_at_end): After reload, if epilogue as rtl,
      	always mark stack pointer.  Conditionally mark PIC register.
      	After reload, mark call-saved registers, return regsiters.
      	(life_analysis_1): Accept PROP flags not remove_dead_code.
      	Call mark_regs_live_at_end before zeroing regs_ever_live.
      	Use calculate_global_regs_live.  Copy global_live_at_end before
      	calling final propagate_block.  Zero reg_next_use on exit.
      	(calculate_global_regs_live): New.
      	(allocate_bb_life_data): Don't allocate bb->local_set.
      	(init_regset_vector, free_regset_vector): Remove.
      	(propagate_block): Accept FLAGS not FINAL or REMOVE_DEAD_CODE.
      	Test flags before every operation.  Warn if prologue/epilogue insn
      	would have been deleted.
      	(mark_set_regs, mark_set_1): Accept and use FLAGS.
      	Use alloc_EXPR_LIST.
      	(mark_used_regs): Accept and use FLAGS, not FINAL.
      	Remove special handling for RETURN.
      	(try_pre_increment): Use alloc_EXPR_LIST.
      	(dump_flow_info): Dump n_edges.
      	(unlink_insn_chain, split_hard_reg_notes): Remove.
      	(maybe_add_dead_note, maybe_add_dead_note_use): Remove.
      	(find_insn_with_note, new_insn_dead_notes): Remove.
      	(update_n_sets, sets_reg_or_subreg_1, sets_reg_or_subreg): Remove.
      	(maybe_remove_dead_notes, prepend_reg_notes): Remove.
      	(replace_insns): Remove.
      	(count_or_remove_death_notes): New.
      	(verify_flow_info): Abort on error after all checks.
      	(remove_edge): Decrement n_edges.
      	(remove_fake_edges): Tweek format.
      	* haifa-sched.c (schedule_insns): Use split_all_insns.
      	* output.h (update_life_info): Remove declaration.
      	* recog.c (split_all_insns): From the corpse of split_block_insns,
      	do the whole function block by block.  Use update_life_info.
      	(recog_last_allowed_insn): New.
      	(recog_next_insn): Mind it.
      	(peephole2_optimize): Set it.  Walk backwards through blocks.
      	Use update_life_info.
      	* rtl.h (update_flow_info, replace_insns): Remove declarations.
      	(split_all_insns): Declare.
      	* toplev.c (rest_of_compilation): Thread prologue before flow2.
      	Use split_all_insns.
      
      	* i386.md (or -1 peep2s): Disable.
      
      From-SVN: r29877
      Richard Henderson committed
  9. 08 Oct, 1999 1 commit
  10. 28 Sep, 1999 1 commit
  11. 20 Sep, 1999 1 commit
  12. 19 Sep, 1999 1 commit
  13. 18 Sep, 1999 1 commit
    • rtl.h (global_rtx_index): New enum. · 5da077de
              * rtl.h (global_rtx_index): New enum.
              (global_rtl): Change to array of rtx.
              (pc_rtx, cc0_rtx): Redefine accordingly.
              (cc0_rtx, stack_pointer_rtx, frame_pointer_rtx): Likewise.
              (hard_frame_pointer_rtx, arg_pointer_rtx): Likewise.
              (virtual_incoming_args_rtx, virtual_stack_vars_rtx): Likewise.
              (virtual_outgoing_args_rtx, virtual_cfa): Likewise.
              (const_int_rtx): Change to array of rtx.
              (const0_rtx, const1_rtx, const2_rtx, constm1_rtx): Redefine
              accordingly.
              * emit-rtl.c (global_rtl): Change to array of rtx.
              (const_int_rtx): Change to aray of rtx.
              (gen_rtx_CONST_INT): Redefine accordingly.
              (init_emit_once): Allocate and initialize global_rtl.  Likewise
              for const_int_rtx.  Add both as GC roots.
              * genattrtab.c (global_rtl): Update declaration.
      
      From-SVN: r29500
      Alex Samuel committed
  14. 15 Sep, 1999 2 commits
    • rtl.h (NOTE_BLOCK_NUMBER): Replace with ... · 1a4450c7
      	* rtl.h (NOTE_BLOCK_NUMBER): Replace with ...
      	(NOTE_BLOCK): New macro.
      	(NOTE_BLOCK_LIVE_RANGE_BLOCK): Remove.
      	* function.h (identify_blocks): CHange prototype.
      	* function.c (identify_blocks): Simplify.
      	(reorder_blocks): Likewise.
      	* ggc-common.c (ggc_mark_rtx): Mark the BLOCK associated with a
      	NOTE_INSN_BLOCK_{BEG,END}.
      	* haifa-sched.c (sched_analyze): Don't put NOTE_BLOCK_NUMBER on
      	the list of saved notes if the note isn't a
      	NOTE_INSN_BLOCK_{BEG,END}.
      	(move_insn1): Use NOTE_EH_HANDLER in comment, rather than
      	NOTE_BLOCK_NUMBER.
      	(reemit_notes): Adjust recreation of notes to reflect new saved
      	note structure.
      	* print-rtl.c (print_rtx): Print the address of the BLOCK when
      	printing a block note.
      	* stmt.c (block_vector): Remove.
      	(find_loop_tree_blocks): Simplify.
      	(unroll_block_trees): Likewise.
      
      From-SVN: r29441
      Mark Mitchell committed
    • rtl.h (get_insn_name, [...]): Add prototypes. · 7adfcfed
      	* rtl.h (get_insn_name, print_rtl_with_bb): Add prototypes.
      
      	* print-rtl.c (get_insn_name): Remove prototype.
      
      	* toplev.h (progname): Declare const.
      
      	* toplev.c (init_decl_processing, init_obstacks, init_tree_codes,
      	init_regs, init_optabs, init_stmt, init_reg_sets, dump_flow_info,
      	dump_sched_info, dump_local_alloc, regset_release_memory,
      	print_rtl, print_rtl_with_bb, rest_of_decl_compilation,
      	error_with_file_and_line, error_with_decl, error_for_asm, error,
      	fatal, warning_with_file_and_line, warning_with_decl, warning,
      	pedwarn, pedwarn_with_decl, pedwarn_with_file_and_line, sorry):
      	Remove redundant prototypes.
      
      	(notice, check_lang_option, report_file_and_line, vnotice,
      	mark_file_stack): Add static prototype.
      	(set_fatal_function): Add prototype.
      	(vnotice, report_file_and_line, set_fatal_function,
      	check_lang_option): Constify a char*.
      	(main): Prototype.  Call return, not exit.
      
      cp:
      
      	* typeck2.c (ack): Don't declare progname.
      
      From-SVN: r29433
      Kaveh R. Ghazi committed
  15. 09 Sep, 1999 1 commit
    • 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
  16. 08 Sep, 1999 1 commit
  17. 07 Sep, 1999 1 commit
  18. 04 Sep, 1999 2 commits
    • 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
    • Change memory mangement and constant pool handling for nested functions to match… · 36edd3cc
      Change memory mangement and constant pool handling for nested functions to match that of normal functions; add init_machine_status mechanism.
      
      From-SVN: r29101
      Bernd Schmidt committed
  19. 03 Sep, 1999 2 commits
    • * rtl.h (RTL_CHECKC2): Fix typo in last change. · 818a3b15
      From-SVN: r29090
      Mark Mitchell committed
    • flow.c (propagate_block): Use XEXP not SET_DEST for a USE. · 83ab3839
              * flow.c (propagate_block): Use XEXP not SET_DEST for a USE.
              (recompute_reg_usage): Likewise.
              * rtlanal.c (find_regno_fusage): Likewise.
      
              * rtl.c (rtl_check_failed_code1): New function.
              (rtl_check_failed_code2): New.
              * rtl.h (RTL_CHECK1, RTL_CHECK2, RTVEC_ELT): Parenthesize args.
              (RTL_CHECKC1, RTL_CHECKC2): New.
              (XC*): New accessor macros.
              (NOTE_*, LABEL_NAME, LABEL_NUSES, ADDRESSOF_REGNO): Use them.
              (ADDRESSOF_DECL, JUMP_LABEL, LABEL_REFS, LABEL_NEXTREF): Likewise.
              (CONTAINING_INSN, REGNO, INTVAL, SUBREG_REG, SUBREG_WORD): Likewise.
              (ASM_OPERANDS_*, MEM_ALIAS_SET, SET_SRC, SET_DEST): Likewise.
              (TRAP_*, RANGE_INFO_*): Likewise.
      
      From-SVN: r29089
      Richard Henderson committed
  20. 02 Sep, 1999 2 commits
    • dwarf2out.c (dwarf2out_line): Constify `lastfile'. · e2bef702
              * dwarf2out.c (dwarf2out_line): Constify `lastfile'.
              * except.c (expand_rethrow): Remove unused variable.
              * expr.c (do_jump_by_parts_greater_rtx): Likewise.
              * flow.c (replace_insns): Likewise.
              (create_edge_list, verify_edge_list): Likewise.
              * gcse.c (cprop_cc0_jump): Protect declaration with HAVE_cc0.
      
              * genemit.c (gen_expand): Only emit `operands[N]' decl if there
              is special code to run.
              (main): Don't define operands to emit_operand.
              * genrecog.c (main): Don't emit an empty peephole2_insn function.
      
              * rtl.h (NOTE_BASIC_BLOCK): Use X0BBDEF.
      
              * alpha/alpha.h (normal_memory_operand): Declare.
              (reg_no_subreg_operand): Declare.
              * alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use HOST_WIDE_INT_PRINT_DEC.
      
      From-SVN: r29061
      Richard Henderson committed
    • Merge new ia32 backend from the branch! · e075ae69
      From-SVN: r29044
      Richard Henderson committed
  21. 31 Aug, 1999 1 commit
    • rtl.h (RTL_CHECK1, RTL_CHECK2): New macros which type- and bounds- check RTL… · ef178af3
      rtl.h (RTL_CHECK1, RTL_CHECK2): New macros which type- and bounds- check RTL accesses if --enable-checking.
      
      1999-08-31 12:20 -0700 Zack Weinberg <zack@bitmover.com>
      
      	* rtl.h (RTL_CHECK1, RTL_CHECK2): New macros which type- and
      	bounds- check RTL accesses if --enable-checking.
      	(RTVEC_ELT): Bounds check if --enable-checking.
      	(XWINT, XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE,
      	XBBDEF): Use RTL_CHECK1/RTL_CHECK2 as appropriate.
      	(XVECEXP, XVECLEN): Define in terms of XVEC, RTVEC_ELT, and
      	GET_NUM_ELEM.
      	(X0WINT, X0INT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
      	X0BBDEF, X0ADVFLAGS):  New macros for accessing '0' slots of RTXes.
      
      	(ADDR_DIFF_VEC_FLAGS): Use X0ADVFLAGS.
      	(NOTE_SOURCE_FILE): Use X0STR.
      	(NOTE_BLOCK_NUMBER, NOTE_EH_HANDLER, LABEL_NUSES,
      	MEM_ALIAS_SET): Use X0INT.
      	(NOTE_RANGE_INFO, NOTE_LIVE_INFO, NOTE_BASIC_BLOCK,
      	JUMP_LABEL, LABEL_REFS, LABEL_NEXTREF, CONTAINING_INSN):
      	Use X0EXP.
      	* real.h (CONST_DOUBLE_CHAIN): Use X0EXP.
      	* rtl.c (copy_rtx, copy_most_rtx): Copy '0' slots with X0WINT.
      	(rtl_check_failed_bounds, rtl_check_failed_type1,
      	rtl_check_failed_type2, rtvec_check_failed_bounds): New
      	functions.
      	(fancy_abort): Fix comment.
      
      	* cse.c (canon_hash): Read CONST_DOUBLE data slots with XWINT.
      	(cse_insn): Decrement LABEL_NUSES for jump target before
      	deleting jump insn.
      	* emit-rtl.c (gen_rtx_CONST_DOUBLE): Use X0EXP for slot 1.
      	* final.c (alter_subreg): Compute regno before changing x to
      	REG; set REGNO(x) after changing it.
      	* flow.c (count_basic_blocks): Use XWINT to inspect EH_REGION
      	notes containing CONST_INTs.
      	(delete_eh_regions): Use NOTE_EH_HANDLER.
      	* function.c (put_reg_into_stack): Make reg a MEM before
      	initializing it.
      	(fixup_var_refs_insns):  Save REG_NOTES (insn) in case we
      	delete insn.
      	(gen_mem_addressof): Make reg a MEM before initializing it.
      	* integrate.c (copy_rtx_and_substitute): Copy '0' slots with
      	X0WINT.
      	* local-alloc.c (update_equiv_regs): Zap REG_NOTES before
      	deleting an insn, not after.
      	(block_alloc): Only look at PATTERN(insn) if we have to, and
      	only if it's format class 'i'.
      	* loop.c (check_dbra_loop): Check bl->biv->add_val is a
      	CONST_INT before using its INTVAL.
      	* print-rtl.c (print_rtx): Use X0STR.
      	* regmove.c (fixup_match_1): Don't look at PATTERN of
      	non-class-'i' insn chain elements.
      	* reload.c (loc_mentioned_in_p): Take address of
      	in->fld[1].rtx directly.
      	* reload1.c (reload): Change reg to a MEM before initializing
      	it.
      	* varasm.c (mark_constant_pool): Skip CONST_DOUBLES, which
      	have no names.
      	* config/i386/i386.md (decrement_and_branch_if_zero): Fix typo.
      
      From-SVN: r29008
      Zack Weinberg committed
  22. 27 Aug, 1999 1 commit
    • rtl.c: Define CONST_DOUBLE_FORMAT to the appropriate format for a CONST_DOUBLE... · aa0b4465
      1999-08-27 13:27 -0700  Zack Weinberg  <zack@bitmover.com>
      
      	* rtl.c: Define CONST_DOUBLE_FORMAT to the appropriate format
      	for a CONST_DOUBLE, at compile time.  Initialize rtx_length
      	and class_narrowest_mode at compile time.  Kill init_rtl.
      	Mark rtx_length, mode_class, mode_size, mode_unit_size,
      	mode_wider_mode, mode_mask_array, class_narrowest_mode, and
      	rtx_format as const.  Kill all references to EXTRA_CC_MODES or
      	EXTRA_CC_NAMES.
      	* rtl.def (CONST_DOUBLE): Use CONST_DOUBLE_FORMAT macro for
      	format.
      	* rtl.h: Declare rtx_length and rtx_format as const.
      	* machmode.def: Define CC().  Use CC() to define CCmode.  If
      	EXTRA_CC_MODES is defined, expand it here.
      	* machmode.h: Declare mode_class, mode_size, mode_unit_size,
      	mode_wider_mode, mode_mask_array, and class_narrowest_mode as
      	const.  Kill all references to EXTRA_CC_MODES.
      
      	* toplev.c: Don't prototype or call init_rtl.
      	* optabs.c: Don't call init_mov_optab.
      	* genemit.c: Don't generate init_mov_optab.  Don't call
      	init_rtl.
      	* gengenrtl.c: Duplicate calculation of CONST_DOUBLE_FORMAT
      	here.
      	* genattr.c, genattrtab.c, gencodes.c, genconfig.c,
      	genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c,
      	genrecog.c: Don't call init_rtl.
      
      	* arc.h, arm.h, c4x.h, i386.h, i960.h, m88k.h, pa.h, pdp11.h,
      	rs6000.h, sparc.h: Don't define EXTRA_CC_NAMES.  Use CC() in
      	definition of EXTRA_CC_MODES.
      
      	* md.texi: Kill ref to EXTRA_CC_NAMES.
      	* tm.texi: Document new way to define EXTRA_CC_MODES.
      
      	* genrecog.c: Do not look up the name of a define_split.
      	(Unrelated bugfix.)
      
      From-SVN: r28937
      Zack Weinberg committed
  23. 26 Aug, 1999 1 commit
    • system.h: Don't redefine abort or trim_filename. · 987009bf
      1999-08-25 22:10 -0700  Zack Weinberg  <zack@bitmover.com>
      
      	* system.h: Don't redefine abort or trim_filename.
      	* rtl.h: Define abort to fancy_abort (__FILE__, __LINE__, 0)
      	or fancy_abort (__FILE__, __LINE__, __FUNCTION__) depending on
      	whether or not __FUNCTION__ is available.
      	* tree.h: Duplicate rtl.h's definition of abort, for files
      	that don't include rtl.h.  Delete all code to perform type
      	checking with a compiler other than GCC.
      	* varray.h: Delete all code to perform type checking with a
      	compiler other than GCC.  Make VARRAY_CHECK() always evaluate
      	its arguments exactly once, using a statement expression.
      	Adjust the VARRAY_<type> accessor macros to match.
      	* toplev.h (fatal_insn, fatal_insn_not_found): Kill.
      	(_fatal_insn, _fatal_insn_not_found): New fns, take info on
      	caller's location.  Define fatal_insn and fatal_insn_not_found
      	as macros that use _fatal_insn and _fatal_insn_not_found.
      	(fancy_abort, trim_filename): Kill prototypes.
      
      	* rtl.c (trim_filename): Move here from toplev.c.
      	(fancy_abort): New function.
      	(DIR_SEPARATOR): Provide default definition.
      	* tree.c (tree_check_failed, tree_class_check_failed): Go
      	through fancy_abort.
      	(tree_check, tree_class_check, cst_or_constructor_check,
      	expr_check): Delete.
      	* varray.c (varray_check_failed): New function.
      	* toplev.c (fatal_insn, fatal_insn_not_found): Replace with
      	_fatal_insn and _fatal_insn_not_found.  Go through
      	fancy_abort.
      	(trim_filename, fancy_abort): Delete.
      
      	* builtins.c (expand_builtin_args_info): Report ICE with abort.
      	* except.c (start_catch_handler): Report ICE with error/abort
      	combo.
      	* final.c (output_operand_lossage): Likewise.
      	* flow.c (verify_flow_info): Likewise.
      
      	* gcc.c: Prototype fatal.
      	* gengenrtl.c: Undef abort after including rtl.h not system.h.
      	* genattr.c, genattrtab.c, genemit.c, genextract.c,
      	genflags.c, genopinit.c, genoutput.c, genpeep.c, genrecog.c:
      	Don't define fancy_abort.
      
      From-SVN: r28889
      Zack Weinberg committed
  24. 25 Aug, 1999 1 commit
    • lists.c (unused_insn_list, [...]): New file for maintaining various types of lists. · 5a4f6418
      Wed Aug 25 13:41:47 EDT 1999  Andrew MacLeod  <amacleod@cygnus.com>
      
      	* lists.c (unused_insn_list, unused_expr_list): New file for
      	maintaining various types of lists. New statics for maintaining a
      	cache of available INSN_LIST and EXPR_LIST nodes.
      	(free_list): Static function for freeing a list of INSN/EXPR nodes.
      	(alloc_INSN_LIST): Function to get a free INSN_LIST node.
      	(alloc_EXPR_LIST): Function to get a free EXPR_LIST node.
      	(init_EXPR_INSN_LIST_cache): Initialize the cache lists.
      	(free_EXPR_LIST_list): Free an entire list of EXPR_LIST nodes.
      	(free_INSN_LIST_list): Free an entire list of INSN_LIST nodes.
      	(free_EXPR_LIST_node): Free an individual EXPR_LIST node.
      	(free_INSN_LIST_node): Free an individual INSN_LIST node.
      	* haifa-sched.c (unused_insn_list, unused_expr_list): Moved to flow.c
      	(free_list, alloc_INSN_LIST, alloc_EXPR_LIST): Moved to flow.c
      	(remove_dependence, free_pending_lists): Use new global routines.
      	(flush_pending_lists, sched_analyze_insn): Use new global routines.
      	(sched_analyze, compute_block_backward_dependences): Use new routines.
      	(sched_analyze_1, sched_analyze_2): Use new routines.
      	(schedule_insns): Use new global routines.
      	* rtl.h (init_EXPR_INSN_LIST_cache, free_EXPR_LIST_list): Add function
      	prototypes.
      	(free_INSN_LIST_list, free_EXPR_LIST_node): Add prototypes.
      	(free_INSN_LIST_node, alloc_INSN_LIST, alloc_EXPR_LIST): Add function
      	prototypes.
      	* toplev.c (rest_of_compilation): Initialize node cache.
      	* Makefile.in (OBJS): Add lists.o to list of object files.
      	(lists.o): Add dependancies.
      
      From-SVN: r28864
      Andrew MacLeod committed
  25. 24 Aug, 1999 3 commits
    • haifa-sched.c (split_hard_reg_notes): Move to flow.c · f2a1bc02
              * haifa-sched.c (split_hard_reg_notes): Move to flow.c
              (new_insn_dead_notes): Likewise.
              (update_n_sets): Likewise.
              (update_flow_info): Move to flow.c, renamed to update_life_info;
              extend to handle multiple source insns.
              * flow.c: Include resource.h
              (unlink_insn_chain): New.
              (split_hard_reg_notes): New.
              (maybe_add_dead_note): New.
              (maybe_add_dead_note_use): New.
              (find_insn_with_note): New.
              (new_insn_dead_notes): New.
              (update_n_sets): New.
              (sets_reg_or_subreg_1, sets_reg_or_subreg): New.
              (maybe_remove_dead_notes): New.
              (update_life_info): New.
              (prepend_reg_notes): New.
              (replace_insns): New.
              * output.h (update_life_info): Declare.
              * recog.c (split_block_insns): Use update_life_info.
              * resource.c (find_free_register): Use reg_alloc_order, don't use
              fixed regs, make sure the mode is supported, don't use new regs.
              (reg_dead_p): New.
              * rtl.h (replace_insns): Declare.
      
      Co-Authored-By: Richard Henderson <rth@cygnus.com>
      
      From-SVN: r28828
      Bob Manson committed
    • Fix more problems from GC diffs · bf6bb899
      From-SVN: r28820
      Bernd Schmidt committed
    • configure.in: Remove code to select/de-select the haifa scheduler. · 7b5efe21
              * configure.in: Remove code to select/de-select the haifa
              scheduler.  Every scheduled port gets haifa now.
              * configure: Rebuilt.
              * flags.h, genattrtab.c, rtl.h, toplev.c: Remove HAIFA ifdefs.
              * sched.c Deleted.
              * Makefile.in: Corresponding changes.
      
      From-SVN: r28809
      Jeffrey A Law committed
  26. 20 Aug, 1999 3 commits
    • rtl.c (rtx_class, [...]): Constify. · 1f9a015e
      	* rtl.c (rtx_class, note_insn_name, reg_note_name): Constify.
      
      	* rtl.h (rtx_class, reg_note_name, note_insn_name): Likewise.
      
      	* genopinit.c (gen_insn): Use accessor macro, not `rtx_class'.
      
      From-SVN: r28785
      Kaveh R. Ghazi committed
    • rtl.h (rtx_format): Constify a char*. · 6f7d635c
      	* rtl.h (rtx_format): Constify a char*.
      
      	* rtl.c (rtx_format): Likewise.
      	(copy_rtx, copy_most_rtx, read_rtx): Likewise.
      	(init_rtl): Use accessor macro, not `rtx_format'.
      
      	* alias.c (rtx_equal_for_memref_p, find_symbolic_term): Constify a
      	char*.
      
      	* caller-save.c (mark_referenced_regs): Likewise.
      
      	* combine.c (subst, make_compound_operation, known_cond,
      	gen_rtx_combine, update_table_tick, get_last_value_validate,
      	use_crosses_set_p, mark_used_regs_combine, move_deaths): Likewise.
      
      	* cse.c (rtx_cost, mention_regs, canon_hash, exp_equiv_p,
      	refers_to_p, canon_reg, fold_rtx, cse_process_notes,
      	count_reg_usage): Likewise.
      
      	* emit-rtl.c (gen_rtx, copy_rtx_if_shared, reset_used_flags):
      	Likewise.
      
      	* final.c (leaf_renumber_regs_insn): Likewise.
      
      	* flow.c (mark_used_regs, find_use_as_address, dump_flow_info,
      	dump_edge_info, count_reg_references): Likewise.
      
      	* function.c (fixup_var_refs_1, walk_fixup_memory_subreg,
      	fixup_stack_1, purge_addressof_1, instantiate_virtual_regs_1):
      	Likewise.
      
      	* gcse.c (oprs_unchanged_p, hash_expr_1, expr_equiv_p,
      	oprs_not_set_p, expr_killed_p, compute_transp, find_used_regs,
      	add_label_notes): Likewise.
      
      	* genattrtab.c (attr_rtx, attr_copy_rtx, encode_units_mask,
      	clear_struct_flag, count_sub_rtxs, count_alternatives,
      	compares_alternatives_p, contained_in_p, walk_attr_value,
      	write_expr_attr_cache): Likewise.
      
      	* genconfig.c (walk_insn_part): Likewise.
      
      	* genemit.c (max_operand_1, gen_exp): Likewise.
      
      	* genextract.c (walk_rtx): Likewise.
      
      	* genflags.c (num_operands): Likewise.
      
      	* genoutput.c (scan_operands): Likewise.
      
      	* genpeep.c (match_rtx): Likewise.
      
      	* genrecog.c (add_to_sequence): Likewise.
      
      	* haifa-sched.c (may_trap_exp, sched_analyze_2, attach_deaths):
      	Likewise.
      
      	* integrate.c (save_constants, copy_for_inline,
      	copy_rtx_and_substitute, subst_constants, restore_constants):
      	Likewise.
      
      	* jump.c  (mark_jump_label, invert_exp, redirect_exp,
      	rtx_renumbered_equal_p, rtx_equal_for_thread_p): Likewise.
      
      	* local-alloc.c (contains_replace_regs, memref_referenced_p):
      	Likewise.
      
      	* loop.c (record_excess_regs, rtx_equal_for_loop_p,
      	add_label_notes, replace_call_address, count_nonfixed_reads,
      	invariant_p, find_single_use_in_loop, find_mem_givs,
      	find_life_end, maybe_eliminate_biv_1, update_reg_last_use):
      	Likewise.
      
      	* print-rtl.c (reg_names, print_rtx): Likewise.
      
      	* recog.c (validate_replace_rtx_1, find_single_use_1): Likewise.
      
      	* reg-stack.c (stack_regs_mentioned_p, record_label_references,
      	record_reg_life_pat, swap_rtx_condition, goto_block_pat,
      	print_blocks): Likewise.
      
      	* regclass.c (fix_register, record_address_regs,
      	reg_scan_mark_refs): Likewise.
      
      	* regmove.c (stable_but_for_p): Likewise.
      
      	* reload.c (loc_mentioned_in_p, operands_match_p,
      	find_reloads_toplevsubst_reg_equivs, find_reloads_address_1,
      	copy_replacements, refers_to_regno_for_reload_p,
      	refers_to_mem_for_reload_p, find_inc_amount, regno_clobbered_p,
      	reload_when_needed_name, reg_class_names, debug_reload_to_stream):
      	Likewise.
      
      	* reload1.c (eliminate_regs, scan_paradoxical_subregs,
      	delete_address_reloads_1, count_occurrences,
      	reload_cse_mem_conflict_p, reload_combine_note_use,
      	add_auto_inc_notes): Likewise.
      
      	* resource.c (mark_referenced_resources, mark_set_resources):
      	Likewise.
      
      	* rtlanal.c (rtx_unstable_p, rtx_varies_p, rtx_addr_varies_p,
      	reg_mentioned_p, regs_set_between_p, modified_between_p,
      	modified_in_p, refers_to_regno_p, reg_overlap_mentioned_p,
      	rtx_equal_p, volatile_insn_p, volatile_refs_p, side_effects_p,
      	may_trap_p, inequality_comparisons_p, replace_rtx, replace_regs,
      	jmp_uses_reg_or_mem, for_each_rtx, regno_use_in): Likewise.
      
      	* sched.c (sched_analyze_2, attach_deaths): Likewise.
      
      	* stupid.c (stupid_mark_refs): Likewise.
      
      	* unroll.c (remap_split_bivs): Likewise.
      
      	* varasm.c (mark_constants): Likewise.
      
      	* a29k/a29k.c (uses_local_reg_p): Likewise.
      
      	* alpha/alpha.c (summarize_insn): Likewise.
      
      	* arm/arm.c (symbol_mentioned_p, label_mentioned_p,
      	eliminate_lr2ip): Likewise.
      
      	* arm/thumb.c (symbol_mentioned_p, label_mentioned_p): Likewise.
      
      	* i386/i386.c (symbolic_reference_mentioned_p, copy_all_rtx,
      	reg_mentioned_in_mem): Likewise.
      
      	* ns32k/ns32k.c (global_symbolic_reference_mentioned_p,
      	symbolic_reference_mentioned_p): Likewise.
      
      	* romp/romp.c (unsigned_comparisons_p, hash_rtx): Likewise.
      
      	* sh/sh.c (regs_used, mark_use): Likewise.
      
      	* vax/vax.c (vax_rtx_cost): Likewise.
      
      From-SVN: r28784
      Kaveh R. Ghazi committed
    • rtl.c (rtx_name): Constify a char*. · 5f06c983
      	* rtl.c (rtx_name): Constify a char*.
      
      	* rtl.h (rtx_name, fix_sched_param): Likewise.
      
      	* gmicro/gmicro.c (rtx_name): Remove redundant declaration.
      	(mypr): Use accessor macro, not `rtx_name'.
      
      	* genemit.c (print_code): Constify a char*.
      
      	* genopinit.c (gen_insn): Use accessor macro, not `rtx_name'.
      
      	* genpeep.c (print_code): Constify a char*.
      
      	* genrecog.c (print_code): Likewise.
      
      	* graph.c (start_fct, start_bb, node_data, draw_edge, end_fct,
      	end_bb): Add static prototype.
      	(draw_edge): Constify a char*.
      	(end_bb): Remove unused parameter.
      
      	* haifa-sched.c (fix_sched_param, safe_concat, print_exp
      	print_block_visualization): Constify a char*.
      
      From-SVN: r28782
      Kaveh R. Ghazi committed
  27. 19 Aug, 1999 2 commits
    • rtl.def (NOTE): Change format to "iuu0n". · 8f985ec4
      1999-08-19 14:44 -0700  Zack Weinberg  <zack@bitmover.com>
      
      	* rtl.def (NOTE): Change format to "iuu0n".
      	(ADDR_DIFF_VEC): Change format to "eEee0".
      	(ADDRESSOF): Change format to "eit".
      
      	* rtl.h (rtvec): Make "elem" an array of rtx, not rtunion.
      	(RTVEC_ELT): Change to match.
      	(XVECEXP): Use XVEC and RTVEC_ELT.
      	(INSN_UID, INSN_CODE, CODE_LABEL_NUMBER, NOTE_LINE_NUMBER,
      	ADDRESSOF_REGNO, REGNO, SUBREG_WORD): Use XINT.
      	(PREV_INSN, NEXT_INSN, PATTERN, REG_NOTES,
      	CALL_INSN_FUNCTION_USAGE, SUBREG_REG, SET_SRC, SET_DEST,
      	TRAP_CONDITION, TRAP_CODE): Use XEXP.
      	(INTVAL): Use XWINT.
      	(ADDRESSOF_DECL): Use XTREE.
      	(SET_ADDRESSOF_DECL): Delete.
      	(NOTE_DECL_NAME, NOTE_DECL_CODE, NOTE_DECL_RTL,
      	NOTE_DECL_IDENTIFIER, NOTE_DECL_TYPE): Kill.  These have been
      	ifdefed out since 2.6 at least.
      	(gen_rtvec_vv): Delete prototype.
      
      	* rtl.h (rtvec_alloc): rt->elem is now an array of rtx,
      	not rtunion.
      	(copy_most_rtx): Handle 't' format letter.
      	* emit-rtl.c (gen_rtvec_v): rt_val->elem is an array of rtx.
      	(gen_rtvec_vv): Delete function.  All callers changed to use
      	gen_rtvec_v instead.
      	* print-rtl.c (print_rtx): Move special casing of NOTEs to
      	the '0' format letter.
      
      	* function.c (gen_mem_addressof): Don't use
      	SET_ADDRESSOF_DECL; provide `decl' to gen_rtx_ADDRESSOF
      	instead.
      	* integrate.c (copy_rtx_and_substitute): Likewise.
      	Copy 't' slots with XTREE.
      	(subst_constants): Treat 't' slots like '[swi]' slots.
      	* cse.c (canon_hash, exp_equiv_p): Treat 't' slots like	'0' slots.
      	* jump.c (rtx_equal_for_thread_p): Likewise.
      	* rtlanal.c (rtx_equal_p): Likewise.
      	* stmt.c (expand_end_case): gen_rtx_ADDR_DIFF_VEC now takes
      	only four arguments.
      	* gengenrtl.c (type_from_format): Provide correct types for
      	'b' and 't' slots.
      
      
      	* tree.h [ENABLE_CHECKING] (TREE_CHECK, TREE_CLASS_CHECK):
      	If a recent gcc is in use (always in stage2 and beyond), use
      	statement expressions, so we don't make a function call unless
      	the check fails.  Evaluate arguments exactly once.
      	(CHAIN_CHECK, DO_CHECK, DO_CHECK1, TREE_CHECK1,
      	TREE_CLASS_CHECK1, TYPE_CHECK1, DECL_CHECK1, CST_CHECK1):
      	Delete.
      	(CST_OR_CONSTRUCTOR_CHECK, EXPR_CHECK): Redefine such that
      	they evaluate their arguments exactly once, irrespective of
      	the compiler in use.
      
      	* tree.c [ENABLE_CHECKING]: Define whichever set of functions
      	is used by the currently-enabled check macros.  This is:
      	(tree_check_failed, tree_class_check_failed): For gcc.
      	(tree_check, tree_class_check, cst_or_constructor_check,
      	expr_check): For other compilers.
      
      	* gencheck.c: Do not define any *_CHECK1 macros.
      
      From-SVN: r28769
      Zack Weinberg committed
    • alias.c: Include tree.h. · 7790df19
      	* alias.c: Include tree.h.
      	(nonlocal_reference_p, mark_constant_function): New functions.
      	* flow.c (life_analysis): Call mark_constant_function.
      	* rtl.h (mark_constant_function): Declare it.
      
      From-SVN: r28762
      John Wehle committed
  28. 18 Aug, 1999 1 commit
    • cse.c (cse_insn): Call never_reached_warning when a jump is changed to be unconditional. · 312f6255
      * cse.c (cse_insn): Call never_reached_warning when a jump is
      changed to be unconditional.
      * flags.h: Declare warn_notreached.
      * flow.c (delete_block): Call never_reached_warning when
      a block is deleted.
      * jump.c (delete_barrier_successors): Call never_reached_warning
      when we delete everything after a BARRIER.
      (never_reached_warning): New function.
      * rtl.h: Declare never_reached_warning.
      * toplev.c (warn_notreached): New variable.
      (lang_independent_options): Set warn_notreached
      when -Wunreachable-code.
      (compile_file): We need line numbers for -Wunreachable-code.
      
      Also modify documentation to suit.
      
      From-SVN: r28747
      Geoff Keating committed