aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@integrable-solutions.net>2007-08-28 09:26:03 +0000
committerGabriel Dos Reis <gdr@gcc.gnu.org>2007-08-28 09:26:03 +0000
commitb29ee02b34c3fe06df62dae38f75b0efcfe38704 (patch)
tree7baee0c0ee895ff545a32b0a95d2dc968261b6d8 /gcc
parentc536a6a77a19a895e51e5e5167d266bd8ce61001 (diff)
downloadgcc-b29ee02b34c3fe06df62dae38f75b0efcfe38704.zip
gcc-b29ee02b34c3fe06df62dae38f75b0efcfe38704.tar.gz
gcc-b29ee02b34c3fe06df62dae38f75b0efcfe38704.tar.bz2
* c-pretty-print.c (pp_c_constant): Handle COMPLEX_CST.
From-SVN: r127852
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/c-pretty-print.c7
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;