Commit Graph

57 Commits

Author SHA1 Message Date
Toshiyasu Morita
1ed9faeecb regmove.c (fixup_match_1): Consistently evaluate HAVE_POST_INCREMENT and HAVE_POST_DECREMENT.
* regmove.c (fixup_match_1): Consistently evaluate
        HAVE_POST_INCREMENT and HAVE_POST_DECREMENT.

From-SVN: r26159
1999-04-03 08:27:53 -07:00
Toshiyasu Morita
cb084004de * regmove.c (fixup_match_1): Remove now useless if (0).
From-SVN: r26139
1999-04-02 09:58:20 -07:00
J"orn Rennecke
78dd9906fe * regmove.c (copy_src_to_dest): New argument max_old_uid.
From-SVN: r25639
1999-03-08 10:51:28 +00:00
Richard Henderson
e881bb1b1b Flow rewrite to use basic block structures and edge lists.
From-SVN: r25450
1999-02-25 15:45:42 -08:00
Michael Hayes
cd4b354624 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
        * regmove.c (discover_flags_reg): Use word_mode instead of SImode.

From-SVN: r25342
1999-02-21 05:17:17 -08:00
Richard Henderson
e7f5b971ec regmove.c (discover_flags_reg): Remove cc0 code.
* regmove.c (discover_flags_reg): Remove cc0 code.
        (mark_flags_life_zones) [HAVE_cc0]: Force use of cc0; bail if
        a potential flags register was identified.

From-SVN: r25341
1999-02-21 05:16:11 -08:00
Richard Henderson
dc2cb19139 regmove.c (discover_flags_reg): New function.
* regmove.c (discover_flags_reg): New function.
        (flags_set_1, mark_flags_life_zones): New functions.
        (regmove_optimize): Call them.
        (fixup_match_1): Use insn modes rather than sets_cc0_p.

From-SVN: r25332
1999-02-19 15:02:58 -08:00
Kaveh R. Ghazi
9b3142b340 final.c (bb_str): Qualify a char* with the keyword `const'.
* final.c (bb_str): Qualify a char* with the keyword `const'.
        (add_bb_string, final_scan_insn, output_asm_insn): Likewise.
        * fix-header.c (read_scan_file): Likewise.
        * genoutput.c (output_epilogue, process_template): Likewise.
        * local-alloc.c (requires_inout, block_alloc): Likewise.
        * output.h (output_asm_insn, assemble_string): Likewise.
        * recog.c (recog_constraints, check_asm_operands,
        decode_asm_operands, extract_insn, preprocess_constraints,
        constrain_operands): Likewise.
        * recog.h (operand_alternative, recog_constraints, insn_template,
        insn_outfun, insn_operand_constraint, insn_name): Likewise.
        * regclass.c (record_reg_classes, scan_one_insn): Likewise.
        * regmove.c (find_matches): Likewise.
        * reload.c (alternative_allows_memconst): Likewise.
        * reload1.c (constraint_accepts_reg_p,
        reload_cse_simplify_operands): Likewise.
        * rtl.h (decode_asm_operands): Likewise.
        * scan.h (fn_decl): Likewise.
        * varasm.c (assemble_string): Likewise.

From-SVN: r24834
1999-01-23 19:45:50 +00:00
Jeff Law
89098dc1a7 regmove.c (optimize_reg_copy_1): Undo Aug 18 change.
* regmove.c (optimize_reg_copy_1): Undo Aug 18 change.  Update
        REG_N_CALLS_CROSSED and REG_LIVE_LENGH if and only if we change
        where a register is live.

From-SVN: r24718
1999-01-17 11:26:42 -07:00
Richard Henderson
a5cad80034 Update copyrights.
From-SVN: r24624
1999-01-11 15:15:28 -08:00
Richard Henderson
3b413743e0 basic-block.h (basic_block_head): Rename to x_basic_block_head.
* basic-block.h (basic_block_head): Rename to x_basic_block_head.
        (basic_block_end): Rename to x_basic_block_end.
        (BLOCK_HEAD, BLOCK_END): Update.
        * caller-save.c: Change basic_block_head/end references to
        BLOCK_HEAD/END.
        * combine.c, flow.c, function.c, gcse.c, global.c: Likewise.
        * graph.c, haifa-sched.c, local-alloc.c, regclass.c: Likewise.
        * regmove.c, reload1.c, reorg.c, sched.c: Likewise.

