aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
AgeCommit message (Collapse)AuthorFilesLines
1997-12-15Bring over changes from latest gcc-2.8 pre-release.Jeff Law1-2/+2
Mirror sched.c change into haifa-sched.c From-SVN: r17097
1997-12-06Merge from gcc-2.8Jeff Law1-11/+32
From-SVN: r16987
1997-11-02Update mainline egcs to gcc2 snapshot 971021.Jeff Law1-53/+283
From-SVN: r16278
1997-10-28function.c (assign_parms): Correct mode of stack_parm if entry_parm ↵Doug Evans1-0/+6
underwent a mode conversion. * function.c (assign_parms): Correct mode of stack_parm if entry_parm underwent a mode conversion. From-SVN: r16228
1997-10-18tree.c (restore_tree_status): Also free up temporary storage when we finish ↵Jason Merrill1-1/+1
a toplevel function. * tree.c (restore_tree_status): Also free up temporary storage when we finish a toplevel function. (dump_tree_statistics): Print stats for backend obstacks. * libgcc2.c (__throw): Don't copy the return address. * dwarf2out.c (expand_builtin_dwarf_reg_size): Ignore return address. * except.c (exceptions_via_longjmp): Initialize to 2 (uninitialized). * toplev.c (main): Initialize exceptions_via_longjmp. * tree.c: Add extra_inline_obstacks. (save_tree_status): Use it. (restore_tree_status): If this is a toplevel inline obstack and we didn't want to save anything on it, recycle it. (print_inline_obstack_statistics): New fn. * function.c (pop_function_context_from): Pass context to restore_tree_status. * obstack.h (obstack_empty_p): New macro. From-SVN: r16050
1997-08-27reorg.c (dbr_schedule): Allow current_function_return_rtx to be something ↵Jeffrey A Law1-4/+9
other than a REG. * reorg.c (dbr_schedule): Allow current_function_return_rtx to be something other than a REG. * function.c (expand_function_end): Fix current_function_return_rtx if it was a pseudo. Brought over from the fsf/devo. From-SVN: r14972
1997-08-02(put_var_into_stack, assign_parms): If -fcheck-memory-usage, set theRichard Kenner1-2/+42
rights of pushed variable. From-SVN: r14614
1997-07-27(put_var_into_stack, trampoline_address): Treat inline_function_declRichard Kenner1-2/+3
like current_function_decl. From-SVN: r14539
1997-07-17(expand_function_end): If function is non-leaf and stack checking isRichard Kenner1-0/+20
requested, emit needed probes. From-SVN: r14470
1997-05-15function.c (expand_function_end): Make sure we finish off any leftover ↵Mike Stump1-0/+18
exception handlers. * function.c (expand_function_end): Make sure we finish off any leftover exception handlers. From-SVN: r14067
1997-05-06reformat a little to match GNU coding standards.Mike Stump1-4/+4
From-SVN: r14024
1997-04-24xJason Merrill1-0/+8
From-SVN: r13974
1997-04-18(instantiate_decls): For DECL_INCOMING_RTL, use maxJim Wilson1-4/+8
of type size and mode size in instantiate_decl call. From-SVN: r13933
1997-04-03(expand_function_start): Emit queue after expandingJim Wilson1-1/+6
each dynamic parameter type. From-SVN: r13835
1997-03-28function.c (expand_function_end): Output NOTE_REPEATED_LINE_NUMBER for last ↵Doug Evans1-0/+8
line of function. * function.c (expand_function_end): Output NOTE_REPEATED_LINE_NUMBER for last line of function. From-SVN: r13815
1997-03-18Add a REG_EQUIV note when a register parameter has a stack locationIan Lance Taylor1-4/+4
From-SVN: r13734
1997-02-16xJason Merrill1-3/+1
From-SVN: r13652
1997-02-09(assign_stack_temp): Clear MEM flags from reuse.Richard Kenner1-0/+5
From-SVN: r13623
1997-02-07(instantiate_virtual_regs_1, case USE, CLOBBER): Fix error in last change.Richard Kenner1-1/+1
From-SVN: r13615
1997-01-30(TRAMPOLINE_ALIGNMENT): Provide default.Richard Kenner1-1/+5
(expand_function_end): Use TRAMPOLINE_ALIGNMENT instead of FUNCTION_BOUNDARY. From-SVN: r13567
1997-01-21(mark_all_temps_used): Set KEEP as well.Richard Kenner1-1/+1
From-SVN: r13541
1997-01-19(instantiate_virtual_regs_1...Richard Kenner1-4/+21
(instantiate_virtual_regs_1, case USE, case CLOBBER): Properly handle case of shared MEM whose replacement is not valid. From-SVN: r13509
1997-01-03(push_function_context_to, pop_function_context_from): Save andRichard Kenner1-1/+3
restore current_function_args_info. From-SVN: r13353
1996-12-13Check SMALL_REGISTER_CLASSES at runtimeIan Lance Taylor1-20/+25
From-SVN: r13302
1996-12-11(fixup_var_refs_1, case ZERO_EXTRACT): Don't call fixup_memory_subregRichard Kenner1-2/+2
if no longer SUBREG of MEM. From-SVN: r13282
1996-12-07(frame_offset, get_frame_size): Make HOST_WIDE_INT.Richard Kenner1-2/+2
From-SVN: r13243
1996-11-08(expand_function_end): Handle BLKmode structures returnedJim Wilson1-0/+5
in registers. From-SVN: r13117
1996-09-29(assign_parms): Use mark_user_reg.Richard Kenner1-2/+2
From-SVN: r12870
1996-09-25(instantiate_decl): Always store addr back into x.Jim Wilson1-20/+20
From-SVN: r12842
1996-08-26(mark_all_temps_used): Fix error in last change.Richard Kenner1-1/+1
From-SVN: r12672
1996-08-25(mark_all_temps_used): New function.Richard Kenner1-0/+15
From-SVN: r12671
1996-07-23install EH codeMike Stump1-0/+1
From-SVN: r12550
1996-07-08(aggregate_value_p): If hard_function_value returnsJim Wilson1-0/+6
a non-REG, then return 0. From-SVN: r12413
1996-07-03formatting tweaksMike Stump1-23/+16
From-SVN: r12390
1996-06-18(find_temp_slot_from_address): Check for overlap from BASE_OFFSET if XRichard Kenner1-1/+6
is PLUS of virtual_stack_vars_rtx and const. From-SVN: r12296
1996-06-08(fixup_var_refs_1, case SIGN_EXTEND): Handle paradoxical SUBREGs as first ↵Richard Kenner1-4/+32
operand. (fixup_var_refs_1, case SIGN_EXTEND): Handle paradoxical SUBREGs as first operand. (fixup_var_regs_1, case SET): Handle paradoxical SUBREGs as first operand of a ZERO_EXTRACT in SET_DEST. From-SVN: r12243
1996-06-06(assign_parms): Handle PARALLEL parameter in ENTRY_PARM.Jim Wilson1-10/+26
From-SVN: r12191
1996-06-06(assign_parms): Tighten up code that makes REG_EQUIV notes for parms.Richard Kenner1-19/+24
From-SVN: r12186
1996-05-19Include bc-emit.h.Richard Kenner1-8/+3
({save,restore}_machine_status): Add prototype for args. (bc_runtime_type_code, bc_build_calldesc): Delete redundant decls. (bc_emit_trampoline, bc_end_function): Likewise. From-SVN: r12045
1996-05-09* function.c (aggregate_value_p): Return 1 if TREE_ADDRESSABLE.Doug Evans1-0/+4
From-SVN: r11957
1996-05-06(assign_parms): Set RTX_UNCHANGING_P in stack_parm if parm isRichard Kenner1-1/+3
read-only. From-SVN: r11944
1996-04-16(expand_function_end): Allow TRAMPOLINE_TEMPLATERichard Kenner1-5/+12
to be omitted on systems for which it is not cost effective. From-SVN: r11822
1996-04-16(push_function_context_{to,from}): Save and restoreRichard Kenner1-0/+2
current_function_returns_pointer. From-SVN: r11812
1996-04-15function.c (preserve_temp_slots): Only preserve temporaries that happen to ↵Mike Stump1-9/+13
be at the current level. * function.c (preserve_temp_slots): Only preserve temporaries that happen to be at the current level. Fixes p7325.C. From-SVN: r11800
1996-03-29calls.c (expand_call): Remove current_call_is_indirect nonsense.Jeff Law1-4/+1
* calls.c (expand_call): Remove current_call_is_indirect nonsense. Add additional argument to INIT_CUMULATIVE_ARGS. (emit_library_call): Likewise. (emit_library_call_value): Likewise. * expr.c (expand_builtin): Likewise. * function.c (assign_parms): Likewise. * cp/method.c (emit_thunk): Likewise. * config/pa/pa.h (hppa_args): New field "indirect". (INIT_CUMULATIVE_ARGS): Initialize "indirect" field. (FUNCTION_ARG): Check "indirect" field, rather than "current_call_is_indirect". * All other backends updated with new argument to INIT_CUMULATIVE_ARGS From-SVN: r11641
1996-03-26(expand_function_start): Don't set up context_displayJason Merrill1-34/+38
unless current_function_needs_context. From-SVN: r11615
1996-03-05(expand_expr, case *_DECL): If we make a non-local reference from a function ↵Jason Merrill1-3/+5
with DECL_NO_STATIC_CHAIN set, abort. (expand_expr, case *_DECL): If we make a non-local reference from a function with DECL_NO_STATIC_CHAIN set, abort. (expand_expr, case ADDR_EXPR): We don't need a trampoline for a function with DECL_NO_STATIC_CHAIN set. From-SVN: r11461
1996-03-04(bc_expand_function_start): Likewise.Richard Kenner1-1/+1
From-SVN: r11412
1996-01-15({,round_}trampoline_address): TRAMPOLINE_ALIGNMENT is in bits, notRichard Kenner1-4/+5
bytes. From-SVN: r10993
1995-12-31(assign_temp): Add extra arg, DONT_PROMOTE.Richard Kenner1-6/+7
Don't return (const_int 0) for VOIDmode. From-SVN: r10923