This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch installed for "non-static follows static" warnings
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 11 Aug 2002 15:01:06 -0400 (EDT)
- Subject: Patch installed for "non-static follows static" warnings
Tested by cross-compiling ip2k.o on ip2k-unknown-elf and cc1 on
mmix-knuth-mmixware.
(For reasons unrelated to my patch, cc1 won't link for the ip2k.)
Installed as obvious.
2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* ip2k.c (mdr_resequence_xy_yx, mdr_propagate_reg_equivs,
mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
ip2k_adjust_stack_ref, mdr_try_move_pushes, mdr_try_propagate_clr,
ip2k_xexp_not_uses_reg_for_mem, mdr_try_propagate_move,
mdr_try_remove_redundant_insns, track_w_reload,
mdr_try_wreg_elim): Make function static to match prototype.
* mmix.c (mmix_target_asm_function_epilogue): Likewise. Mark
parameter with ATTRIBUTE_UNUSED.
diff -rup orig/egcc-CVS20020810/gcc/config/ip2k/ip2k.c egcc-CVS20020810/gcc/config/ip2k/ip2k.c
--- orig/egcc-CVS20020810/gcc/config/ip2k/ip2k.c 2002-08-06 21:57:45.000000000 -0400
+++ egcc-CVS20020810/gcc/config/ip2k/ip2k.c 2002-08-10 15:58:06.149764505 -0400
@@ -3370,7 +3370,7 @@ ip2k_address_cost (x)
much cheaper and the move from this to the original source operand will be
no more expensive than the original move. */
-void
+static void
mdr_resequence_xy_yx (first_insn)
rtx first_insn;
{
@@ -3622,7 +3622,7 @@ mdr_propagate_reg_equivs_sequence (first
holds the same value and thus allow one or more register loads to
be eliminated. */
-void
+static void
mdr_propagate_reg_equivs (first_insn)
rtx first_insn;
{
@@ -4028,7 +4028,7 @@ mdr_try_dp_reload_elim (first_insn)
that we can move to earlier points within the file.
Moving these out of the way allows more peepholes to match. */
-void
+static void
mdr_try_move_dp_reload (first_insn)
rtx first_insn;
{
@@ -4119,7 +4119,7 @@ mdr_try_move_dp_reload (first_insn)
/* Look to see if the expression, x, can have any stack references offset by
a fixed constant, offset. If it definitely can then returns non-zero. */
-int
+static int
ip2k_check_can_adjust_stack_ref (x, offset)
rtx x;
int offset;
@@ -4167,7 +4167,7 @@ ip2k_check_can_adjust_stack_ref (x, offs
/* Adjusts all of the stack references in the expression pointed to by x by
a fixed offset. */
-void
+static void
ip2k_adjust_stack_ref (x, offset)
rtx *x;
int offset;
@@ -4212,7 +4212,7 @@ ip2k_adjust_stack_ref (x, offset)
to earlier points within the file. Moving these out of the way allows more
peepholes to match. */
-void
+static void
mdr_try_move_pushes (first_insn)
rtx first_insn;
{
@@ -4625,7 +4625,7 @@ mdr_try_propagate_clr_sequence (first_in
actually change some instruction patterns when we're doing this whereas
move propagation is just about doing a search and replace. */
-void
+static void
mdr_try_propagate_clr (first_insn)
rtx first_insn;
{
@@ -4656,7 +4656,7 @@ mdr_try_propagate_clr (first_insn)
via the specified register. This is very conservative and only returns
non-zero if we definitely don't have such a memory ref. */
-int
+static int
ip2k_xexp_not_uses_reg_for_mem (x, regno)
rtx x;
unsigned int regno;
@@ -4848,7 +4848,7 @@ mdr_try_propagate_move_sequence (first_i
holds the same value and thus allow one or more register loads to
be eliminated. */
-void
+static void
mdr_try_propagate_move (first_insn)
rtx first_insn;
{
@@ -4897,7 +4897,7 @@ mdr_try_propagate_move (first_insn)
/* Try to remove redundant instructions. */
-void
+static void
mdr_try_remove_redundant_insns (first_insn)
rtx first_insn;
{
@@ -4993,7 +4993,7 @@ struct we_jump_targets *ip2k_we_jump_tar
/* WREG equivalence tracking used within DP reload elimination. */
-int
+static int
track_w_reload (insn, w_current, w_current_ok, modifying)
rtx insn;
rtx *w_current;
@@ -5083,7 +5083,7 @@ track_w_reload (insn, w_current, w_curre
/* As part of the machine-dependent reorg we scan moves into w and track them
to see where any are redundant. */
-void
+static void
mdr_try_wreg_elim (first_insn)
rtx first_insn;
{
diff -rup orig/egcc-CVS20020810/gcc/config/mmix/mmix.c egcc-CVS20020810/gcc/config/mmix/mmix.c
--- orig/egcc-CVS20020810/gcc/config/mmix/mmix.c 2002-07-23 20:46:13.000000000 -0400
+++ egcc-CVS20020810/gcc/config/mmix/mmix.c 2002-08-10 15:39:42.009328626 -0400
@@ -760,10 +760,10 @@ mmix_machine_dependent_reorg (first)
/* TARGET_ASM_FUNCTION_EPILOGUE. */
-void
+static void
mmix_target_asm_function_epilogue (stream, locals_size)
FILE *stream;
- HOST_WIDE_INT locals_size;
+ HOST_WIDE_INT locals_size ATTRIBUTE_UNUSED;
{
/* Emit an \n for readability of the generated assembly. */