From-SVN: r24622
1999-01-11 14:37:20 -08:00
Jeff Law
5f38fdda61 Update FSF address in copyright header.
From-SVN: r24614
1999-01-11 06:34:38 -07:00
Kaveh R. Ghazi
973838fdb3 Warning fixes:
* alias.c (record_alias_subset): Remove ignored `&'.
        (init_alias_once): Likewise.
        * c-lex.c (UNGETC): Cast first argument of comma expression to void.
        * config/mips/mips.c (mips_asm_file_end): Cast the result of
        fwrite to `int' when comparing against one.
        * config/mips/mips.h (CAN_ELIMINATE): Add parens around && within ||.
        (INITIAL_ELIMINATION_OFFSET): Add braces to avoid ambiguous `else'.
        * cse.c (rehash_using_reg): Change type of variable `i' to
        unsigned int.
        * dwarf2out.c (initial_return_save): Cast -1 to unsigned before
        assigning it to one.
        * except.c (duplicate_eh_handlers): Remove unused variable `tmp'.
        * final.c (final_scan_insn): Likewise for variable `i'.
        (output_asm_insn): Cast a char to unsigned char when used as an
        array index.
        * gcse.c (compute_pre_ppinout): Cast -1 to SBITMAP_ELT_TYPE when
        assigning it to one.
        * loop.c (strength_reduce): Remove unused variables `count' and `temp'.
        * recog.c (preprocess_constraints): Cast a char to unsigned char
        when used as an array index.
        * regmove.c (find_matches): Likewise.
        * reload1.c (calculate_needs): Add default case in switch.
        (eliminate_regs_in_insn): Initialize variable `offset'.
        (set_offsets_for_label): Change type of variable `i' to unsigned.
        (reload_as_needed): Wrap variable `i' in macro check on
        AUTO_INC_DEC || INSN_CLOBBERS_REGNO_P.
        * scan-decls.c (scan_decls): Mark parameters `argc' and `argv'
        with ATTRIBUTE_UNUSED.  Cast variable `start_written' to size_t
        when comparing against one.
        * stor-layout.c (layout_decl): Cast maximum_field_alignment to
        unsigned when comparing against one.  Likewise for
        GET_MODE_ALIGNMENT().
        (layout_record): Cast record_align to int when comparing against a
        signed value.
        (layout_type): Cast TYPE_ALIGN() to int when comparing against a
        signed value.
        * tree.c (get_identifier): Cast variable `len' to unsigned when
        comparing against one.
        (maybe_get_identifier): Likewise

From-SVN: r24403
1998-12-23 07:09:01 +00:00
Jeffrey A Law
940da3246d cse.c (fold_rtx): Make autoincrement addressing mode tests be runtime selectable.
* cse.c (fold_rtx): Make autoincrement addressing mode tests be
        runtime selectable.
        * expr.c (move_by_pieces): Similarly.
        (move_by_pieces_1, clear_by_pieces, clear_by_pieces_1): Similarly.
        * flow.c (find_auto_inc): Similarly.
        (try_pre_increment): Similarly.
        * loop.c (strength_reduce): Similarly.
        * regclass.c (auto_inc_dec_reg_p): Similarly.
        * regmove.c (try_auto_increment): Similarly.
        (fixup_match_1): Similarly.
        * rtl.h (HAVE_PRE_INCREMENT): Define if not already defined.
        (HAVE_PRE_DECREMENT): Similarly.
        (HAVE_POST_INCREMENT, HAVE_POST_DECREMENT): Similarly.
        sponding changes to all target header files.

From-SVN: r23837
1998-11-24 16:15:19 -07:00
Bernd Schmidt
3d2f8eb6b7 regmove.c (regmove_profitable_p): Use return value of find_matches properly.
* regmove.c (regmove_profitable_p): Use return value of find_matches
	properly.

