summaryrefslogtreecommitdiff
path: root/gcc/explow.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Rats. Forgot to change copyrights on the first commit.robertl1998-02-131-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17902 138bc75d-0d04-0410-961f-82ee72b054a4
* * c-lang.c (finish_file): Bracket declaration of static_ctors,robertl1998-02-131-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | static_dtors. * calls.c (expand_call): Bracket declaration of 'rtx_before_call', 'old_stack_arg_under_construction' (emit_library_call): Bracket declaration of 'upper_bound', 'lower_bound', 'i', 'reg_parm_stack_space' (emit_library_call_value): Likewise. (store_one_arg): * collect2.c: include <unistd.h> when appropriate. Bracket declaration of 'exportf' and 'full_real_ld_suffix'. * emit-rtl.c (prev_cc0_setter): Remove unused variable 'link'. * explow.c (plus_constant_for_output_wide): Remove unused variable 'code'. (memory_address): Remove unused variable 'orig_x'. * genattrtab.c (make_canonical): Remove unreferenced label 'cond:'. (write_const_num_delay_slots): Remove unused variable 'i'. * genopinit.c (main): Remove unused variables 'dummy', 'insn_ptr'. (gen_insn): Remove unused variable 'obstack_ptr'. * libgcc2.c (__bb_exit_func): Remove unused variables 'ret', 'j', 'tmp', 'i'. (__bb_exit_trace_func): Remove unused variable 'e'. * optabs.c (expand_binop): remove unused variables 'lhs', 'rhs', 'funexp'. (expand_unop): Remove unused variable 'funexp'. (expand_complex_abs): Remove unused variable 'funexp'. (init_optabs): Bracket declaration of 'j'. (init_complex_libfuncs): Deleted. Dead static function. * profile.c (branch_prob): Remove unused variables 'insn', 'dest'. * reg-stack.c: Fix typo in proto for 'get_asm_operand_lengths' (reg_to_stack): 'initialized', 'before_function_beg' explictly type as ints instead of defaulting. (emit_swap_insn): Remove unused variable 'i2'. (compare_for_stack_reg): Remove unused variable 'src_note'. * rtlanal.c (computed_jump_p): Remove unused variable 'computed_jump'. * sched.c (actual_hazard): Bracket declaration of 'this_cost'. * stmt.c (add_case_node): Add parens for assignment used as truth. (all_cases_count): Remove unused variable 'count_high'. (mark_seen_cases): Remove unused variable 'i'. (check_for_full_enumeration_handling): Remove unused variable 't'. Bracket declaration of 'all_values', 'l'. * tlink.c: Include <stdlib.h>, <unistd.h>, <string.h>/<strings.h>. * varasm.c (assemble_string): Remove unused variable 'i'. (immed_double_const): Remove unused variable 'in_current_obstack'. (immed_real_const_1): Likewise. (output_constant_pool): Remove unreferenced label 'done'. (output_constant): Remove unused variable 'x'. * i386/i386.h (ENCODE_SECTION_INFO): TREE_PUBLIC is an int, not a string. * i386/sco5.h (ASM_OUTPUT_ASCII): Add parens for assignment used as truth. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17901 138bc75d-0d04-0410-961f-82ee72b054a4
* * c-common.c: Include <stdlib.h> and <string.h>/<strings.h>.law1998-02-071-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | * calls.c (expand_call): Remove unused variables funtree, n_regs, and tmpmode. * dbxout.c, except.c: Include <string.h>/<strings.h>. * explow.c: (plus_constant_for_output_wide) Removed unused variable all_constant. * c-decl.c, genattr.c, genattrtab.c, getconfig.c, genemit.c genextract.c, genflags.c, genopinit.c genoutput.c, genpeep.c, genrecog.c, global.c, integrate.c , stupid.c : Include <stdlib.h>. * genextract.c: (walk_rtx) Remove unused variable link. * genrecog.c: (concat) Remove unreferenced static function. * prefix.c: Include <string.h>/<strings.h>, <stdlib.h> * stmt.c: Include <stdlib.h>. (expand_asm_operands): Remove unused variable val1. (expand_return): Remove unused variable block. (pushcase): Remove unused variables l and n. (pushcaserange): Likewise. * unroll.c (unroll_loop): Remove unused variable temp. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17766 138bc75d-0d04-0410-961f-82ee72b054a4
* * explow.c (optimize_save_area_alloca): New function for targetslaw1998-01-171-0/+133
| | | | | | | | | | | | | | where SETJMP_VIA_SAVE_AREA is true. (allocate_dynamic_stack_space): On SETJMP_VIA_SAVE_AREA targets, compute the amount of stack space needed should we find later that setjmp is never called by this function, stuff rtl for this inside a REG_NOTE of the final SET of stack_pointer_rtx. * toplev.c (rest_of_compilation): If SETJMP_VIA_SAVE_AREA and current_function_calls_alloca, call optimize_save_area_alloca. CVS ---------------------------------------------------------------------- git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17402 138bc75d-0d04-0410-961f-82ee72b054a4
* * alias.c: Change all uses of gen_rtx(FOO...) to gen_rtx_FOO;rth1998-01-141-49/+84
| | | | | | | | | | | | | | | 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
* (expr_size): Call expand_expr with appropriate flag.kenner1997-08-021-1/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14610 138bc75d-0d04-0410-961f-82ee72b054a4
* (probe_stack_range): Do probing with loop if more than a small number.kenner1997-07-271-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14535 138bc75d-0d04-0410-961f-82ee72b054a4
* (allocate_dynamic_stack_space): Call probe_stack_range.kenner1997-07-171-1/+133
| | | | | | | (emit_stack_probe, probe_stack_range): New functions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14469 138bc75d-0d04-0410-961f-82ee72b054a4
* (convert_memory_address, case SYMBOL_REF): Copykenner1997-01-191-1/+2
| | | | | | | CONSTANT_POOL_ADDRESS_P. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13511 138bc75d-0d04-0410-961f-82ee72b054a4
* (allocate_dynamic_stack_space): Delete reference to nonexistant macrokenner1996-10-261-1/+1
| | | | | | | ALLOCATE_OUTGOING_ARGS. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13040 138bc75d-0d04-0410-961f-82ee72b054a4
* (promote_mode, case REFERENCE_TYPE): New case.kenner1996-09-241-0/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12792 138bc75d-0d04-0410-961f-82ee72b054a4
* formatting tweaksmrs1996-07-031-2/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12390 138bc75d-0d04-0410-961f-82ee72b054a4
* (convert_memory_address, case PLUS): Fix error in last change.kenner1996-06-291-3/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12378 138bc75d-0d04-0410-961f-82ee72b054a4
* (convert_memory_address, case PLUS, MULT): Don't commute operationkenner1996-06-181-10/+17
| | | | | | | with extension if not adding small integer. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12292 138bc75d-0d04-0410-961f-82ee72b054a4
* (memory_address, allocate_dynamic_stack_space): Pass additional arg tokenner1995-12-271-3/+3
| | | | | | | mark_reg_pointer. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10885 138bc75d-0d04-0410-961f-82ee72b054a4
* Update FSF address.kenner1995-06-151-1/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9959 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix typos in comments.kenner1995-05-161-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9712 138bc75d-0d04-0410-961f-82ee72b054a4
* (convert_memory_address): No longer static.kenner1995-04-071-13/+27
| | | | | | | | | New arg, TO_MODE. Do something special for SYMBOL_REF, LABEL_REF, and CONST. (memory_address): Add extra arg to call to convert_memory_address. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9328 138bc75d-0d04-0410-961f-82ee72b054a4
* (convert_memory_address): New function.kenner1995-04-031-1/+50
| | | | | | | | | (memory_address): Call if it needed. (promote_mode, case POINTER_TYPE): Use Pmode and pointer extension. (allocate_dynamic_stack_space): Convert size from ptr_mode. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9304 138bc75d-0d04-0410-961f-82ee72b054a4
* (allocate_dynamic_stack_space): Correct typo in last change.wilson1995-04-031-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9302 138bc75d-0d04-0410-961f-82ee72b054a4
* (allocate_dynamic_stack_space): Test STACK_BOUNDARY againstwilson1995-03-301-27/+8
| | | | | | | | BIGGEST_ALIGNMENT at run time instead of at compile time. Give MUST_ALIGN macro a value, and test this value in if statements. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9263 138bc75d-0d04-0410-961f-82ee72b054a4
* (memory_address): Add missing "else".kenner1995-02-221-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9037 138bc75d-0d04-0410-961f-82ee72b054a4
* * explow.c (hard_function_value): Change a register in BLKmodelaw1994-11-291-1/+22
| | | | | | | to a register in a sufficiently wide integer mode. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8578 138bc75d-0d04-0410-961f-82ee72b054a4
* (force_reg): Don't make a REG_EQUAL note for an insn that doesn't setkenner1994-07-141-3/+7
| | | | | | | TEMP. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7771 138bc75d-0d04-0410-961f-82ee72b054a4
* (allocate_dynamic_stack_space): Fix typo.kenner1994-07-121-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7746 138bc75d-0d04-0410-961f-82ee72b054a4
* (round_push, allocate_dynamic_stack_space): Avoid using CEIL_DIV_EXPR;kenner1994-07-121-3/+11
| | | | | | | add adjustment and use TRUNC_DIV_EXPR instead. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7738 138bc75d-0d04-0410-961f-82ee72b054a4
* (allocate_dynamic_stack_space): Just return virtual_stack_dynamic_rtx ifkenner1994-05-061-0/+13
| | | | | | | | | asking for zero bytes. Set current_function_calls_alloca here and also record new stack level for nonlocal gotos. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7229 138bc75d-0d04-0410-961f-82ee72b054a4
* (promote_mode): New function.kenner1994-04-181-0/+38
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7066 138bc75d-0d04-0410-961f-82ee72b054a4
* (break_out_memory_refs): Don't call mark_reg_pointer here.kenner1994-03-081-5/+14
| | | | | | | | (memory_address): Call it here if X changed and is now a REG or REG + CONST_INT. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6729 138bc75d-0d04-0410-961f-82ee72b054a4
* (memory_address): Fix error in last change.kenner1994-02-101-14/+14
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6520 138bc75d-0d04-0410-961f-82ee72b054a4
* (memory_address): Call update_temp_slot_address on new and oldkenner1994-02-071-55/+71
| | | | | | | address. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6497 138bc75d-0d04-0410-961f-82ee72b054a4
* (emit_stack_save): Cast enum array index to int.rms1993-10-111-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5717 138bc75d-0d04-0410-961f-82ee72b054a4
* (expr_size): If the size contains a PLACEHOLDER_EXPR, surround it withkenner1993-10-041-2/+7
| | | | | | | a WITH_RECORD_EXPR. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5582 138bc75d-0d04-0410-961f-82ee72b054a4
* * explow.c: (copy_all_regs): Don't copy HARD_FRAME_POINTER_REGNUM.dje1993-09-241-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5454 138bc75d-0d04-0410-961f-82ee72b054a4
* (emit_stack_save): At end, call validize_mem when inside sequence.wilson1993-04-121-4/+9
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4104 138bc75d-0d04-0410-961f-82ee72b054a4
* (rtx_to_tree_code): New function.rms1993-03-311-0/+38
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@3944 138bc75d-0d04-0410-961f-82ee72b054a4
* * explow.c (memory_address): Use CONSTANT_ADDRESS_P instead oflaw1993-02-261-2/+2
| | | | | | | | LEGITIMATE_CONSTANT_P. (break_out_memrefs): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@3540 138bc75d-0d04-0410-961f-82ee72b054a4
* # Fix misspellings in comments.eggert1993-01-101-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@3181 138bc75d-0d04-0410-961f-82ee72b054a4
* (allocate_dynamic_stack_space) [MUST_ALIGN]:rms1992-10-051-6/+10
| | | | | | | | Always add to size, always round up to STACK_BOUNDARY, always round the address. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2320 138bc75d-0d04-0410-961f-82ee72b054a4
* (allocate_dynamic_stack_space): If STACK_DYNAMIC_OFFSETrms1992-10-011-0/+9
| | | | | | | or STACK_POINTER_OFFSET, always round address up to BIGGEST_ALIGNMENT. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2292 138bc75d-0d04-0410-961f-82ee72b054a4
* (allocate_dynamic_stack_space) [SETJMP_VIA_SAVE_AREA]:rms1992-07-171-0/+3
| | | | | | | Always call round_push; we can't rely on alignment of size. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1608 138bc75d-0d04-0410-961f-82ee72b054a4
* entered into RCSmycroft1992-07-061-40/+37
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1472 138bc75d-0d04-0410-961f-82ee72b054a4
* *** empty log message ***kenner1992-06-251-12/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1281 138bc75d-0d04-0410-961f-82ee72b054a4
* *** empty log message ***kenner1992-05-291-4/+10
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1125 138bc75d-0d04-0410-961f-82ee72b054a4
* *** empty log message ***kenner1992-05-251-4/+20
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1086 138bc75d-0d04-0410-961f-82ee72b054a4
* *** empty log message ***kenner1992-05-251-8/+12
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1079 138bc75d-0d04-0410-961f-82ee72b054a4
* *** empty log message ***rms1992-05-211-0/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1044 138bc75d-0d04-0410-961f-82ee72b054a4
* *** empty log message ***kenner1992-05-061-0/+121
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@915 138bc75d-0d04-0410-961f-82ee72b054a4
* *** empty log message ***rms1992-04-031-0/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@675 138bc75d-0d04-0410-961f-82ee72b054a4