+2015-11-24  Nathan Sidwell  <nathan@acm.org>
+
+       * gcc.dg/sso/dump.h: Force IO to be putchar function call on nvptx.
+
 2015-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
 
        PR rtl-optimization/68381
 
+#ifdef __nvptx__
+/* Force function call.  NVPTX's IO is extremely limited.  */
+#undef putchar
+#endif
+
 void dump (void *p, unsigned int len)
 {
   const char digits[17] = "0123456789abcdef";
 
 void put (const char s[])
 {
-  fputs (s, stdout);
+  int i;
+  for (i = 0; s[i]; i++)
+    putchar (s[i]);
 }
 
 void new_line (void)