public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [nvptx] small cleanup patch
@ 2015-06-26 12:39 Nathan Sidwell
  0 siblings, 0 replies; only message in thread
From: Nathan Sidwell @ 2015-06-26 12:39 UTC (permalink / raw)
  To: Bernd Schmidt; +Cc: GCC Patches

[-- Attachment #1: Type: text/plain, Size: 162 bytes --]

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
-- 
Nathan Sidwell

[-- Attachment #2: cleanup.patch --]
[-- Type: text/x-patch, Size: 835 bytes --]

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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-06-26 12:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-26 12:39 [nvptx] small cleanup patch Nathan Sidwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).