summaryrefslogtreecommitdiff
path: root/gcc/reload.c
Commit message (Collapse)AuthorAgeFilesLines
* Warning fixes:ghazi1998-10-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in (sched.o): Depend on recog.h. * alias.c (REG_BASE_VALUE): Cast the result of REGNO() macro to (unsigned) when comparing against one. (find_base_value): Likewise. (record_base_value): Cast variable `regno' to (unsigned) when comparing against one. Cast the result of REGNO() macro to (unsigned) when comparing against one. (memrefs_conflict_p): Change type of variables `r_x' and `r_y' to unsigned. (init_alias_analysis): Add unsigned variable `ui'. Use it as loop variable where an unsigned index is needed. * caller-save.c (init_caller_save): Cast `-1' to (enum insn_code) before comparing against one. * collect2.c: Add prototypes for functions `error', `fatal' and `fatal_perror'. Make these functions take variable arguments instead of faking it with a fixed number of args. (write_c_file_stat): Cast the argument of ctype macro to (unsigned char). * combine.c (can_combine_p): Mark parameter `pred' with ATTRIBUTE_UNUSED. (find_split_point): Cast variable `src' to (unsigned HOST_WIDE_INT) when comparing against one. HOST_WIDE_INT) when comparing against one. (simplify_rtx): Cast 1 to (unsigned HOST_WIDE_INT) in shift. (simplify_logical): Likewise. (force_to_mode): Cast result of INTVAL() macro to (unsigned HOST_WIDE_INT) when comparing against one. Cast 1 to (unsigned HOST_WIDE_INT) in shift. (simplify_and_const_int): Cast result of INTVAL() macro to `unsigned HOST_WIDE_INT' when comparing against one. (merge_outer_ops): Cast variable const0 to `unsigned HOST_WIDE_INT' when comparing against the result of GET_MODE_MASK() macro. (simplify_comparison): Likewise for variable `c0'. Cast variable `const_op' to `unsigned HOST_WIDE_INT' when comparing against one. Cast `1' to `unsigned HOST_WIDE_INT' in shift. Cast the result of `GET_MODE_MASK()/2' to `HOST_WIDE_INT' when comparing against one. Cast `1' to `unsigned HOST_WIDE_INT' in shift. Cast result of INTVAL() macro to `unsigned HOST_WIDE_INT' when comparing against one. (distribute_notes): Wrap variable `cc0_setter' in macro `HAVE_cc0'. config/mips/mips.c (gen_int_relational): Cast result of INTVAL() macro to `unsigned HOST_WIDE_INT' when comparing against one. (output_block_move): Cast `sizeof' expression to (int) when comparing against one. (function_arg): Cast BITS_PER_WORD to `unsigned' when comparing against one. (save_restore_insns): Cast `base_offset' to `long' to match format specifier in fprintf. * config/mips/mips.h (Pmode): Cast the result of `Pmode' macro to `enum machine_mode'. * flow.c (life_analysis_1): Remove unused variable `insn'. * gcc.c (translate_options): Move variables `j' and `k' into the scope in which they are used. Change their types to `size_t'. (set_spec): Cast the argument of ctype macro to `unsigned char'. (read_specs): Likewise. (process_command): Cast `sizeof' to (int) when comparing against one. (do_spec_1): Cast the argument of ctype macro to `unsigned char'. (handle_braces): Cast both sides of `==' expression to `long' to ensure sign matching. (main): Cast variable `i' to `int' when comparing against one. * gcov-io.h (__fetch_long): Change type of parameter `bytes' from int to size_t. Cast variable `i' to size_t when comparing against one. * genattrtab.c (convert_set_attr_alternative): Remove unused parameter `insn_code'. All callers changed. (convert_set_attr): Likewise. * genrecog.c (add_to_sequence): Cast result of XVECLEN() macro to size_t when comparing against one. Likewise for variable `len'. * global.c (global_alloc): Cast variable `max_regno' to size_t when comparing against one. Likewise for variable `max_allocno'. * jump.c (sets_cc0_p): Mark parameter `x' with ATTRIBUTE_UNUSED. * local-alloc.c (validate_equiv_mem_from_store): Mark parameter `set' with ATTRIBUTE_UNUSED. (find_free_reg): Cast `sizeof' expression to (int) when comparing against one. * loop.c (count_loop_regs_set): Remove unused variable `dest'. (strength_reduce): Mark parameter `bct_p' with ATTRIBUTE_UNUSED. (get_condition): Cast variable `const_val' to `unsigned HOST_WIDE_INT' when comparing against one. Cast unsigned expression to HOST_WIDE_INT when comparing against one. (insert_loop_mem): Mark parameter `data' with ATTRIBUTE_UNUSED. (load_mems_and_recount_loop_regs_set): Cast variable `nregs' to `unsigned' when comparing against one. * protoize.c (is_id_char): Change type of parameter `ch' to unsigned char. (munge_compile_params): Cast argument of ctype macro to (const unsigned char). (process_aux_info_file): Cast variable `aux_info_size' to int when comparing against one. (forward_to_next_token_char): Cast argument of ctype macro to `const unsigned char'. (edit_formals_lists): Likewise. (find_rightmost_formals_list): Likewise. (add_local_decl): Likewise. (add_global_decls): Likewise. (edit_fn_definition): Likewise. (do_cleaning): Likewise. (scan_for_missed_items): Likewise. (edit_file): Cast variable `orig_size' to (int) when comparing against one. (main): Cast argument of ctype macro to `const unsigned char'. * recog.c (const_int_operand): Mark parameter `mode' with ATTRIBUTE_UNUSED. * regclass.c (record_reg_classes): Change type of variable `c' to `unsigned char'. Cast `char' array index to `unsigned char'. * reload.c (push_secondary_reload): Cast argument to REG_CLASS_FROM_LETTER() macro to `unsigned char'. * reload1.c (calculate_needs): Cast `char' array index to `unsigned char'. (set_label_offsets): Change type of variable `i' to unsigned int. Cast result of XVECLEN() macro to unsigned when comparing against one. (mark_not_eliminable): Change type of variable `i' to unsigned. (order_regs_for_reload): Likewise. Cast `max_regno' to unsigned when comparing against one. (reload_as_needed): Cast macro NUM_ELIMINABLE_REGS to (int) when comparing against one. (choose_reload_regs): Hide unused label `fail'. (reload_cse_simplify_operands): Cast `char' array index to `unsigned char'. (reload_combine_note_store): Mark parameter `set' with ATTRIBUTE_UNUSED. Cast UNITS_PER_WORD to unsigned when comparing against one. (reload_cse_move2add): Remove unused variable `src2'. * sched.c: Include recog.h. (sched_note_set): Remove unused parameter `b'. All callers changed. (split_hard_reg_notes): Likewise for parameter `orig_insn'. (blockage_range): Cast result of UNIT_BLOCKED() macro to (int) when comparing against one. * stupid.c (stupid_find_reg): Mark parameter `changes_size' with ATTRIBUTE_UNUSED. Cast `sizeof' expression to (int) when comparing against one. * unroll.c (precondition_loop_p): Remove unused parameter `loop_end'. All callers changed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23079 138bc75d-0d04-0410-961f-82ee72b054a4
* * stmt.c (n_occurrences): New static function.law1998-10-081-33/+5
| | | | | | | | | | | | | (expand_asm_operands): Verify that all constrains match in the number of alternatives. Verify that '+' or '=' are at the beginning of an output constraint. Don't allow '&' for input operands. Verify that '%' isn't written for the last operand. * reload.c (find_reloads): Abort if an asm is found with invalid constraints; all possible problems ought to be checked for earlier. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22911 138bc75d-0d04-0410-961f-82ee72b054a4
* * reload.c (find_reloads): In code to promote RELOAD_FOR_X_ADDR_ADDRamylaar1998-09-241-6/+23
| | | | | | | | | | | reloads to RELOAD_FOR_X_ADDRESS reloads, test for reload sharing. Properly keep track of first RELOAD_FOR_X_ADDRESS also for more than 3 such reloads. If there is not more than one RELOAD_FOR_X_ADDRESS, don't change RELOAD_FOR_X_ADDR_ADDR reload. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22568 138bc75d-0d04-0410-961f-82ee72b054a4
* * Revert this patch.law1998-09-211-2/+1
| | | | | | | | | * reload.c (find_reloads): Do not replace a pseudo with (MEM (reg_equiv_addr)) in the initializing insn for the pseudo. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22534 138bc75d-0d04-0410-961f-82ee72b054a4
* Plaw1998-09-181-1/+2
| | | | | | | | | * reload.c (find_reloads): Do not replace a pseudo with (MEM (reg_equiv_addr)) in the initializing insn for the pseudo. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22473 138bc75d-0d04-0410-961f-82ee72b054a4
* Typo fix in comment.amylaar1998-09-081-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22330 138bc75d-0d04-0410-961f-82ee72b054a4
* * reload.c (operands_match_p): Handle rtvecs.rth1998-08-251-1/+14
| | | | | | | | | | | | | | | * i386.c (legitimate_pic_address_disp_p): New. (legitimate_address_p): Use it. (legitimize_pic_address): Use unspecs to represent @GOT and @GOTOFF. Handle constant pool symbols just like statics. (emit_pic_move): Use Pmode not SImode for clarity. (output_pic_addr_const) [SYMBOL_REF]: Remove @GOT and @GOTOFF hacks. [UNSPEC]: New, handling what we killed above. [PLUS]: Detect and abort on invalid symbol arithmetic. * i386.h (CONSTANT_ADDRESS_P): Remove HIGH. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21968 138bc75d-0d04-0410-961f-82ee72b054a4
* 8law1998-08-161-1/+6
| | | | | | | | * reload.c (find_equiv_reg): Reject equivalences separated by a volatile instruction. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21763 138bc75d-0d04-0410-961f-82ee72b054a4
* * reload.c (find_equiv_reg): If need_stable_sp is set,amylaar1998-07-091-0/+2
| | | | | | | check if stack pointer is changed directly in a PARALLEL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21033 138bc75d-0d04-0410-961f-82ee72b054a4
* * rtlanal.c (reg_overlap_mentioned_p): Handle STRICT_LOW_PART. Iflaw1998-07-081-3/+8
| | | | | | | | either argument is CONSTANT_P, then return zero. * reload.c (reg_overlap_mentioned_for_reload_p): Similarly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21005 138bc75d-0d04-0410-961f-82ee72b054a4
* * reload.c (find_equiv_reg): When looking for stack pointer + const,law1998-07-071-0/+3
| | | | | | | make sure we don't use a stack adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20985 138bc75d-0d04-0410-961f-82ee72b054a4
* * reload.c (find_equiv_reg): If need_stable_sp is set,law1998-07-071-0/+2
| | | | | | | check if stack pointer is changed directly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20984 138bc75d-0d04-0410-961f-82ee72b054a4
* * Disable the following change from gcc2. Not appropriate for egcs:law1998-07-061-1/+7
| | | | | | | | | Sun Jun 7 09:30:31 1998 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> * reload.c (find_reloads): Give preference to pseudo that was the reloaded output of previous insn. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20955 138bc75d-0d04-0410-961f-82ee72b054a4
* * reload.c (find_reloads): If there are multipleamylaar1998-07-011-9/+74
| | | | | | | | | | RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_OUTPUT_ADDRESS reloads for one operand, change RELOAD_FOR_INPADDR_ADDRESS / RELOAD_FOR_OUTADDR_ADDRESS for all but the first RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_OUTPUT_ADDRESS reloads. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20877 138bc75d-0d04-0410-961f-82ee72b054a4
* * Merge from gcc2 June 9, 1998 snapshot. See ChangeLog.13 forlaw1998-06-291-14/+39
| | | | | | | details. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20808 138bc75d-0d04-0410-961f-82ee72b054a4
* * reload.c (find_reloads): Fix check for failure to match any alternative, toraeburn1998-06-231-1/+1
| | | | | | | account for Mar 26 change in initial "best" cost. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20679 138bc75d-0d04-0410-961f-82ee72b054a4
* * reload.c (find_reloads): Don't narrow scope of RELOAD_OTHER toamylaar1998-06-181-1/+3
| | | | | | | RELOAD_FOR_INSN. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20559 138bc75d-0d04-0410-961f-82ee72b054a4
* * reload.c (find_reloads_toplev): Use gen_lowpart common to convertlaw1998-06-101-1/+12
| | | | | | | | between constant representations when we have (SUBREG (REG)) with REG equivalent to a constant. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20398 138bc75d-0d04-0410-961f-82ee72b054a4
* * reload.c (find_reloads): Record the existing mode iflaw1998-05-311-2/+10
| | | | | | | | | | | | | operand_mode == VOIDmode before replacing a register with a constant. * i386.md (tstsi, tsthi, tstqi, tstsf, tstdf, tstxf): Set i386_compare_op1 to const0_rtx for the benefit of the conditional move patterns. (movsicc, movhicc, movsfcc, movdfcc, movxfcc, movdicc): Rewrite based on suggestions from Jim Wilson. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20151 138bc75d-0d04-0410-961f-82ee72b054a4
* 8law1998-05-281-2/+3
| | | | | | | * reload.c (find_reloads): Do not force a reloads of match_operators. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20122 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix MIPS compiler abort on Mesa, reported by Andy Tai.wilson1998-05-141-1/+2
| | | | | | | * reload.c (find_reloads): Don't penalize SCRATCH output reload. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19756 138bc75d-0d04-0410-961f-82ee72b054a4
* * reload.c (remove_replacements): New function.amylaar1998-05-141-0/+15
| | | | | | | | | * reload.h (remove_replacements): Declare. * reload1.c (choose_reload_regs): Disable some reloads that belong to inherited reloads. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19735 138bc75d-0d04-0410-961f-82ee72b054a4
* typo typo fixes fixeslaw1998-05-061-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19601 138bc75d-0d04-0410-961f-82ee72b054a4
* Wed May 6 06:35:38 1998 Robert Lipe <robertl@dgii.com>robertl1998-05-061-0/+1
| | | | | | | | | | | | | | * toplev.h: New file. Protypes for functions in toplev.c. * tree.h, rtl.h: Deleted protos for functions in toplev.c. * c-common.c, c-convert.c, c-decl.c, c-iterate.c, c-lex.c, c-parse.in, c-parse.y, c-pragma.c, c-typeck.c, calls.c, convert.c, dwarf2out.c, except.c, expr.c, final.c, fold-const.c, function.c, hash.c, profile.c, real.c, reg-stack.c, regclass.c, reload.c, reload1.c, stmt.c, stor-layout.c, tlink.c, tree.c, varasm.c: include it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19564 138bc75d-0d04-0410-961f-82ee72b054a4
* * Check in merge from gcc2. See ChangeLog.12 for details.law1998-05-051-0/+71
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19553 138bc75d-0d04-0410-961f-82ee72b054a4
* * reload.c (find_reloads): Emit USEs to mark where a pseudoamylaar1998-05-011-15/+30
| | | | | | | | | | | | | is reloaced with the MEM of its stack slot. * reload1.c (cannot_omit_stores): Delete. (reload): Don't initialize it. Don't apply avoid_return_reg logic to USEs. When done, remove USEs that have a REG_EQUAL note on them. (emit_reload_insns): Handle case where we have inherited a MEM. (delete_output_reload): Don't use cannot_omit_stores. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19508 138bc75d-0d04-0410-961f-82ee72b054a4
* * Check in merge from gcc2. See ChangeLog.11 and ChangeLog.12law1998-04-041-22/+25
| | | | | | | | | for details. * haifa-sched.c: Mirror recent changes from gcc2. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18984 138bc75d-0d04-0410-961f-82ee72b054a4
* * reload.c (find_reloads_address): Try LEGITIMIZE_RELOAD_ADDRESS.rth1998-04-021-0/+37
| | | | | | | | | (move_replacements): New function. * reload.h: Prototype it. * alpha.h (LEGITIMIZE_RELOAD_ADDRESS): New definition. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18947 138bc75d-0d04-0410-961f-82ee72b054a4
* * regclass.c (record_reg_classes): '?' increases cost by two.amylaar1998-03-261-7/+16
| | | | | | | | | | | | * reload.c (find_reloads): Double previous costs. Output reloads cost one unit extra. * reload1.c (eliminate_regs): Delete LOAD_EXTENDED_OP code that boiled down to && ! 0. * reload.c (find_equiv_reg): Also consider a goal offset from the frame pointer to be constant. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18842 138bc75d-0d04-0410-961f-82ee72b054a4
* Major cutover to using system.h:ghazi1998-03-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* dmanfred1998-03-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In gcc/: * bitmap.c (bitmap_element_allocate): Remove unused parameter; change callers accordingly. * cplus-dem.c (arm_special): Remove unused parameter work in prototype and definition; change all callers accordingly. * except.c (init_eh): Avoid assignment of unused return value of build_pointer_type; cast it to void, instead, and remove unused variable type. * gcc.c (lang_specific_driver): Define prototype only #ifdef LANG_SPECIFIC_DRIVER. (temp_names): Define only #ifdef MKTEMP_EACH_FILE. * genoutput.c (output_epilogue): Initialize next_name to 0. * real.c (efrexp): #if 0 prototype and function definition. (eremain): Likewise. (uditoe): Likewise. (ditoe): Likewise. (etoudi): Likewise. (etodi): Likewise. (esqrt): Likewise. * reload.c (push_secondary_reload): Define prototype only #ifdef HAVE_SECONDARY_RELOADS. * varasm.c (assemble_static_space): Define rounded only #ifndef ASM_OUTPUT_ALIGNED_LOCAL. In gcc/cp/: * call.c (default_parm_conversions): Remove prototype definition. (build_method_call): Remove unused variable result. * cvt.c (ocp_convert): Remove unused variable conversion. * decl2.c (ambiguous_decl): Add explicit parameter definition for name. * except.c (do_unwind): #if 0 definition of unused variables fcall and next_pc. * expr.c (extract_scalar_init): #if 0 prototype and function definition. * init.c (expand_aggr_init_1): Remove unused variable init_type. (build_new_1): Remove unused variable t. * pt.c (instantiate_class_template): Remove unused variable newtag; cast called function return value to void. (do_decl_instantiation): Remove unused variables name and fn. * tree.c (get_type_decl): Add default return to shut up compiler from complaining control reaches end of non-void function. * typeck.c (build_x_conditional_expr): Remove unused variable rval. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18498 138bc75d-0d04-0410-961f-82ee72b054a4
* * reload.c (find_reloads): Always force (subreg (mem)) to berth1998-03-051-2/+14
| | | | | | | reloaded if WORD_REGISTER_OPERATIONS. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18416 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix warious warnings:ghazi1998-02-281-2/+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
* * varasm.c (output_constant_pool): Bring back 'done' label insidelaw1998-02-141-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | an appropriate #ifdef. * bitmap.c (bitmap_element_allocate): Wrap variable 'i' in an appropriate #ifdef. (bitmap_copy, bitmap_operation): Likewise. * combine.c (combinable_i3pat): Similarly for 'src'. * function.c (fixup_var_refs_1): Similarly for 'outerdest'. (locate_and_pad_parm): Similarly for 'reg_parm_stack_space'. * regclass.c (copy_cost): Similarly for 'secondary_class'. * reload.c (make_memloc): Simliarly for 'i'. (find_reloads_address_1): Similarly for 'link'. * reload1.c (reload): Similarly for 'previous_frame_pointer_needed'. (emit_reload_insns): Similarly for 'second_reloadreg'. * unroll.c (iteration_info): Similarly for 'v'. * caller-save.c (insert_save_restore): Remove unused variable 'i'. * calls.c (expand_call): Similarly for 'i'. (emit_library_call, emit_library_call_value): Similarly for 'mode'. * fold-const.c (strip_compund_expr): Similarly for 'type'. * function.c (fixup_var_refs_1): Similarly for 'width'. (fixup_memory_subreg): Similarly for 'saved'. (locate_and_pad_parm): Similarly for 'boundary_in_bytes.' (setjmp_protect): Similarly for 'sub'. (thread_prologue_and_epilogue_insns): Similarly for 'insn'. * loop.c (record_giv): Similarly for 'p'. (combine_givs): Similarly for 'temp_iv'. (indirect_jump_in_function_p): Similarly for 'is_indirect_jump'. * recog.c (validate_replace_rtx_1): Similarly for 'width'. * tree.c (get_set_constructor_bytes): Similarly for 'vals'. * unroll.c (unroll_loop): Similarly for 'copy'. (iteration_info): Similarly for 'b'. * varasm.c (assemble_string): Similarly for 'i'. * i386.h (LEGITIMIZE_ADDRESS): Similarly for 'orig_x'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17973 138bc75d-0d04-0410-961f-82ee72b054a4
* * reload.c (find_reloads_toplev): Handle arbitrary non-paradoxicalamylaar1998-02-091-1/+24
| | | | | | | SUBREGs of CONST_INTs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17809 138bc75d-0d04-0410-961f-82ee72b054a4
* * reload.c (push_reload): If WORD_REGISTER_OPERATIONS, reload thelaw1998-01-281-2/+9
| | | | | | | | SUBREG_REG if the word count is unchanged, also in the input reload case. Disable non-applicable sanity checks. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17541 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix powerpc/rs6000 (subreg:SF (mem:SI ...)) reload problem.wilson1998-01-221-3/+5
| | | | | | | | | * reload.c (push_reload): In WORD_REGISTER_OPERATIONS code, add test to require the SUBREG mode to be smaller than the SUBREG_REG mode. * reload1.c (eliminate_regs): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17444 138bc75d-0d04-0410-961f-82ee72b054a4
* * alias.c: Change all uses of gen_rtx(FOO...) to gen_rtx_FOO;rth1998-01-141-48/+48
| | | | | | | | | | | | | | | change gen_rtx(expr...) to gen_rtx_fmt_foo(expr...). * caller-save.c, calls.c, combine.c, cse.c: Likewise. * dwarf2out.c, except.c, explow.c, expmed.c, expr.c: Likewise. * final.c, flow.c, function.c, genpeep.c, haifa-sched.c: Likewise. * halfpic.c, integrate.c, jump.c, local-alloc.c, loop.c: Likewise. * profile.c, recog.c, reg-stack.c, regclass.c, regmove.c: Likewise. * reload.c, reload1.c, reorg.c, sched.c, stmt.c, stupid.c: Likewise. * unroll.c, varasm.c: Likewise. * config/alpha/alpha.c, config/alpha/alpha.md: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17357 138bc75d-0d04-0410-961f-82ee72b054a4
* * reload.h, reload1.c (eliminate_regs), caller-save.c, dbxout.c,rth1997-12-151-7/+12
| | | | | | | | | | | dwarfout.c, dwarf2out.c, reload.c, sdbout.c: Revert March 15 change. * reload.c (push_reload): If WORD_REGISTER_OPERATIONS, reload the SUBREG_REG if the word count is unchanged. * reload1.c (eliminate_regs) [case SET]: If W_R_O, preserve subregs of identical word size for push_reload. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17105 138bc75d-0d04-0410-961f-82ee72b054a4
* Merge from gcc-2.8law1997-12-071-2/+14
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@16987 138bc75d-0d04-0410-961f-82ee72b054a4
* Bug fix for v850 port.wilson1997-11-051-2/+6
| | | | | | | * reload.c (find_reloads, case 'm' and 'o'): Reject HIGH constants. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@16329 138bc75d-0d04-0410-961f-82ee72b054a4
* Update mainline egcs to gcc2 snapshot 971021.law1997-11-021-52/+49
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@16278 138bc75d-0d04-0410-961f-82ee72b054a4
* * reload.c (debug_reload_to_stream): New function. Specify streamlaw1997-10-171-24/+33
| | | | | | | | | into which to write debug info. (debug_reload): Modify to call debug_reload_to_stream with stderr. Thanks. Installed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@15953 138bc75d-0d04-0410-961f-82ee72b054a4
* * reload.c (decompose): Always initialize val.base.law1997-10-071-0/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@15858 138bc75d-0d04-0410-961f-82ee72b054a4
* * reload.c (find_reloads, case '0'): Reject matching a non-offsettablelaw1997-08-271-1/+12
| | | | | | | | address where an offsettable address is required. Fixes 68k bootstrap problem. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14948 138bc75d-0d04-0410-961f-82ee72b054a4
* * reload.c (find_reloads): Add code to convert RELOAD_FOR_OPADDR_ADDRlaw1997-08-191-0/+29
| | | | | | | | | | reloads to RELOAD_FOR_OPERAND_ADDRESS reloads. * reload1.c: Undo bugfix from Aug 11. Back out "simple" patch for PA reload bug and install the one accepted by the FSF. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14847 138bc75d-0d04-0410-961f-82ee72b054a4
* (debug_reload): Rework to make output more compact.kenner1997-08-021-41/+30
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14634 138bc75d-0d04-0410-961f-82ee72b054a4
* reformat a little to match GNU coding standards.mrs1997-05-061-18/+18
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14024 138bc75d-0d04-0410-961f-82ee72b054a4
* (push_reload): Fix last argument of the call to find_dummy_reload.kenner1997-04-231-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13962 138bc75d-0d04-0410-961f-82ee72b054a4
* (find_dummy_reload): New parameter earlyclobber. If set then don'tkenner1997-03-251-7/+19
| | | | | | | | use IN for the reload if it also appears elsewhere in the insn. All callers changed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13795 138bc75d-0d04-0410-961f-82ee72b054a4