diff gcc/c-family/c-pretty-print.c @ 105:b3cfc7733d3f

fix bug. implementation fo rectype. c-family/c-pretty-print.c
author Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
date Fri, 25 May 2012 10:34:23 +0900
parents 561a7518be6b
children a3a2f64cf8f4
line wrap: on
line diff
--- a/gcc/c-family/c-pretty-print.c	Mon Apr 09 19:01:21 2012 +0900
+++ b/gcc/c-family/c-pretty-print.c	Fri May 25 10:34:23 2012 +0900
@@ -29,7 +29,9 @@
 #include "tree-pretty-print.h"
 #include "tree-iterator.h"
 #include "diagnostic.h"
-
+#ifndef noCbC
+#include "cbc-tree.h"
+#endif
 /* Translate if being used for diagnostics, but not for dump files or
    __PRETTY_FUNCTION.  */
 #define M_(msgid) (pp_translate_identifiers (pp) ? _(msgid) : (msgid))
@@ -544,6 +546,9 @@
       if (TREE_CODE (TREE_TYPE (t)) == ARRAY_TYPE
 	  || TREE_CODE (TREE_TYPE (t)) == FUNCTION_TYPE)
 	pp_c_right_paren (pp);
+#ifndef noCbC
+      if(IS_RECTYPE(t)) return;
+#endif
       t = TREE_TYPE (t);
     }