Commit 8b661145 by Segher Boessenkool

shrink-wrap: Header hygiene

2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>

	* shrink-wrap.c (requires_stack_frame_p): Make static.
	(prepare_shrink_wrap): Likewise.
	(dup_block_and_redirect): Likewise.
	* shrink-wrap.h: Remove declarations of those functions.

From-SVN: r227652
parent 31088369
2015-09-09 Mark Wielaard <mjw@redhat.com> 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
* shrink-wrap.c (requires_stack_frame_p): Make static.
(prepare_shrink_wrap): Likewise.
(dup_block_and_redirect): Likewise.
* shrink-wrap.h: Remove declarations of those functions.
2015-09-10 Mark Wielaard <mjw@redhat.com>
* doc/invoke.texi (Wnonnull): Also warns when comparing against NULL. * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
......
...@@ -68,7 +68,7 @@ along with GCC; see the file COPYING3. If not see ...@@ -68,7 +68,7 @@ along with GCC; see the file COPYING3. If not see
PROLOGUE_USED contains the hard registers used in the function PROLOGUE_USED contains the hard registers used in the function
prologue. SET_UP_BY_PROLOGUE is the set of registers we expect the prologue. SET_UP_BY_PROLOGUE is the set of registers we expect the
prologue to set up for the function. */ prologue to set up for the function. */
bool static bool
requires_stack_frame_p (rtx_insn *insn, HARD_REG_SET prologue_used, requires_stack_frame_p (rtx_insn *insn, HARD_REG_SET prologue_used,
HARD_REG_SET set_up_by_prologue) HARD_REG_SET set_up_by_prologue)
{ {
...@@ -420,7 +420,7 @@ move_insn_for_shrink_wrap (basic_block bb, rtx_insn *insn, ...@@ -420,7 +420,7 @@ move_insn_for_shrink_wrap (basic_block bb, rtx_insn *insn,
to call-saved registers because their values are live across one or to call-saved registers because their values are live across one or
more calls during the function. */ more calls during the function. */
void static void
prepare_shrink_wrap (basic_block entry_block) prepare_shrink_wrap (basic_block entry_block)
{ {
rtx_insn *insn, *curr; rtx_insn *insn, *curr;
...@@ -465,7 +465,7 @@ prepare_shrink_wrap (basic_block entry_block) ...@@ -465,7 +465,7 @@ prepare_shrink_wrap (basic_block entry_block)
/* Create a copy of BB instructions and insert at BEFORE. Redirect /* Create a copy of BB instructions and insert at BEFORE. Redirect
preds of BB to COPY_BB if they don't appear in NEED_PROLOGUE. */ preds of BB to COPY_BB if they don't appear in NEED_PROLOGUE. */
void static void
dup_block_and_redirect (basic_block bb, basic_block copy_bb, rtx_insn *before, dup_block_and_redirect (basic_block bb, basic_block copy_bb, rtx_insn *before,
bitmap_head *need_prologue) bitmap_head *need_prologue)
{ {
......
...@@ -23,11 +23,6 @@ along with GCC; see the file COPYING3. If not see ...@@ -23,11 +23,6 @@ along with GCC; see the file COPYING3. If not see
#include "function.h" #include "function.h"
/* In shrink-wrap.c. */ /* In shrink-wrap.c. */
extern bool requires_stack_frame_p (rtx_insn *, HARD_REG_SET, HARD_REG_SET);
extern void prepare_shrink_wrap (basic_block entry_block);
extern void dup_block_and_redirect (basic_block bb, basic_block copy_bb,
rtx_insn *before,
bitmap_head *need_prologue);
extern void try_shrink_wrapping (edge *entry_edge, edge orig_entry_edge, extern void try_shrink_wrapping (edge *entry_edge, edge orig_entry_edge,
bitmap_head *bb_flags, rtx_insn *prologue_seq); bitmap_head *bb_flags, rtx_insn *prologue_seq);
extern edge get_unconverted_simple_return (edge, bitmap_head, extern edge get_unconverted_simple_return (edge, bitmap_head,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment