This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

patch: remove unused prototypes


The following patch is causing build warning/error because
delete_computation and delete_prior_computation were moved, but their
static prototypes remain.

	2007-02-15  Paolo Bonzini  <bonzini@gnu.org>

        * jump.c (get_label_after): Delete.
        (get_label_before, delete_computation, delete_jump,
        delete_prior_computation, follow_jumps): Move...
        * reorg.c (delete_computation, delete_prior_computation): ... here...
        (get_label_before, delete_jump): ... making these static ...
        (follow_jumps): ... and simplifying this since it only runs after
        reload.
        * rtl.h (get_label_after, get_label_before, delete_jump,
        follow_jumps): Delete prototypes.

I am committing the following patch as obvious.

Aldy

	* jump.c: Remove prototypes for delete_computation and
	delete_prior_computation.


Index: jump.c
===================================================================
--- jump.c	(revision 122010)
+++ jump.c	(working copy)
@@ -68,11 +68,9 @@ Software Foundation, 51 Franklin Street,
 
 static void init_label_info (rtx);
 static void mark_all_labels (rtx);
-static void delete_computation (rtx);
 static void redirect_exp_1 (rtx *, rtx, rtx, rtx);
 static int invert_exp_1 (rtx, rtx);
 static int returnjump_p_1 (rtx *, void *);
-static void delete_prior_computation (rtx, rtx);
 
 /* Alternate entry into the jump optimizer.  This entry point only rebuilds
    the JUMP_LABEL field in jumping insns and REG_LABEL notes in non-jumping


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]