On Fri, 2015-07-31 at 00:32 +0000, Joseph Myers wrote: > New command-line options need documenting in invoke.texi. Good point, thanks for catching that. Here is an updated patch with invoke.texi. There are no other changes to the patch. Steve Ellcey sellcey@imgtec.com 2015-07-31 Steve Ellcey Zoran Jovanovic Catherine Moore Tom de Vries * config/mips/mips.opt (mframe-header-opt): New option. * config/mips/mips.c (struct mips_frame_info): Add skip_stack_frame_allocation_p field. (struct machine_function): Add callees_use_frame_header_p, uses_frame_header_p, and initial_total_size fields. (mips_frame_header_usage): New hash. (mips_find_if_frame_header_is_used): New Function. (mips_callee_use_frame_header): New Function. (mips_callees_use_frame_header_p): New Function. (mips_cfun_use_frame_header_p): New Function. (mips_get_updated_offset): New Function. (mips_skip_stack_frame_alloc): New Function. (mips_frame_header_update_insn): New Function. (mips_rest_of_frame_header_opt): New function. (mips_compute_frame_info): Add recalculate and frame arguments. (mips_frame_pointer_required): Add new args to mips_compute_frame_info call. (mips_initial_elimination_offset): Ditto. (mips_gp_expand_needed_p): New function factored out of mips_expand_ghost_gp_insns. (mips_expand_ghost_gp_insns): Use mips_gp_expand_needed_p. (mips_reorg): Use mips_rest_of_frame_header_opt. * doc/invoke.texi (MIPS Options): Document -mframe-header-opt flag. 2015-07-31 Steve Ellcey Tom de Vries * gcc.target/mips/fho-1.c: New test. * gcc.target/mips/fho-2.c: New test. * gcc.target/mips/mips.exp: Add -mframe-header-opt to mips_option_groups.