Mercurial > hg > CbC > CbC_gcc
diff gcc/c-parser.c @ 107:a3a2f64cf8f4
modify implementation of rectype
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 14 Jun 2012 19:44:54 +0900 |
parents | 85047c4f1ca4 |
children |
line wrap: on
line diff
--- a/gcc/c-parser.c Wed Jun 13 17:18:58 2012 +0900 +++ b/gcc/c-parser.c Thu Jun 14 19:44:54 2012 +0900 @@ -2144,7 +2144,8 @@ t.kind = ctsk_resword; t.spec = c_parser_peek_token (parser)->value; declspecs_add_type (loc, specs, t); - + + IS_RECTYPE(t.spec) = 1; /* attrs = get_identifier("fastcall"); attrs = build_tree_list(attrs, NULL_TREE); @@ -2520,7 +2521,9 @@ 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; + // if(IS_RECTYPE ( TREE_TYPE (tmptype))) + if(IS_RECTYPE (tmptype)) + TREE_TYPE(tmptype) = type; } #endif