OSDN Git Service

config/avr/avr.c (legitimate_address_p): Fix debugging print statement to avoid
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 Jul 2005 16:33:17 +0000 (16:33 +0000)
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 Jul 2005 16:33:17 +0000 (16:33 +0000)
displaying ASCII control characters.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102161 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/avr/avr.c

index 39e630c..5cd749b 100644 (file)
        * config/i386/i386.md (lrint<mode>2): Use temporary
        instead of clobbering non-existent memory.
 
+2005-07-19  Nick Clifton  <nickc@redhat.com>
+
+       * config/avr/avr.c (legitimate_address_p): Fix debugging print
+       statement to avoid displaying ASCII control characters.
+
 2005-07-19  Ben Elliston  <bje@au.ibm.com>
 
        * bt-load.c (link_btr_uses): Fix uninitialised warnings.
index e061021..ec519cf 100644 (file)
@@ -950,7 +950,7 @@ legitimate_address_p (enum machine_mode mode, rtx x, int strict)
     }
   if (TARGET_ALL_DEBUG)
     {
-      fprintf (stderr, "   ret = %c\n", r);
+      fprintf (stderr, "   ret = %c\n", r + '0');
     }
   return r == NO_REGS ? 0 : (int)r;
 }