aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/sparc/sparc-protos.h1
-rw-r--r--gcc/config/sparc/sparc.c2
3 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 07ff2b0..a35bb99 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2018-07-13 Eric Botcazou <ebotcazou@adacore.com>
+
+ * config/sparc/sparc-protos.h (sparc_compute_frame_size): Delete.
+ * config/sparc/sparc.c (sparc_compute_frame_size): Make static.
+
2018-07-13 Richard Biener <rguenther@suse.de>
PR debug/86452
diff --git a/gcc/config/sparc/sparc-protos.h b/gcc/config/sparc/sparc-protos.h
index 71a067e..4fb0ead 100644
--- a/gcc/config/sparc/sparc-protos.h
+++ b/gcc/config/sparc/sparc-protos.h
@@ -31,7 +31,6 @@ extern unsigned long sparc_type_code (tree);
#endif /* TREE_CODE */
extern void order_regs_for_local_alloc (void);
-extern HOST_WIDE_INT sparc_compute_frame_size (HOST_WIDE_INT, int);
extern int sparc_initial_elimination_offset (int);
extern void sparc_expand_prologue (void);
extern void sparc_flat_expand_prologue (void);
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c
index a9a02af..2481fbf 100644
--- a/gcc/config/sparc/sparc.c
+++ b/gcc/config/sparc/sparc.c
@@ -5459,7 +5459,7 @@ save_local_or_in_reg_p (unsigned int regno, int leaf_function)
/* Compute the frame size required by the function. This function is called
during the reload pass and also by sparc_expand_prologue. */
-HOST_WIDE_INT
+static HOST_WIDE_INT
sparc_compute_frame_size (HOST_WIDE_INT size, int leaf_function)
{
HOST_WIDE_INT frame_size, apparent_frame_size;