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, committed, ia64] Path to remove unused variables in configure/ia64/ia64.c


The new 'set but unused' warning found two unused variables in
configure/ia64/ia64.c.  This patch removes them.

Tested on IA64 HP-UX and checked in.

Steve Ellcey
sje@cup.hp.com



2010-04-09  Steve Ellcey  <sje@cup.hp.com>

	* config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
	setup_clocks_p.
	(final_emit_insn_group_barriers): Remove unused variable prev_insn.


Index: config/ia64/ia64.c
===================================================================
--- config/ia64/ia64.c	(revision 158145)
+++ config/ia64/ia64.c	(working copy)
@@ -7075,8 +7075,6 @@ static int
 ia64_dfa_new_cycle (FILE *dump, int verbose, rtx insn, int last_clock,
 		    int clock, int *sort_p)
 {
-  int setup_clocks_p = FALSE;
-
   gcc_assert (insn && INSN_P (insn));
 
   if (DEBUG_INSN_P (insn))
@@ -7118,8 +7116,6 @@ ia64_dfa_new_cycle (FILE *dump, int verb
 	    *sort_p = 0;
 	  return 1;
 	}
-      else if (reload_completed)
-	setup_clocks_p = TRUE;
 
       if (last_scheduled_insn)
 	{
@@ -7135,9 +7131,6 @@ ia64_dfa_new_cycle (FILE *dump, int verb
 	    }
 	}
     }
-  else if (reload_completed)
-    setup_clocks_p = TRUE;
-
   return 0;
 }
 
@@ -8892,7 +8885,6 @@ final_emit_insn_group_barriers (FILE *du
   rtx insn;
   int need_barrier_p = 0;
   int seen_good_insn = 0;
-  rtx prev_insn = NULL_RTX;
 
   init_insn_group_barriers ();
 
@@ -8915,7 +8907,6 @@ final_emit_insn_group_barriers (FILE *du
 	  init_insn_group_barriers ();
 	  seen_good_insn = 0;
 	  need_barrier_p = 0;
-	  prev_insn = NULL_RTX;
 	}
       else if (NONDEBUG_INSN_P (insn))
 	{
@@ -8924,7 +8915,6 @@ final_emit_insn_group_barriers (FILE *du
 	      init_insn_group_barriers ();
 	      seen_good_insn = 0;
 	      need_barrier_p = 0;
-	      prev_insn = NULL_RTX;
 	    }
 	  else if (need_barrier_p || group_barrier_needed (insn)
 		   || (mflag_sched_stop_bits_after_every_cycle
@@ -8971,14 +8961,10 @@ final_emit_insn_group_barriers (FILE *du
 	      if (recog_memoized (insn) >= 0
 		  && important_for_bundling_p (insn))
 		seen_good_insn = 1;
-	      prev_insn = NULL_RTX;
 	    }
 	  else if (recog_memoized (insn) >= 0
 		   && important_for_bundling_p (insn))
-	    {
-	      prev_insn = insn;
-	      seen_good_insn = 1;
-	    }
+	    seen_good_insn = 1;
 	  need_barrier_p = (GET_CODE (insn) == CALL_INSN
 			    || GET_CODE (PATTERN (insn)) == ASM_INPUT
 			    || asm_noperands (PATTERN (insn)) >= 0);


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