OSDN Git Service

* tree-pretty-print.c (pretty_print_string): No need to handle
authorbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 May 2006 01:18:28 +0000 (01:18 +0000)
committerbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 May 2006 01:18:28 +0000 (01:18 +0000)
        '\0' as a special character.

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

gcc/ChangeLog
gcc/tree-pretty-print.c

index 6edc326..6cd1fcc 100644 (file)
@@ -1,5 +1,8 @@
 2006-05-10  Ben Elliston  <bje@au.ibm.com>
 
+       * tree-pretty-print.c (pretty_print_string): No need to handle
+       '\0' as a special character.
+
        * tree.h: Include "hashtab.h".
        (iterative_hash_expr): Use hashval_t in its prototype.
        * Makefile.in (TREE_H): Add $(HASHTAB_H).
index b86d2ce..5ce495b 100644 (file)
@@ -2512,9 +2512,7 @@ pretty_print_string (pretty_printer *buffer, const char *str)
          pp_string (buffer, "\\'");
          break;
 
-       case '\0':
-         pp_string (buffer, "\\0");
-         break;
+         /* No need to handle \0; the loop terminates on \0.  */
 
        case '\1':
          pp_string (buffer, "\\1");