Put back requires_stack_frame_p used by i386.c
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Sep 2015 19:19:27 +0000 (19:19 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Sep 2015 19:19:27 +0000 (19:19 +0000)
* shrink-wrap.c (requires_stack_frame_p): Remove static.
* shrink-wrap.h (requires_stack_frame_p): Put back.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227659 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/shrink-wrap.c
gcc/shrink-wrap.h

index a9a6fbd..d47b146 100644 (file)
@@ -1,3 +1,8 @@
+2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * shrink-wrap.c (requires_stack_frame_p): Remove static.
+       * shrink-wrap.h (requires_stack_frame_p): Put back.
+
 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
 
        * reload1.c (elimination_costs_in_insn): Locally turn
index 0ece4cf..d10795a 100644 (file)
@@ -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.  SET_UP_BY_PROLOGUE is the set of registers we expect the
    prologue to set up for the function.  */
-static bool
+bool
 requires_stack_frame_p (rtx_insn *insn, HARD_REG_SET prologue_used,
                        HARD_REG_SET set_up_by_prologue)
 {
index efc8370..6819901 100644 (file)
@@ -23,6 +23,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "function.h"
 
 /* In shrink-wrap.c.  */
+extern bool requires_stack_frame_p (rtx_insn *, HARD_REG_SET, HARD_REG_SET);
 extern void try_shrink_wrapping (edge *entry_edge, edge orig_entry_edge,
                                 bitmap_head *bb_flags, rtx_insn *prologue_seq);
 extern edge get_unconverted_simple_return (edge, bitmap_head,