From-SVN: r23750
1998-11-22 05:59:02 +00:00
J"orn Rennecke
8d1d76c1e3 regmove.c (regmove_optimize): Don't do anything but optimize_reg_copy[123] when flag_regmove is not set.
* regmove.c (regmove_optimize): Don't do anything but
	optimize_reg_copy[123] when flag_regmove is not set.

From-SVN: r23669
1998-11-15 20:24:19 +00:00
Jeff Law
3363316f32 [multiple changes]
1998-11-09  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
        * dbxout.c: Check HAVE_STAB_H instead of HAVE_STABS_H.
Mon Nov  9 20:15:19 1998  Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
        * regmove.c (regmove_optimize): Fix error in last change.

From-SVN: r23587
1998-11-09 13:33:38 -07:00
Bernd Schmidt
0eadeb15bc recog.h (enum op_type): Define.
* recog.h (enum op_type): Define.
        (constrain_operands): Adjust prototype.
        (recog_op_type): Declare new variable.
        * recog.c (recog_op_type): New variable.
        (insn_invalid_p): Allow modifying an asm statement after reload.
        (extract_insn): Set up recog_op_type.
        (constrain_operands): Lose INSN_CODE_NUM arg.  All callers changed.
        Don't compute operand types, use recog_op_type.
        Use the information computed by extract_insn instead of the previous
        method of finding it by insn code number.
        * caller-save.c (init_caller_save): Use extract_insn, not insn_extract.
        * reorg.c (fill_slots_from_thread): Likewise.
        * reload1.c (reload_as_needed): Likewise.
        (gen_reload): Likewise.
        (inc_for_reload): Likewise.
        (reload_cse_simplify_operands): Likewise.
        Use the information computed by extract_insn instead of the previous
        method of finding it by insn code number.
        * genattrtab.c (write_attr_case): Generate call to extract_insn, not
        insn_extract.
        * final.c (final_scan_insn): Use extract_insn, not insn_extract.
        (cleanup_operand_subregs): Use extract_insn, not insn_extract.
        Use the information computed by extract_insn instead of the previous
        method of finding it by insn code number.
        * regmove.c (find_matches): Likewise.  Change meaning of the return
        value to be nonzero if the optimization can be performed, zero if
        not.  All callers changed.
        Shorten some variable names to fix formatting problems.
        (regmove_optimize): Shorten some variable names to fix formatting
        problems.
        Use the information computed by extract_insn instead of the previous
        method of finding it by insn code number.
        * regclass.c (scan_one_insn): Likewise.
        (record_reg_classes): Don't compute operand types, use recog_op_type.
        * reload.c (find_reloads): Lose CONSTRAINTS1 variable; use
        recog_constraints instead.

From-SVN: r23529
1998-11-04 14:25:00 -07:00
J"orn Rennecke
972b320cbf combine.c (combine_instructions): When finished, call init_recog.
8
	* combine.c (combine_instructions): When finished, call init_recog.
	* regmove.c (optimize_reg_copy_3): Reject volatile MEMs.

From-SVN: r23094
1998-10-14 14:50:40 -06:00
Jeffrey A Law
937e37cc6e * regmove.c (optimize_reg_copy_3): Honor TRULY_NOOP_TRUNCATION.
From-SVN: r22977
1998-10-10 10:03:44 -06:00
Bernd Schmidt
961d411902 regmove.c (regmove_optimize): Add variable old_max_uid.
* regmove.c (regmove_optimize): Add variable old_max_uid.
        At the end of the function, update basic_block_end.

From-SVN: r22724
1998-10-01 13:00:52 -06:00
J"orn Rennecke
9d2106a4a4 * regmove.c (copy_src_to_dest): Check that modes match.
From-SVN: r22460
1998-09-17 05:27:27 +01:00
J"orn Rennecke
1a8fca8acc regmove.c (copy_src_to_dest): Don't copy if that requires (a) new register(s).
* regmove.c (copy_src_to_dest): Don't copy if that requires
	(a) new register(s).

