From 330b082cd6da88ac49355f3c4aad1e4b6c45075d Mon Sep 17 00:00:00 2001 From: gdr Date: Tue, 28 Aug 2007 09:26:03 +0000 Subject: * c-pretty-print.c (pp_c_constant): Handle COMPLEX_CST. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127852 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/c-pretty-print.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gcc/c-pretty-print.c') 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; -- cgit v1.2.1