diff mbox

[nvptx] small cleanup patch

Message ID 558D4720.5060400@codesourcery.com
State New
Headers show

Commit Message

Nathan Sidwell June 26, 2015, 12:35 p.m. UTC
Bernd,
I've applied this small patch to trunk.  It removes some unused variables in the 
ptx md file and silences some build warnings.

nathan
diff mbox

Patch

2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>

	* config/nvptx/nvptx.md (call_operation): Remove unused variables.

Index: config/nvptx/nvptx.md
===================================================================
--- config/nvptx/nvptx.md	(revision 225008)
+++ config/nvptx/nvptx.md	(working copy)
@@ -197,20 +197,17 @@ 
 (define_predicate "call_operation"
   (match_code "parallel")
 {
-  unsigned i;
+  int i;
 
   for (i = 1; i < XVECLEN (op, 0); i++)
     {
       rtx elt = XVECEXP (op, 0, i);
-      enum machine_mode mode;
-      unsigned regno;
 
       if (GET_CODE (elt) != USE
           || GET_CODE (XEXP (elt, 0)) != REG
           || XEXP (elt, 0) == frame_pointer_rtx
           || XEXP (elt, 0) == arg_pointer_rtx
           || XEXP (elt, 0) == stack_pointer_rtx)
-
         return false;
     }
   return true;