Mercurial > hg > CbC > CbC_gcc
diff gcc/c-parser.c @ 106:85047c4f1ca4
add CbC-examples/rectypeTest
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 13 Jun 2012 17:18:58 +0900 |
parents | b3cfc7733d3f |
children | a3a2f64cf8f4 |
line wrap: on
line diff
--- a/gcc/c-parser.c Fri May 25 10:34:23 2012 +0900 +++ b/gcc/c-parser.c Wed Jun 13 17:18:58 2012 +0900 @@ -2172,7 +2172,6 @@ value = make_node (IDENTIFIER_NODE); ret = parser_xref_tag (loc, code, value); - // ret.spec->base.lang_flag_3 = 1; IS_SELFTYPE (ret.spec) = 1; declspecs_add_type (loc, specs, ret); c_parser_consume_token (parser); @@ -2521,6 +2520,7 @@ while(TREE_CODE (TREE_TYPE (tmptype)) == POINTER_TYPE) tmptype = TREE_TYPE(tmptype); if(IS_SELFTYPE ( TREE_TYPE (tmptype))) TREE_TYPE(tmptype) = type; + if(IS_RECTYPE ( TREE_TYPE (tmptype))) TREE_TYPE(tmptype) = type; } #endif