From-SVN: r22448
1998-09-16 07:49:57 +01:00
J"orn Rennecke
3bb806ed99 regmove.c (regclass_compatible_p): New function.
* regmove.c (regclass_compatible_p): New function.
        (regmove_optimize): Use it.
        Use NREGS parameter insted of calling max_reg_num.
        (fixup_match_1): Don't use code = MINUS when later tieing with
        a hard register is likely.

From-SVN: r22052
1998-08-28 08:18:52 +01:00
Kaveh R. Ghazi
789f983ab1 system.h: Include stdarg.h/varargs.h...
* system.h: Include stdarg.h/varargs.h, make sure they are ordered
        correctly with regards to stdio.h.
        * calls.c: Remove stdarg.h/varargs.h.
        * cccp.c: Likewise.
        * cexp.y: Likewise.
        * combine.c: Likewise.
        * cpperror.c: Likewise.
        * cpplib.c: Likewise.
        * cpplib.h: Likewise.
        * doprint.c: Likewise.
        * emit-rtl.c: Likewise.
        * final.c: Likewise.
        * fix-header.c: Likewise.
        * gcc.c: Likewise.
        * genattr.c: Likewise.
        * genattrtab.c: Likewise.
        * gencodes.c: Likewise.
        * genconfig.c: Likewise.
        * genemit.c: Likewise.
        * genextract.c: Likewise.
        * genflags.c: Likewise.
        * genopinit.c: Likewise.
        * genoutput.c: Likewise.
        * genpeep.c: Likewise.
        * genrecog.c: Likewise.
        * mips-tfile.c: Likewise.
        * prefix.c: Likewise.
        * protoize.c: Likewise.
        * regmove.c: Likewise.
        * toplev.c: Likewise.
        * tree.c: Likewise.
        * cp/errfn.c: Remove stdarg.h/varargs.h.
        * cp/tree.c: Likewise.

From-SVN: r21997
1998-08-26 08:11:47 +00:00
Jeff Law
e757da5ef3 recog.c (validate_replace_rtx_group): New function.
�
        * recog.c (validate_replace_rtx_group): New function.
        * recog.h (validate_replace_rtx_group): Declare it.
        * regmove.c (optimize_reg_copy_3): If any substitution fails, then undo
        the entire group of substitutions.

From-SVN: r21910
1998-08-22 17:21:24 -06:00
Jeffrey A Law
84f1ebff03 remove.c (optimize_reg_copy_3): Abort instead of silently generating bogus rtl.
* remove.c (optimize_reg_copy_3): Abort instead of silently generating
        bogus rtl.

From-SVN: r21887
1998-08-20 17:19:05 -06:00
Jeffrey A Law
e27a510618 regmove.c (fixup_match_2): Do not call reg_overlap_mentioned_p on notes.
* regmove.c (fixup_match_2): Do not call reg_overlap_mentioned_p
        on notes.

From-SVN: r21830
1998-08-18 11:14:34 -06:00
Jeffrey A Law
7b31b7d9bd regmove.c (optimize_reg_copy_1): Update REG_N_CALLS_CROSSED and REG_LIVE_LENGTH as successful substitutions are made.
* regmove.c (optimize_reg_copy_1): Update REG_N_CALLS_CROSSED
        and REG_LIVE_LENGTH as successful substitutions are made.

From-SVN: r21819
1998-08-18 03:34:59 -06:00
Jeffrey A Law
9616dd8d5f * regmove.c (regmove_optimize): Fix typo initializing regmove_bb_head.
From-SVN: r21386
1998-07-25 18:03:18 -06:00
J"orn Rennecke
8543c01e3b regmove.c (fixup_match_2): Check that P has RTX_CLASS 'i' before using its PATTERN.
* regmove.c (fixup_match_2): Check that P has RTX_CLASS 'i' before
	using its PATTERN.

