tree-pretty-print.c (pretty_print_string): No need to handle '\0' as a special character.
authorBen Elliston <bje@au.ibm.com>
Wed, 10 May 2006 01:18:28 +0000 (01:18 +0000)
committerBen Elliston <bje@gcc.gnu.org>
Wed, 10 May 2006 01:18:28 +0000 (11:18 +1000)
        * tree-pretty-print.c (pretty_print_string): No need to handle
        '\0' as a special character.

From-SVN: r113669

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

index 6edc32675fa80bac26153d25350346a9dd053d7b..6cd1fcc76f37a20eb0bb620f1f272a529ba10e9d 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 b86d2ce9077deab387140ed27e987925d3e87c44..5ce495b501f06160a324e8e7feb41c615debcf1d 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");