Mercurial > hg > CbC > CbC_gcc
comparison 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 |
comparison
equal
deleted
inserted
replaced
104:46ee985e4f0e | 105:b3cfc7733d3f |
---|---|
27 #include "intl.h" | 27 #include "intl.h" |
28 #include "c-pretty-print.h" | 28 #include "c-pretty-print.h" |
29 #include "tree-pretty-print.h" | 29 #include "tree-pretty-print.h" |
30 #include "tree-iterator.h" | 30 #include "tree-iterator.h" |
31 #include "diagnostic.h" | 31 #include "diagnostic.h" |
32 | 32 #ifndef noCbC |
33 #include "cbc-tree.h" | |
34 #endif | |
33 /* Translate if being used for diagnostics, but not for dump files or | 35 /* Translate if being used for diagnostics, but not for dump files or |
34 __PRETTY_FUNCTION. */ | 36 __PRETTY_FUNCTION. */ |
35 #define M_(msgid) (pp_translate_identifiers (pp) ? _(msgid) : (msgid)) | 37 #define M_(msgid) (pp_translate_identifiers (pp) ? _(msgid) : (msgid)) |
36 | 38 |
37 /* The pretty-printer code is primarily designed to closely follow | 39 /* The pretty-printer code is primarily designed to closely follow |
542 if (TREE_CODE (t) == POINTER_TYPE) | 544 if (TREE_CODE (t) == POINTER_TYPE) |
543 { | 545 { |
544 if (TREE_CODE (TREE_TYPE (t)) == ARRAY_TYPE | 546 if (TREE_CODE (TREE_TYPE (t)) == ARRAY_TYPE |
545 || TREE_CODE (TREE_TYPE (t)) == FUNCTION_TYPE) | 547 || TREE_CODE (TREE_TYPE (t)) == FUNCTION_TYPE) |
546 pp_c_right_paren (pp); | 548 pp_c_right_paren (pp); |
549 #ifndef noCbC | |
550 if(IS_RECTYPE(t)) return; | |
551 #endif | |
547 t = TREE_TYPE (t); | 552 t = TREE_TYPE (t); |
548 } | 553 } |
549 | 554 |
550 pp_direct_abstract_declarator (pp, t); | 555 pp_direct_abstract_declarator (pp, t); |
551 } | 556 } |