From-SVN: r20868
1998-07-01 10:27:35 +01:00
Kaveh R. Ghazi
b3fb0b5e50 Warning fixes:
* mips.c (gpr_mode): Don't say `static' twice.
        * cpplib.c (cpp_handle_option): Don't pass unneeded NULL to cpp_fatal.
        * objc/objc-act.c (init_selector): Hide prototype and definition.
        * optabs.c (gen_cond_trap): Remove unused variable `icode'.
        * regmove.c (copy_src_to_dest): Likewise for `i'.

From-SVN: r20652
1998-06-22 05:46:35 +00:00
Graham Stott
2e107e9ea1 alias.c: Include toplev.h
* alias.c: Include toplev.h
        * caller-save.c: Include toplev.h
        * combine.c: Include toplev.h
        * flow.c Include toplev.h
        * global.c: Include toplev.h
        * jump.c: Include toplev.h
        * local-alloc.c: Include toplev.h
        * loop.c: Include toplev.h
        * regmove.c: Include toplev.h
        * stupid.c: Include toplev.h
        * unroll.c: Include toplev.h
        * Makefile.in: Add toplev.h dependencies.

From-SVN: r20623
1998-06-19 17:37:04 -06:00
Jason Merrill
29a4c5ed1e * regmove.c (copy_src_to_dest): Add decl for loop_depth.
From-SVN: r20620
1998-06-19 18:41:40 -04:00
Kaveh R. Ghazi
cab634f2e9 Warning fixes:
* Makefile.in (c-lang.o): Depend on output.h.
        * c-lang.c: Include output.h.
        * sparc.c (sparc_builtin_saveregs): Remove unused variable `fntype'.
        * except.c (expand_builtin_eh_stub): Likewise for variable `jump_to'.
        * genrecog.c (write_subroutine): When writing insn-recog.c, mark
        variables `insn', `pnum_clobbers', `x[0 .. max_depth]' and `tem'
        with ATTRIBUTE_UNUSED.
        * regmove.c (copy_src_to_dest): Make function static to match its
        prototype.
        * reload1.c Include hard-reg-set.h before rtl.h to get macro
        HARD_CONST.  Include machmode.h before hard-reg-set.h.
        * rtl.h: Prototype `retry_global_alloc' and wrap with macro
        HARD_CONST to protect usage of typedef HARD_REG_SET.
        * tree.c: Prototype `_obstack_allocated_p'.
        * varasm.c: Wrap prototype of `asm_output_aligned_bss' in macro
        BSS_SECTION_ASM_OP.

From-SVN: r20556
1998-06-18 06:46:35 +00:00
Michael Meissner
3ac3da71e2 Reorder tests in last change for speed
From-SVN: r20513
1998-06-15 16:32:00 +00:00
Michael Meissner
ddc8bed248 Do not do src->dest copy if register would not be allocated a normal register
Co-Authored-By: Jim Wilson <wilson@cygnus.com>

From-SVN: r20512
1998-06-15 14:28:02 +00:00
Michael Meissner
a7db2896a5 Undo June 11th change
From-SVN: r20510
1998-06-15 12:33:51 +00:00
Michael Meissner
ecb75b7ab9 For regmove if we could not improve code by changing the source to the destination, copy the source to the destination directly
From-SVN: r20427
1998-06-11 11:51:52 +00:00
J"orn Rennecke
1a29f703bf regmove.c (gen_add3_insn): New function.
* regmove.c (gen_add3_insn): New function.
        (fixup_match_2): Use it instead of calling gen_addsi3.

From-SVN: r19938
1998-05-21 16:34:06 -06:00
Jim Wilson
b1a7d59104 Add missing comments pointed out by Andreas Schwab.
* regmove.c (fixup_match_2, find_matches, regmove_profitable):
	Add explanatory comments.

From-SVN: r19677
1998-05-11 11:11:22 -07:00
Jeffrey A Law
d06eab0d86 regmove.c (try_auto_increment): Wrap declaration inside an #ifdef AUTO_INC_DEC.
* regmove.c (try_auto_increment): Wrap declaration inside an
        #ifdef AUTO_INC_DEC.

