From: Ben Elliston Date: Wed, 10 May 2006 01:18:28 +0000 (+0000) Subject: tree-pretty-print.c (pretty_print_string): No need to handle '\0' as a special character. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4db60bd06f820684418d7bb179d6edee80cddb08;p=gcc.git tree-pretty-print.c (pretty_print_string): No need to handle '\0' as a special character. * tree-pretty-print.c (pretty_print_string): No need to handle '\0' as a special character. From-SVN: r113669 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6edc32675fa..6cd1fcc76f3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2006-05-10 Ben Elliston + * 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). diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c index b86d2ce9077..5ce495b501f 100644 --- a/gcc/tree-pretty-print.c +++ b/gcc/tree-pretty-print.c @@ -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");