aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.h
diff options
context:
space:
mode:
authorBernd Schmidt <bernds@codesourcery.com>2011-10-05 12:59:23 +0000
committerBernd Schmidt <bernds@gcc.gnu.org>2011-10-05 12:59:23 +0000
commit484db665a35edd7c5e4112331665da4dfe57affd (patch)
tree092a063b47d0bf2e253befae6fbbc597612758ed /gcc/function.h
parent18474649d91dd922555c5af509206a7aa3c65285 (diff)
downloadgcc-484db665a35edd7c5e4112331665da4dfe57affd.zip
gcc-484db665a35edd7c5e4112331665da4dfe57affd.tar.gz
gcc-484db665a35edd7c5e4112331665da4dfe57affd.tar.bz2
invoke.texi (-fshrink-wrap): Document.
* doc/invoke.texi (-fshrink-wrap): Document. * opts.c (default_options_table): Add it. * common.opt (fshrink-wrap): Add. * function.c (emit_return_into_block): Remove useless declaration. (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx, requires_stack_frame_p, gen_return_pattern): New static functions. (emit_return_into_block): New arg simple_p. All callers changed. Use gen_return_pattern. (thread_prologue_and_epilogue_insns): Implement shrink-wrapping. * config/i386/i386.md (return): Expand into a simple_return. (simple_return): New expander): (simple_return_internal, simple_return_internal_long, simple_return_pop_internal_long, simple_return_indirect_internal): Renamed from return_internal, return_internal_long, return_pop_internal_long and return_indirect_internal; changed to use simple_return. * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand simple returns. (ix86_pad_returns): Likewise. * function.h (struct rtl_data): Add member shrink_wrapped. * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that are not jumps or sibcalls can't be compared. * gcc.target/i386/sw-1.c: New test. From-SVN: r179553
Diffstat (limited to 'gcc/function.h')
-rw-r--r--gcc/function.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/function.h b/gcc/function.h
index ff193bc..42e52ac 100644
--- a/gcc/function.h
+++ b/gcc/function.h
@@ -435,6 +435,9 @@ struct GTY(()) rtl_data {
function where currently compiled version of it is nothrow. */
bool nothrow;
+ /* True if we performed shrink-wrapping for the current function. */
+ bool shrink_wrapped;
+
/* Like regs_ever_live, but 1 if a reg is set or clobbered from an
asm. Unlike regs_ever_live, elements of this array corresponding
to eliminable regs (like the frame pointer) are set if an asm