OSDN Git Service

* c-pretty-print.c (pp_c_constant): Handle COMPLEX_CST.
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Aug 2007 09:26:03 +0000 (09:26 +0000)
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Aug 2007 09:26:03 +0000 (09:26 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127852 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 8f8cc2d..a7e84cf 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 a5dd82f..5fdaf2f 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;