diff options
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/c-pretty-print.c | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8f8cc2d..a7e84cf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2007-08-28 Gabriel Dos Reis <gdr@integrable-solutions.net> + + * c-pretty-print.c (pp_c_constant): Handle COMPLEX_CST. + 2007-08-28 Richard Guenther <rguenther@suse.de> * tree.h (DECL_DISREGARD_INLINE_LIMITS): New. diff --git a/gcc/c-pretty-print.c b/gcc/c-pretty-print.c index a5dd82f..5fdaf2f 100644 --- a/gcc/c-pretty-print.c +++ b/gcc/c-pretty-print.c @@ -1012,6 +1012,13 @@ pp_c_constant (c_pretty_printer *pp, tree e) pp_c_string_literal (pp, e); break; + case COMPLEX_CST: + /* Sometimes, we are confused and we think a complex literal + is a constant. Such thing is a compound literal which + grammatically belongs to postifx-expr production. */ + pp_c_compound_literal (pp, e); + break; + default: pp_unsupported_tree (pp, e); break; |