summaryrefslogtreecommitdiff
path: root/gcc/c-pretty-print.c
diff options
context:
space:
mode:
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-28 09:26:03 +0000
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-28 09:26:03 +0000
commit330b082cd6da88ac49355f3c4aad1e4b6c45075d (patch)
tree7baee0c0ee895ff545a32b0a95d2dc968261b6d8 /gcc/c-pretty-print.c
parentebb7d626ed01501d391edbedf90c8bdb32e8a7b1 (diff)
downloadgcc-330b082cd6da88ac49355f3c4aad1e4b6c45075d.tar.gz
* 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
Diffstat (limited to 'gcc/c-pretty-print.c')
-rw-r--r--gcc/c-pretty-print.c7
1 files changed, 7 insertions, 0 deletions
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;