From-SVN: r19582
1998-05-06 09:47:37 -06:00
Jim Wilson
a1ecb5ca07 Fix regmove typos spotted by H.J. Lu.
* regmove.c (fixup_match_1): In three places, in flag_exceptions
	check, change p to q.

From-SVN: r19282
1998-04-18 08:42:48 -07:00
Jeff Law
0e05e8ea12 varasm.c (asm_output_bss): Add prototype.
* varasm.c (asm_output_bss): Add prototype.
        (asm_output_aligned_bss): Likewise.
        * unroll.c (verify_addresses): Add prototype.
        * toplev.c: Add many prototypes.  Too many to mention here.
        * stmt.c (check_seenlabel): Add prototype.
        * rtlanal.c (reg_set_p_1): Add prototype.
        (reg_set_last_1): Likewise.
        * reorg.c (find_dead_or_set_registers): Add prototype.
        * regmove (try_auto_increment): Add prototype.
        * regstack.c (pop_stack): Add prototype.

From-SVN: r19254
1998-04-16 18:40:39 -06:00
Kaveh R. Ghazi
670ee92097 Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
        c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
        caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
        dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
        expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
        integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
        prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
        reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
        rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
        tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
        on system.h.
        * alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
        c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
        caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
        dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
        expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
        integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
        prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
        reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
        rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
        stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
        xcoffout.c: Include system.h.  Organize include ordering so
        that stdarg/varargs comes before other system headers.  Remove
        spurious casts of functions assured of a prototype in system.h.

From-SVN: r18726
1998-03-20 14:58:42 +00:00
Manfred Hollstein
27d7e05d4a basic-block.h (compute_preds_succs): Change return type in prototype to void.
* basic-block.h (compute_preds_succs): Change return type in
	prototype to void.
	* flow.c (compute_preds_succs): Likewise in function definition.
	* regmove.c (find_matches): Cast char used as array index to unsigned char
	to supress warning.

