* c-pretty-print.c (pp_c_constant): Handle COMPLEX_CST.
authorGabriel Dos Reis <gdr@integrable-solutions.net>
Tue, 28 Aug 2007 09:26:03 +0000 (09:26 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Tue, 28 Aug 2007 09:26:03 +0000 (09:26 +0000)
From-SVN: r127852

gcc/ChangeLog
gcc/c-pretty-print.c

index 8f8cc2d2302d185194eb3610d1f08958c5305eb7..a7e84cf59ae7e59e41cfac988423614ff9810674 100644 (file)
@@ -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.
index a5dd82fb0b5bfedd5d3e23b3cb757be9908dd6ab..5fdaf2f5e12fbd30d9e25fb6771263a2dd0c7240 100644 (file)
@@ -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;