From b29ee02b34c3fe06df62dae38f75b0efcfe38704 Mon Sep 17 00:00:00 2001 From: Gabriel Dos Reis Date: Tue, 28 Aug 2007 09:26:03 +0000 Subject: [PATCH] * c-pretty-print.c (pp_c_constant): Handle COMPLEX_CST. From-SVN: r127852 --- gcc/ChangeLog | 4 ++++ gcc/c-pretty-print.c | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8f8cc2d2302..a7e84cf59ae 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2007-08-28 Gabriel Dos Reis + + * c-pretty-print.c (pp_c_constant): Handle COMPLEX_CST. + 2007-08-28 Richard Guenther * tree.h (DECL_DISREGARD_INLINE_LIMITS): New. diff --git a/gcc/c-pretty-print.c b/gcc/c-pretty-print.c index a5dd82fb0b5..5fdaf2f5e12 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; -- 2.11.4.GIT