From-SVN: r18508
1998-03-12 01:04:46 +00:00
Kaveh R. Ghazi
5172371191 Fix warious warnings:
* c-aux-info.c: Include string.h/strings.h.
	* pa.c: Include stdlib.h.
	(pa_combine_instructions): Prototype the function.
	(pa_can_combine_p, forward_branch_p, shadd_constant_p): Likewise.
	(reloc_needed): Add default case for enumeration switch.
	(remove_useless_addtr_insns): Remove unused variable `all'.
	(hppa_expand_prologue): Add explicit braces to avoid
	ambiguous `else'.
	(output_function_epilogue): Remove unused variable `i'.
	(output_millicode_call): Remove unused variable `link'.
	(shadd_constant_p, forward_branch_p): Make the function static.
	(following_call): Explicitly declare to return int.
	(pa_reorg): Declare as void.
	(pa_combine_instructions): Declare as static void.  Add
	parentheses around && within ||.
	* pa.h: Add prototypes for pa_reorg, symbolic_operand,
	following_call, function_label_operand, lhs_lshift_cint_operand
	and zdepi_cint_p.
	* pa.md: Add parentheses around && within ||.
	* cppalloc.c: Include stdlib.h.
	* cpperror.c (cpp_print_containing_files): Remove unused variable
	`i'.  Fix format specifier in fprintf.
	* cse.c (cse_around_loop): Add explicit braces to avoid
	ambiguous `else'.
	(delete_dead_from_cse): Wrap variable `tem' in macro HAVE_cc0.
	* expr.c (expand_expr): Add parentheses around && within ||.
	* final.c (app_enable): Replace fprintf with fputs where there are
	no format specifiers and no trailing argument after the string.
	Eg, when printing ASM_APP_ON/ASM_APP_OFF.
	(app_disable): Likewise.
	(final_end_function): Likewise.
	(final_scan_insn): Likewise.  Remove unused variable `set'.
	(profile_function): Wrap empty if-statement body in {} brackets.
	* function.c: Include stdlib.h.
	(pad_below): Wrap prototype and definition in ARGS_GROW_DOWNWARD.
	(reposition_prologue_and_epilogue_notes): Add parentheses
	around assignment used as truth value.
	* integrate.c (expand_inline_function): Wrap variable
	`cc0_insn' in macro HAVE_cc0.
	* jump.c (jump_optimize): Wrap variable `q' in macro
	HAVE_cc0.  Remove unused variable `prev1'.
	* libgcc2.c (__bb_exit_trace_func): Add parentheses around &&
	within ||.  Fix format specifier in fprintf.
	(__bb_init_prg): Add parentheses around assignment used as
	truth value.
	* local-alloc.c: Include stdlib.h.
	(requires_inout): Add parentheses around assignment used
	as truth value.
	* loop.c (analyze_loop_iterations): Wrap prototype and definition
	in macro HAVE_decrement_and_branch_on_count.
	(insert_bct, instrument_loop_bct): Likewise.
	(move_movables): Add parentheses around assignment used as
	truth value.
	(consec_sets_invariant_p): Likewise.
	(maybe_eliminate_biv_1): Wrap variable `new' in macro HAVE_cc0.
	* objc/objc-act.c: Include stdlib.h.
	(lookup_method_in_protocol_list): Wrap empty else-statement body
	in braces.
	(lookup_protocol_in_reflist): Likewise.
	(objc_add_static_instance): Remove unused variables `decl_expr'
	and `decl_spec'.
	(get_objc_string_decl): Remove unused variable `decl'.
	(generate_static_references): Remove unused variables `idecl' and
	`instance'.
	(check_protocols): Wrap empty else-statement body in braces.
	* protoize.c: Include stdlib.h.
	(substr): Add parentheses around assignment used as truth value.
	(abspath): Likewise.
	(shortpath): Likewise.
	* regmove.c (fixup_match_1): Add parentheses around assignment
	used as truth value.
	* reload.c (push_secondary_reload): Remove unused variable `i'.
	(find_reloads): Add parentheses around assignment used as truth
	value.
	* reload1.c: Include stdlib.h.
	* rtl.h: Correct typo in prototype of offsettable_memref_p.
	* stmt.c (add_case_node): Add parentheses around assignment used
	as truth value.
	(case_tree2list): Likewise.
	* tree.c (valid_machine_attribute): Wrap variable `decl_attr_list'
	in macro VALID_MACHINE_DECL_ATTRIBUTE.  Wrap variable
	`type_attr_list' in macro VALID_MACHINE_TYPE_ATTRIBUTE.
	(merge_attributes): Add explicit braces to avoid ambiguous
	`else'.
	* unroll.c (copy_loop_body): Wrap variable `cc0_insn' in
	macro HAVE_cc0.
	* varasm.c: Include stdlib.h.

From-SVN: r18290
1998-02-28 07:06:53 +00:00
Jim Wilson
7bf825d296 regmove.c: Fix various minor formatting problems.
* regmove.c: Fix various minor formatting problems.
        (optimize_reg_copy_1): Stop search at CALL_INSNs if flag_exceptions
        is true.  Make end of basic block tests consistent through regmove.c.
        (optimize_reg_copy_2, optimize_reg_copy_3): Likewise.
        (fixup_match_2, fixup_match_1, regmove_optimize): Likewise.

Co-Authored-By: Jeffrey A Law <law@cygnus.com>

From-SVN: r17775
1998-02-08 04:43:54 -07:00
J"orn Rennecke
1230327b00 regmove.c: Update.
* regmove.c: Update.
	* flags.h (flag_regmove): Declare.
	* rtl.h (optimize_reg_copy_1, optimize_reg_copy_2): Don't declare.
	* local-alloc.c (optimize_reg_copy_1, optimize_reg_copy_2):
	Moved into regmove; changed caller.
	* toplev.c (rest_of_compilation): Call regmove_optimize also for
	expensive_optimizations.

From-SVN: r17669
1998-02-05 16:34:02 +00:00
Andreas Schwab
1a56b81fe6 regmove.c (fixup_match_1): Undo last change which removed some "useless" code...
* regmove.c (fixup_match_1): Undo last change which removed some
        "useless" code, and add a comment explaining this.

From-SVN: r17595
1998-02-02 03:23:22 -07:00