summaryrefslogtreecommitdiff
path: root/gcc/regmove.c
Commit message (Collapse)AuthorAgeFilesLines
* Include function.h in most files. Remove most of the global variablescrux1999-08-091-0/+1
| | | | | | | | | duplicated in function.h. Add accessor macros for them which access current_function. Delete INLINE_HEADER rtx and related code, replace with code using struct function to store inlining related data. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28626 138bc75d-0d04-0410-961f-82ee72b054a4
* * regmove.c (fixup_match_1): Consistently evaluatelaw1999-04-031-3/+2
| | | | | | | HAVE_POST_INCREMENT and HAVE_POST_DECREMENT. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26159 138bc75d-0d04-0410-961f-82ee72b054a4
* * regmove.c (fixup_match_1): Remove now useless if (0).law1999-04-021-5/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26139 138bc75d-0d04-0410-961f-82ee72b054a4
* * regmove.c (copy_src_to_dest): New argument max_old_uid.amylaar1999-03-081-7/+12
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25639 138bc75d-0d04-0410-961f-82ee72b054a4
* Flow rewrite to use basic block structures and edge lists.rth1999-02-251-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25450 138bc75d-0d04-0410-961f-82ee72b054a4
* Michael Hayes <m.hayes@elec.canterbury.ac.nz>rth1999-02-211-1/+1
| | | | | | | * regmove.c (discover_flags_reg): Use word_mode instead of SImode. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25342 138bc75d-0d04-0410-961f-82ee72b054a4
* * regmove.c (discover_flags_reg): Remove cc0 code.rth1999-02-211-5/+8
| | | | | | | | (mark_flags_life_zones) [HAVE_cc0]: Force use of cc0; bail if a potential flags register was identified. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25341 138bc75d-0d04-0410-961f-82ee72b054a4
* * regmove.c (discover_flags_reg): New function.rth1999-02-191-7/+176
| | | | | | | | | (flags_set_1, mark_flags_life_zones): New functions. (regmove_optimize): Call them. (fixup_match_1): Use insn modes rather than sets_cc0_p. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25332 138bc75d-0d04-0410-961f-82ee72b054a4
* * final.c (bb_str): Qualify a char* with the keyword `const'.ghazi1999-01-231-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | (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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24834 138bc75d-0d04-0410-961f-82ee72b054a4
* * regmove.c (optimize_reg_copy_1): Undo Aug 18 change. Updatelaw1999-01-171-49/+27
| | | | | | | | REG_N_CALLS_CROSSED and REG_LIVE_LENGH if and only if we change where a register is live. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24718 138bc75d-0d04-0410-961f-82ee72b054a4
* Update copyrights.rth1999-01-111-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24624 138bc75d-0d04-0410-961f-82ee72b054a4
* * basic-block.h (basic_block_head): Rename to x_basic_block_head.rth1999-01-111-5/+5
| | | | | | | | | | | | | (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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24622 138bc75d-0d04-0410-961f-82ee72b054a4
* Update FSF address in copyright header.law1999-01-111-1/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24614 138bc75d-0d04-0410-961f-82ee72b054a4
* Warning fixes:ghazi1998-12-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24403 138bc75d-0d04-0410-961f-82ee72b054a4
* * cse.c (fold_rtx): Make autoincrement addressing mode tests belaw1998-11-241-35/+17
| | | | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23837 138bc75d-0d04-0410-961f-82ee72b054a4
* * regmove.c (regmove_profitable_p): Use return value of find_matchescrux1998-11-221-1/+1
| | | | | | | properly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23750 138bc75d-0d04-0410-961f-82ee72b054a4
* * regmove.c (regmove_optimize): Don't do anything butamylaar1998-11-151-0/+2
| | | | | | | optimize_reg_copy[123] when flag_regmove is not set. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23669 138bc75d-0d04-0410-961f-82ee72b054a4
* 1998-11-09 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>law1998-11-091-2/+2
| | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23587 138bc75d-0d04-0410-961f-82ee72b054a4
* * recog.h (enum op_type): Define.law1998-11-041-77/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23529 138bc75d-0d04-0410-961f-82ee72b054a4
* 8law1998-10-141-0/+5
| | | | | | | | * combine.c (combine_instructions): When finished, call init_recog. * regmove.c (optimize_reg_copy_3): Reject volatile MEMs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23094 138bc75d-0d04-0410-961f-82ee72b054a4
* * regmove.c (optimize_reg_copy_3): Honor TRULY_NOOP_TRUNCATION.law1998-10-101-0/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22977 138bc75d-0d04-0410-961f-82ee72b054a4
* * regmove.c (regmove_optimize): Add variable old_max_uid.law1998-10-011-2/+16
| | | | | | | At the end of the function, update basic_block_end. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22724 138bc75d-0d04-0410-961f-82ee72b054a4
* * regmove.c (copy_src_to_dest): Check that modes match.amylaar1998-09-171-1/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22460 138bc75d-0d04-0410-961f-82ee72b054a4
* * regmove.c (copy_src_to_dest): Don't copy if that requiresamylaar1998-09-161-2/+13
| | | | | | | (a) new register(s). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22448 138bc75d-0d04-0410-961f-82ee72b054a4
* * regmove.c (regclass_compatible_p): New function.amylaar1998-08-281-13/+27
| | | | | | | | | | (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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22052 138bc75d-0d04-0410-961f-82ee72b054a4
* * system.h: Include stdarg.h/varargs.h, make sure they are orderedghazi1998-08-261-9/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21997 138bc75d-0d04-0410-961f-82ee72b054a4
* law1998-08-221-11/+20
| | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21910 138bc75d-0d04-0410-961f-82ee72b054a4
* * remove.c (optimize_reg_copy_3): Abort instead of silently generatinglaw1998-08-201-1/+4
| | | | | | | bogus rtl. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21887 138bc75d-0d04-0410-961f-82ee72b054a4
* * regmove.c (fixup_match_2): Do not call reg_overlap_mentioned_plaw1998-08-181-0/+2
| | | | | | | on notes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21830 138bc75d-0d04-0410-961f-82ee72b054a4
* * regmove.c (optimize_reg_copy_1): Update REG_N_CALLS_CROSSEDlaw1998-08-181-4/+37
| | | | | | | and REG_LIVE_LENGTH as successful substitutions are made. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21819 138bc75d-0d04-0410-961f-82ee72b054a4
* * regmove.c (regmove_optimize): Fix typo initializing regmove_bb_head.law1998-07-261-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21386 138bc75d-0d04-0410-961f-82ee72b054a4
* * regmove.c (fixup_match_2): Check that P has RTX_CLASS 'i' beforeamylaar1998-07-011-0/+2
| | | | | | | using its PATTERN. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20868 138bc75d-0d04-0410-961f-82ee72b054a4
* Warning fixes:ghazi1998-06-221-1/+0
| | | | | | | | | | | * 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'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20652 138bc75d-0d04-0410-961f-82ee72b054a4
* * alias.c: Include toplev.hlaw1998-06-191-0/+1
| | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20623 138bc75d-0d04-0410-961f-82ee72b054a4
* * regmove.c (copy_src_to_dest): Add decl for loop_depth.jason1998-06-191-0/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20620 138bc75d-0d04-0410-961f-82ee72b054a4
* Warning fixes:ghazi1998-06-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20556 138bc75d-0d04-0410-961f-82ee72b054a4
* Reorder tests in last change for speedmeissner1998-06-151-3/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20513 138bc75d-0d04-0410-961f-82ee72b054a4
* Do not do src->dest copy if register would not be allocated a normal registermeissner1998-06-151-12/+159
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20512 138bc75d-0d04-0410-961f-82ee72b054a4
* Undo June 11th changemeissner1998-06-151-152/+12
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20510 138bc75d-0d04-0410-961f-82ee72b054a4
* For regmove if we could not improve code by changing the source to the ↵meissner1998-06-111-12/+152
| | | | | | destination, copy the source to the destination directly git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20427 138bc75d-0d04-0410-961f-82ee72b054a4
* * regmove.c (gen_add3_insn): New function.law1998-05-211-2/+21
| | | | | | | (fixup_match_2): Use it instead of calling gen_addsi3. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19938 138bc75d-0d04-0410-961f-82ee72b054a4
* Add missing comments pointed out by Andreas Schwab.wilson1998-05-111-1/+25
| | | | | | | | * regmove.c (fixup_match_2, find_matches, regmove_profitable): Add explanatory comments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19677 138bc75d-0d04-0410-961f-82ee72b054a4
* * regmove.c (try_auto_increment): Wrap declaration inside anlaw1998-05-061-0/+2
| | | | | | | #ifdef AUTO_INC_DEC. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19582 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix regmove typos spotted by H.J. Lu.wilson1998-04-181-3/+3
| | | | | | | | * regmove.c (fixup_match_1): In three places, in flag_exceptions check, change p to q. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19282 138bc75d-0d04-0410-961f-82ee72b054a4
* * varasm.c (asm_output_bss): Add prototype.law1998-04-171-0/+1
| | | | | | | | | | | | | | | (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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19254 138bc75d-0d04-0410-961f-82ee72b054a4
* Major cutover to using system.h:ghazi1998-03-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18726 138bc75d-0d04-0410-961f-82ee72b054a4
* manfred1998-03-121-1/+1
| | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18508 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix warious warnings:ghazi1998-02-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18290 138bc75d-0d04-0410-961f-82ee72b054a4
* * regmove.c: Fix various minor formatting problems.law1998-02-081-8/+104
| | | | | | | | | | (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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17775 138bc75d-0d04-0410-961f-82ee72b054a4
* * regmove.c: Update.amylaar1998-02-051-10/+263
| | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17669 138bc75d-0d04-0410-961f-82ee72b054a4